My original attempt to build gcc trunk yesterday used the
cctools from Xcode 2.3 and produced the failure...

/bin/sh ./libtool --mode=compile /sw/src/fink.build/gcc4-4.1.999-20060908/darwin
_objdir/./gcc/xgcc -B/sw/src/fink.build/gcc4-4.1.999-20060908/darwin_objdir/./gc
c/ -B/sw/lib/gcc4/powerpc-apple-darwin8/bin/ -B/sw/lib/gcc4/powerpc-apple-darwin
8/lib/ -isystem /sw/lib/gcc4/powerpc-apple-darwin8/include -isystem /sw/lib/gcc4
/powerpc-apple-darwin8/sys-include -DHAVE_CONFIG_H -I. -I../../../gcc-4.2-200609
08/libgfortran -I.  -iquote../../../gcc-4.2-20060908/libgfortran/io -I../../../g
cc-4.2-20060908/libgfortran/../gcc -I../../../gcc-4.2-20060908/libgfortran/../gc
c/config -I../.././gcc -D_GNU_SOURCE  -std=gnu99 -Wall -Wstrict-prototypes -Wmis
sing-prototypes -Wold-style-definition -Wextra -Wwrite-strings -O2 -g -O2  -c -o
 maxloc0_4_r16.lo `test -f 'generated/maxloc0_4_r16.c' || echo '../../../gcc-4.2
-20060908/libgfortran/'`generated/maxloc0_4_r16.c
/sw/src/fink.build/gcc4-4.1.999-20060908/darwin_objdir/./gcc/xgcc -B/sw/src/fink
.build/gcc4-4.1.999-20060908/darwin_objdir/./gcc/ -B/sw/lib/gcc4/powerpc-apple-d
arwin8/bin/ -B/sw/lib/gcc4/powerpc-apple-darwin8/lib/ -isystem /sw/lib/gcc4/powe
rpc-apple-darwin8/include -isystem /sw/lib/gcc4/powerpc-apc-4.2-20060908/libgfor
tran/../gcc -I../../../gcc-4.2-20060908/libgfortran/../gcc/config -I../.././gcc 
-D_GNU_SOURCE -std=gnu99 -Wall -Wstrict-prototypes -Wmissing-prototypes -Wold-st
yle-definition -Wextra -Wwrite-strings -O2 -g -O2 -c ../../../gcc-4.2-20060908/l
ibgfortran/generated/maxloc0_4_r16.c  -fno-common -DPIC -o .libs/maxloc0_4_r16.o
/var/tmp//ccPhvheT.s:905:Unknown pseudo-op: .literal16

Using the cctools from Xcode 2.4, the failure changes and moves to the linkage
of libgfortran itself...

ld: .libs/maxloc0_4_r16.o unknown flags (type) of section 2 
(__TEXT,__literal16) in load command 0
ld: .libs/maxloc0_8_r16.o unknown flags (type) of section 2 
(__TEXT,__literal16) in load command 0
ld: .libs/maxloc1_4_r16.o unknown flags (type) of section 2 
(__TEXT,__literal16) in load command 0
ld: .libs/maxloc1_8_r16.o unknown flags (type) of section 2 
(__TEXT,__literal16) in load command 0
ld: .libs/maxval_r16.o unknown flags (type) of section 2 (__TEXT,__literal16) 
in load command 0
ld: .libs/minloc0_4_r16.o unknown flags (type) of section 2 
(__TEXT,__literal16) in load command 0
ld: .libs/minloc0_8_r16.o unknown flags (type) of section 2 
(__TEXT,__literal16) in load command 0
ld: .libs/minloc1_4_r16.o unknown flags (type) of section 2 
(__TEXT,__literal16) in load command 0
ld: .libs/minloc1_8_r16.o unknown flags (type) of section 2 
(__TEXT,__literal16) in load command 0
ld: .libs/minval_r16.o unknown flags (type) of section 2 (__TEXT,__literal16) 
in load command 0
ld: .libs/write.o unknown flags (type) of section 4 (__TEXT,__literal16) in 
load command 0
/usr/bin/libtool: internal link edit command failed

So if there is a usable cctools, it doesn't exist outside of Apple. I wonder if
the literal16 patch was meant for Darwin intel only as I understand they don't
use stabs, etc at the moment.
                 Jack

Reply via email to