search for: dcmake_install_prefix

Displaying 20 results from an estimated 264 matches for "dcmake_install_prefix".

2019 Mar 25
3
Trying to create a pure LLVM toolchain on musl based distribution
...PROJECTS. Also, I don't want to create a all-in-one package. Then, once I'm able to build program with clang, I'll rebuild all using clang instead of gcc. # LLVM I've built LLVM using the following configuration: -DCMAKE_BUILD_TYPE=Release -DBUILD_SHARED_LIBS=On -DCMAKE_INSTALL_PREFIX=/usr -DLLVM_HOST_TRIPLE=x86_64-linux-musl -DLLVM_ENABLE_RTTI=On # compiler-rt I've needed to disable xray/sanitizers otherwise it didn't build on musl. -DCMAKE_BUILD_TYPE=Release -DCMAKE_INSTALL_PREFIX=/usr -DCOMPILER_RT_BUILD_BUILTINS=On -DCOMPILER_RT_BUILD...
2018 Feb 15
1
llvm-6.0.0rc2: fatal error: clang/Basic/Version.h: No such file or directory
...ay? At the end of the day, the way these packages get installed is via system package managers is independently, each project finding its dependencies with the standard prefix path. When I compile from source it's always like this: $ cd llvm-6.0.0rc2.src/ $ mkdir build $ cd build $ cmake .. -DCMAKE_INSTALL_PREFIX=$HOME/local -DCMAKE_PREFIX_PATH=$HOME/local -DCMAKE_BUILD_TYPE=Release $ make install $ cd cfe-6.0.0rc2.src/ $ mkdir build $ cd build $ cmake .. -DCMAKE_INSTALL_PREFIX=$HOME/local -DCMAKE_PREFIX_PATH=$HOME/local -DCMAKE_BUILD_TYPE=Release $ make install $ cd lld-6.0.0rc2.src/ $ mkdir build $ cd b...
2017 Aug 05
3
Cross compiling C++ program
...s from trunk and projects/tools repos checkout under llvm - clang-6.0 compiles "Hello World" - make check-all fails (not sure I'm not causing it) - make install creates everything under PREFIX # cmake -G 'Unix Makefiles' -DCMAKE_BUILD_TYPE=Release -DLLVM_TARGETS_TO_BUILD=X86 -DCMAKE_INSTALL_PREFIX=/tmp/x86-sysroot ../../source/llvm # make -j4 # make install It was fun learning how to manualy compile compiler for the first time. Now how to cross compile for bare? Given that I have musl-1.1.16 directory and that I'm preseeding sysroot with: # rm -rf /tmp/barearm-sysroot # mkdir -p /tmp/b...
2016 Sep 06
5
Recommended computer resources to build llvm
...PM, Alexandre Isoard >> <alexandre.isoard at gmail.com> wrote: >> > LLVM_ENABLE_DYLIB >> >> Where/when/how do you specify LLVM_ENABLE_DYLIB and LLVM_LINK_DYLIB? >> >> I tried the following on the cmake command line: >> >> $ cmake -G Ninja .. -DCMAKE_INSTALL_PREFIX=/home/wink/opt/llvm >> -DLLVM_ENABLE_DYLIB=true -DLLVM_LINK_DYLIB=true >> >> >> And got: >> ... >> -- Performing Test CXX_SUPPORTS_NO_NESTED_ANON_TYPES_FLAG - Failed >> -- Configuring done >> -- Generating done >> CMake Warning: >> Manua...
2019 Apr 13
2
Failed to replace stdlibc++ with libc++, linker phase error
On 04/12/2019 06:31 PM, Tom Stellard via llvm-dev wrote: > On 04/12/2019 04:28 PM, AiChi via llvm-dev wrote: >> Hi, >> >> I'm currently working on one of my team's project to build LLVM full clang toolchain (Clang, libcxx, libcxxabi) on a CentOS machine. >> >> Previously we compiled our codebase with llvm-toolset-7/clang++, which by default takes stdlibc++
2014 Feb 27
2
[LLVMdev] compiler-rt CMake build
On Wed, Feb 26, 2014 at 9:58 PM, Brad King <brad.king at kitware.com> wrote: > On 02/26/2014 12:43 PM, Alexey Samsonov wrote: > > Do you think it makes sense to land my ExternalProject_Add patch > > so that others can experiment with it? I can add quit with a > > fatal_error/warning if the build tree rules are generated with Ninja. > > Since it is conditional on
2019 Jan 01
3
llvm-config deprecation
My build process: $ cd llvm/ $ mkdir build $ cd build $ cmake .. -DCMAKE_INSTALL_PREFIX=$HOME/local -DCMAKE_PREFIX_PATH=$HOME/local -DCMAKE_BUILD_TYPE=Release -DLLVM_EXPERIMENTAL_TARGETS_TO_BUILD="WebAssembly;AVR;RISCV" -DLLVM_ENABLE_LIBXML2=OFF $ make install $ cd clang/ $ mkdir build $ cd build $ cmake .. -DCMAKE_INSTALL_PREFIX=$HOME/local -DCMAKE_PREFIX_PATH=$HOME/local...
2015 Oct 20
4
Building llvm so it can be installed by other users
...vm/include/llvm" I was wondering if it's possible to build llvm in such a way that all of these files contain relative paths. It would be perfect for me if the above line, and all other generated makefile paths, would read like this: "../common/include/llvm" I tried setting -DCMAKE_INSTALL_PREFIX, but it picked up the full path- I wasn't sure how to tell it to keep the path relative. Thanks for any help you can give! --David -------------- next part -------------- A non-text attachment was scrubbed... Name: smime.p7s Type: application/pkcs7-signature Size: 2863 bytes Desc: not availab...
2016 Sep 06
2
Recommended computer resources to build llvm
On Tue, Sep 6, 2016 at 3:05 PM, Alexandre Isoard <alexandre.isoard at gmail.com> wrote: > LLVM_ENABLE_DYLIB Where/when/how do you specify LLVM_ENABLE_DYLIB and LLVM_LINK_DYLIB? I tried the following on the cmake command line: $ cmake -G Ninja .. -DCMAKE_INSTALL_PREFIX=/home/wink/opt/llvm -DLLVM_ENABLE_DYLIB=true -DLLVM_LINK_DYLIB=true And got: ... -- Performing Test CXX_SUPPORTS_NO_NESTED_ANON_TYPES_FLAG - Failed -- Configuring done -- Generating done CMake Warning: Manually-specified variables were not used by the project: LLVM_ENABLE_DYLIB LLVM_LI...
2015 Oct 21
3
Building llvm so it can be installed by other users
...to install and use clang and the required headers and libraries, without having to build from scratch. The install path for a given user would be, e.g., /home/USERNAME/build/common/ So for example, clang would be installed to /home/USERNAME/build/common/bin. When I did my initial build, I set -DCMAKE_INSTALL_PREFIX to the "common" path above, but the Makefiles and cmake_makefiles that were generated have a full path (/home/dlobron/build/common), which of course is not portable to other users if they were to do a "make install". Is it possible to set DCMAKE_INSTALL_PREFIX (or another varia...
2017 Aug 19
1
Which is the best compiler to build LLVM 5.0.0 rc2?
...es during the compilation. I have been trying out some other compilers. gcc 5.2 with -std=c++11 This works, although there are still some warnings. gcc 6.4 and gcc 7.1 fail with errors such as this in building libcxxabi as follows: Command: /opt/cmake/bin/cmake -G "Unix Makefiles" -DCMAKE_INSTALL_PREFIX=/home/fletcher/LLVM/llvm-5.0.rc2/local_71 -DCMAKE_C_COMPILER=/opt/gcc-7.1/bin/gcc CMAKE_CXX_COMPILER=/opt/gcc-7.1/bin/g++ -DCMAKE_BUILD_TYPE=Release -DLLVM_BUILD_LLVM_DYLIB=ON -DLLVM_TARGETS_TO_BUILD="host" -DCMAKE_CXX_FLAGS="-std=c++11 -I/opt/gcc-7.1/include/c++/7.1.0" -DCMAKE_...
2016 Oct 21
4
llvm build failed on Fedora 24
Hi, I'm try to build llvm on my PC but it failed. I'm using following command, $ cmake -G "Ninja" ../llvm -DCMAKE_INSTALL_PREFIX=prefix=$INSTALL_PATH -DCMAKE_BUILD_TYPE=Release -DLLVM_ENABLE_ASSERTIONS=On $ ninja-build -j 2 I have skipped libcxx and libcxxabi package. It shows below error, 00:04:23 [3261/3430] Building CXX object tools/clang/tools/libclang/CMakeFiles/libclang.dir/CIndexCXX.cpp.o 00:04:30 [3262/3430] Buil...
2019 Mar 02
2
error building LLVM opt tool under Cygwin
...make -DMAKE_INSTALL_PREFIX=..../llvm-project/install -P > > cmake_Install.cmake" and it ran for a long time, but I couldn't tell > > what it actually did. eg I couldn't see any directory called > > ..../llvm=project/install" > > The correct option is "-DCMAKE_INSTALL_PREFIX=..."; like you would expect, > it's supposed to set the install prefix. > > -Eli > _______________________________________________ > LLVM Developers mailing list > llvm-dev at lists.llvm.org > https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-dev > --------------...
2018 Nov 26
2
Have LLD and Clang in their correct locations, but still can't generate project files for LLVM
I ran CMake on the command line with this command: " cmake .. -DCMAKE_INSTALL_PREFIX=../install_x64 -T host=x64 -G "Visual Studio 15 2017 Win64" -DLLVM_EXPERIMENTAL_TARGETS_TO_BUILD=WebAssembly " And I have LLD and Clang where they should be. But I still couldn't generate project files. The path to the build and installation directories don't have spaces a...
2014 Mar 21
2
[LLVMdev] compiler-rt CMake build
...endency. CMake, Make or a > package manager, it wouldn't matter which you used for this part (I've > used Make for this). Ultimately, you want to end up with a top-level > build that performs the following: > > mkdir -p llvm/out && cd llvm/out > cmake .. -DCMAKE_INSTALL_PREFIX=ship > ninja check-all install > cd - > > mkdir -p compiler-rt/out && cd compiler-rt/out > cmake .. -DCMAKE_PREFIX_PATH=`pwd`/../../llvm/out/ship > -DCMAKE_INSTALL_PREFIX=ship > ninja check-all install > cd - > > mkdir -p clang/out &...
2015 Aug 27
2
Windows build broken for me since r246156
...didn't seem to fix it. Neither did several more recent updates (I'm currently building at 246208). The specific error is at the end of this log: http://104.154.46.123:8010/builders/win-64-trunk/builds/75/steps/Build%20LLVM%20Release/logs/stdio My build procedure looks like this: cmake -DCMAKE_INSTALL_PREFIX=../llvm-install -DLLVM_ENABLE_TERMINFO=OFF -DLLVM_TARGETS_TO_BUILD=X86;ARM;NVPTX;AArch64;Mips -DLLVM_ENABLE_ASSERTIONS=ON -DLLVM_BUILD_32_BITS=OFF -DCMAKE_BUILD_TYPE=Release../llvm/ -G 'Visual Studio 12 Win64' MSBuild.exe /m /t:Build /p:Configuration="Debug" .\ALL_BUILD.vcxp...
2016 Jan 25
3
Building LLVM 3.7.1 on OS X
Hello, I haven't found any relevant info in the docs about this. I'm trying to build LLVM 3.7.1 on OS X but it fails in the configuration phase. Here are the relevant parts of the output: $ cmake -DCMAKE_INSTALL_PREFIX=/Volumes/HD2/jenkins/workspace/LLVMDev/label/osxbuild/miniconda/envs/_build -DCMAKE_BUILD_TYPE=Release -DLLVM_TARGETS_TO_BUILD=host -DLLVM_INCLUDE_TESTS=OFF -DLLVM_INCLUDE_UTILS=OFF -DLLVM_INCLUDE_DOCS=OFF -DLLVM_INCLUDE_EXAMPLES=OFF .. -- The C compiler identification is AppleClang 4.1.0.4211166 -...
2016 Feb 19
3
undefined reference to typeinfo for CmpInst
..." CC="/dist/gcc-4.8.2/bin/gcc" #-DBUILD_SHARED_LIBS="ON" \ cmake -G "Unix Makefiles" \ -DCMAKE_CXX_FLAGS="-fno-rtti" \ -DCMAKE_C_FLAGS="-fno-rtti" \ -DCMAKE_CXX_COMPILER=$CXX \ -DCMAKE_C_COMPILER=$CC \ -DCMAKE_BUILD_TYPE=$CMAKE_BUILD_TYPE \ -DCMAKE_INSTALL_PREFIX=$CMAKE_INSTALL_PREFIX \ -DLLVM_TARGETS_TO_BUILD=$LLVM_TARGETS_TO_BUILD \ $SRC
2016 Aug 03
2
trunk check-all failing on Linux using compiler-rt and libcxx
Posting to the list first, rather than filing a bug because I'm not sure this is still an intended configuration: With LLVM configured as: CXX=clang++ CC=clang cmake ../llvm/ \ -DCMAKE_BUILD_TYPE=Release \ -DCMAKE_INSTALL_PREFIX=~/install/llvm-master/ \ -DLLVM_TARGETS_TO_BUILD=host \ -DLLVM_ENABLE_ASSERTIONS=true \ -DLLVM_ENABLE_LIBCXX=yes \ -DLLVM_ENABLE_LIBCXXABI=yes The check-all target is failing to compile the interception tests: /home/sdowney/bld/llvm-master/llvm/projects/compiler-rt/lib/interception/tests/intercept...
2017 May 01
2
Problem with Polly build
...ge, I also do a clean build with CMake+make with r301734 and it >> is ok. Could you provide more details? >> >> Thanks >> Hongbin > > My CMake parameters: > > ${CMake} \ > -DCMAKE_BUILD_TYPE="Release" \ > -DCMAKE_INSTALL_PREFIX:PATH=${InstallDir} \ > -DCMAKE_C_COMPILER=${GCCDir}/bin/gcc \ > -DCMAKE_C_FLAGS="-m64" \ > -DCMAKE_CXX_COMPILER=${GCCDir}/bin/g++ \ > -DCMAKE_CXX_FLAGS="-m64" \ > -DPYTHON_EXECUTABLE=${PythonDir}/bin/p...