Displaying 18 results from an estimated 18 matches for "dcmake_ar".
2018 May 06
2
Cannot compile LLVM suite with clang+lld
...VM, clang, lld and libcxx
installed (prebuilt against libstdc++). Now I want a "pure"
llvm toolchain.
The following options were used:
-DBOOTSTRAP_LLVM_ENABLE_LLD
-DCMAKE_C_COMPILER=clang
-DCMAKE_CXX_COMPILER=clang++
-DCMAKE_LINKER=lld
-DCMAKE_LINK_EXECUTABLE="/usr/bin/ld.lld"
-DCMAKE_AR="/usr/bin/llvm-ar"
-DCMAKE_AS="/usr/bin/llvm-as"
-DCLANG_DEFAULT_LINKER=lld
-DCLANG_DEFAULT_RTLIB=compiler-rt
-DCLANG_ENABLE_BOOTSTRAP=ON
-DLIBCXX_USE_COMPILER_RT=ON
-DLIBCXXABI_USE_COMPILER_RT=ON
-DLLVM_ENABLE_LLD=ON
-DLLVM_ENABLE_LIBCXX=ON
However, the build fails with (many...
2019 Sep 03
2
Struggling with a PGO build of clang -- llvm-profdata was built without zlib support?
...bin/clang \
-DLLVM_USE_LINKER=/path/to/release_build/bin/ld.lld \
-DLLVM_CCACHE_BUILD=ON \
-DLLVM_BUILD_INSTRUMENTED=IR \
-DLLVM_BUILD_RUNTIME=No \
-DLLVM_ENABLE_ZLIB=1 \
-DCMAKE_BUILD_TYPE=Release \
-DLLVM_ENABLE_LTO=Thin \
-DCMAKE_RANLIB=/path/to/release_build/bin/llvm-ranlib \
-DCMAKE_AR=/path/to/release_build/bin/llvm-ar
I tried this without specifying zlib being enabled, without thinlto,
everything I could come up with really.
* Built a debug Clang with the following configuration:
cmake -G Ninja ../llvm \
-DCMAKE_BUILD_TYPE=Debug \
-DLLVM_ENABLE_PROJECTS='clang' \...
2018 May 06
0
Cannot compile LLVM suite with clang+lld
...t against libstdc++). Now I want a "pure"
> llvm toolchain.
>
> The following options were used:
> -DBOOTSTRAP_LLVM_ENABLE_LLD
> -DCMAKE_C_COMPILER=clang
> -DCMAKE_CXX_COMPILER=clang++
> -DCMAKE_LINKER=lld
> -DCMAKE_LINK_EXECUTABLE="/usr/bin/ld.lld"
> -DCMAKE_AR="/usr/bin/llvm-ar"
> -DCMAKE_AS="/usr/bin/llvm-as"
> -DCLANG_DEFAULT_LINKER=lld
> -DCLANG_DEFAULT_RTLIB=compiler-rt
> -DCLANG_ENABLE_BOOTSTRAP=ON
> -DLIBCXX_USE_COMPILER_RT=ON
> -DLIBCXXABI_USE_COMPILER_RT=ON
> -DLLVM_ENABLE_LLD=ON
> -DLLVM_ENABLE_LIBCXX=...
2019 Sep 03
2
Struggling with a PGO build of clang -- llvm-profdata was built without zlib support?
...> -DLLVM_CCACHE_BUILD=ON \
>> -DLLVM_BUILD_INSTRUMENTED=IR \
>> -DLLVM_BUILD_RUNTIME=No \
>> -DLLVM_ENABLE_ZLIB=1 \
>> -DCMAKE_BUILD_TYPE=Release \
>> -DLLVM_ENABLE_LTO=Thin \
>> -DCMAKE_RANLIB=/path/to/release_build/bin/llvm-ranlib \
>> -DCMAKE_AR=/path/to/release_build/bin/llvm-ar
>>
>> I tried this without specifying zlib being enabled, without thinlto,
>> everything I could come up with really.
>>
>> * Built a debug Clang with the following configuration:
>> cmake -G Ninja ../llvm \
>> -DCMAKE_B...
2016 Sep 20
4
(Thin)LTO llvm build
The configuration we’re mentioning is a 2-stage bootstrap: You need first to build without LTO your own clang, and then use it for the LTO build.
—
Mehid
> On Sep 20, 2016, at 10:17 AM, Michael Kruse <llvmdev at meinersbur.de> wrote:
>
> I am the author of Polly's/ISL's platform tests and could reproduce
> the problem on my system with this error message:
>
>
2016 Sep 26
2
(Thin)LTO llvm build
...FF \
> -DLLVM_INCLUDE_TESTS=OFF \
> -DLLVM_BUILD_DOCS=OFF \
> -DLLVM_INCLUDE_DOCS=OFF \
> -DLLVM_ENABLE_DOXYGEN=OFF \
> -DLLVM_ENABLE_SPHINX=OFF \
> -DLLDB_DISABLE_PYTHON=ON \
> -DCLANG_PLUGIN_SUPPORT=OFF \
> -DLLVM_ENABLE_LTO=Thin \
> -DCMAKE_AR=$PREFIX/bin/llvm-ar \
> -DCMAKE_RANLIB=$PREFIX/bin/llvm-ranlib
>
> $ ninja -j4
> /usr/bin/ld: error: Could not create temporary file: Too many open files
>
ThinLTO needs to create as many temporary files as there are input modules
to the link. From your 'ls' below, it do...
2016 Sep 27
4
(Thin)LTO llvm build
On Tue, Sep 27, 2016 at 6:53 AM, Mehdi Amini <mehdi.amini at apple.com> wrote:
>
>
> > On Sep 27, 2016, at 2:18 AM, Carsten Mattner <carstenmattner at gmail.com>
> wrote:
> >
> >> On Mon, Sep 26, 2016 at 11:02 PM, Teresa Johnson <tejohnson at google.com>
> wrote:
> >> I'll either need to get a reproducer from you and/or try to repro
2018 Dec 13
2
Compiling for baremetal ARMv4 on Ubuntu Linux
...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_PATH=/usr/loca...
2018 Dec 14
3
Compiling for baremetal ARMv4 on Ubuntu Linux
...l 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_PATH=/usr/local/mycl...
2020 Sep 14
2
Cross compiling for ARMv7-m
Hi Peter,
On Wed, 26 Feb 2020 at 18:37, Peter Smith via llvm-dev
<llvm-dev at lists.llvm.org> wrote:
>
> Hello Arslan,
>
> > I am guessing I can borrow libraries such as lc and lm from GCC
> > arm-none-eabi*, but for clang_rt.builtins-arm.a (which I thought
> > should've been built with LLVM build but I couldn't find that library
> > in my build
2019 Feb 04
2
Compiling for baremetal ARMv4 on Ubuntu Linux
...>>>
> >>> 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_PATH=/usr/local/mycl...
2019 Mar 04
2
Compiling for baremetal ARMv4 on Ubuntu Linux
...! 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_PATH=/usr/local/mycl...
2016 Dec 20
0
(Thin)LTO llvm build
> On Dec 20, 2016, at 5:49 AM, Carsten Mattner via llvm-dev <llvm-dev at lists.llvm.org> wrote:
>
> Hi again, Teresa.
>
> Looks like I had forgotten to report back with success
> when finally building 3.9.0 in ThinLTO linker mode
> back in October. Sorry about that and thanks for
> helping me out. I know how important it is to get
> success reports as well, as a
2018 Dec 10
2
Compiling for baremetal ARMv4 on Ubuntu Linux
...oot and
--gcc-toolchain:
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_PATH=/usr/loca...
2016 Sep 10
3
(Thin)LTO llvm build
On Sat, Sep 10, 2016 at 6:25 PM, Mehdi Amini <mehdi.amini at apple.com> wrote:
>
>> On Sep 10, 2016, at 3:03 AM, Carsten Mattner via llvm-dev <llvm-dev at lists.llvm.org> wrote:
>>
>> I tried building llvm, clang, lld, lldb from the 3.9 svn release
>> branch with LTO, and some of the results were unexpected.
>>
>> I first tried to rebuild llvm
2019 Mar 11
2
Compiling for baremetal ARMv4 on Ubuntu Linux
...! 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_PATH=/usr/local/mycl...
2018 Dec 07
2
Compiling for baremetal ARMv4 on Ubuntu Linux
...hich 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_CONFIG_PATH=/usr/loca...
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