Croostools cript fails to compile GCC in cygwin. What am i missing?
Ryan Churches
ryan.churches@gmail.com
Thu May 19 06:29:00 GMT 2005
Solved:
something about my cygwin install was preventing me from compiling.
I reinstalled cygwin, and added the following packages not included in
the cygwin default install: automake, autoconf, bison, flex, gcc,
make, and wget. They pulled in some dependencies themselves. I'm not
sure if all of the ones i listed are essential, but i now most of them
are. i probably forgot to list one or more.
Wget made the script run very automagically.
Dan suggested i mount the crosstools installer in a managed cygwin
directory, and i did that, just in case the clean install wasnt
enough.
On 5/17/05, Ryan Churches <ryan.churches@gmail.com> wrote:
> I ran the crosstools script in an attempt to build a crosscompiler for
> gcc. after some time it failed.
>
> At some point (I fell asleep) I got a bunch of:
>
> /usr/src/crosstool-0.32/build/i686-pc-linux-gnu/gcc-3.3.4-glibc-2.3.3/build-glib
> c/elf/librtld.os(.text+0xe660): In function `mmap':
> : undefined reference to `errno'
> /usr/src/crosstool-0.32/build/i686-pc-linux-gnu/gcc-3.3.4-glibc-2.3.3/build-glib
> c/elf/librtld.os(.text+0xe69c): In function `__munmap':
> : undefined reference to `errno'
> /usr/src/crosstool-0.32/build/i686-pc-linux-gnu/gcc-3.3.4-glibc-2.3.3/build-glib
> c/elf/librtld.os(.text+0xe6de): In function `mprotect':
> : undefined reference to `errno'
> /usr/src/crosstool-0.32/build/i686-pc-linux-gnu/gcc-3.3.4-glibc-2.3.3/build-glib
> c/elf/librtld.os(.text+0xe718): more undefined references to `errno' follow
> collect2: ld returned 1 exit status
> make[2]: *** [/usr/src/crosstool-0.32/build/i686-pc-linux-gnu/gcc-3.3.4-glibc-2.
> 3.3/build-glibc/elf/ld.so] Error 1
> make[2]: Leaving directory `/usr/src/crosstool-0.32/build/i686-pc-linux-gnu/gcc-
> 3.3.4-glibc-2.3.3/glibc-2.3.3/elf'
> make[1]: *** [elf/subdir_lib] Error 2
> make[1]: Leaving directory `/usr/src/crosstool-0.32/build/i686-pc-linux-gnu/gcc-
> 3.3.4-glibc-2.3.3/glibc-2.3.3'
> make: *** [all] Error 2
>
> i cant seem to figure out what im missing. i fixed an error similar
> to this in my last attempt at building a cross compiler by copying some
> files from my gentoo box, but im not sure that was a good solution,
> considering how that endded up.
>
------
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