arm cross tool chain build failured in Cygwin

Dan Kegel dank@kegel.com
Mon Jan 12 17:33:00 GMT 2004


dou wen wrote:
> I have try to built arm-linux toolchain using kegel's crosstool-0.25
> ,arm.dat(using arm9dtmi) gcc-3.2.3-glibc-2.3.2.dat, under cygwin ,gcc-3.3.1.
> first i want to report a patch problem at glibc-2.3.2 patch of the
> crosstool ---the shlibs-lds.patch cant be applied, it seem it is not for the
> Makerules of glibc-2.3.2,so i had not use this patch,i dont know if my this
> choice (not using shlibs-lds.patch) caused the follow problem described
> below).

No, I think shlibs-lds.patch was in there by mistake, it's ok that it
doesn't apply.  I've removed it for the next release, and have changed
getandpatch.sh to abort properly when patches don't apply (I hope).


> i have successful built the binutils and core gcc,but at the last of glibc
> building stage,
> it report a lot of "undefined reference" error, such as(see attachment for
> details) :
> 
> ====================
> arm-9dtmi-linux-gnu-gcc   -nostdlib -nostartfiles -shared   \
>   -Wl,-z,combreloc -Wl,-z,defs -Wl,--verbose 2>&1 | \
>    sed -e '/^=========/,/^=========/!d;/^=========/d' \
>        -e 's/\. = 0 + SIZEOF_HEADERS;/& _begin = . - SIZEOF_HEADERS;/' \
>    >
> /home/douwen/crosstool-0.25/build/arm-9dtmi-linux-gnu/gcc-3.2.3-glibc-2.3.2/
> build-glibc/elf/ld.so.lds
> arm-9dtmi-linux-gnu-gcc   -nostdlib -nostartfiles -shared -o
> /home/douwen/crosstool-0.25/build/arm-9dtmi-linux-gnu/gcc-3.2.3-glibc-2.3.2/
> build-glibc/elf/ld.so   \
>    -Wl,-z,combreloc -Wl,-z,defs    \
> 
> /home/douwen/crosstool-0.25/build/arm-9dtmi-linux-gnu/gcc-3.2.3-glibc-2.3.2/
> build-glibc/elf/librtld.os -Wl,--version-script=/home/douwen/crosstool-0.25/
> build/arm-9dtmi-linux-gnu/gcc-3.2.3-glibc-2.3.2/build-glibc/ld.map  \
>    -Wl,-soname=ld-linux.so.2 -T
> /home/douwen/crosstool-0.25/build/arm-9dtmi-linux-gnu/gcc-3.2.3-glibc-2.3.2/
> build-glibc/elf/ld.so.lds
> /home/douwen/crosstool-0.25/build/arm-9dtmi-linux-gnu/gcc-3.2.3-glibc-2.3.2/
> build-glibc/elf/librtld.os(.text+0x2a44): In function `process_envvars':
> : undefined reference to `__access'

I'll try to reproduce your problem on Linux, but be warned, we have never
bothered figuring out why crosstool.sh doesn't run properly on cygwin,
so you might run into more problems once this one is solved.

BTW you're not the only one seeing this error, and it's not (always) cygwin-specific; see e.g.
http://sources.redhat.com/ml/libc-alpha/2003-08/msg00066.html
- Dan

------
Want more information?  See the CrossGCC FAQ, http://www.objsw.com/CrossGCC/
Want to unsubscribe? Send a note to crossgcc-unsubscribe@sources.redhat.com



More information about the crossgcc mailing list