Displaying 9 results from an estimated 9 matches for "myclang".
2018 Dec 13
2
Compiling for baremetal ARMv4 on Ubuntu Linux
..., that way it worked out! The final cmake was
cmake -G "Ninja" ../llvm/projects/compiler-rt/
-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...
2018 Dec 14
3
Compiling for baremetal ARMv4 on Ubuntu Linux
...orked out! The final cmake was
> >
> > cmake -G "Ninja" ../llvm/projects/compiler-rt/ -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...
2019 Feb 04
2
Compiling for baremetal ARMv4 on Ubuntu Linux
...use-ld=lld
> clang version 8.0.0 (https://git.llvm.org/git/clang.git/
> a152c7a4b7ba8f4cb9532ead9a38a7121db43d50)
> (https://git.llvm.org/git/llvm.git/
> 1959ce6f3e01241919968ac1911fd45660239d23)
> Target: armv6-none-unknown-eabi
> Thread model: posix
> InstalledDir: /usr/local/myclang/bin
> "/usr/local/myclang/bin/ld.lld" -lclang_rt.builtins.arm
> barehelloCLANG.o io.o -Bstatic
> -L/usr/local/myclang/lib/clang/8.0.0/lib/baremetal
> -L/home/llvm_all/buildrecipe/lib/clang/8.0.0/armv6m-none-eabi -lc -lm
> -lclang_rt.builtins-armv6.a -o helloCLANGstatic
&g...
2018 Dec 10
2
Compiling for baremetal ARMv4 on Ubuntu Linux
...nueabihf hello.c -o hello -fuse-ld=lld
clang version 8.0.0 (https://git.llvm.org/git/clang.git/
a152c7a4b7ba8f4cb9532ead9a38a7121db43d50)
(https://git.llvm.org/git/llvm.git/
1959ce6f3e01241919968ac1911fd45660239d23)
Target: arm-unknown-linux-gnueabihf
Thread model: posix
InstalledDir: /usr/local/myclang/bin
Found candidate GCC installation: /usr/lib/gcc-cross/arm-linux-gnueabihf/7
Found candidate GCC installation:
/usr/lib/gcc-cross/arm-linux-gnueabihf/7.3.0
Selected GCC installation: /usr/lib/gcc-cross/arm-linux-gnueabihf/7.3.0
Candidate multilib: .;@m32
Selected multilib: .;@m32
"/usr/lo...
2019 Mar 04
2
Compiling for baremetal ARMv4 on Ubuntu Linux
Hello Christian,
I'd expect that adding the library paths (-L) from gcc -v should fix
the unable to find -lc, -lm but it won't fix the
-lclang_rt.builtins-armv6m.a . To get clang_rt.builtins-armv6m.a you
will need to cross compile compiler-rt for v6m and copy it to
/usr/local/myclang/lib/clang/8.0.0/lib/baremetal . Beware that
building compiler-rt for v6m does need quite a bit of fighting cmake
(https://llvm.org/docs/HowToCrossCompileBuiltinsOnArm.html). Your
alternative if you already have a libgcc.a is to use --nostdlib or
--nodefaultlibs to stop the driver adding -lm -lc
-lc...
2019 Mar 11
2
Compiling for baremetal ARMv4 on Ubuntu Linux
...> where ARMEABI5GCC=/home/crichter/Downloads/gcc-arm-none-eabi-5_4-2016q3/arm-none-eabi is from the sysroot download site you gave me back then.
>
> That resulted in a libclang_rt.builtins.a file which I considered to be the right one to use now, but neither copying it into
> /usr/local/myclang/lib/clang/8.0.0/lib/baremetal (which did not exist before, only /linux was present already) or adding another .a behind the name helped the linker, nor did adding a -l<path-to-libclang_rt.builtins.a>. Did I
> build the wrong one or am I using it incorrectly?
>
> The part about the in...
2018 Dec 07
2
Compiling for baremetal ARMv4 on Ubuntu Linux
...BuiltinsOnArm.html which lead to
this cmake:
cmake -G "Ninja" ../llvm/projects/compiler-rt/
-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...
2018 Dec 04
2
Compiling for baremetal ARMv4 on Ubuntu Linux
I am currently trying to compile a pretty simple program to work on an
experimental board. It contains an (FPGA-version of) an ARMv4 processor.
So basically, I try this (on my Ubuntu 18.04.1 LTS):
clang -v --target=arm-none-eabi -c barehello.c -o barehelloCLANG.o
clang -v --target=arm-none-eabi -c io.c -o io.o
clang -v --target=arm-none-eabi barehelloCLANG.o io.o -o
helloCLANGstatic -static
2013 Jan 25
1
[LLVMdev] -V error
When I build llvm using llvm/clang as opposed to gcc I get the following:
configure:2921: $? = 0
configure:2928: /home/rkotler/myclang/bin/clang++ -V >&5
clang: error: argument to '-V' is missing (expected 1 value)
clang: error: no input files
configure:2931: $? = 1
configure:2934: checking whether we are using the GNU C++ compiler