<html>
<head>
<meta content="text/html; charset=utf-8" http-equiv="Content-Type">
</head>
<body bgcolor="#FFFFFF" text="#000000">
<p>Hello,</p>
<p>on the problems cross-building compiler-rt: Tried to follow
<a class="moz-txt-link-freetext" href="https://llvm.org/docs/HowToCrossCompileBuiltinsOnArm.html">https://llvm.org/docs/HowToCrossCompileBuiltinsOnArm.html</a> which
lead to this cmake: <br>
</p>
<p>cmake -G "Ninja" ..<i class="moz-txt-slash"><span
class="moz-txt-tag">/</span>llvm/projects/compiler-rt<span
class="moz-txt-tag">/</span></i>
-DCOMPILER_RT_BUILD_BUILTINS=ON -DCOMPILER_RT_BUILD_SANITIZERS=OFF
-DCOMPILER_RT_BUILD_XRAY=OFF -DCOMPILER_RT_BUILD_LIBFUZZER=OFF
-DCOMPILER_RT_BUILD_PROFILE=OFF
-DCMAKE_C_COMPILER=/usr/local/myclang/bin/clang
-DCMAKE_AR=/usr/local/myclang/bin/llvm-ar
-DCMAKE_NM=/usr/local/myclang/bin/llvm-nm
-DCMAKE_RANLIB=/usr/local/myclang/bin/llvm-ranlib
-DCMAKE_TRY_COMPILE_TARGET_TYPE=STATIC_LIBRARY
-DCMAKE_C_COMPILER_TARGET="arm-linux-gnueabihf"
-DCOMPILER_RT_DEFAULT_TARGET_ONLY=ON
-DLLVM_CONFIG_PATH=/usr/local/myclang/bin/llvm-config
-DCMAKE_C_FLAGS="--target=arm-linux-gnueabihf -march=armv7a
--gcc-toolchain=/usr/arm-linux-gnueabihf
--sysroot=/usr/arm-linux-gnueabihf/lib" <br>
</p>
<p>Some small notes: <br>
</p>
<p>- Used -DCMAKE_TRY_COMPILE_TARGET_TYPE=STATIC_LIBRARY instead of
-DCMAKE_EXE_LINKER_FLAGS="-fuse-ld=lld" as Peter Smith suggested
because it actually is a library and therefore does not need to be
linked. If I do not change that, the cmake does not work (see
below).<br>
</p>
<p>- used -G "Ninja" although not explicitly stated in the tutorial
as they use "ninja builtins" next.</p>
<p>- had to change --march=armv7a to -march=armv7a as clang did not
accept the first one.</p>
<p>the cmake was successful, but the ninja builtins was not (see
both outputs below). Am I doing the --gcc-toolchain / --sysroot
part right? These are just the places where the result of "apt
install arm-linux-gnueabihf" lives. <br>
</p>
<p>cmake output with -DCMAKE_EXE_LINKER_FLAGS="-fuse-ld=lld":</p>
<p>
</p>
<div class="moz-text-flowed" style="font-family: -moz-fixed;
font-size: 14px;" lang="x-western">root@christian-forschung-virtual-machine:/home/llvm_all/buildrtonly#
cmake -G "Ninja" ..<i class="moz-txt-slash"><span
class="moz-txt-tag">/</span>llvm/projects/compiler-rt<span
class="moz-txt-tag">/</span></i>
-DCOMPILER_RT_BUILD_BUILTINS=ON -DCOMPILER_RT_BUILD_SANITIZERS=OFF
-DCOMPILER_RT_BUILD_XRAY=OFF -DCOMPILER_RT_BUILD_LIBFUZZER=OFF
-DCOMPILER_RT_BUILD_PROFILE=OFF
-DCMAKE_C_COMPILER=/usr/local/myclang/bin/clang
-DCMAKE_AR=/usr/local/myclang/bin/llvm-ar
-DCMAKE_NM=/usr/local/myclang/bin/llvm-nm
-DCMAKE_RANLIB=/usr/local/myclang/bin/llvm-ranlib
-DCMAKE_EXE_LINKER_FLAGS="-fuse-ld=lld"
-DCMAKE_C_COMPILER_TARGET="arm-linux-gnueabihf"
-DCOMPILER_RT_DEFAULT_TARGET_ONLY=ON
-DLLVM_CONFIG_PATH=/usr/local/myclang/bin/llvm-config
-DCMAKE_C_FLAGS="--target=arm-linux-gnueabihf -march=armv7a
--gcc-toolchain=/usr/arm-linux-gnueabihf
--sysroot=/usr/arm-linux-gnueabihf/lib"
<br>
-- The C compiler identification is Clang 8.0.0
<br>
-- The CXX compiler identification is Clang 8.0.0
<br>
-- The ASM compiler identification is unknown
<br>
-- Found assembler: /usr/local/myclang/bin/clang
<br>
-- Check for working C compiler: /usr/local/myclang/bin/clang
<br>
-- Check for working C compiler: /usr/local/myclang/bin/clang --
broken
<br>
CMake Error at
/usr/share/cmake-3.10/Modules/CMakeTestCCompiler.cmake:52
(message):
<br>
The C compiler
<br>
<br>
"/usr/local/myclang/bin/clang"
<br>
<br>
is not able to compile a simple test program.
<br>
<br>
It fails with the following output:
<br>
<br>
Change Dir: /home/llvm_all/buildrtonly/CMakeFiles/CMakeTmp
<br>
<br>
Run Build Command:"/usr/bin/ninja" "cmTC_22d97"
<br>
[1/2] Building C object
CMakeFiles/cmTC_22d97.dir/testCCompiler.c.o
<br>
[2/2] Linking C executable cmTC_22d97
<br>
FAILED: cmTC_22d97
<br>
: && /usr/local/myclang/bin/clang
--target=arm-linux-gnueabihf --target=arm-linux-gnueabihf
-march=armv7a --gcc-toolchain=/usr/arm-linux-gnueabihf
--sysroot=/usr/arm-linux-gnueabihf/lib -fuse-ld=lld
CMakeFiles/cmTC_22d97.dir/testCCompiler.c.o -o cmTC_22d97
&& :
<br>
ld.lld: error: cannot open crt1.o: No such file or directory
<br>
ld.lld: error: cannot open crti.o: No such file or directory
<br>
ld.lld: error: cannot open crtbegin.o: No such file or
directory
<br>
ld.lld: error: unable to find library -lgcc
<br>
ld.lld: error: unable to find library -lgcc_s
<br>
ld.lld: error: unable to find library -lc
<br>
ld.lld: error: unable to find library -lgcc
<br>
ld.lld: error: unable to find library -lgcc_s
<br>
ld.lld: error: cannot open crtend.o: No such file or directory
<br>
ld.lld: error: cannot open crtn.o: No such file or directory
<br>
clang-8: error: linker command failed with exit code 1 (use -v
to see invocation)
<br>
ninja: build stopped: subcommand failed.
<br>
<br>
CMake will not be able to correctly generate this project.
<br>
Call Stack (most recent call first):
<br>
CMakeLists.txt:10 (project)
<br>
-- Configuring incomplete, errors occurred!
<br>
See also "/home/llvm_all/buildrtonly/CMakeFiles/CMakeOutput.log".
<br>
See also "/home/llvm_all/buildrtonly/CMakeFiles/CMakeError.log".
<br>
</div>
<p><br>
</p>
<p>Note: Googling this error suggested installing gcc-multilib or
linking "sudo ln -s /usr/lib/x86_64-linux-gnu /usr/lib64" (which
both did not fix it). But the crt1.o that lld does not seem to
find is probably the one from arm-linux-gnueabihf, right? "Locate"
says it's right in /usr/arm-linux-gnueabihf/lib.</p>
<p>Thanks so far! <br>
</p>
<p>Christian<br>
</p>
<p><br>
</p>
<p>cmake output with STATIC_LIBRARY:<br>
</p>
<p>
</p>
<div class="moz-text-flowed" style="font-family: -moz-fixed;
font-size: 14px;" lang="x-western">-- The C compiler
identification is Clang 8.0.0
<br>
-- The CXX compiler identification is Clang 8.0.0
<br>
-- The ASM compiler identification is Clang
<br>
-- Found assembler: /usr/local/myclang/bin/clang
<br>
-- Check for working C compiler: /usr/local/myclang/bin/clang
<br>
-- Check for working C compiler: /usr/local/myclang/bin/clang --
works
<br>
-- Detecting C compiler ABI info
<br>
-- Detecting C compiler ABI info - done
<br>
-- Detecting C compile features
<br>
-- Detecting C compile features - done
<br>
-- Check for working CXX compiler: /usr/local/myclang/bin/clang++
<br>
-- Check for working CXX compiler: /usr/local/myclang/bin/clang++
-- works
<br>
-- Detecting CXX compiler ABI info
<br>
-- Detecting CXX compiler ABI info - done
<br>
-- Detecting CXX compile features
<br>
-- Detecting CXX compile features - done
<br>
-- Looking for unwind.h
<br>
-- Looking for unwind.h - found
<br>
-- Found PythonInterp: /usr/bin/python2.7 (found version "2.7.15")
<br>
-- Looking for fopen in c
<br>
-- Looking for fopen in c - found
<br>
-- Looking for __gcc_personality_v0 in gcc_s
<br>
-- Looking for __gcc_personality_v0 in gcc_s - found
<br>
-- Performing Test COMPILER_RT_HAS_NODEFAULTLIBS_FLAG
<br>
-- Performing Test COMPILER_RT_HAS_NODEFAULTLIBS_FLAG - Success
<br>
-- Performing Test COMPILER_RT_HAS_FFREESTANDING_FLAG
<br>
-- Performing Test COMPILER_RT_HAS_FFREESTANDING_FLAG - Success
<br>
-- Performing Test COMPILER_RT_HAS_FPIC_FLAG
<br>
-- Performing Test COMPILER_RT_HAS_FPIC_FLAG - Success
<br>
-- Performing Test COMPILER_RT_HAS_FPIE_FLAG
<br>
-- Performing Test COMPILER_RT_HAS_FPIE_FLAG - Success
<br>
-- Performing Test COMPILER_RT_HAS_FNO_BUILTIN_FLAG
<br>
-- Performing Test COMPILER_RT_HAS_FNO_BUILTIN_FLAG - Success
<br>
-- Performing Test COMPILER_RT_HAS_FNO_EXCEPTIONS_FLAG
<br>
-- Performing Test COMPILER_RT_HAS_FNO_EXCEPTIONS_FLAG - Success
<br>
-- Performing Test COMPILER_RT_HAS_FOMIT_FRAME_POINTER_FLAG
<br>
-- Performing Test COMPILER_RT_HAS_FOMIT_FRAME_POINTER_FLAG -
Success
<br>
-- Performing Test COMPILER_RT_HAS_FUNWIND_TABLES_FLAG
<br>
-- Performing Test COMPILER_RT_HAS_FUNWIND_TABLES_FLAG - Success
<br>
-- Performing Test COMPILER_RT_HAS_FNO_STACK_PROTECTOR_FLAG
<br>
-- Performing Test COMPILER_RT_HAS_FNO_STACK_PROTECTOR_FLAG -
Success
<br>
-- Performing Test COMPILER_RT_HAS_FNO_SANITIZE_SAFE_STACK_FLAG
<br>
-- Performing Test COMPILER_RT_HAS_FNO_SANITIZE_SAFE_STACK_FLAG -
Success
<br>
-- Performing Test COMPILER_RT_HAS_FVISIBILITY_HIDDEN_FLAG
<br>
-- Performing Test COMPILER_RT_HAS_FVISIBILITY_HIDDEN_FLAG -
Success
<br>
-- Performing Test COMPILER_RT_HAS_FRTTI_FLAG
<br>
-- Performing Test COMPILER_RT_HAS_FRTTI_FLAG - Success
<br>
-- Performing Test COMPILER_RT_HAS_FNO_RTTI_FLAG
<br>
-- Performing Test COMPILER_RT_HAS_FNO_RTTI_FLAG - Success
<br>
-- Performing Test COMPILER_RT_HAS_FNO_FUNCTION_SECTIONS_FLAG
<br>
-- Performing Test COMPILER_RT_HAS_FNO_FUNCTION_SECTIONS_FLAG -
Success
<br>
-- Performing Test COMPILER_RT_HAS_STD_CXX11_FLAG
<br>
-- Performing Test COMPILER_RT_HAS_STD_CXX11_FLAG - Success
<br>
-- Performing Test COMPILER_RT_HAS_FTLS_MODEL_INITIAL_EXEC
<br>
-- Performing Test COMPILER_RT_HAS_FTLS_MODEL_INITIAL_EXEC -
Success
<br>
-- Performing Test COMPILER_RT_HAS_FNO_LTO_FLAG
<br>
-- Performing Test COMPILER_RT_HAS_FNO_LTO_FLAG - Success
<br>
-- Performing Test COMPILER_RT_HAS_MSSE3_FLAG
<br>
-- Performing Test COMPILER_RT_HAS_MSSE3_FLAG - Success
<br>
-- Performing Test COMPILER_RT_HAS_MSSE4_2_FLAG
<br>
-- Performing Test COMPILER_RT_HAS_MSSE4_2_FLAG - Success
<br>
-- Performing Test COMPILER_RT_HAS_SYSROOT_FLAG
<br>
-- Performing Test COMPILER_RT_HAS_SYSROOT_FLAG - Success
<br>
-- Performing Test COMPILER_RT_HAS_MCRC_FLAG
<br>
-- Performing Test COMPILER_RT_HAS_MCRC_FLAG - Failed
<br>
-- Performing Test COMPILER_RT_HAS_FVISIBILITY_INLINES_HIDDEN_FLAG
<br>
-- Performing Test COMPILER_RT_HAS_FVISIBILITY_INLINES_HIDDEN_FLAG
- Success
<br>
-- Performing Test COMPILER_RT_HAS_GR_FLAG
<br>
-- Performing Test COMPILER_RT_HAS_GR_FLAG - Failed
<br>
-- Performing Test COMPILER_RT_HAS_GS_FLAG
<br>
-- Performing Test COMPILER_RT_HAS_GS_FLAG - Failed
<br>
-- Performing Test COMPILER_RT_HAS_MT_FLAG
<br>
-- Performing Test COMPILER_RT_HAS_MT_FLAG - Failed
<br>
-- Performing Test COMPILER_RT_HAS_Oy_FLAG
<br>
-- Performing Test COMPILER_RT_HAS_Oy_FLAG - Failed
<br>
-- Performing Test COMPILER_RT_HAS_GLINE_TABLES_ONLY_FLAG
<br>
-- Performing Test COMPILER_RT_HAS_GLINE_TABLES_ONLY_FLAG -
Success
<br>
-- Performing Test COMPILER_RT_HAS_G_FLAG
<br>
-- Performing Test COMPILER_RT_HAS_G_FLAG - Success
<br>
-- Performing Test COMPILER_RT_HAS_Zi_FLAG
<br>
-- Performing Test COMPILER_RT_HAS_Zi_FLAG - Failed
<br>
-- Performing Test COMPILER_RT_HAS_WALL_FLAG
<br>
-- Performing Test COMPILER_RT_HAS_WALL_FLAG - Success
<br>
-- Performing Test COMPILER_RT_HAS_WERROR_FLAG
<br>
-- Performing Test COMPILER_RT_HAS_WERROR_FLAG - Success
<br>
-- Performing Test COMPILER_RT_HAS_WFRAME_LARGER_THAN_FLAG
<br>
-- Performing Test COMPILER_RT_HAS_WFRAME_LARGER_THAN_FLAG -
Success
<br>
-- Performing Test COMPILER_RT_HAS_WGLOBAL_CONSTRUCTORS_FLAG
<br>
-- Performing Test COMPILER_RT_HAS_WGLOBAL_CONSTRUCTORS_FLAG -
Success
<br>
-- Performing Test COMPILER_RT_HAS_WC99_EXTENSIONS_FLAG
<br>
-- Performing Test COMPILER_RT_HAS_WC99_EXTENSIONS_FLAG - Success
<br>
-- Performing Test COMPILER_RT_HAS_WGNU_FLAG
<br>
-- Performing Test COMPILER_RT_HAS_WGNU_FLAG - Success
<br>
-- Performing Test COMPILER_RT_HAS_WNON_VIRTUAL_DTOR_FLAG
<br>
-- Performing Test COMPILER_RT_HAS_WNON_VIRTUAL_DTOR_FLAG -
Success
<br>
-- Performing Test COMPILER_RT_HAS_WVARIADIC_MACROS_FLAG
<br>
-- Performing Test COMPILER_RT_HAS_WVARIADIC_MACROS_FLAG - Success
<br>
-- Performing Test COMPILER_RT_HAS_WUNUSED_PARAMETER_FLAG
<br>
-- Performing Test COMPILER_RT_HAS_WUNUSED_PARAMETER_FLAG -
Success
<br>
-- Performing Test COMPILER_RT_HAS_WCOVERED_SWITCH_DEFAULT_FLAG
<br>
-- Performing Test COMPILER_RT_HAS_WCOVERED_SWITCH_DEFAULT_FLAG -
Success
<br>
-- Performing Test COMPILER_RT_HAS_W4_FLAG
<br>
-- Performing Test COMPILER_RT_HAS_W4_FLAG - Failed
<br>
-- Performing Test COMPILER_RT_HAS_WX_FLAG
<br>
-- Performing Test COMPILER_RT_HAS_WX_FLAG - Failed
<br>
-- Performing Test COMPILER_RT_HAS_WD4146_FLAG
<br>
-- Performing Test COMPILER_RT_HAS_WD4146_FLAG - Failed
<br>
-- Performing Test COMPILER_RT_HAS_WD4291_FLAG
<br>
-- Performing Test COMPILER_RT_HAS_WD4291_FLAG - Failed
<br>
-- Performing Test COMPILER_RT_HAS_WD4221_FLAG
<br>
-- Performing Test COMPILER_RT_HAS_WD4221_FLAG - Failed
<br>
-- Performing Test COMPILER_RT_HAS_WD4391_FLAG
<br>
-- Performing Test COMPILER_RT_HAS_WD4391_FLAG - Failed
<br>
-- Performing Test COMPILER_RT_HAS_WD4722_FLAG
<br>
-- Performing Test COMPILER_RT_HAS_WD4722_FLAG - Failed
<br>
-- Performing Test COMPILER_RT_HAS_WD4800_FLAG
<br>
-- Performing Test COMPILER_RT_HAS_WD4800_FLAG - Failed
<br>
-- Looking for __func__
<br>
-- Looking for __func__ - found
<br>
-- Looking for dlopen in dl
<br>
-- Looking for dlopen in dl - found
<br>
-- Looking for shm_open in rt
<br>
-- Looking for shm_open in rt - found
<br>
-- Looking for pow in m
<br>
-- Looking for pow in m - found
<br>
-- Looking for pthread_create in pthread
<br>
-- Looking for pthread_create in pthread - found
<br>
-- Looking for setupterm in terminfo
<br>
-- Looking for setupterm in terminfo - found
<br>
-- Looking for __cxa_throw in c++
<br>
-- Looking for __cxa_throw in c++ - found
<br>
-- Looking for __cxa_throw in stdc++
<br>
-- Looking for __cxa_throw in stdc++ - found
<br>
-- Compiler-RT supported architectures: armhf
<br>
-- Performing Test COMPILER_RT_HAS_STD_C11_FLAG
<br>
-- Performing Test COMPILER_RT_HAS_STD_C11_FLAG - Success
<br>
-- Performing Test COMPILER_RT_HAS_VISIBILITY_HIDDEN_FLAG
<br>
-- Performing Test COMPILER_RT_HAS_VISIBILITY_HIDDEN_FLAG -
Success
<br>
-- Performing Test COMPILER_RT_HAS_OMIT_FRAME_POINTER_FLAG
<br>
-- Performing Test COMPILER_RT_HAS_OMIT_FRAME_POINTER_FLAG -
Success
<br>
-- Performing Test COMPILER_RT_HAS_FREESTANDING_FLAG
<br>
-- Performing Test COMPILER_RT_HAS_FREESTANDING_FLAG - Success
<br>
-- Performing Test COMPILER_RT_HAS_XRAY_COMPILER_FLAG
<br>
-- Performing Test COMPILER_RT_HAS_XRAY_COMPILER_FLAG - Success
<br>
-- Performing Test COMPILER_RT_HAS_ATOMIC_KEYWORD
<br>
-- Performing Test COMPILER_RT_HAS_ATOMIC_KEYWORD - Success
<br>
-- Builtin supported architectures: armhf
<br>
-- Looking for __VFP_FP__
<br>
-- Looking for __VFP_FP__ - found
<br>
-- Configuring done
<br>
-- Generating done
<br>
-- Build files have been written to: /home/llvm_all/buildrtonly
<br>
<br>
--------------------------------------
<br>
<br>
ninja output:<br>
<br>
<br>
root@christian-forschung-virtual-machine:/home/llvm_all/buildrtonly#
ninja builtins
<br>
<br>
[1/207] Building ASM object
lib/builtins/CMakeFiles/clang_rt.builtins-armhf.dir/arm/bswapsi2.S.o
<br>
FAILED:
lib/builtins/CMakeFiles/clang_rt.builtins-armhf.dir/arm/bswapsi2.S.o
<br>
/usr/local/myclang/bin/clang -DVISIBILITY_HIDDEN -fno-lto
-std=c11 -fPIC -fno-builtin -fvisibility=hidden
-fomit-frame-pointer -fomit-frame-pointer
-DCOMPILER_RT_ARMHF_TARGET -MD -MT
lib/builtins/CMakeFiles/clang_rt.builtins-armhf.dir/arm/bswapsi2.S.o
-MF
lib/builtins/CMakeFiles/clang_rt.builtins-armhf.dir/arm/bswapsi2.S.o.d
-o
lib/builtins/CMakeFiles/clang_rt.builtins-armhf.dir/arm/bswapsi2.S.o
-c
/home/llvm_all/llvm/projects/compiler-rt/lib/builtins/arm/bswapsi2.S
<br>
/home/llvm_all/llvm/projects/compiler-rt/lib/builtins/arm/bswapsi2.S:12:2:
error: unknown directive
<br>
.syntax unified
<br>
^
<br>
/home/llvm_all/llvm/projects/compiler-rt/lib/builtins/arm/bswapsi2.S:25:3:
error: invalid instruction mnemonic 'eor'
<br>
eor r1, r0, r0, ror #16
<br>
^~~
<br>
/home/llvm_all/llvm/projects/compiler-rt/lib/builtins/arm/bswapsi2.S:26:15:
error: unknown token in expression
<br>
bic r1, r1, #0xff0000
<br>
^
<br>
/home/llvm_all/llvm/projects/compiler-rt/lib/builtins/arm/bswapsi2.S:27:3:
error: unknown use of instruction mnemonic without a size suffix
<br>
mov r1, r1, lsr #8
<br>
^
<br>
/home/llvm_all/llvm/projects/compiler-rt/lib/builtins/arm/bswapsi2.S:28:3:
error: invalid instruction mnemonic 'eor'
<br>
eor r0, r1, r0, ror #8
<br>
^~~
<br>
[2/207] Building ASM object
lib/builtins/CMakeFiles/clang_rt.builtins-armhf.dir/arm/bswapdi2.S.o
<br>
FAILED:
lib/builtins/CMakeFiles/clang_rt.builtins-armhf.dir/arm/bswapdi2.S.o
<br>
/usr/local/myclang/bin/clang -DVISIBILITY_HIDDEN -fno-lto
-std=c11 -fPIC -fno-builtin -fvisibility=hidden
-fomit-frame-pointer -fomit-frame-pointer
-DCOMPILER_RT_ARMHF_TARGET -MD -MT
lib/builtins/CMakeFiles/clang_rt.builtins-armhf.dir/arm/bswapdi2.S.o
-MF
lib/builtins/CMakeFiles/clang_rt.builtins-armhf.dir/arm/bswapdi2.S.o.d
-o
lib/builtins/CMakeFiles/clang_rt.builtins-armhf.dir/arm/bswapdi2.S.o
-c
/home/llvm_all/llvm/projects/compiler-rt/lib/builtins/arm/bswapdi2.S
<br>
/home/llvm_all/llvm/projects/compiler-rt/lib/builtins/arm/bswapdi2.S:12:2:
error: unknown directive
<br>
.syntax unified
<br>
^
<br>
/home/llvm_all/llvm/projects/compiler-rt/lib/builtins/arm/bswapdi2.S:26:5:
error: invalid instruction mnemonic 'eor'
<br>
eor r2, r0, r0, ror #16
<br>
^~~
<br>
/home/llvm_all/llvm/projects/compiler-rt/lib/builtins/arm/bswapdi2.S:27:17:
error: unknown token in expression
<br>
bic r2, r2, #0xff0000
<br>
^
<br>
/home/llvm_all/llvm/projects/compiler-rt/lib/builtins/arm/bswapdi2.S:28:5:
error: unknown use of instruction mnemonic without a size suffix
<br>
mov r2, r2, lsr #8
<br>
^
<br>
/home/llvm_all/llvm/projects/compiler-rt/lib/builtins/arm/bswapdi2.S:29:5:
error: invalid instruction mnemonic 'eor'
<br>
eor r2, r2, r0, ror #8
<br>
^~~
<br>
/home/llvm_all/llvm/projects/compiler-rt/lib/builtins/arm/bswapdi2.S:31:5:
error: invalid instruction mnemonic 'eor'
<br>
eor r0, r1, r1, ror #16
<br>
^~~
<br>
/home/llvm_all/llvm/projects/compiler-rt/lib/builtins/arm/bswapdi2.S:32:17:
error: unknown token in expression
<br>
bic r0, r0, #0xff0000
<br>
^
<br>
/home/llvm_all/llvm/projects/compiler-rt/lib/builtins/arm/bswapdi2.S:33:5:
error: unknown use of instruction mnemonic without a size suffix
<br>
mov r0, r0, lsr #8
<br>
^
<br>
/home/llvm_all/llvm/projects/compiler-rt/lib/builtins/arm/bswapdi2.S:34:5:
error: invalid instruction mnemonic 'eor'
<br>
eor r0, r0, r1, ror #8
<br>
^~~
<br>
/home/llvm_all/llvm/projects/compiler-rt/lib/builtins/arm/bswapdi2.S:39:5:
error: unknown use of instruction mnemonic without a size suffix
<br>
mov r1, r2
<br>
^
<br>
[3/207] Building ASM object
lib/builtins/CMakeFiles/clang_rt.builtins-armhf.dir/arm/comparesf2.S.o
<br>
FAILED:
lib/builtins/CMakeFiles/clang_rt.builtins-armhf.dir/arm/comparesf2.S.o
<br>
/usr/local/myclang/bin/clang -DVISIBILITY_HIDDEN -fno-lto
-std=c11 -fPIC -fno-builtin -fvisibility=hidden
-fomit-frame-pointer -fomit-frame-pointer
-DCOMPILER_RT_ARMHF_TARGET -MD -MT
lib/builtins/CMakeFiles/clang_rt.builtins-armhf.dir/arm/comparesf2.S.o
-MF
lib/builtins/CMakeFiles/clang_rt.builtins-armhf.dir/arm/comparesf2.S.o.d
-o
lib/builtins/CMakeFiles/clang_rt.builtins-armhf.dir/arm/comparesf2.S.o
-c
/home/llvm_all/llvm/projects/compiler-rt/lib/builtins/arm/comparesf2.S
<br>
/home/llvm_all/llvm/projects/compiler-rt/lib/builtins/arm/comparesf2.S:41:2:
error: unknown directive
<br>
.syntax unified
<br>
^
<br>
/home/llvm_all/llvm/projects/compiler-rt/lib/builtins/arm/comparesf2.S:45:1:
error: unexpected token at start of statement
<br>
@ int __eqsf2(float a, float b)
<br>
^
<br>
/home/llvm_all/llvm/projects/compiler-rt/lib/builtins/arm/comparesf2.S:50:5:
error: invalid operand for instruction
<br>
vmov r0, s0
<br>
^
<br>
/home/llvm_all/llvm/projects/compiler-rt/lib/builtins/arm/comparesf2.S:51:5:
error: invalid operand for instruction
<br>
vmov r1, s1
<br>
^
<br>
/home/llvm_all/llvm/projects/compiler-rt/lib/builtins/arm/comparesf2.S:53:5:
error: unknown use of instruction mnemonic without a size suffix
<br>
mov r2, r0, lsl #1
<br>
^
<br>
/home/llvm_all/llvm/projects/compiler-rt/lib/builtins/arm/comparesf2.S:54:5:
error: unknown use of instruction mnemonic without a size suffix
<br>
mov r3, r1, lsl #1
<br>
^
<br>
/home/llvm_all/llvm/projects/compiler-rt/lib/builtins/arm/comparesf2.S:56:5:
error: invalid instruction mnemonic 'orrs'
<br>
orrs r12, r2, r3, lsr #1
<br>
^~~~
<br>
/home/llvm_all/llvm/projects/compiler-rt/lib/builtins/arm/comparesf2.S:58:5:
error: invalid instruction mnemonic 'it'
<br>
it ne
<br>
^~
<br>
/home/llvm_all/llvm/projects/compiler-rt/lib/builtins/arm/comparesf2.S:59:5:
error: invalid instruction mnemonic 'eorsne'
<br>
eorsne r12, r0, r1
<br>
^~~~~~
<br>
/home/llvm_all/llvm/projects/compiler-rt/lib/builtins/arm/comparesf2.S:61:5:
error: invalid instruction mnemonic 'it'
<br>
it pl
<br>
^~
<br>
/home/llvm_all/llvm/projects/compiler-rt/lib/builtins/arm/comparesf2.S:62:5:
error: invalid instruction mnemonic 'subspl'
<br>
subspl r0, r2, r3
<br>
^~~~~~
<br>
/home/llvm_all/llvm/projects/compiler-rt/lib/builtins/arm/comparesf2.S:64:5:
error: invalid instruction mnemonic 'it'
<br>
it lo
<br>
^~
<br>
/home/llvm_all/llvm/projects/compiler-rt/lib/builtins/arm/comparesf2.S:65:5:
error: invalid instruction mnemonic 'mvnlo'
<br>
mvnlo r0, r1, asr #31
<br>
^~~~~
<br>
/home/llvm_all/llvm/projects/compiler-rt/lib/builtins/arm/comparesf2.S:67:5:
error: invalid instruction mnemonic 'it'
<br>
it hi
<br>
^~
<br>
/home/llvm_all/llvm/projects/compiler-rt/lib/builtins/arm/comparesf2.S:68:5:
error: invalid instruction mnemonic 'movhi'
<br>
movhi r0, r1, asr #31
<br>
^~~~~
<br>
/home/llvm_all/llvm/projects/compiler-rt/lib/builtins/arm/comparesf2.S:70:5:
error: invalid instruction mnemonic 'it'
<br>
it ne
<br>
^~
<br>
/home/llvm_all/llvm/projects/compiler-rt/lib/builtins/arm/comparesf2.S:71:19:
error: unknown token in expression
<br>
orrne r0, r0, #1
<br>
^
<br>
/home/llvm_all/llvm/projects/compiler-rt/lib/builtins/arm/comparesf2.S:167:13:
error: unknown token in expression
<br>
cmp r2, #0xff000000
<br>
^
<br>
/home/llvm_all/llvm/projects/compiler-rt/lib/builtins/arm/comparesf2.S:168:5:
error: invalid instruction mnemonic 'ite'
<br>
ite ls
<br>
^~~
<br>
/home/llvm_all/llvm/projects/compiler-rt/lib/builtins/arm/comparesf2.S:169:15:
error: unknown token in expression
<br>
cmpls r3, #0xff000000
<br>
^
<br>
/home/llvm_all/llvm/projects/compiler-rt/lib/builtins/arm/comparesf2.S:170:15:
error: unknown token in expression
<br>
movhi r0, #1
<br>
^
<br>
/home/llvm_all/llvm/projects/compiler-rt/lib/builtins/arm/comparesf2.S:179:1:
error: unexpected token at start of statement
<br>
@ int __gtsf2(float a, float b)
<br>
^
<br>
/home/llvm_all/llvm/projects/compiler-rt/lib/builtins/arm/comparesf2.S:188:5:
error: invalid operand for instruction
<br>
vmov r0, s0
<br>
^
<br>
/home/llvm_all/llvm/projects/compiler-rt/lib/builtins/arm/comparesf2.S:189:5:
error: invalid operand for instruction
<br>
vmov r1, s1
<br>
^
<br>
/home/llvm_all/llvm/projects/compiler-rt/lib/builtins/arm/comparesf2.S:191:5:
error: unknown use of instruction mnemonic without a size suffix
<br>
mov r2, r0, lsl #1
<br>
^
<br>
/home/llvm_all/llvm/projects/compiler-rt/lib/builtins/arm/comparesf2.S:192:5:
error: unknown use of instruction mnemonic without a size suffix
<br>
mov r3, r1, lsl #1
<br>
^
<br>
/home/llvm_all/llvm/projects/compiler-rt/lib/builtins/arm/comparesf2.S:193:5:
error: invalid instruction mnemonic 'orrs'
<br>
orrs r12, r2, r3, lsr #1
<br>
^~~~
<br>
/home/llvm_all/llvm/projects/compiler-rt/lib/builtins/arm/comparesf2.S:194:5:
error: invalid instruction mnemonic 'it'
<br>
it ne
<br>
^~
<br>
/home/llvm_all/llvm/projects/compiler-rt/lib/builtins/arm/comparesf2.S:195:5:
error: invalid instruction mnemonic 'eorsne'
<br>
eorsne r12, r0, r1
<br>
^~~~~~
<br>
/home/llvm_all/llvm/projects/compiler-rt/lib/builtins/arm/comparesf2.S:196:5:
error: invalid instruction mnemonic 'it'
<br>
it pl
<br>
^~
<br>
/home/llvm_all/llvm/projects/compiler-rt/lib/builtins/arm/comparesf2.S:197:5:
error: invalid instruction mnemonic 'subspl'
<br>
subspl r0, r2, r3
<br>
^~~~~~
<br>
/home/llvm_all/llvm/projects/compiler-rt/lib/builtins/arm/comparesf2.S:198:5:
error: invalid instruction mnemonic 'it'
<br>
it lo
<br>
^~
<br>
/home/llvm_all/llvm/projects/compiler-rt/lib/builtins/arm/comparesf2.S:199:5:
error: invalid instruction mnemonic 'mvnlo'
<br>
mvnlo r0, r1, asr #31
<br>
^~~~~
<br>
/home/llvm_all/llvm/projects/compiler-rt/lib/builtins/arm/comparesf2.S:200:5:
error: invalid instruction mnemonic 'it'
<br>
it hi
<br>
^~
<br>
/home/llvm_all/llvm/projects/compiler-rt/lib/builtins/arm/comparesf2.S:201:5:
error: invalid instruction mnemonic 'movhi'
<br>
movhi r0, r1, asr #31
<br>
^~~~~
<br>
/home/llvm_all/llvm/projects/compiler-rt/lib/builtins/arm/comparesf2.S:202:5:
error: invalid instruction mnemonic 'it'
<br>
it ne
<br>
^~
<br>
/home/llvm_all/llvm/projects/compiler-rt/lib/builtins/arm/comparesf2.S:203:19:
error: unknown token in expression
<br>
orrne r0, r0, #1
<br>
^
<br>
/home/llvm_all/llvm/projects/compiler-rt/lib/builtins/arm/comparesf2.S:204:13:
error: unknown token in expression
<br>
cmp r2, #0xff000000
<br>
^
<br>
/home/llvm_all/llvm/projects/compiler-rt/lib/builtins/arm/comparesf2.S:205:5:
error: invalid instruction mnemonic 'ite'
<br>
ite ls
<br>
^~~
<br>
/home/llvm_all/llvm/projects/compiler-rt/lib/builtins/arm/comparesf2.S:206:15:
error: unknown token in expression
<br>
cmpls r3, #0xff000000
<br>
^
<br>
/home/llvm_all/llvm/projects/compiler-rt/lib/builtins/arm/comparesf2.S:207:15:
error: unknown token in expression
<br>
movhi r0, #-1
<br>
^
<br>
/home/llvm_all/llvm/projects/compiler-rt/lib/builtins/arm/comparesf2.S:214:1:
error: unexpected token at start of statement
<br>
@ int __unordsf2(float a, float b)
<br>
^
<br>
/home/llvm_all/llvm/projects/compiler-rt/lib/builtins/arm/comparesf2.S:220:5:
error: invalid operand for instruction
<br>
vmov r0, s0
<br>
^
<br>
/home/llvm_all/llvm/projects/compiler-rt/lib/builtins/arm/comparesf2.S:221:5:
error: invalid operand for instruction
<br>
vmov r1, s1
<br>
^
<br>
/home/llvm_all/llvm/projects/compiler-rt/lib/builtins/arm/comparesf2.S:224:18:
error: unknown token in expression
<br>
lsls r2, r0, #1
<br>
^
<br>
/home/llvm_all/llvm/projects/compiler-rt/lib/builtins/arm/comparesf2.S:225:18:
error: unknown token in expression
<br>
lsls r3, r1, #1
<br>
^
<br>
/home/llvm_all/llvm/projects/compiler-rt/lib/builtins/arm/comparesf2.S:226:14:
error: unknown token in expression
<br>
movs r0, #0
<br>
^
<br>
/home/llvm_all/llvm/projects/compiler-rt/lib/builtins/arm/comparesf2.S:277:13:
error: unknown token in expression
<br>
cmp r2, #0xff000000
<br>
^
<br>
/home/llvm_all/llvm/projects/compiler-rt/lib/builtins/arm/comparesf2.S:278:5:
error: invalid instruction mnemonic 'ite'
<br>
ite ls
<br>
^~~
<br>
/home/llvm_all/llvm/projects/compiler-rt/lib/builtins/arm/comparesf2.S:279:15:
error: unknown token in expression
<br>
cmpls r3, #0xff000000
<br>
^
<br>
/home/llvm_all/llvm/projects/compiler-rt/lib/builtins/arm/comparesf2.S:280:15:
error: unknown token in expression
<br>
movhi r0, #1
<br>
^
<br>
/home/llvm_all/llvm/projects/compiler-rt/lib/builtins/arm/comparesf2.S:287:2:
error: invalid operand for instruction
<br>
vmov s0, r0
<br>
^
<br>
/home/llvm_all/llvm/projects/compiler-rt/lib/builtins/arm/comparesf2.S:288:2:
error: invalid operand for instruction
<br>
vmov s1, r1
<br>
^
<br>
/home/llvm_all/llvm/projects/compiler-rt/lib/builtins/arm/comparesf2.S:289:2:
error: invalid instruction mnemonic 'b'
<br>
b __unordsf2
<br>
^
<br>
[4/207] Building ASM object
lib/builtins/CMakeFiles/clang_rt.builtins-armhf.dir/arm/clzsi2.S.o
<br>
FAILED:
lib/builtins/CMakeFiles/clang_rt.builtins-armhf.dir/arm/clzsi2.S.o
<br>
/usr/local/myclang/bin/clang -DVISIBILITY_HIDDEN -fno-lto
-std=c11 -fPIC -fno-builtin -fvisibility=hidden
-fomit-frame-pointer -fomit-frame-pointer
-DCOMPILER_RT_ARMHF_TARGET -MD -MT
lib/builtins/CMakeFiles/clang_rt.builtins-armhf.dir/arm/clzsi2.S.o
-MF
lib/builtins/CMakeFiles/clang_rt.builtins-armhf.dir/arm/clzsi2.S.o.d
-o
lib/builtins/CMakeFiles/clang_rt.builtins-armhf.dir/arm/clzsi2.S.o
-c
/home/llvm_all/llvm/projects/compiler-rt/lib/builtins/arm/clzsi2.S
<br>
/home/llvm_all/llvm/projects/compiler-rt/lib/builtins/arm/clzsi2.S:16:2:
error: unknown directive
<br>
.syntax unified
<br>
^
<br>
/home/llvm_all/llvm/projects/compiler-rt/lib/builtins/arm/clzsi2.S:33:2:
error: unknown use of instruction mnemonic without a size suffix
<br>
mov r1, 1
<br>
^
<br>
/home/llvm_all/llvm/projects/compiler-rt/lib/builtins/arm/clzsi2.S:35:2:
error: invalid instruction mnemonic 'lsrs'
<br>
lsrs r2, r0, 16; movne r0, r2; addeq r1, 16
<br>
^~~~
<br>
/home/llvm_all/llvm/projects/compiler-rt/lib/builtins/arm/clzsi2.S:35:19:
error: invalid instruction mnemonic 'movne'
<br>
lsrs r2, r0, 16; movne r0, r2; addeq r1, 16
<br>
^~~~~
<br>
/home/llvm_all/llvm/projects/compiler-rt/lib/builtins/arm/clzsi2.S:35:33:
error: invalid instruction mnemonic 'addeq'
<br>
lsrs r2, r0, 16; movne r0, r2; addeq r1, 16
<br>
^~~~~
<br>
/home/llvm_all/llvm/projects/compiler-rt/lib/builtins/arm/clzsi2.S:36:2:
error: invalid instruction mnemonic 'lsrs'
<br>
lsrs r2, r0, 8; movne r0, r2; addeq r1, 8
<br>
^~~~
<br>
/home/llvm_all/llvm/projects/compiler-rt/lib/builtins/arm/clzsi2.S:36:18:
error: invalid instruction mnemonic 'movne'
<br>
lsrs r2, r0, 8; movne r0, r2; addeq r1, 8
<br>
^~~~~
<br>
/home/llvm_all/llvm/projects/compiler-rt/lib/builtins/arm/clzsi2.S:36:32:
error: invalid instruction mnemonic 'addeq'
<br>
lsrs r2, r0, 8; movne r0, r2; addeq r1, 8
<br>
^~~~~
<br>
/home/llvm_all/llvm/projects/compiler-rt/lib/builtins/arm/clzsi2.S:37:2:
error: invalid instruction mnemonic 'lsrs'
<br>
lsrs r2, r0, 4; movne r0, r2; addeq r1, 4
<br>
^~~~
<br>
/home/llvm_all/llvm/projects/compiler-rt/lib/builtins/arm/clzsi2.S:37:18:
error: invalid instruction mnemonic 'movne'
<br>
lsrs r2, r0, 4; movne r0, r2; addeq r1, 4
<br>
^~~~~
<br>
/home/llvm_all/llvm/projects/compiler-rt/lib/builtins/arm/clzsi2.S:37:32:
error: invalid instruction mnemonic 'addeq'
<br>
lsrs r2, r0, 4; movne r0, r2; addeq r1, 4
<br>
^~~~~
<br>
/home/llvm_all/llvm/projects/compiler-rt/lib/builtins/arm/clzsi2.S:38:2:
error: invalid instruction mnemonic 'lsrs'
<br>
lsrs r2, r0, 2; movne r0, r2; addeq r1, 2
<br>
^~~~
<br>
/home/llvm_all/llvm/projects/compiler-rt/lib/builtins/arm/clzsi2.S:38:18:
error: invalid instruction mnemonic 'movne'
<br>
lsrs r2, r0, 2; movne r0, r2; addeq r1, 2
<br>
^~~~~
<br>
/home/llvm_all/llvm/projects/compiler-rt/lib/builtins/arm/clzsi2.S:38:32:
error: invalid instruction mnemonic 'addeq'
<br>
lsrs r2, r0, 2; movne r0, r2; addeq r1, 2
<br>
^~~~~
<br>
/home/llvm_all/llvm/projects/compiler-rt/lib/builtins/arm/clzsi2.S:40:2:
error: unknown use of instruction mnemonic without a size suffix
<br>
sub r0, r1, r0, lsr #1
<br>
^
<br>
[5/207] Building ASM object
lib/builtins/CMakeFiles/clang_rt.builtins-armhf.dir/arm/clzdi2.S.o
<br>
FAILED:
lib/builtins/CMakeFiles/clang_rt.builtins-armhf.dir/arm/clzdi2.S.o
<br>
/usr/local/myclang/bin/clang -DVISIBILITY_HIDDEN -fno-lto
-std=c11 -fPIC -fno-builtin -fvisibility=hidden
-fomit-frame-pointer -fomit-frame-pointer
-DCOMPILER_RT_ARMHF_TARGET -MD -MT
lib/builtins/CMakeFiles/clang_rt.builtins-armhf.dir/arm/clzdi2.S.o
-MF
lib/builtins/CMakeFiles/clang_rt.builtins-armhf.dir/arm/clzdi2.S.o.d
-o
lib/builtins/CMakeFiles/clang_rt.builtins-armhf.dir/arm/clzdi2.S.o
-c
/home/llvm_all/llvm/projects/compiler-rt/lib/builtins/arm/clzdi2.S
<br>
/home/llvm_all/llvm/projects/compiler-rt/lib/builtins/arm/clzdi2.S:16:2:
error: unknown directive
<br>
.syntax unified
<br>
^
<br>
/home/llvm_all/llvm/projects/compiler-rt/lib/builtins/arm/clzdi2.S:50:2:
error: unknown use of instruction mnemonic without a size suffix
<br>
cmp r1, 0
<br>
^
<br>
/home/llvm_all/llvm/projects/compiler-rt/lib/builtins/arm/clzdi2.S:51:2:
error: invalid instruction mnemonic 'movne'
<br>
movne r0, r1
<br>
^~~~~
<br>
/home/llvm_all/llvm/projects/compiler-rt/lib/builtins/arm/clzdi2.S:53:2:
error: invalid instruction mnemonic 'movne'
<br>
movne r1, 1
<br>
^~~~~
<br>
/home/llvm_all/llvm/projects/compiler-rt/lib/builtins/arm/clzdi2.S:54:2:
error: invalid instruction mnemonic 'moveq'
<br>
moveq r1, 33
<br>
^~~~~
<br>
/home/llvm_all/llvm/projects/compiler-rt/lib/builtins/arm/clzdi2.S:56:2:
error: invalid instruction mnemonic 'lsrs'
<br>
lsrs r2, r0, 16; movne r0, r2; addeq r1, 16
<br>
^~~~
<br>
/home/llvm_all/llvm/projects/compiler-rt/lib/builtins/arm/clzdi2.S:56:19:
error: invalid instruction mnemonic 'movne'
<br>
lsrs r2, r0, 16; movne r0, r2; addeq r1, 16
<br>
^~~~~
<br>
/home/llvm_all/llvm/projects/compiler-rt/lib/builtins/arm/clzdi2.S:56:33:
error: invalid instruction mnemonic 'addeq'
<br>
lsrs r2, r0, 16; movne r0, r2; addeq r1, 16
<br>
^~~~~
<br>
/home/llvm_all/llvm/projects/compiler-rt/lib/builtins/arm/clzdi2.S:57:2:
error: invalid instruction mnemonic 'lsrs'
<br>
lsrs r2, r0, 8; movne r0, r2; addeq r1, 8
<br>
^~~~
<br>
/home/llvm_all/llvm/projects/compiler-rt/lib/builtins/arm/clzdi2.S:57:18:
error: invalid instruction mnemonic 'movne'
<br>
lsrs r2, r0, 8; movne r0, r2; addeq r1, 8
<br>
^~~~~
<br>
/home/llvm_all/llvm/projects/compiler-rt/lib/builtins/arm/clzdi2.S:57:32:
error: invalid instruction mnemonic 'addeq'
<br>
lsrs r2, r0, 8; movne r0, r2; addeq r1, 8
<br>
^~~~~
<br>
/home/llvm_all/llvm/projects/compiler-rt/lib/builtins/arm/clzdi2.S:58:2:
error: invalid instruction mnemonic 'lsrs'
<br>
lsrs r2, r0, 4; movne r0, r2; addeq r1, 4
<br>
^~~~
<br>
/home/llvm_all/llvm/projects/compiler-rt/lib/builtins/arm/clzdi2.S:58:18:
error: invalid instruction mnemonic 'movne'
<br>
lsrs r2, r0, 4; movne r0, r2; addeq r1, 4
<br>
^~~~~
<br>
/home/llvm_all/llvm/projects/compiler-rt/lib/builtins/arm/clzdi2.S:58:32:
error: invalid instruction mnemonic 'addeq'
<br>
lsrs r2, r0, 4; movne r0, r2; addeq r1, 4
<br>
^~~~~
<br>
/home/llvm_all/llvm/projects/compiler-rt/lib/builtins/arm/clzdi2.S:59:2:
error: invalid instruction mnemonic 'lsrs'
<br>
lsrs r2, r0, 2; movne r0, r2; addeq r1, 2
<br>
^~~~
<br>
/home/llvm_all/llvm/projects/compiler-rt/lib/builtins/arm/clzdi2.S:59:18:
error: invalid instruction mnemonic 'movne'
<br>
lsrs r2, r0, 2; movne r0, r2; addeq r1, 2
<br>
^~~~~
<br>
/home/llvm_all/llvm/projects/compiler-rt/lib/builtins/arm/clzdi2.S:59:32:
error: invalid instruction mnemonic 'addeq'
<br>
lsrs r2, r0, 2; movne r0, r2; addeq r1, 2
<br>
^~~~~
<br>
/home/llvm_all/llvm/projects/compiler-rt/lib/builtins/arm/clzdi2.S:61:2:
error: unknown use of instruction mnemonic without a size suffix
<br>
sub r0, r1, r0, lsr #1
<br>
^
<br>
[6/207] Building ASM object
lib/builtins/CMakeFiles/clang_rt.builtins-armhf.dir/arm/divmodsi4.S.o
<br>
FAILED:
lib/builtins/CMakeFiles/clang_rt.builtins-armhf.dir/arm/divmodsi4.S.o
<br>
/usr/local/myclang/bin/clang -DVISIBILITY_HIDDEN -fno-lto
-std=c11 -fPIC -fno-builtin -fvisibility=hidden
-fomit-frame-pointer -fomit-frame-pointer
-DCOMPILER_RT_ARMHF_TARGET -MD -MT
lib/builtins/CMakeFiles/clang_rt.builtins-armhf.dir/arm/divmodsi4.S.o
-MF
lib/builtins/CMakeFiles/clang_rt.builtins-armhf.dir/arm/divmodsi4.S.o.d
-o
lib/builtins/CMakeFiles/clang_rt.builtins-armhf.dir/arm/divmodsi4.S.o
-c
/home/llvm_all/llvm/projects/compiler-rt/lib/builtins/arm/divmodsi4.S
<br>
/home/llvm_all/llvm/projects/compiler-rt/lib/builtins/arm/divmodsi4.S:24:2:
error: unknown directive
<br>
.syntax unified
<br>
^
<br>
/home/llvm_all/llvm/projects/compiler-rt/lib/builtins/arm/divmodsi4.S:28:1:
error: unexpected token at start of statement
<br>
@ int __divmodsi4(int divident, int divisor, int *remainder)
<br>
^
<br>
/home/llvm_all/llvm/projects/compiler-rt/lib/builtins/arm/divmodsi4.S:29:1:
error: unexpected token at start of statement
<br>
@ Calculate the quotient and remainder of the (signed) division.
The return
<br>
^
<br>
/home/llvm_all/llvm/projects/compiler-rt/lib/builtins/arm/divmodsi4.S:30:1:
error: unexpected token at start of statement
<br>
@ value is the quotient, the remainder is placed in the variable.
<br>
^
<br>
/home/llvm_all/llvm/projects/compiler-rt/lib/builtins/arm/divmodsi4.S:46:11:
error: Invalid rounding mode.
<br>
push {r4-r7, lr} ; add r7, sp, #12
<br>
^
<br>
/home/llvm_all/llvm/projects/compiler-rt/lib/builtins/arm/divmodsi4.S:46:36:
error: unknown token in expression
<br>
push {r4-r7, lr} ; add r7, sp, #12
<br>
^
<br>
/home/llvm_all/llvm/projects/compiler-rt/lib/builtins/arm/divmodsi4.S:49:5:
error: invalid instruction mnemonic 'eor'
<br>
eor r4, r0, r1
<br>
^~~
<br>
/home/llvm_all/llvm/projects/compiler-rt/lib/builtins/arm/divmodsi4.S:50:5:
error: unknown use of instruction mnemonic without a size suffix
<br>
mov r5, r0
<br>
^
<br>
/home/llvm_all/llvm/projects/compiler-rt/lib/builtins/arm/divmodsi4.S:51:5:
error: unknown use of instruction mnemonic without a size suffix
<br>
mov r6, r2
<br>
^
<br>
/home/llvm_all/llvm/projects/compiler-rt/lib/builtins/arm/divmodsi4.S:53:5:
error: invalid instruction mnemonic 'eor'
<br>
eor ip, r0, r0, asr #31
<br>
^~~
<br>
/home/llvm_all/llvm/projects/compiler-rt/lib/builtins/arm/divmodsi4.S:54:5:
error: invalid instruction mnemonic 'eor'
<br>
eor lr, r1, r1, asr #31
<br>
^~~
<br>
/home/llvm_all/llvm/projects/compiler-rt/lib/builtins/arm/divmodsi4.S:55:5:
error: unknown use of instruction mnemonic without a size suffix
<br>
sub r0, ip, r0, asr #31
<br>
^
<br>
/home/llvm_all/llvm/projects/compiler-rt/lib/builtins/arm/divmodsi4.S:56:5:
error: unknown use of instruction mnemonic without a size suffix
<br>
sub r1, lr, r1, asr #31
<br>
^
<br>
/home/llvm_all/llvm/projects/compiler-rt/lib/builtins/arm/divmodsi4.S:58:5:
error: invalid instruction mnemonic 'bl'
<br>
bl __udivmodsi4
<br>
^~
<br>
/home/llvm_all/llvm/projects/compiler-rt/lib/builtins/arm/divmodsi4.S:60:5:
error: invalid instruction mnemonic 'ldr'
<br>
ldr r1, [r6]
<br>
^~~
<br>
/home/llvm_all/llvm/projects/compiler-rt/lib/builtins/arm/divmodsi4.S:61:5:
error: invalid instruction mnemonic 'eor'
<br>
eor r0, r0, r4, asr #31
<br>
^~~
<br>
/home/llvm_all/llvm/projects/compiler-rt/lib/builtins/arm/divmodsi4.S:62:5:
error: invalid instruction mnemonic 'eor'
<br>
eor r1, r1, r5, asr #31
<br>
^~~
<br>
/home/llvm_all/llvm/projects/compiler-rt/lib/builtins/arm/divmodsi4.S:63:5:
error: unknown use of instruction mnemonic without a size suffix
<br>
sub r0, r0, r4, asr #31
<br>
^
<br>
/home/llvm_all/llvm/projects/compiler-rt/lib/builtins/arm/divmodsi4.S:64:5:
error: unknown use of instruction mnemonic without a size suffix
<br>
sub r1, r1, r5, asr #31
<br>
^
<br>
/home/llvm_all/llvm/projects/compiler-rt/lib/builtins/arm/divmodsi4.S:65:5:
error: unknown use of instruction mnemonic without a size suffix
<br>
str r1, [r6]
<br>
^
<br>
/home/llvm_all/llvm/projects/compiler-rt/lib/builtins/arm/divmodsi4.S:66:10:
error: Invalid rounding mode.
<br>
pop {r4-r7, pc}
<br>
<br>
<br>
<br>
<br>
<br>
<br>
</div>
<p> <br>
</p>
<p><br>
</p>
<p><br>
</p>
<br>
<div class="moz-cite-prefix">On 04.12.2018 15:54, Peter Smith via
llvm-dev wrote:<br>
</div>
<blockquote
cite="mid:CAEt-8LAk0SU7dTMaWKN8z2+4Unzm10U47gMjGRq6HPS9g-Qw-g@mail.gmail.com"
type="cite">
<div>
<div dir="auto">Hello,</div>
</div>
<div dir="auto"><br>
</div>
<div dir="auto">Just a few quick observations.<br>
</div>
<div dir="auto">- It looks like you may have downloaded the linux
arm toolchain. For bare metal you probably wanted the Arm
embedded toolchain, <a moz-do-not-send="true"
href="https://developer.arm.com/open-source/gnu-toolchain/gnu-rm">https://developer.arm.com/open-source/gnu-toolchain/gnu-rm</a></div>
<div dir="auto">-- That toolchain will have newlib rather than
glibc, I don't know whether it will have one pre-compiled for v4
though. If not you may have to find an older toolchain or build
newlib youtself.</div>
<div dir="auto">- The bare-metal driver in clang (arm-none-eabi)
is not multilib aware and won't put the paths to the libraries
on the link line, the -L flag</div>
<div dir="auto">-- I have found that following the samples in the
gnu embedded toolchain with gcc using the -v flag to get the
paths it is using, then use these with lld.</div>
<div dir="auto"><br>
</div>
<div dir="auto">If you can let us know what problems you are
seeing building compiler-rt then we may be able to help. I'm not
sure there is anyone building it for arm v4 so you may be
hitting new problems. I'm away at a conference today and
tomorrow but I can try later in the week.</div>
<div dir="auto"><br>
</div>
<div dir="auto">Peter</div>
<div><br>
<div class="gmail_quote">
<div dir="ltr">On Tue, 4 Dec 2018 at 12:21, cscheuer via
llvm-dev <<a moz-do-not-send="true"
href="mailto:llvm-dev@lists.llvm.org">llvm-dev@lists.llvm.org</a>>
wrote:<br>
</div>
<blockquote class="gmail_quote" style="margin:0 0 0
.8ex;border-left:1px #ccc solid;padding-left:1ex">I am
currently trying to compile a pretty simple program to work
on an <br>
experimental board. It contains an (FPGA-version of) an
ARMv4 processor.<br>
So basically, I try this (on my Ubuntu 18.04.1 LTS):<br>
clang -v --target=arm-none-eabi -c barehello.c -o
barehelloCLANG.o<br>
clang -v --target=arm-none-eabi -c io.c -o io.o<br>
clang -v --target=arm-none-eabi barehelloCLANG.o io.o -o <br>
helloCLANGstatic -static -fuse-ld=lld<br>
<br>
Which results in<br>
<br>
clang version 8.0.0 (<a moz-do-not-send="true"
href="https://git.llvm.org/git/clang.git/"
rel="noreferrer" target="_blank">https://git.llvm.org/git/clang.git/</a>
<br>
a152c7a4b7ba8f4cb9532ead9a38a7121db43d50) <br>
(<a moz-do-not-send="true"
href="https://git.llvm.org/git/llvm.git/" rel="noreferrer"
target="_blank">https://git.llvm.org/git/llvm.git/</a> <br>
1959ce6f3e01241919968ac1911fd45660239d23)<br>
Target: arm-none-unknown-eabi<br>
Thread model: posix<br>
InstalledDir: /usr/local/my_clang/bin<br>
"/usr/local/my_clang/bin/ld.lld" barehelloCLANG.o io.o
-Bstatic <br>
-L/usr/local/my_clang/lib/clang/8.0.0/lib/baremetal -lc -lm
<br>
-lclang_rt.builtins-arm.a -o helloCLANGstatic<br>
ld.lld: error: unable to find library -lc<br>
ld.lld: error: unable to find library -lm<br>
ld.lld: error: unable to find library
-lclang_rt.builtins-arm.a<br>
clang-8: error: ld.lld command failed with exit code 1 (use
-v to see <br>
invocation)<br>
<br>
on the linking part. I downloaded a sysroot from <br>
<a moz-do-not-send="true"
href="https://developer.arm.com/open-source/gnu-toolchain/gnu-a/downloads/8-2-2018-08"
rel="noreferrer" target="_blank">https://developer.arm.com/open-source/gnu-toolchain/gnu-a/downloads/8-2-2018-08</a>
<br>
and tried to include it via --sysroot=/my/path/to/it, but
clang acted <br>
unimpressed with the same errors. So I'm missing
clang_rt.builtins-arm.a <br>
I guess, but that does not exist on my system.<br>
So next, I tried basically every version of "how to
cross-compile <br>
llvm/clang/compiler-rt" That google came up with, but was
not able to <br>
get a single one to actually work. Any ideas how to get this
running?<br>
Thanks in advance!<br>
_______________________________________________<br>
LLVM Developers mailing list<br>
<a moz-do-not-send="true"
href="mailto:llvm-dev@lists.llvm.org" target="_blank">llvm-dev@lists.llvm.org</a><br>
<a moz-do-not-send="true"
href="http://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-dev"
rel="noreferrer" target="_blank">http://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-dev</a><br>
</blockquote>
</div>
</div>
<br>
<fieldset class="mimeAttachmentHeader"></fieldset>
<br>
<pre wrap="">_______________________________________________
LLVM Developers mailing list
<a class="moz-txt-link-abbreviated" href="mailto:llvm-dev@lists.llvm.org">llvm-dev@lists.llvm.org</a>
<a class="moz-txt-link-freetext" href="http://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-dev">http://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-dev</a>
</pre>
</blockquote>
<br>
</body>
</html>