Open GoogleCodeExporter opened 8 years ago
When I change the line in question to have the third arg (I just used 00777),
compilation of llvm-gcc gets further, but crashes elsewhere. Now I get:
/usr/local/bin/arm-apple-darwin-ranlib: file: ./libgcc.a(.....) has no symbols
*** buffer overflow detected ***: /usr/local/bin/arm-apple-darwin-ranlib
terminated
The (.....) can be replaced with a number of .o files (there are probably 10 or
15
different .o files that I get the no symbols error on and then the buffer
overflow
detected.
The two commands before the errors are:
rm -f ./libgcc.a
arm-apple-darwin-ar rc ./libgcc.a libgcc/./_udivsi3.o...........
Original comment by undefinedspace
on 30 Mar 2009 at 8:52
I switched to gcc-4.2 and g++-4.2 and both the buffer overflow errors and the
O_CREAT
error is gone now.
Original comment by undefinedspace
on 1 Apr 2009 at 11:10
I have the same issue:
gcc -g -O2 -DIN_GCC -DCROSS_DIRECTORY_STRUCTURE -W -Wall -Wwrite-strings
-Wstrict-prototypes -Wmissing-prototypes -pedantic -Wno-long-long
-Wno-variadic-macros -Wold-style-definition -DHAVE_CONFIG_H -DENABLE_LLVM
-I/home/radif/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/radif/llvm-svn/include
-I/home/radif/llvm-svn/include \
-DTARGET_MACHINE=\"arm-apple-darwin\" \
-c ../../../llvm-gcc-4.0-iphone/gcc/collect2.c -o collect2.o
In function ‘open’,
inlined from ‘collect_execute’ at ../../../llvm-gcc-4.0-iphone/gcc/collect2.c:1590:
/usr/include/bits/fcntl2.h:51: error: call to ‘__open_missing_mode’
declared with
attribute error: open with O_CREAT in second argument needs 3 arguments
make[1]: *** [collect2.o] Error 1
make[1]: Leaving directory
`/home/radif/iphone-dev/build/llvm-gcc-4.0-iphone/gcc'
make: *** [all-gcc] Error 2
Played with HEAVENLY, didn't seem to change anything. Can somebody place clear
instructions to address this issue?
Original comment by radif.sharafullin@gmail.com
on 16 Aug 2009 at 3:09
is that because I use 3.0 iPhone software filesystem?
Original comment by radif.sharafullin@gmail.com
on 16 Aug 2009 at 4:20
same problem, same filesystem.
g++-4.2 give me a buffer overflow detected on
*** buffer overflow detected ***: /usr/local/bin/arm-apple-darwin-ranlib
Is this impossible on the 3.0 firmware?
Original comment by pmatteu...@gmail.com
on 1 Apr 2010 at 5:17
same problem, use gcc-4.3
arm-apple-darwin9-ld overflow
arm-apple-darwin9-ranlib: file: kext/libgcc.a(_bb_init_func.o) has no symbols
arm-apple-darwin9-ranlib: file: kext/libgcc.a(XXXXXX.o) has no symbols
....
Original comment by libing1...@gmail.com
on 20 May 2010 at 9:43
Original issue reported on code.google.com by
undefinedspace
on 29 Mar 2009 at 3:43