Displaying 16 results from an estimated 16 matches for "dcmake_crosscompil".
2015 Mar 29
2
[LLVMdev] How to Cross Compile libcompiler_rt Static Library?
...;:
> I am cross-compiling compiler-rt for my specific use-case. That said,
> I'm cross-compiling from x86-64 to x86-64, but for a different ABI.
> This is what I use:
>
>
> https://github.com/NuxiNL/cloudlibc/wiki/Building-runtime-libraries#user-content-compiler-rt
>
> -DCMAKE_CROSSCOMPILING=True
>
> As you can see, I'm using CMake. Works pretty well so far. Hopefully
> something like this will work for you as well?
>
I tried "cmake ../compiler-rt -DCMAKE_C_COMPILER=clang
-DCMAKE_CXX_COMPILER=clang++ -DLLVM_NATIVE_ARCH=ARM
-DLLVM_TARGETS_TO_BUILD=ARM -DTARGET_...
2015 Mar 29
2
[LLVMdev] How to Cross Compile libcompiler_rt Static Library?
Hi,
I've cross-compiled musl-libc to arm binaries with clang. It needs
functions from static runtime library "libcompiler_rt.a". I tried to build
compile_rt outside the llvm source tree. Using command like "make
clang_linux", I can easily build "libcompiler_rt.a" for my host machine,
which is X86_64. But how can I *cross-compile* the compiler_rt runtime
2015 Mar 29
2
[LLVMdev] How to Cross Compile libcompiler_rt Static Library?
...c use-case. That said,
>>> I'm cross-compiling from x86-64 to x86-64, but for a different ABI.
>>> This is what I use:
>>>
>>>
>>> https://github.com/NuxiNL/cloudlibc/wiki/Building-runtime-libraries#user-content-compiler-rt
>>>
>>> -DCMAKE_CROSSCOMPILING=True
>>>
>>> As you can see, I'm using CMake. Works pretty well so far. Hopefully
>>> something like this will work for you as well?
>>>
>>
>> I tried "cmake ../compiler-rt -DCMAKE_C_COMPILER=clang
>> -DCMAKE_CXX_COMPILER=clang++ -D...
2016 May 05
2
LLVM cross compilation for arm target
...llvm-clang tool chain for *arm target* by following the steps
from
http://clang.llvm.org/docs/CrossCompilation.html
*However when I tried following cmake command for build tool chain it gives
the error message :*
#CC='clang' CXX='clang++' cmake -G Ninja /home/iiita/llvm-exp/llvm
-DCMAKE_CROSSCOMPILING=True
-DCMAKE_INSTALL_PREFIX=/home/iiita/llvm-exp/llvm/build
-DLLVM_TABLEGEN=/usr/bin/host/llvm-tblgen
-DCLANG_TABLEGEN=/usr/bin/host/clang-tblgen
-DLLVM_DEFAULT_TARGET_TRIPLE=arm-linux-gnueabihf -DLLVM_TARGET_ARCH=ARM
-DLLVM_TARGETS_TO_BUILD=ARM -DCMAKE_CXX_FLAGS='-target
armv7a-linux-gnueab...
2020 Jun 09
2
Cross compile x64 to AArch64 issues
...o cross compile release-10.x to AArch64
(target=aarch64-linux-gnu), and the directions listed at [1] are not
completing the initial cmake step. I'm currently running Manjaro,
with the aarch64-linux-gnu package (and associated binutils, headers,
and glibc packages). My cmake command is
cmake -DCMAKE_CROSSCOMPILING=True -DCMAKE_INSTALL_PREFIX=`realpath
install` -DLLVM_TABLEGEN=`realpath
../build-10.x/install/bin/llvm-tblgen`
-DLLVM_DEFAULT_TARGET_TRIPLE=aarch64-linux-gnu
-DLLVM_TARGET_ARCH=AArch64 -DLLVM_TARGETS_TO_BUILD=AArch64
-DCMAKE_CXX_FLAGS="-target aarch64-linux-gnu
--sysroot=/usr/aarch64-linux...
2016 May 06
3
build issue in llvm-clang cross tool chain for arm target
...host now I am now building toolchain for *arm target*.
However, I am getting below error message which seems to be confusing and
not getting any idea how to resolve this issue.
*Command :*
#CC='clang' CXX='clang++' cmake -G Ninja /home/iiita/crossbuild/llvm
-DLLVM_ENABLE_LIBCXX=ON -DCMAKE_CROSSCOMPILING=True
-DCMAKE_INSTALL_PREFIX=/home/iiita/crossbuild/build
-DLLVM_TABLEGEN=/home/iiita/llvm-3.8/build/bin/llvm-tblgen
-DCLANG_TABLEGEN=/home/iiita/llvm-3.8/build/bin/clang-tblgen
-DLLVM_DEFAULT_TARGET_TRIPLE=arm-linux-gnueabihf -DLLVM_TARGET_ARCH=ARM
-DLLVM_TARGETS_TO_BUILD=ARM -DCMAKE_CXX_FLAGS=&...
2016 Apr 25
2
bug: cross-compile Clang/LLVM for ARM using Clang/LLVM
...s very much!
Best,
Liyang
2016-04-25 18:33 GMT+08:00 Renato Golin <renato.golin at linaro.org>:
> On 25 April 2016 at 10:39, 李阳 via llvm-dev <llvm-dev at lists.llvm.org>
> wrote:
>
>> CC='clang' CXX='clang++' cmake -G Ninja ../llvm-source-code
>> -DCMAKE_CROSSCOMPILING=True
>> -DCMAKE_INSTALL_PREFIX=./llvm
>> -DLLVM_TABLEGEN=/home/lab/workspace/llvm/build4x86/bin/llvm-tblgen
>> -DCLANG_TABLEGEN=/home/lab/workspace/llvm/build4x86/bin/clang-tblgen
>> -DLLVM_DEFAULT_TARGET_TRIPLE=arm-linux-gnueabihf
>> -DLLVM_TARGET_ARCH=ARM
>>...
2013 Dec 17
2
[LLVMdev] compiler-rt for ARM-Linux with CMake?
...ETS_TO_BUILD=ARM \
-DLLVM_DEFAULT_TARGET_TRIPLE=arm-none-linux-gnueabi \
-DLLVM_TARGET_ARCH=arm-none-linux-gnueabi \
-DCMAKE_C_COMPILER=`which arm-none-linux-gnueabi-gcc` \
-DCMAKE_CXX_COMPILER=`which arm-none-linux-gnueabi-g++` \
-DLLVM_EXTERNAL_COMPILER_RT_SOURCE_DIR=../compiler-rt \
-DCMAKE_CROSSCOMPILING=True \
-DLLVM_TABLEGEN=`pwd`/../release/ship/bin/llvm-tblgen
$ ninja install
As a sanity-check, I was expecting to see a 'lib' directory for the
sanitizers in 'lib/clang/3.5', but there's only an 'include'
directory.
For Android, I've used the toolchain file i...
2016 Apr 25
2
bug: cross-compile Clang/LLVM for ARM using Clang/LLVM
Hi James, renato,
So how do I download the missing ARM libraries on Ubuntu14.04? I cannot
find any available libraries.
Best,
Liyang
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20160425/04dfc553/attachment.html>
2017 Oct 31
3
Cross compiling for Baremetal ARM without using GCC
...I got this error,
TARGET_TRIPLE=arm-none-eabi
MYHOSTBIN=${HOME}/clang/source/build_x64/bin
MYGNUARM_ROOT=${HOME}/opt/gcc-arm-none-eabi-6-2017-q2-update
MYCFLAGS="--specs=nosys.specs -mcpu=cortex-m4 -mthumb -mfloat-abi=softfp -mfpu=fpv4-sp-d16"
cmake -G "Ninja" \
-DCMAKE_CROSSCOMPILING=True \
-DCMAKE_BUILD_TYPE=Release \
-DCMAKE_INSTALL_PREFIX=${HOME}/clang/toInstall \
-DLLVM_TABLEGEN=${MYHOSTBIN}/llvm-tblgen \
-DCLANG_TABLEGEN=${MYHOSTBIN}/clang-tblgen \
-DLLVM_DEFAULT_TARGET_TRIPLE=arm-none-eabi \...
2014 Apr 22
2
[LLVMdev] SCEV and induction variable identification
Hi Fellows,
The goal is to find the induction variable for a loop, where the
induction variable increments with the multiplication, division or shift
operations, like this one:
sz = 8;
do {
... ...
sz = sz / 2;
} while (sz)
Is SCEV capable of detecting the induction variable 'sz' in this case?
The code snippet I am using to solve the problem is
for each basic-block in a
2019 Jun 08
2
Help Building LLVM for Android
Hey Guys,
I'm working on a project in Android related to System-level Audio DSP
Effects for Tuning Android Audio. I want to leverage Faust (
https://faust.grame.fr/) to allow users to program their own filters.
Faust provides a libfaust implementation which includes a JIT Compiler
which leverages LLVM and seems to be the best path for me to use.
Unfortunately I'm having problems
2018 Feb 06
2
libc++ cross-compile linux-armv7 and math function problems
...S=-fPIC -DPIC -mfloat-abi=hard -march=armv7-a -Os -mfpu=vfpv3-d16
--sysroot=<path>
LDFLAGS=-static-libgcc --sysroot=<path>
then run cmake:
cmake -GNinja -DLIBCXXABI_USE_LLVM_UNWINDER=ON DLLVM_TARGET_ARCH=ARM
-DLLVM_DEFAULT_TARGET_TRIPLE=arm-linux-gnueabihf
-DLLVM_TARGETS_TO_BUILD=ARM -DCMAKE_CROSSCOMPILING=True ..
This errors out as shown below. It's like it's missing some definitions of
different math functions that I can't seem to be able to see anywhere else.
Is this a known problem? Or is it something with my compiler / toolchain
setup that creates this problem?
Thanks for any as...
2018 Feb 06
0
libc++ cross-compile linux-armv7 and math function problems
...=hard -march=armv7-a -Os -mfpu=vfpv3-d16 --sysroot=<path>
> LDFLAGS=-static-libgcc --sysroot=<path>
>
> then run cmake:
>
> cmake -GNinja -DLIBCXXABI_USE_LLVM_UNWINDER=ON DLLVM_TARGET_ARCH=ARM -DLLVM_DEFAULT_TARGET_TRIPLE=arm-linux-gnueabihf -DLLVM_TARGETS_TO_BUILD=ARM -DCMAKE_CROSSCOMPILING=True ..
>
> This errors out as shown below. It's like it's missing some definitions of different math functions that I can't seem to be able to see anywhere else. Is this a known problem? Or is it something with my compiler / toolchain setup that creates this problem?
>
&g...
2018 Feb 06
1
libc++ cross-compile linux-armv7 and math function problems
...16
> --sysroot=<path>
> > LDFLAGS=-static-libgcc --sysroot=<path>
> >
> > then run cmake:
> >
> > cmake -GNinja -DLIBCXXABI_USE_LLVM_UNWINDER=ON DLLVM_TARGET_ARCH=ARM
> -DLLVM_DEFAULT_TARGET_TRIPLE=arm-linux-gnueabihf
> -DLLVM_TARGETS_TO_BUILD=ARM -DCMAKE_CROSSCOMPILING=True ..
> >
> > This errors out as shown below. It's like it's missing some definitions
> of different math functions that I can't seem to be able to see anywhere
> else. Is this a known problem? Or is it something with my compiler /
> toolchain setup that create...
2018 Feb 05
0
Cross-compiling libc++ to linux-armv7hf gives undefined symbols in cmath / math.h
...S=-fPIC -DPIC -mfloat-abi=hard -march=armv7-a -Os -mfpu=vfpv3-d16
--sysroot=<path>
LDFLAGS=-static-libgcc --sysroot=<path>
then run cmake:
cmake -GNinja -DLIBCXXABI_USE_LLVM_UNWINDER=ON DLLVM_TARGET_ARCH=ARM
-DLLVM_DEFAULT_TARGET_TRIPLE=arm-linux-gnueabihf
-DLLVM_TARGETS_TO_BUILD=ARM -DCMAKE_CROSSCOMPILING=True ..
This errors out as shown below. It's like it's missing some definitions of
different math functions that I can't seem to be able to see anywhere else.
Is this a known problem? Or is it something with my compiler / toolchain
setup that creates this problem?
Thanks for any as...