On 08/19/2010 05:43 PM, Joe Ciccone wrote:
On 08/19/2010 07:54 PM, Max Greenblatt wrote:
Hi-
     I am trying to build the cross-compile tools and everything
appears to build properly. I finish install of the Cross GCC-4.5.1 -
Final without any issues. However, when I try to use the version of
gcc this install creates, /cross-tools/bin/i686-cm-linux-gcc, I always
get an error. This what happens using hello world as an example.

[r...@localhost libtool-1.5.26]# i686-cm-linux-g++ -v
/mnt/hgfs/Linux_Share/testprog.cpp
Using built-in specs.
COLLECT_GCC=i686-cm-linux-g++
COLLECT_LTO_WRAPPER=/home/user/data/IntelCE-13.114072/project_build_i686/IntelCE/i686-linux-elf/cross-tools/bin/../libexec/gcc/i686-cm-linux/4.5.1/lto-wrapper

Target: i686-cm-linux
Configured with: ../gcc-4.5.1/configure --prefix=/cross-tools
--build=i386-cross-linux-gnu --target=i686-cm-linux
--host=i386-cross-linux-gnu
--with-sysroot=/home/user/data/IntelCE-13.114072/project_build_i686/IntelCE/toolchain-13.2.10052.89858/../i686-linux-elf
--with-local-prefix=/tools --disable-nls --enable-shared
--enable-languages=c,c++ --enable-__cxa_atexit
--with-mpfr=/cross-tools --with-gmp=/cross-tools --enable-c99
--with-ppl=/cross-tools --with-cloog=/cross-tools --enable-long-long
--enable-threads=posix --disable-multilib
Thread model: posix
gcc version 4.5.1 (GCC)
COLLECT_GCC_OPTIONS='-v' '-shared-libgcc' '-mtune=generic'
'-march=pentiumpro'
  
/home/user/data/IntelCE-13.114072/project_build_i686/IntelCE/i686-linux-elf/cross-tools/bin/../libexec/gcc/i686-cm-linux/4.5.1/cc1plus
-quiet -v -iprefix
/home/user/data/IntelCE-13.114072/project_build_i686/IntelCE/i686-linux-elf/cross-tools/bin/../lib/gcc/i686-cm-linux/4.5.1/
-D_GNU_SOURCE /mnt/hgfs/Linux_Share/testprog.cpp -quiet -dumpbase
testprog.cpp -mtune=generic -march=pentiumpro -auxbase testprog
-version -o /tmp/cc12zDmg.s
/home/user/data/IntelCE-13.114072/project_build_i686/IntelCE/i686-linux-elf/cross-tools/bin/../libexec/gcc/i686-cm-linux/4.5.1/cc1plus:
error while loading shared libraries: /cross-tools/lib/libstdc++.so.6:
ELF file OS ABI invalid

If you need any more info or have any suggestions please let me know!

To start this email does not belong on the development list. It should
be on the support list.

Also, I had to say the same thing to another user not long ago. leaving
the -gnu off the end of your target triplet is a significant change.
Autotools uses that suffix to determine which libc is being used.

Could you please provide the output of the following 3 commands.

echo $CLFS
[r...@localhost libtool-1.5.26]# echo $CLFS
/home/user/data/IntelCE-13.114072/project_build_i686/IntelCE/toolchain-13.2.10052.89858/../i686-linux-elf/
file -L /cross-tools/lib/libstdc++.so.6
[r...@localhost libtool-1.5.26]# file -L /cross-tools/lib/libstdc++.so.6
/cross-tools/lib/libstdc++.so.6: ELF 32-bit LSB shared object, Intel 80386, version 1 (GNU/Linux), dynamically linked, not stripped
ls -l /cross-tools

[r...@localhost libtool-1.5.26]# ls -l /cross-tools
lrwxrwxrwx 1 root root 87 2010-08-19 17:18 /cross-tools -> /home/user/data/IntelCE-13.114072/project_build_i686/IntelCE/i686-linux-elf/cross-tools
please note that there is no trailing slash on /cross-tools in the last
command.

Apologies for posting in Dev instead of Support at first. I placed my response to your questions in-line. Also I am not entirely sure what you mean by leaving -gnu off the end of my target triplet? Should it be i686-cm-linux-gnu-gcc? Sorry if that's a dumb question, but I'm obviously new at this!
_______________________________________________
Clfs-support mailing list
[email protected]
http://lists.cross-lfs.org/listinfo.cgi/clfs-support-cross-lfs.org

Reply via email to