scachi
Member
- Joined
- Dec 28, 2005
- Messages
- 451
Hi,
I am trying to compile iperf for the Wiz but I have a problem on ./configure
The error is:
configure:3025: error: in `/home/baro/dev/wiz/iperf-2.0.4':
configure:3029: error: C++ compiler cannot create executables
In config.log there is this:
configure:2916: checking for C++ compiler version
configure:2925: arm-openwiz-linux-gnu-g++ --version >&5
arm-openwiz-linux-gnu-g++: error while loading shared libraries: libc.so.6: wrong ELF class: ELFCLASS64
I wonder why it can't find the correct libc.so.6.
I think I have set LDFLAGS correctly:
export LDFLAGS="-L/opt/openwiz/toolchain/arm-openwiz-linux-gnu/arm-openwiz-linux-gnu/lib -L/opt/openwiz/toolchain/arm-openwiz-linux-gnu/lib"
I have the same problem while cross compiling with other software too, any ideas ?
// edit
okay.. setting LD_LIBRARY_PATH did help or changed it a bit.
Now it find the correct file but I get "ELF file OS ABI invalid".
//edit2
oh.. it was looking for a i386 32bit one, not the arm one. Pointing it to my /opt/lib32/lib/ dir fixed it.
I am trying to compile iperf for the Wiz but I have a problem on ./configure
The error is:
configure:3025: error: in `/home/baro/dev/wiz/iperf-2.0.4':
configure:3029: error: C++ compiler cannot create executables
In config.log there is this:
configure:2916: checking for C++ compiler version
configure:2925: arm-openwiz-linux-gnu-g++ --version >&5
arm-openwiz-linux-gnu-g++: error while loading shared libraries: libc.so.6: wrong ELF class: ELFCLASS64
I wonder why it can't find the correct libc.so.6.
I think I have set LDFLAGS correctly:
export LDFLAGS="-L/opt/openwiz/toolchain/arm-openwiz-linux-gnu/arm-openwiz-linux-gnu/lib -L/opt/openwiz/toolchain/arm-openwiz-linux-gnu/lib"
I have the same problem while cross compiling with other software too, any ideas ?
// edit
okay.. setting LD_LIBRARY_PATH did help or changed it a bit.
Now it find the correct file but I get "ELF file OS ABI invalid".
//edit2
oh.. it was looking for a i386 32bit one, not the arm one. Pointing it to my /opt/lib32/lib/ dir fixed it.