NickThePowerful / iphone-dev

Automatically exported from code.google.com/p/iphone-dev
0 stars 0 forks source link

llvm-gcc-iphone-build cc1 error (#pragma pack is already registered) #7

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Install build tools.  
2. Get to the "Configure and make LLVM-GCC" 
3. Run the make: make LLVM_VERSION_INFO=2.0-svn-iphone-dev-0.3-svn 

What is the expected output? What do you see instead?

Expect no errors.  Instead get:
cc1: internal error: #pragma pack is already registered

after the crt3.o compile attempt:

/Developer/iPhone/iphone-dev/llvm-gcc-iphone-build/./gcc/xgcc
-B/Developer/iPhone/iphone-dev/llvm-gcc-iphone-build/./gcc/
-B/usr/local/arm-apple-darwin/bin/ -B/usr/local/arm-apple-darwin/lib/
-isystem /usr/local/arm-apple-darwin/include -isystem
/usr/local/arm-apple-darwin/sys-include -O2 -g -O2  -DIN_GCC    -W -Wall
-Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes
-Wold-style-definition  -isystem ./include  -I. -I.
-I../../llvm-gcc-iphone/gcc -I../../llvm-gcc-iphone/gcc/.
-I../../llvm-gcc-iphone/gcc/../include -I./../intl
-I../../llvm-gcc-iphone/gcc/../libcpp/include 
-I../../llvm-gcc-iphone/gcc/../libdecnumber -I../libdecnumber
-I/Developer/iPhone/llvm-svn/include -I/Developer/iPhone/llvm-svn/include 
-mlongcall \
          -fno-tree-dominator-opts  \
         \
          -c ../../llvm-gcc-iphone/gcc/config/darwin-crt3.c -o crt3.o

What version of the product are you using? On what operating system?

Mac OS X 10.4.10   Darwin 8.10.1
Intel quad-CPU Mac Pro
gcc version 4.0.1 (Apple Computer, Inc. build 5363)

Original issue reported on code.google.com by gregory....@gmail.com on 12 Sep 2007 at 1:33

GoogleCodeExporter commented 9 years ago
I get the same error.

Original comment by kaisers...@gmail.com on 12 Sep 2007 at 3:26

GoogleCodeExporter commented 9 years ago
I'm getting the same error...

Original comment by rich.war...@gmail.com on 12 Sep 2007 at 3:44

GoogleCodeExporter commented 9 years ago
Please retry with the newest SVN. See the updated building page for 
instructions: we've split the LLVM-GCC into 
two versions, with 4.0 being the default and the one you should use. Delete 
your build directory before trying to 
recompile.

Original comment by nightwat...@gmail.com on 12 Sep 2007 at 4:56

GoogleCodeExporter commented 9 years ago
Latest revision now gives 'cc1: error: invalid option 'macosx-version-min=10.4' 
instead of the pragma pack 
error on crt3.o.

Original comment by kaisers...@gmail.com on 12 Sep 2007 at 4:56

GoogleCodeExporter commented 9 years ago
Whoa that was quick we must've posted at the same time... :)

Original comment by kaisers...@gmail.com on 12 Sep 2007 at 4:57

GoogleCodeExporter commented 9 years ago
Update your SVN and rebuild. I fixed this issue.

Original comment by nightwat...@gmail.com on 12 Sep 2007 at 5:06

GoogleCodeExporter commented 9 years ago
Sorry...  added a new defect before I noticed the comments here

Original comment by rich.war...@gmail.com on 12 Sep 2007 at 5:12

GoogleCodeExporter commented 9 years ago
That did the trick! Built with no errors. Now let's see if I can compile 
anything with it...

Original comment by kaisers...@gmail.com on 12 Sep 2007 at 5:19

GoogleCodeExporter commented 9 years ago
Going ahead and changing this to fixed then.

Original comment by nightwat...@gmail.com on 12 Sep 2007 at 3:14