I sent out this email before signing up to the cmake email list. Resend
again just to be sure. Thanks.

John

On 3/12/08, John Xu <[EMAIL PROTECTED]> wrote:
>
> Hi,
>
> I was trying to cross compile something for arm-linux by running a script
> on i386. Here is the output:
>
>
> sh: error while loading shared libraries: /usr/lib/libncurses.so.5: ELF
> file OS ABI invalid
>
> sh: error while loading shared libraries: /usr/lib/libncurses.so.5: ELF
> file OS ABI invalid
>
> sh: error while loading shared libraries: /usr/lib/libncurses.so.5: ELF
> file OS ABI invalid
>
> sh: error while loading shared libraries: /usr/lib/libncurses.so.5: ELF
> file OS ABI invalid
>
> sh: error while loading shared libraries: /usr/lib/libncurses.so.5: ELF
> file OS ABI invalid
>
> System is unknown to cmake, create:
>
> /build/cmake_tool/share/cmake-2.4/Modules/Platform/UnknownOS.cmake to use
> this system, please send your config file to [EMAIL PROTECTED] so it can
> be added to cmake
>
> -- Check for working C compiler: /cross/arm-linux/bin/arm-linux-gcc
>
> System is unknown to cmake, create:
>
> /build/cmake_tool/share/cmake-2.4/Modules/Platform/UnknownOS.cmake to use
> this system, please send your config file to [EMAIL PROTECTED] so it can
> be added to cmake
>
> -- Check for working C compiler: /cross/arm-linux/bin/arm-linux-gcc --
> broken
>
> CMake Error: The C compiler "/cross/arm-linux/bin/arm-linux-gcc" is not
> able to compile a simple test program.
>
> It fails with the following output:
>
> /tools/bin/make -f CMakeFiles/cmTryCompileExec.dir/build.make
> CMakeFiles/cmTryCompileExec.dir/build
>
> make[1]: Entering directory `/build/opensync/CMakeFiles/CMakeTmp'
>
> /build/cmake_tool/bin/cmake -E cmake_progress_report
> /build/opensync/CMakeFiles/CMakeTmp/CMakeFiles 1
>
> make[1]: Leaving directory `/build/opensync/CMakeFiles/CMakeTmp'
>
> /bin/sh: error while loading shared libraries: /usr/lib/libncurses.so.5:
> ELF file OS ABI invalid
>
> make[1]: *** [CMakeFiles/cmTryCompileExec.dir/testCCompiler.o] Error 127
>
> make: *** [cmTryCompileExec/fast] Error 2
>
>
>
> CMake will not be able to correctly generate this project.
>
> -- Configuring done
>
> make: *** No targets specified and no makefile found. Stop.
>
> make: *** No rule to make target `install'. Stop.
>
> Part of the build script is as follows:
>
> export CC=arm-linux-gcc
>
> export CXX=arm-linux-g++
>
> cmake -DCROSS_COMPILE=arm-linux-
> -DCMAKE_TOOLCHAIN_FILE=Toolchain-arm-linux ......
>
> In the toolchain file, I have set CMAKE_SYSTEM_NAME to Linux etc.
>
> However, it seems that the main problem is the "ELF file OS ABI invalid"
> (as well as the UnknownOS).
>
> I am using cmake-2.4.7-Linux-i386. The /usr/lib/libncurses.so library was
> build for arm-linux separately by not using cmake.
>
> Can someone tell me what I am doing wrong in here? Do I have to run an ARM
> specific cmake? Or cross compiling is only supported by version 2.6.0 or
> later? Your help will be greatly appreciated. Thank you in advance.
>
> John
>
_______________________________________________
CMake mailing list
CMake@cmake.org
http://www.cmake.org/mailman/listinfo/cmake

Reply via email to