cwalls251 / iphone-dev

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

Byte aligning problems when linking llvm-gcc-4.0 #77

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
When I type "make LLVM_VERSION_INFO=2.0-svn-iphone-dev-0.3-svn", I get a
whole load of horrible errors:

/usr/local/src/iphone-dev/build/llvm-gcc-4.0-iphone/gcc/xgcc
-B/usr/local/src/iphone-dev/build/llvm-gcc-4.0-iphone/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 -dynamiclib -nodefaultlibs -install_name
/usr/local/arm-apple-darwin/lib/libgcc_s`if test . = ppc64 ; then echo _. ;
fi`.1.dylib -single_module -o ./libgcc_s.1.dylib.tmp
-Wl,-exported_symbols_list,libgcc/./libgcc.map -compatibility_version 1
-current_version 1.0  libgcc/./_udivsi3_s.o libgcc/./_divsi3_s.o
libgcc/./_umodsi3_s.o libgcc/./_modsi3_s.o libgcc/./_dvmd_tls_s.o
libgcc/./_muldi3_s.o libgcc/./_negdi2_s.o libgcc/./_lshrdi3_s.o
libgcc/./_ashldi3_s.o libgcc/./_ashrdi3_s.o libgcc/./_cmpdi2_s.o
libgcc/./_ucmpdi2_s.o libgcc/./_floatdidf_s.o libgcc/./_floatdisf_s.o
libgcc/./_fixunsdfsi_s.o libgcc/./_fixunssfsi_s.o libgcc/./_fixunsdfdi_s.o
libgcc/./_fixdfdi_s.o libgcc/./_fixunssfdi_s.o libgcc/./_fixsfdi_s.o
libgcc/./_fixxfdi_s.o libgcc/./_fixunsxfdi_s.o libgcc/./_floatdixf_s.o
libgcc/./_fixunsxfsi_s.o libgcc/./_fixtfdi_s.o libgcc/./_fixunstfdi_s.o
libgcc/./_floatditf_s.o libgcc/./_clear_cache_s.o
libgcc/./_enable_execute_stack_s.o libgcc/./_trampoline_s.o
libgcc/./__main_s.o libgcc/./_absvsi2_s.o libgcc/./_absvdi2_s.o
libgcc/./_addvsi3_s.o libgcc/./_addvdi3_s.o libgcc/./_subvsi3_s.o
libgcc/./_subvdi3_s.o libgcc/./_mulvsi3_s.o libgcc/./_mulvdi3_s.o
libgcc/./_negvsi2_s.o libgcc/./_negvdi2_s.o libgcc/./_ctors_s.o
libgcc/./_ffssi2_s.o libgcc/./_ffsdi2_s.o libgcc/./_clz_s.o
libgcc/./_clzsi2_s.o libgcc/./_clzdi2_s.o libgcc/./_ctzsi2_s.o
libgcc/./_ctzdi2_s.o libgcc/./_popcount_tab_s.o libgcc/./_popcountsi2_s.o
libgcc/./_popcountdi2_s.o libgcc/./_paritysi2_s.o libgcc/./_paritydi2_s.o
libgcc/./_powisf2_s.o libgcc/./_powidf2_s.o libgcc/./_powixf2_s.o
libgcc/./_powitf2_s.o libgcc/./_mulsc3_s.o libgcc/./_muldc3_s.o
libgcc/./_mulxc3_s.o libgcc/./_multc3_s.o libgcc/./_divsc3_s.o
libgcc/./_divdc3_s.o libgcc/./_divxc3_s.o libgcc/./_divtc3_s.o
libgcc/./_divdi3_s.o libgcc/./_moddi3_s.o libgcc/./_udivdi3_s.o
libgcc/./_umoddi3_s.o libgcc/./_udiv_w_sdiv_s.o libgcc/./_udivmoddi4_s.o
libgcc/./unwind-dw2_s.o libgcc/./unwind-dw2-fde-darwin_s.o
libgcc/./unwind-sjlj_s.o libgcc/./unwind-c_s.o -lc
/usr/local/bin/arm-apple-darwin-ld: can't open: non-weak (No such file or
directory, errno = 2)
/usr/local/bin/arm-apple-darwin-ld:
/usr/local/arm-apple-darwin/lib/dylib1.o load command 0 size not a multiple
of sizeof(long)
/usr/local/bin/arm-apple-darwin-ld: libgcc/./_udivsi3_s.o load command 0
size not a multiple of sizeof(long)
/usr/local/bin/arm-apple-darwin-ld: libgcc/./_divsi3_s.o load command 0
size not a multiple of sizeof(long)
/usr/local/bin/arm-apple-darwin-ld: libgcc/./_umodsi3_s.o load command 0
size not a multiple of sizeof(long)
/usr/local/bin/arm-apple-darwin-ld: libgcc/./_modsi3_s.o load command 0
size not a multiple of sizeof(long)
/usr/local/bin/arm-apple-darwin-ld: libgcc/./_dvmd_tls_s.o load command 0
size not a multiple of sizeof(long)
/usr/local/bin/arm-apple-darwin-ld: libgcc/./_muldi3_s.o load command 0
size not a multiple of sizeof(long)
/usr/local/bin/arm-apple-darwin-ld: libgcc/./_negdi2_s.o load command 0
size not a multiple of sizeof(long)
/usr/local/bin/arm-apple-darwin-ld: libgcc/./_lshrdi3_s.o load command 0
size not a multiple of sizeof(long)
/usr/local/bin/arm-apple-darwin-ld: libgcc/./_ashldi3_s.o load command 0
size not a multiple of sizeof(long)
/usr/local/bin/arm-apple-darwin-ld: libgcc/./_ashrdi3_s.o load command 0
size not a multiple of sizeof(long)
/usr/local/bin/arm-apple-darwin-ld: libgcc/./_cmpdi2_s.o load command 0
size not a multiple of sizeof(long)
/usr/local/bin/arm-apple-darwin-ld: libgcc/./_ucmpdi2_s.o load command 0
size not a multiple of sizeof(long)
/usr/local/bin/arm-apple-darwin-ld: libgcc/./_floatdidf_s.o load command 0
size not a multiple of sizeof(long)
/usr/local/bin/arm-apple-darwin-ld: libgcc/./_floatdisf_s.o load command 0
size not a multiple of sizeof(long)
/usr/local/bin/arm-apple-darwin-ld: libgcc/./_fixunsdfsi_s.o load command 0
size not a multiple of sizeof(long)
/usr/local/bin/arm-apple-darwin-ld: libgcc/./_fixunssfsi_s.o load command 0
size not a multiple of sizeof(long)
/usr/local/bin/arm-apple-darwin-ld: libgcc/./_fixunsdfdi_s.o load command 0
size not a multiple of sizeof(long)
/usr/local/bin/arm-apple-darwin-ld: libgcc/./_fixdfdi_s.o load command 0
size not a multiple of sizeof(long)
/usr/local/bin/arm-apple-darwin-ld: libgcc/./_fixunssfdi_s.o load command 0
size not a multiple of sizeof(long)
/usr/local/bin/arm-apple-darwin-ld: libgcc/./_fixsfdi_s.o load command 0
size not a multiple of sizeof(long)
/usr/local/bin/arm-apple-darwin-ld: libgcc/./_fixxfdi_s.o load command 0
size not a multiple of sizeof(long)
/usr/local/bin/arm-apple-darwin-ld: libgcc/./_fixunsxfdi_s.o load command 0
size not a multiple of sizeof(long)
/usr/local/bin/arm-apple-darwin-ld: libgcc/./_floatdixf_s.o load command 0
size not a multiple of sizeof(long)
/usr/local/bin/arm-apple-darwin-ld: libgcc/./_fixunsxfsi_s.o load command 0
size not a multiple of sizeof(long)
/usr/local/bin/arm-apple-darwin-ld: libgcc/./_fixtfdi_s.o load command 0
size not a multiple of sizeof(long)
/usr/local/bin/arm-apple-darwin-ld: libgcc/./_fixunstfdi_s.o load command 0
size not a multiple of sizeof(long)
/usr/local/bin/arm-apple-darwin-ld: libgcc/./_floatditf_s.o load command 0
size not a multiple of sizeof(long)
/usr/local/bin/arm-apple-darwin-ld: libgcc/./_clear_cache_s.o load command
0 size not a multiple of sizeof(long)
/usr/local/bin/arm-apple-darwin-ld: libgcc/./_enable_execute_stack_s.o load
command 0 size not a multiple of sizeof(long)
/usr/local/bin/arm-apple-darwin-ld: libgcc/./_trampoline_s.o load command 0
size not a multiple of sizeof(long)
/usr/local/bin/arm-apple-darwin-ld: libgcc/./__main_s.o load command 0 size
not a multiple of sizeof(long)
/usr/local/bin/arm-apple-darwin-ld: libgcc/./_absvsi2_s.o load command 0
size not a multiple of sizeof(long)
/usr/local/bin/arm-apple-darwin-ld: libgcc/./_absvdi2_s.o load command 0
size not a multiple of sizeof(long)
/usr/local/bin/arm-apple-darwin-ld: libgcc/./_addvsi3_s.o load command 0
size not a multiple of sizeof(long)
/usr/local/bin/arm-apple-darwin-ld: libgcc/./_addvdi3_s.o load command 0
size not a multiple of sizeof(long)
/usr/local/bin/arm-apple-darwin-ld: libgcc/./_subvsi3_s.o load command 0
size not a multiple of sizeof(long)
/usr/local/bin/arm-apple-darwin-ld: libgcc/./_subvdi3_s.o load command 0
size not a multiple of sizeof(long)
/usr/local/bin/arm-apple-darwin-ld: libgcc/./_mulvsi3_s.o load command 0
size not a multiple of sizeof(long)
/usr/local/bin/arm-apple-darwin-ld: libgcc/./_mulvdi3_s.o load command 0
size not a multiple of sizeof(long)
/usr/local/bin/arm-apple-darwin-ld: libgcc/./_negvsi2_s.o load command 0
size not a multiple of sizeof(long)
/usr/local/bin/arm-apple-darwin-ld: libgcc/./_negvdi2_s.o load command 0
size not a multiple of sizeof(long)
/usr/local/bin/arm-apple-darwin-ld: libgcc/./_ctors_s.o load command 0 size
not a multiple of sizeof(long)
/usr/local/bin/arm-apple-darwin-ld: libgcc/./_ffssi2_s.o fileoff in load
command 0 not aligned on 8 byte boundary
/usr/local/bin/arm-apple-darwin-ld: libgcc/./_ffsdi2_s.o fileoff in load
command 0 not aligned on 8 byte boundary
/usr/local/bin/arm-apple-darwin-ld: libgcc/./_clz_s.o fileoff in load
command 0 not aligned on 8 byte boundary
/usr/local/bin/arm-apple-darwin-ld: libgcc/./_clzsi2_s.o fileoff in load
command 0 not aligned on 8 byte boundary
/usr/local/bin/arm-apple-darwin-ld: libgcc/./_clzdi2_s.o fileoff in load
command 0 not aligned on 8 byte boundary
/usr/local/bin/arm-apple-darwin-ld: libgcc/./_ctzsi2_s.o fileoff in load
command 0 not aligned on 8 byte boundary
/usr/local/bin/arm-apple-darwin-ld: libgcc/./_ctzdi2_s.o fileoff in load
command 0 not aligned on 8 byte boundary
/usr/local/bin/arm-apple-darwin-ld: libgcc/./_popcount_tab_s.o fileoff in
load command 0 not aligned on 8 byte boundary
/usr/local/bin/arm-apple-darwin-ld: libgcc/./_popcountsi2_s.o fileoff in
load command 0 not aligned on 8 byte boundary
/usr/local/bin/arm-apple-darwin-ld: libgcc/./_popcountdi2_s.o fileoff in
load command 0 not aligned on 8 byte boundary
/usr/local/bin/arm-apple-darwin-ld: libgcc/./_paritysi2_s.o load command 0
size not a multiple of sizeof(long)
/usr/local/bin/arm-apple-darwin-ld: libgcc/./_paritydi2_s.o load command 0
size not a multiple of sizeof(long)
/usr/local/bin/arm-apple-darwin-ld: libgcc/./_powisf2_s.o load command 0
size not a multiple of sizeof(long)
/usr/local/bin/arm-apple-darwin-ld: libgcc/./_powidf2_s.o load command 0
size not a multiple of sizeof(long)
/usr/local/bin/arm-apple-darwin-ld: libgcc/./_powixf2_s.o load command 0
size not a multiple of sizeof(long)
/usr/local/bin/arm-apple-darwin-ld: libgcc/./_powitf2_s.o load command 0
size not a multiple of sizeof(long)
/usr/local/bin/arm-apple-darwin-ld: libgcc/./_mulsc3_s.o load command 0
size not a multiple of sizeof(long)
/usr/local/bin/arm-apple-darwin-ld: libgcc/./_muldc3_s.o load command 0
size not a multiple of sizeof(long)
/usr/local/bin/arm-apple-darwin-ld: libgcc/./_mulxc3_s.o load command 0
size not a multiple of sizeof(long)
/usr/local/bin/arm-apple-darwin-ld: libgcc/./_multc3_s.o load command 0
size not a multiple of sizeof(long)
/usr/local/bin/arm-apple-darwin-ld: libgcc/./_divsc3_s.o load command 0
size not a multiple of sizeof(long)
/usr/local/bin/arm-apple-darwin-ld: libgcc/./_divdc3_s.o load command 0
size not a multiple of sizeof(long)
/usr/local/bin/arm-apple-darwin-ld: libgcc/./_divxc3_s.o load command 0
size not a multiple of sizeof(long)
/usr/local/bin/arm-apple-darwin-ld: libgcc/./_divtc3_s.o load command 0
size not a multiple of sizeof(long)
/usr/local/bin/arm-apple-darwin-ld: libgcc/./_divdi3_s.o fileoff in load
command 0 not aligned on 8 byte boundary
/usr/local/bin/arm-apple-darwin-ld: libgcc/./_moddi3_s.o fileoff in load
command 0 not aligned on 8 byte boundary
/usr/local/bin/arm-apple-darwin-ld: libgcc/./_udivdi3_s.o fileoff in load
command 0 not aligned on 8 byte boundary
/usr/local/bin/arm-apple-darwin-ld: libgcc/./_umoddi3_s.o fileoff in load
command 0 not aligned on 8 byte boundary
/usr/local/bin/arm-apple-darwin-ld: libgcc/./_udiv_w_sdiv_s.o load command
0 size not a multiple of sizeof(long)
/usr/local/bin/arm-apple-darwin-ld: libgcc/./_udivmoddi4_s.o fileoff in
load command 0 not aligned on 8 byte boundary
/usr/local/bin/arm-apple-darwin-ld: libgcc/./unwind-dw2_s.o load command 0
size not a multiple of sizeof(long)
/usr/local/bin/arm-apple-darwin-ld: libgcc/./unwind-dw2-fde-darwin_s.o
fileoff in load command 0 not aligned on 8 byte boundary
/usr/local/bin/arm-apple-darwin-ld: libgcc/./unwind-sjlj_s.o load command 0
size not a multiple of sizeof(long)
/usr/local/bin/arm-apple-darwin-ld: libgcc/./unwind-c_s.o load command 0
size not a multiple of sizeof(long)
/usr/local/bin/arm-apple-darwin-ld: can't locate file for: -lc
collect2: ld returned 1 exit status
make[2]: *** [libgcc_s.dylib] Error 1
make[2]: Leaving directory
`/usr/local/src/iphone-dev/build/llvm-gcc-4.0-iphone/gcc'
make[1]: *** [stmp-multilib] Error 2
make[1]: Leaving directory
`/usr/local/src/iphone-dev/build/llvm-gcc-4.0-iphone/gcc'
make: *** [all-gcc] Error 2

Sorry for the long error, but I'm not sure which parts are relevant. I am
compiling on 64-bit gentoo linux. The error occurs whether or not I set
CFLAGS and LDFLAGS to "-m32". I'm assuming that it is a problem with
architecture-specific instructions. If anyone has any ideas, they will be
appreciated.

Original issue reported on code.google.com by confused...@gmail.com on 15 Oct 2007 at 7:21