cwalls251 / iphone-dev

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

Fails to build toolchain on 32-bit Ubuntu Feisty, GCC 4.1.2 #20

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. mkdir llvm-gcc-4.0-iphone-build
2. cd llvm-gcc-4.0-iphone-build
3. ../llvm-gcc-4.0-iphone/configure --enable-llvm=$LLVMOBJDIR
--enable-languages=c,c++,objc,obj-c++ \
--target=arm-apple-darwin --enable-sjlj-exceptions --with-heavenly=$HEAVENLY \
--with-as=/usr/local/bin/arm-apple-darwin-as
--with-ld=/usr/local/bin/arm-apple-darwin-ld
4. make LLVM_VERSION_INFO=2.0-svn-iphone-dev-0.3-svn

What is the expected output? What do you see instead?
c++ -c -g -O2 -DIN_GCC -DCROSS_DIRECTORY_STRUCTURE -W -Wall -Wwrite-strings
-pedantic -Wno-long-long -Wno-variadic-macros -DHAVE_CONFIG_H -Wno-unused
-DTARGET_NAME=\"arm-apple-darwin\" -DNDEBUG -DENABLE_LLVM
-I/home/dave/toolchain/llvm-svn/include  -D_DEBUG  -D_GNU_SOURCE
-D__STDC_LIMIT_MACROS -DLLVM_VERSION_INFO='"2.0-svn-iphone-dev-0.3-svn"'  
-I. -I. -I../../llvm-gcc-4.0-iphone/gcc -I../../llvm-gcc-4.0-iphone/gcc/.
-I../../llvm-gcc-4.0-iphone/gcc/../include
-I../../llvm-gcc-4.0-iphone/gcc/../libcpp/include 
-I/home/dave/toolchain/llvm-svn/include
-I/home/dave/toolchain/llvm-svn/include
../../llvm-gcc-4.0-iphone/gcc/llvm-main.cpp -o llvm-main.o
../../llvm-gcc-4.0-iphone/gcc/../include/libiberty.h:100: error:
declaration of ‘char* basename(const char*)’ throws different exceptions
/usr/include/string.h:387: error: from previous declaration ‘char*
basename(const char*) throw ()’
../../llvm-gcc-4.0-iphone/gcc/../include/libiberty.h:338: error:
declaration of ‘int asprintf(char**, const char*, ...)’ throws different
exceptions
/usr/include/stdio.h:376: error: from previous declaration ‘int
asprintf(char**, const char*, ...) throw ()’
../../llvm-gcc-4.0-iphone/gcc/../include/libiberty.h:346: error:
declaration of ‘int vasprintf(char**, const char*, char*)’ throws different
exceptions
/usr/include/stdio.h:370: error: from previous declaration ‘int
vasprintf(char**, const char*, char*) throw ()’
make[1]: *** [llvm-main.o] Error 1
make[1]: Leaving directory
`/home/dave/toolchain/iphone-dev/llvm-gcc-4.0-iphone-build/gcc'
make: *** [all-gcc] Error 2

What version of the product are you using? On what operating system?
/proc/version: version 2.6.20-16-generic (root@terranova) (gcc version
4.1.2 (Ubuntu 4.1.2-0ubuntu4)) #2 SMP Thu Jun 7 20:19:32 UTC 2007
gcc --version: gcc (GCC) 4.1.2 (Ubuntu 4.1.2-0ubuntu4)

Please provide any additional information below.
I tried putting the Mac OS X headers in
/usr/local/share/Developer/SDKs/MacOSX10.4u.sdk and that's the only thing I
did to deviate from the instructions since I assume they intend for the the
headers to be in /Developer/SDKs/MacOSX10.4u.sdk.

BTW, I ran into the bison issue others mentioned because I didn't have
bison installed and make clean didn't reset things.  I didn't figure that
out until after deleting and re-getting the code from the svn.

-r2

Original issue reported on code.google.com by d...@linuxprogrammer.org on 12 Sep 2007 at 8:20

GoogleCodeExporter commented 8 years ago
Please try updating, deleting your build directory, reconfiguring, and 
reinstalling. I made some changes to GCC's 
config.in file to resolve this issue, which some people were having.

Original comment by nightwat...@gmail.com on 12 Sep 2007 at 8:28

GoogleCodeExporter commented 8 years ago
rebuilding now ;-)

-r2

Original comment by d...@linuxprogrammer.org on 12 Sep 2007 at 9:07

GoogleCodeExporter commented 8 years ago
After deleting, regetting, reconfiguring and recompiling I now get this error:

/home/dave/toolchain/iphone-dev/llvm-gcc-4.0-iphone-build/gcc/xgcc
-B/home/dave/toolchain/iphone-dev/llvm-gcc-4.0-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  -DIN_GCC -DCROSS_DIRECTORY_STRUCTURE   -W -Wall -Wwrite-strings
-Wstrict-prototypes -Wmissing-prototypes -Wold-style-definition  -isystem 
./include 
-fPIC -pipe -g -DHAVE_GTHR_DEFAULT -DIN_LIBGCC2 -D__GCC_FLOAT_NOT_NEEDED
-Dinhibit_libc -I. -I. -I../../llvm-gcc-4.0-iphone/gcc
-I../../llvm-gcc-4.0-iphone/gcc/. -I../../llvm-gcc-4.0-iphone/gcc/../include
-I../../llvm-gcc-4.0-iphone/gcc/../libcpp/include 
-I/home/dave/toolchain/llvm-svn/include -I/home/dave/toolchain/llvm-svn/include
-DSHARED -DL_udivsi3 -xassembler-with-cpp -c
../../llvm-gcc-4.0-iphone/gcc/config/arm/lib1funcs.asm -o libgcc/./_udivsi3_s.o
../../llvm-gcc-4.0-iphone/gcc/config/arm/lib1funcs.asm:129:Unknown instruction 
'ldm'
../../llvm-gcc-4.0-iphone/gcc/config/arm/lib1funcs.asm:129:syntax error, 
unexpected $end
../../llvm-gcc-4.0-iphone/gcc/config/arm/lib1funcs.asm:129:Unknown instruction 
'dm'
../../llvm-gcc-4.0-iphone/gcc/config/arm/lib1funcs.asm:129:syntax error, 
unexpected $end
../../llvm-gcc-4.0-iphone/gcc/config/arm/lib1funcs.asm:129:Unknown instruction 
'm'
../../llvm-gcc-4.0-iphone/gcc/config/arm/lib1funcs.asm:129:syntax error, 
unexpected $end
../../llvm-gcc-4.0-iphone/gcc/config/arm/lib1funcs.asm:129:Spurious digit 
134852686.
../../llvm-gcc-4.0-iphone/gcc/config/arm/lib1funcs.asm:129:Rest of line 
ignored. 1st
junk character valued 17 ().
make[2]: *** [libgcc/./_udivsi3_s.o] Error 1
make[2]: Leaving directory
`/home/dave/toolchain/iphone-dev/llvm-gcc-4.0-iphone-build/gcc'
make[1]: *** [stmp-multilib] Error 2
make[1]: Leaving directory
`/home/dave/toolchain/iphone-dev/llvm-gcc-4.0-iphone-build/gcc'
make: *** [all-gcc] Error 2

Original comment by d...@linuxprogrammer.org on 12 Sep 2007 at 10:35

GoogleCodeExporter commented 8 years ago
That new one is a duplicate of issue 18.

Original comment by nightwat...@gmail.com on 12 Sep 2007 at 10:42