[LLVMdev] Cross compilation error LLVM-3.0
Anton Korobeynikov
anton at korobeynikov.info
Mon Jan 23 13:14:43 PST 2012
Hello
> make[2]: Entering directory
> `/home/user/Acads/Compiler/LLVM/llvm-3.0/build/tools/llvm-extract'
> llvm[2]: Linking Debug executable llvm-extract
>
> /usr/bin/ld:
> /home/user/Acads/Compiler/LLVM/llvm-3.0/build/Debug/lib/libLLVMSupport.a(regcomp.o):
> Relocations in generic ELF (EM: 40)
> /home/user/Acads/Compiler/LLVM/llvm-3.0/build/Debug/lib/libLLVMSupport.a:
> could not read symbols: File in wrong format
> collect2: ld returned 1 exit status
Will you please re-run with make VERBOSE=1 and show the exact cmdline?
> Target: arm-linux-gnueabi
> Configured with: ../src/configure -v --with-pkgversion='Ubuntu/Linaro
> 4.4.4-14ubuntu4' --with-bugurl=file:///usr/share/doc/gcc-4.4/README.Bugs
> --enable-languages=c,c++,fortran,objc,obj-c++ --prefix=/usr
> --program-suffix=-4.4 --enable-shared --enable-multiarch
> --enable-linker-build-id --with-system-zlib --libexecdir=/usr/lib
> --without-included-gettext --enable-threads=posix
> --with-gxx-include-dir=/usr/arm-linux-gnueabi/include/c++/4.4.5
> --libdir=/usr/lib --enable-nls --enable-clocale=gnu --enable-libstdcxx-debug
> --enable-objc-gc --disable-sjlj-exceptions --with-arch=armv7-a
> --with-float=softfp --with-fpu=vfpv3-d16 --with-mode=thumb --disable-werror
> --enable-checking=release --program-prefix=arm-linux-gnueabi-
> --includedir=/usr/arm-linux-gnueabi/include --build=i686-linux-gnu
> --host=i686-linux-gnu --target=arm-linux-gnueabi
> --with-headers=/usr/arm-linux-gnueabi/include
> --with-libs=/usr/arm-linux-gnueabi/lib
> Thread model: posix
>
> So here it has not configures host as arm-linux-gnueabi as specified by in
> the configure command. For the other time this statement occurs,
>
> Target: i686-linux-gnu
> Configured with: ../src/configure -v --with-pkgversion='Ubuntu/Linaro
> 4.4.4-14ubuntu5' --with-bugurl=file:///usr/share/doc/gcc-4.4/README.Bugs
> --enable-languages=c,c++,fortran,objc,obj-c++ --prefix=/usr
> --program-suffix=-4.4 --enable-shared --enable-multiarch
> --enable-linker-build-id --with-system-zlib --libexecdir=/usr/lib
> --without-included-gettext --enable-threads=posix
> --with-gxx-include-dir=/usr/include/c++/4.4 --libdir=/usr/lib --enable-nls
> --with-sysroot=/ --enable-clocale=gnu --enable-libstdcxx-debug
> --enable-objc-gc --enable-targets=all --disable-werror --with-arch-32=i686
> --with-tune=generic --enable-checking=release --build=i686-linux-gnu
> --host=i686-linux-gnu --target=i686-linux-gnu
>
> In this case, the target is also configured as i686.
These seem to be outputs from gcc -v for your native & cross compilers.
--
With best regards, Anton Korobeynikov
Faculty of Mathematics and Mechanics, Saint Petersburg State University
More information about the llvm-dev
mailing list