ROOTFS_DIR=$NETCORE/rootfs/x86-xenial \
./build.sh x86 debug cross clang3.8 skiptests skipnuget configureonly
/usr/bin/ld.bfd.real:
/home/maxwell/netcore/rootfs/x86-xenial/usr/lib/gcc/i686-linux-gnu/5.4.0/../../../i386-linux-gnu/crti.o:
unrecognized relocation (0x2b) in section `.init'
Full log looks like this.
-- Check for working C compiler: /home/maxwell/bin/llvm/bin/clang-3.8 -- broken
CMake Error at /usr/share/cmake-2.8/Modules/CMakeTestCCompiler.cmake:61 (message):
The C compiler "/home/maxwell/bin/llvm/bin/clang-3.8" is not able to
compile a simple test program.
It fails with the following output:
Change Dir: /home/maxwell/netcore/coreclr/bin/obj/Linux.x86.Debug/CMakeFiles/CMakeTmp
Run Build Command:/usr/bin/make "cmTryCompileExec1221470974/fast"
/usr/bin/make -f CMakeFiles/cmTryCompileExec1221470974.dir/build.make
CMakeFiles/cmTryCompileExec1221470974.dir/build
make[1]: Entering directory
`/home/maxwell/netcore/coreclr/bin/obj/Linux.x86.Debug/CMakeFiles/CMakeTmp'
/usr/bin/cmake -E cmake_progress_report
/home/maxwell/netcore/coreclr/bin/obj/Linux.x86.Debug/CMakeFiles/CMakeTmp/CMakeFiles
1
Building C object
CMakeFiles/cmTryCompileExec1221470974.dir/testCCompiler.c.o
/home/maxwell/bin/llvm/bin/clang-3.8 -Wall -std=c11 -m32
--sysroot=/home/maxwell/netcore/rootfs/x86-xenial -o
CMakeFiles/cmTryCompileExec1221470974.dir/testCCompiler.c.o -c
/home/maxwell/netcore/coreclr/bin/obj/Linux.x86.Debug/CMakeFiles/CMakeTmp/testCCompiler.c
Linking C executable cmTryCompileExec1221470974
/usr/bin/cmake -E cmake_link_script
CMakeFiles/cmTryCompileExec1221470974.dir/link.txt --verbose=1
/home/maxwell/bin/llvm/bin/clang-3.8 -Wall -std=c11
--sysroot=/home/maxwell/netcore/rootfs/x86-xenial -B
/home/maxwell/netcore/rootfs/x86-xenial/usr/lib/gcc/i686-linux-gnu
-L/home/maxwell/netcore/rootfs/x86-xenial/lib/i386-linux-gnu -m32
CMakeFiles/cmTryCompileExec1221470974.dir/testCCompiler.c.o -o
cmTryCompileExec1221470974 -rdynamic
/usr/bin/ld.bfd.real:
/home/maxwell/netcore/rootfs/x86-xenial/usr/lib/gcc/i686-linux-gnu/5.4.0/../../../i386-linux-gnu/crti.o:
unrecognized relocation (0x2b) in section `.init'
/usr/bin/ld.bfd.real: final link failed: Bad value
clang-3.8: error: linker command failed with exit code 1 (use -v to see
invocation)