Re: Building a x86_64/x86_64 cross-compiler

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi Oleg,

On Tue, Jul 9, 2013 at 12:19 PM, Oleg Smolsky <oleg.smolsky@xxxxxxxxxxxx> wrote:
> Hi all, I'm trying to build a x86_64-to-x86_64 cross-compiler with a sysroot
> using these steps:
>     http://pmc.polytechnique.fr/pagesperso/dc/arm-en.html
>
> With a few minor corrections and amendments, I get to the very last step
> where the full compiler is built and hit the following issue:
>
> /work/osmolsky/_gcc-sr-build/_gcc-obj3/./prev-gcc/xg++
> -B/work/osmolsky/_gcc-sr-build/_gcc-obj3/./prev-gcc/
> -B/work/osmolsky/_gcc-sr-build/gcc48/x86_64-unknown-linux-gnu/bin/
> -nostdinc++
> -B/work/osmolsky/_gcc-sr-build/_gcc-obj3/prev-x86_64-unknown-linux-gnu/libstdc++-v3/src/.libs
> -B/work/osmolsky/_gcc-sr-build/_gcc-obj3/prev-x86_64-unknown-linux-gnu/libstdc++-v3/libsupc++/.libs
> -I/work/osmolsky/_gcc-sr-build/_gcc-obj3/prev-x86_64-unknown-linux-gnu/libstdc++-v3/include/x86_64-unknown-linux-gnu
> -I/work/osmolsky/_gcc-sr-build/_gcc-obj3/prev-x86_64-unknown-linux-gnu/libstdc++-v3/include
> -I/work/osmolsky/_gcc-sr-build/gcc48-google/libstdc++-v3/libsupc++
> -L/work/osmolsky/_gcc-sr-build/_gcc-obj3/prev-x86_64-unknown-linux-gnu/libstdc++-v3/src/.libs
> -L/work/osmolsky/_gcc-sr-build/_gcc-obj3/prev-x86_64-unknown-linux-gnu/libstdc++-v3/libsupc++/.libs
> -g -O2 -gtoggle -DIN_GCC   -fno-exceptions -fno-rtti
> -fasynchronous-unwind-tables -W -Wall -Wno-narrowing -Wwrite-strings
> -Wcast-qual -Wmissing-format-attribute -pedantic -Wno-long-long
> -Wno-variadic-macros -Wno-overlength-strings   -DHAVE_CONFIG_H
> -DGENERATOR_FILE -static-libstdc++ -static-libgcc  -o build/genhooks \
>             build/genhooks.o build/errors.o .././libiberty/libiberty.a
> build/genhooks "Target Hook" \
>                                              > tmp-target-hooks-def.h
> build/genhooks: /lib64/libc.so.6: version `GLIBC_2.14' not found (required
> by build/genhooks)
>
> I am using glibc 2.16.0 and have no idea where this thing came from. The
> binary does not run as the system's glibc (well, that very .so) is version
> 2.12.
>
> I built glibc this way:
>
> ../glibc-2.16.0/configure --prefix=/work/osmolsky/_gcc-sr-build/gcc48
> --target=x86_64-unknown-linux-gnu
> --with-headers=/work/osmolsky/_gcc-sr-build/sysroot/usr/include
> --enable-kernel=2.6.32 --without-selinux
>
> make install_root=/work/osmolsky/_gcc-sr-build/sysroot  prefix="" install
>
> Could somebody shed some light on this please? Is this configuration
> supported? Am I missing something vital?
>
> Thanks in advance!
> Oleg.

 Try adding glibc-2.16.0 installed lib in to your LD_LIBRARY_PATH.

Regards,
Nagaraju




[Index of Archives]     [Linux C Programming]     [Linux Kernel]     [eCos]     [Fedora Development]     [Fedora Announce]     [Autoconf]     [The DWARVES Debugging Tools]     [Yosemite Campsites]     [Yosemite News]     [Linux GCC]

  Powered by Linux