building gcc on cygwin with --target=i486-linux-gnu

Alexander Kotelnikov sacha@myxomop.com
Sun Oct 8 13:35:00 GMT 2006


Hello.

I tried to build gcc 4.1.1 as a cross-compiler for i486-linux-gnu on
cygwin and the build failed with error

/opt/bin/i486-linux-gnu-ld: cannot find /lib/libc.so.6
collect2: ld returned 1 exit status
make[3]: *** [libgcc_s.so] Error 1

And there is really no /lib/libc.so.6 on cygwin. Can anyone explain
what does this mean?

Thanks

If it matters, gcc was configures as

./configure --prefix=/opt --target=i486-linux-gnu --with-gnu-ld --with-gnu-as --enable-languages=c

binutils is configured with --target=i486-linux-gnu, built and
installed in $PATH.

Tail of the build log follows, sorry for line breaks.

make[3]: Entering directory
`/tmp/ddd/i486-linux-gnu/gcc-4.1.1/host-i686-pc-cygw
in/gcc'
/tmp/ddd/i486-linux-gnu/gcc-4.1.1/host-i686-pc-cygwin/gcc/xgcc
-B/tmp/ddd/i486-l
inux-gnu/gcc-4.1.1/host-i686-pc-cygwin/gcc/
-B/opt//i486-linux-gnu/bin/ -B/opt//
i486-linux-gnu/lib/ -isystem /opt//i486-linux-gnu/include -isystem
/opt//i486-li
nux-gnu/sys-include -O2  -O2 -g -O2   -DIN_GCC -DCROSS_COMPILE   -W
-Wall -Wwrit
e-strings -Wstrict-prototypes -Wmissing-prototypes
-Wold-style-definition  -isys
tem ./include  -fPIC -g -DHAVE_GTHR_DEFAULT -DIN_LIBGCC2
-D__GCC_FLOAT_NOT_NEEDE
D -Dinhibit_libc -shared -nodefaultlibs -Wl,--soname=libgcc_s.so.1
-Wl,--version
-script=libgcc/./libgcc.map -o ./libgcc_s.so.1.tmp
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/./_flo
atdisf_s.o libgcc/./_fixunsdfsi_s.o libgcc/./_fixunssfsi_s.o
libgcc/./_fixunsdfd
i_s.o libgcc/./_fixdfdi_s.o libgcc/./_fixunssfdi_s.o
libgcc/./_fixsfdi_s.o libgc
c/./_fixxfdi_s.o libgcc/./_fixunsxfdi_s.o libgcc/./_floatdixf_s.o
libgcc/./_fixu
nsxfsi_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/./_trampol
ine_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/./_negv
di2_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/./_popco
untdi2_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/./_mul
sc3_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 libgc
c/./_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 libg
cc/./unwind-dw2-fde-glibc_s.o libgcc/./unwind-sjlj_s.o
libgcc/./gthr-gnat_s.o li
bgcc/./unwind-c_s.o -lc && rm -f ./libgcc_s.so && if [ -f
./libgcc_s.so.1 ]; the
n mv -f ./libgcc_s.so.1 ./libgcc_s.so.1.backup; else true; fi && mv
./libgcc_s.s
o.1.tmp ./libgcc_s.so.1 && ln -s libgcc_s.so.1 ./libgcc_s.so
/opt/bin/i486-linux-gnu-ld: cannot find /lib/libc.so.6
collect2: ld returned 1 exit status
make[3]: *** [libgcc_s.so] Error 1
make[3]: Leaving directory
`/tmp/ddd/i486-linux-gnu/gcc-4.1.1/host-i686-pc-cygwi
n/gcc'
make[2]: *** [libgcc.a] Error 2
make[2]: Leaving directory
`/tmp/ddd/i486-linux-gnu/gcc-4.1.1/host-i686-pc-cygwi
n/gcc'
make[1]: *** [all-gcc] Error 2
make[1]: Leaving directory `/tmp/ddd/i486-linux-gnu/gcc-4.1.1'
make: *** [all] Error 2

-- 
Alexander Kotelnikov
Saint-Petersburg, Russia


--
For unsubscribe information see http://sourceware.org/lists.html#faq



More information about the crossgcc mailing list