Thanks for the help, I guess the solution is not to uses Fedora ;-( but
could it be an problem with rpath vs rpath-link.

On Wed, Jun 22, 2011 at 4:44 AM, jean-pierre cartal <
jean-pierre.car...@plugnsurf.fr> wrote:

> **
> Le 21/06/2011 21:41, Pawel Pastuszak a écrit :
>
> Hi Gents,
>
> I was running and compile test to see if the build system works on Fedora
> 15 and i came across the following error. Note Fedora uses the latest make (
> 3.82 ).
>
> Any thoughts?
>
> # @multilib_flags@ is still needed because this may use #
> /data/svn/test/warpwrt/wrt/build_dir/toolchain-powerpc_gcc-4.4.5_glibc-2.13/gcc-4.4.5-final/./gcc/xgcc
> -B/data/svn/test/warpwrt/wrt/build_dir/toolchain-powerpc_gcc-4.4.5_glibc-2.13/gcc-4.4.5-final/./gcc/
> -B/data/svn/test/warpwrt/wrt/staging_dir/toolchain-powerpc_gcc-4.4.5_glibc-2.13/powerpc-openwrt-linux-gnu/bin/
> -B/data/svn/test/warpwrt/wrt/staging_dir/toolchain-powerpc_gcc-4.4.5_glibc-2.13/powerpc-openwrt-linux-gnu/lib/
> -isystem
> /data/svn/test/warpwrt/wrt/staging_dir/toolchain-powerpc_gcc-4.4.5_glibc-2.13/powerpc-openwrt-linux-gnu/include
> -isystem
> /data/svn/test/warpwrt/wrt/staging_dir/toolchain-powerpc_gcc-4.4.5_glibc-2.13/powerpc-openwrt-linux-gnu/sys-include
> and -O2  -O2 -pipe -fno-caller-saves -mcpu=440 -fhonour-copts -msoft-float
> -DIN_GCC -DCROSS_DIRECTORY_STRUCTURE  -W -Wall -Wwrite-strings
> -Wstrict-prototypes -Wmissing-prototypes -Wcast-qual -Wold-style-definition
> -isystem ./include  -fPIC -g -DHAVE_GTHR_DEFAULT -DIN_LIBGCC2
> -D__GCC_FLOAT_NOT_NEEDED -Dinhibit_libc directly.
> # @multilib_dir@ is not really necessary, but sometimes it has # more uses
> than just a directory name.
> /bin/sh
> /data/svn/test/warpwrt/wrt/build_dir/toolchain-powerpc_gcc-4.4.5_glibc-2.13/gcc-4.4.5/libgcc/../mkinstalldirs
> .
> /data/svn/test/warpwrt/wrt/build_dir/toolchain-powerpc_gcc-4.4.5_glibc-2.13/gcc-4.4.5-final/./gcc/xgcc
> -B/data/svn/test/warpwrt/wrt/build_dir/toolchain-powerpc_gcc-4.4.5_glibc-2.13/gcc-4.4.5-final/./gcc/
> -B/data/svn/test/warpwrt/wrt/staging_dir/toolchain-powerpc_gcc-4.4.5_glibc-2.13/powerpc-openwrt-linux-gnu/bin/
> -B/data/svn/test/warpwrt/wrt/staging_dir/toolchain-powerpc_gcc-4.4.5_glibc-2.13/powerpc-openwrt-linux-gnu/lib/
> -isystem
> /data/svn/test/warpwrt/wrt/staging_dir/toolchain-powerpc_gcc-4.4.5_glibc-2.13/powerpc-openwrt-linux-gnu/include
> -isystem
> /data/svn/test/warpwrt/wrt/staging_dir/toolchain-powerpc_gcc-4.4.5_glibc-2.13/powerpc-openwrt-linux-gnu/sys-include
> -O2  -O2 -pipe -fno-caller-saves -mcpu=440 -fhonour-copts -msoft-float
> -DIN_GCC -DCROSS_DIRECTORY_STRUCTURE  -W -Wall -Wwrite-strings
> -Wstrict-prototypes -Wmissing-prototypes -Wcast-qual -Wold-style-definition
> -isystem ./include  -fPIC -g -DHAVE_GTHR_DEFAULT -DIN_LIBGCC2
> -D__GCC_FLOAT_NOT_NEEDED -Dinhibit_libc -shared -nodefaultlibs
> -Wl,--soname=libgcc_s.so.1 -Wl,--version-script=libgcc.map -o
> ./libgcc_s.so.1.tmp -O2 -pipe -fno-caller-saves -mcpu=440 -fhonour-copts
> -msoft-float -B./ _muldi3_s.o _negdi2_s.o _lshrdi3_s.o _ashldi3_s.o
> _ashrdi3_s.o _cmpdi2_s.o _ucmpdi2_s.o _clear_cache_s.o
> _enable_execute_stack_s.o _trampoline_s.o __main_s.o _absvsi2_s.o
> _absvdi2_s.o _addvsi3_s.o _addvdi3_s.o _subvsi3_s.o _subvdi3_s.o
> _mulvsi3_s.o _mulvdi3_s.o _negvsi2_s.o _negvdi2_s.o _ctors_s.o _ffssi2_s.o
> _ffsdi2_s.o _clz_s.o _clzsi2_s.o _clzdi2_s.o _ctzsi2_s.o _ctzdi2_s.o
> _popcount_tab_s.o _popcountsi2_s.o _popcountdi2_s.o _paritysi2_s.o
> _paritydi2_s.o _powisf2_s.o _powidf2_s.o _powixf2_s.o _powitf2_s.o
> _mulsc3_s.o _muldc3_s.o _mulxc3_s.o _multc3_s.o _divsc3_s.o _divdc3_s.o
> _divxc3_s.o _divtc3_s.o _bswapsi2_s.o _bswapdi2_s.o _fixunssfsi_s.o
> _fixunsdfsi_s.o _fixunsxfsi_s.o _fixsfdi_s.o _fixdfdi_s.o _fixxfdi_s.o
> _fixtfdi_s.o _fixunssfdi_s.o _fixunsdfdi_s.o _fixunsxfdi_s.o _fixunstfdi_s.o
> _floatdisf_s.o _floatdidf_s.o _floatdixf_s.o _floatditf_s.o _floatundisf_s.o
> _floatundidf_s.o _floatundixf_s.o _floatunditf_s.o _divdi3_s.o _moddi3_s.o
> _udivdi3_s.o _umoddi3_s.o _udiv_w_sdiv_s.o _udivmoddi4_s.o
> darwin-ldouble_s.o addsf3_s.o divsf3_s.o eqsf2_s.o gesf2_s.o lesf2_s.o
> mulsf3_s.o negsf2_s.o subsf3_s.o unordsf2_s.o fixsfsi_s.o floatsisf_s.o
> floatunsisf_s.o adddf3_s.o divdf3_s.o eqdf2_s.o gedf2_s.o ledf2_s.o
> muldf3_s.o negdf2_s.o subdf3_s.o unorddf2_s.o fixdfsi_s.o floatsidf_s.o
> floatunsidf_s.o extendsfdf2_s.o truncdfsf2_s.o tramp_s.o unwind-dw2_s.o
> unwind-dw2-fde-glibc_s.o unwind-sjlj_s.o gthr-gnat_s.o unwind-c_s.o
> emutls_s.o -lc && rm -f ./libgcc_s.so && if [ -f ./libgcc_s.so.1 ]; then mv
> -f ./libgcc_s.so.1 ./libgcc_s.so.1.backup; else true; fi && mv
> ./libgcc_s.so.1.tmp ./libgcc_s.so.1 && ln -s libgcc_s.so.1 ./libgcc_s.so #
> Now that we have built all the objects, we need to copy # them back to the
> GCC directory.  Too many things (other # in-tree libraries, and DejaGNU)
> know about the layout # of the build tree, for now.
> make install-leaf DESTDIR=../.././gcc \
>   slibdir= libsubdir= MULTIOSDIR=.
> make[7]: Entering directory
> `/data/svn/test/warpwrt/wrt/build_dir/toolchain-powerpc_gcc-4.4.5_glibc-2.13/gcc-4.4.5-final/powerpc-openwrt-linux-gnu/libgcc'
> /bin/sh
> /data/svn/test/warpwrt/wrt/build_dir/toolchain-powerpc_gcc-4.4.5_glibc-2.13/gcc-4.4.5/libgcc/../mkinstalldirs
> ../.././gcc /usr/bin/install -c -m 644 libgcc_eh.a ../.././gcc/ chmod 644
> ../.././gcc/libgcc_eh.a
> /data/svn/test/warpwrt/wrt/staging_dir/toolchain-powerpc_gcc-4.4.5_glibc-2.13/powerpc-openwrt-linux-gnu/bin/ranlib
> ../.././gcc/libgcc_eh.a /usr/bin/install -c -m 644 libgcc_pic.a libgcc.map
> ../.././gcc/ chmod 644 ../.././gcc/libgcc_pic.a
> /data/svn/test/warpwrt/wrt/staging_dir/toolchain-powerpc_gcc-4.4.5_glibc-2.13/powerpc-openwrt-linux-gnu/bin/ranlib
> ../.././gcc/libgcc_pic.a /bin/sh
> /data/svn/test/warpwrt/wrt/build_dir/toolchain-powerpc_gcc-4.4.5_glibc-2.13/gcc-4.4.5/libgcc/../mkinstalldirs
> ../.././gcc; /usr/bin/install -c -m 644 ./libgcc_s.so.1
> ../.././gcc/libgcc_s.so.1; rm -f ../.././gcc/libgcc_s.so; ln -s
> libgcc_s.so.1 ../.././gcc/libgcc_s.so /bin/sh
> /data/svn/test/warpwrt/wrt/build_dir/toolchain-powerpc_gcc-4.4.5_glibc-2.13/gcc-4.4.5/libgcc/../mkinstalldirs
> ../.././gcc
>
>
> /bin/sh: error while loading shared libraries:
> /data/svn/test/warpwrt/wrt/build_dir/toolchain-powerpc_gcc-4.4.5_glibc-2.13/gcc-4.4.5-final/./gcc/libgcc_s.so.1:
> ELF file data encoding not little-endian
>
> make[7]: *** [install-leaf] Error 127
> make[7]: Leaving directory
> `/data/svn/test/warpwrt/wrt/build_dir/toolchain-powerpc_gcc-4.4.5_glibc-2.13/gcc-4.4.5-final/powerpc-openwrt-linux-gnu/libgcc'
> make[6]: *** [all] Error 2
> make[6]: Leaving directory
> `/data/svn/test/warpwrt/wrt/build_dir/toolchain-powerpc_gcc-4.4.5_glibc-2.13/gcc-4.4.5-final/powerpc-openwrt-linux-gnu/libgcc'
> make[5]: *** [all-target-libgcc] Error 2
> make[5]: Leaving directory
> `/data/svn/test/warpwrt/wrt/build_dir/toolchain-powerpc_gcc-4.4.5_glibc-2.13/gcc-4.4.5-final'
> make[4]: *** [all] Error 2
> make[4]: Leaving directory
> `/data/svn/test/warpwrt/wrt/build_dir/toolchain-powerpc_gcc-4.4.5_glibc-2.13/gcc-4.4.5-final'
> make[3]: ***
> [/data/svn/test/warpwrt/wrt/build_dir/toolchain-powerpc_gcc-4.4.5_glibc-2.13/gcc-4.4.5-final/.built]
> Error 2
> make[3]: Leaving directory `/data/svn/test/warpwrt/wrt/toolchain/gcc/final'
> make[2]: *** [toolchain/gcc/final/compile] Error 2
> make[2]: Leaving directory `/data/svn/test/warpwrt/wrt'
> make[1]: ***
> [/data/svn/test/warpwrt/wrt/staging_dir/toolchain-powerpc_gcc-4.4.5_glibc-2.13/stamp/.toolchain_install]
> Error 2
> make[1]: Leaving directory `/data/svn/test/warpwrt/wrt'
> make: *** [world] Error 2
>
> Thanks,
> Pawel
>
>
> _______________________________________________
> openwrt-devel mailing 
> listopenwrt-devel@lists.openwrt.orghttps://lists.openwrt.org/mailman/listinfo/openwrt-devel
>
>  Hi,
>
> Same issue for me here with mips target.
>
> I don't think this is related to make version as FC14 is also using 3.82.
>
> I think this problem is arising because FC15 /bin/sh (and most of other
> executables) is now using libgcc_s.so library while it was not the case in
> previous versions :
>
> FC15 : ldd /bin/sh
>         linux-gate.so.1 =>  (0x0036e000)
>         libtinfo.so.5 => /lib/libtinfo.so.5 (0x4ff3e000)
>         libdl.so.2 => /lib/libdl.so.2 (0x4ee3d000)
>         libgcc_s.so.1 => /lib/libgcc_s.so.1 (0x4ee44000)
>         libc.so.6 => /lib/libc.so.6 (0x4ec68000)
>         /lib/ld-linux.so.2 (0x4ec47000)
>
>  FC14 : ldd /bin/sh
>         linux-gate.so.1 =>  (0x00988000)
>         libtinfo.so.5 => /lib/libtinfo.so.5 (0x07222000)
>         libdl.so.2 => /lib/libdl.so.2 (0x00a59000)
>         libc.so.6 => /lib/libc.so.6 (0x00110000)
>         /lib/ld-linux.so.2 (0x00880000)
>
> My understanding is that LD_LIBRARY_PATH not being properly set during the
> build process and when make start the /bin/sh executable it is loading the
> libgcc_s.so.1 library that has been built for the target, i.e.
> /data/svn/test/warpwrt/wrt/build_dir/toolchain-powerpc_gcc-4.4.5_glibc-2.13/gcc-4.4.5-final/./gcc/libgcc_s.so.1
> in your case, instead of the one located in /lib.
>
> Unfortunately I've no idea on how to correct this...
>
> Regards.
>
> _______________________________________________
> openwrt-devel mailing list
> openwrt-devel@lists.openwrt.org
> https://lists.openwrt.org/mailman/listinfo/openwrt-devel
>
>
_______________________________________________
openwrt-devel mailing list
openwrt-devel@lists.openwrt.org
https://lists.openwrt.org/mailman/listinfo/openwrt-devel

Reply via email to