http://gcc.gnu.org/bugzilla/show_bug.cgi?id=58260
--- Comment #9 from anand.karanam at tcs dot com --- Hi, I have tried the build of gmp,mpfr and mpc with the option of --disable-shared and using them. However now when I use the following configuration for cross compiler build ( Solaris to Linux ) with the following options $INSTALLDIR/gcc-$GCCVER/configure --prefix=$PREFIX $TGTOPT $SYSROOT --with-gnu-as --with-gnu-ld --enable-languages=c,c++ --disable-nls -with-gmp=/app/gmp/5.0.1 --with-mpfr=/app/mpfr/2.4.2 --with-mpc=/app/mpc/0.8.1 SOURCE=/home/ekarana/ekarana_2013/GCC463_OSE5.6/Solaris_to_Linux/INSTALL PREFIX=/home/ekarana/ekarana_2013/GCC463_OSE5.6/Solaris_to_Linux/SunOS/sparc CROSS_OS=Linux INSTALLDIR=/home/ekarana/ekarana_2013/GCC463_OSE5.6/Solaris_to_Linux/INSTALL XLIBC=/vobs/cello/cade_struct/Linux/i686/usr XSYSROOT=--with-sysroot=/vobs/cello/cade_struct/Linux/i686/usr SYSROOT=--with-sysroot=/vobs/cello/cade_struct/Linux/i686/usr Now observe the problem with libgomp build. configure:3688: /home/ekarana/ekarana_2013/GCC463_OSE5.6/Solaris_to_Linux/INSTALL/build-gcc/sparc-sun-solaris2.10-i686-pc-linux-gnu/./gcc/xgcc -B/home/ekarana/ekarana_2013/GCC463_OSE5.6/Solaris_to_Linux/INS TALL/build-gcc/sparc-sun-solaris2.10-i686-pc-linux-gnu/./gcc/ -B/home/ekarana/ekarana_2013/GCC463_OSE5.6/Solaris_to_Linux/SunOS/sparc/i686-pc-linux-gnu/bin/ -B/home/ekarana/ekarana_2013/GCC463_OSE5.6/Solari s_to_Linux/SunOS/sparc/i686-pc-linux-gnu/lib/ -isystem /home/ekarana/ekarana_2013/GCC463_OSE5.6/Solaris_to_Linux/SunOS/sparc/i686-pc-linux-gnu/include -isystem /home/ekarana/ekarana_2013/GCC463_OSE5.6/Solar is_to_Linux/SunOS/sparc/i686-pc-linux-gnu/sys-include -g -O2 conftest.c >&5 /home/ekarana/ekarana_2013/GCC463_OSE5.6/Solaris_to_Linux/SunOS/sparc/i686-pc-linux-gnu/bin/ld: warning: ld-linux.so.2, needed by /vobs/cello/cade_struct/Linux/i686/usr/lib/libc.so.6, not found (try using - rpath or -rpath-link) /vobs/cello/cade_struct/Linux/i686/usr/lib/libc.so.6: undefined reference to `__libc_stack_end@GLIBC_2.1' /vobs/cello/cade_struct/Linux/i686/usr/lib/libc.so.6: undefined reference to `_dl_tls_get_addr_soft@GLIBC_PRIVATE' /vobs/cello/cade_struct/Linux/i686/usr/lib/libc.so.6: undefined reference to `_dl_argv@GLIBC_PRIVATE' /vobs/cello/cade_struct/Linux/i686/usr/lib/libc.so.6: undefined reference to `_rtld_global_ro@GLIBC_PRIVATE' /vobs/cello/cade_struct/Linux/i686/usr/lib/libc.so.6: undefined reference to `___tls_get_addr@GLIBC_2.3' /vobs/cello/cade_struct/Linux/i686/usr/lib/libc.so.6: undefined reference to `_rtld_global@GLIBC_PRIVATE' /vobs/cello/cade_struct/Linux/i686/usr/lib/libc.so.6: undefined reference to `__libc_enable_secure@GLIBC_PRIVATE' collect2: ld returned 1 exit status configure:3692: $? = 1 configure:3729: result: configure: failed program was: | /* confdefs.h */ | #define PACKAGE_NAME "GNU OpenMP Runtime Library" | #define PACKAGE_TARNAME "libgomp" :q! Some information on Note: /vobs/cello/cade_struct/Linux/i686/usr contains the copy of Linux host includes and libraries( static and shared ). Not sure if the /vobs/cello/cade_struct/Linux/i686/usr libraries are from SLED11 64bit as they were created earlier from SLED10 32 bit Solaris host machine is SunOS esekitsxxxx 5.10 Generic_142900-02 sun4u sparc SUNW,SPARC-Enterprise Do we need to have a copy of the Linux host includes and libraries to prepare the cross compiler? Or can we avoid this with newlib build and using the same? Attached the config file for libgomp.