Displaying 20 results from an estimated 500 matches similar to: "Build error"
2017 Aug 26
2
building release_50 with gcc7.2.0 on MacOS: duplicate symbol llvm::DominatorTreeBase
This is release_50 branch of git,
sha1: f1d5723be3f9456a6b16cdf687847ac2918846de
Using gcc 7.2.0 from homebrew.
$ CC=/usr/local/opt/gcc/bin/x86_64-apple-darwin16.7.0-gcc-7
CXX=/usr/local/opt/gcc/bin/x86_64-apple-darwin16.7.0-g++-7 cmake ..
-DCMAKE_BUILD_TYPE=Release -DCMAKE_INSTALL_PREFIX=/Users/andy/local/llvm5
-DCMAKE_PREFIX_PATH=/Users/andy/local/llvm5
$ make VERBOSE=1
[ 92%] Linking CXX
2015 Aug 24
4
Error building llvm
Trying to run make to build llvm, I faced the following error:
Linking CXX shared library ../../lib/libLTO.so
collect2: error: ld returned 1 exit status
make[2]: *** [lib/libLTO.so.3.8.0svn] Error 1
make[1]: *** [tools/lto/CMakeFiles/LTO.dir/all] Error 2
make: *** [all] Error 2
So, what's the problem here?
Regards,
Marwa Yusuf
Teaching Assistant - Computer Engineering Department
2015 Nov 30
3
difference with autotools, cmake and ninja building methods
2015-11-30 12:58 GMT+08:00 Chris Bieneman <beanz at apple.com>:
> The autotools build system is officially deprecated and will be removed in a
> future release.
>
> CMake is the recommended configuration system, but it is only a
> configuration system. It generates build files for multiple different build
> systems. One of the most popular build systems is Ninja. You cannot
2015 Dec 01
4
difference with autotools, cmake and ninja building methods
2015-12-01 1:20 GMT+08:00 Chris Bieneman <beanz at apple.com>:
>
> On Nov 29, 2015, at 9:09 PM, 慕冬亮 <mudongliangabcd at gmail.com> wrote:
>
> 2015-11-30 12:58 GMT+08:00 Chris Bieneman <beanz at apple.com>:
>
> The autotools build system is officially deprecated and will be removed in a
> future release.
>
> CMake is the recommended configuration system,
2020 Mar 28
2
LLD issue on a massively parallel build machine
Hi,
On a 1296-core Intel machine with 376 GB, setting
-DLLVM_PARALLEL_LINK_JOB=1
does not help (switching back to ld scales) see:
[5085/5201] Linking CXX executable bin/clang-11
FAILED: bin/clang-11
: && /home/usr4/c74014i/opt/clang/current/bin/clang++ -stdlib=libc++ -fPIC
-fvisibility-inlines-hidden -Werror=date-time
-Werror=unguarded-availability-new -Wall -Wextra
2020 Mar 28
3
LLD issue on a massively parallel build machine
Alex :
Can you please try `numactl` or `taskset` after https://github.com/llvm/llvm-project/commit/09158252f777c2e2f06a86b154c44abcbcf9bb74 ?
There was a tiny bug in how sched_getaffinity() was used, see: https://reviews.llvm.org/D75153#1942336
De : Alex Brachet-Mialot <alexbrachetmialot at gmail.com>
Envoyé : March 28, 2020 12:11 PM
À : Itaru Kitayama <itaru.kitayama at gmail.com>
2020 Mar 28
2
LLD issue on a massively parallel build machine
Hi,
My configuration is below:
cmake -GNinja -DLLVM_ENABLE_LLD=ON -DLLVM_ENABLE_THREADS=OFF
-DLLVM_ENABLE_LIBCXX=ON -DCMAKE_BUILD_TYPE=Release
-DGCC_INSTALL_PREFIX=/home/usr4/c74014i/opt/gcc-7.5.0/
-DLIBOMPTARGET_ENABLE_DEBUG=ON
-DCMAKE_INSTALL_PREFIX=$HOME/opt/clang/${today} -DCMAKE_C_COMPILER=clang
-DCMAKE_C_FLAGS="" -DCMAKE_CXX_COMPILER=clang++ -DCMAKE_CXX_FLAGS=""
2020 Mar 28
3
LLD issue on a massively parallel build machine
$ free -g
total used free shared buff/cache
available
Mem: 376 149 20 1 207
225
Swap: 3 0 3
Too small swap size for a 72-core login machine?
On Sun, Mar 29, 2020 at 4:28 AM Alex Brachet-Mialot <
alexbrachetmialot at gmail.com> wrote:
> Enable threads is for building llvm with
2019 Jun 06
2
clang: error: linker command failed due to signal (use -v to see invocation)
~/Documents/llvm-project/build$ ninja
After over 2,000 files compiled.
[25/1074] Linking CXX executable bin/llvm-lto
FAILED: bin/llvm-lto
: && /usr/bin/clang++ -fPIC -fvisibility-inlines-hidden
-Werror=date-time -Werror=unguarded-availability-new -std=c++11 -Wall
-Wextra -Wno-unused-parameter -Wwrite-strings -Wcast-qual
-Wmissing-field-initializers -pedantic -Wno-long-long
2020 Mar 28
2
LLD issue on a massively parallel build machine
That is slowing down the build visibly, for the speed I should stick with
ld at the moment.
On Sun, Mar 29, 2020 at 4:42 AM Alexandre Ganea <alexandre.ganea at ubisoft.com>
wrote:
> Would `taskset -c 0-3 ninja check-all -j4` work?
>
>
>
> *De :* Itaru Kitayama <itaru.kitayama at gmail.com>
> *Envoyé :* March 28, 2020 3:37 PM
> *À :* Alex Brachet-Mialot
2020 Mar 28
2
LLD issue on a massively parallel build machine
Good news, I was able to use up to 37 cores for LLVM build with LLD.
The build speed, did not measure precisely though, is comparable to the
build with GNU ld case.
Thank you all for your help!
On Sun, Mar 29, 2020 at 5:04 AM Alex Brachet-Mialot <
alexbrachetmialot at gmail.com> wrote:
> Yes unfortunately that would limit you to 4 cores.
>
> There’s no easy way to use lld with
2020 Apr 01
4
LLD issue on a massively parallel build machine
On 2020-03-29, Nemanja Ivanovic via llvm-dev wrote:
>Glad you got it working.
>My suggestion about LLVM_ENABLE_THREADS didn't work because you didn't
>apply it when building the build linker.
>
>When you don't have the ability to rebuild the build compiler, this doesn't
>apply. In those cases, I end up doing a dirty hack where I use a wrapper
>script with
2020 Apr 01
2
LLD issue on a massively parallel build machine
On 04/01/2020 01:47 PM, Itaru Kitayama via llvm-dev wrote:
> Thanks for the heads up the supercomputer
> Is down for maintenance this week.
> I’ll give it a try when it gets back.
>
This doesn't look to me like it's necessarily an lld issue. Trying
to build all the sub-projects without limiting the number of ninja jobs
is almost guaranteed to run out of memory on a machine
2020 Apr 01
2
LLD issue on a massively parallel build machine
On another login node which is 256 (GB)/48 (nodes) JURECA at JSC, I never
had an LLD issue without setting -j when executing ninja
in the past few weeks.
On Thu, Apr 2, 2020 at 7:17 AM Itaru Kitayama <itaru.kitayama at gmail.com>
wrote:
> Tom,
> Then what ratio do you think it’s minimal?
>
> On Thu, Apr 2, 2020 at 6:11 Tom Stellard <tstellar at redhat.com> wrote:
>
2010 Jun 05
1
[LLVMdev] undefined reference when using llvm-config
On Sat, Jun 5, 2010 at 3:18 AM, Duncan Sands <baldrick at free.fr> wrote:
> Hi Tom,
>
> I'm pretty sure that the LLVMContext constructor is defined in libLLVMCore.a
> What is the output of `llvm-config --libs bitwriter`? Does it include
> -lLLVMCore?
Hi Duncan,
e0082888 at e0082888-laptop:~$ local/bin/llvm-config --libs bitwriter
-lLLVMBitWriter -lLLVMCore -lLLVMSupport
2010 Jun 05
0
[LLVMdev] undefined reference when using llvm-config
Hi Tom,
> I'm trying to start a project based on llvm, but am running into some
> difficulties. I started with the 'LLVM Project Guide', but got hung
> up in the complexities of configure.ac. I'm now using llvm-config to
> provide the linker directives, but this results in undefined
> references:
>
> $ llvm-g++ `$HOME/local/bin/llvm-config --cppflags
2016 Feb 11
5
issues with split llvm libraries and llvmpipe and failing to load library
Hey,
So in Fedora rawhide we are now building llvm 3.7.1 into the lots of
little shared libraries format.
However I'm running into a major problem with the fact that sometimes
dlclose isn't dropping all the LLVM libraries from the address space
of the process.
We have a sequence like this:
a) X server asks mesa gbm library to init, it loads the
kms_swrast_dri.so with
2010 Jun 04
2
[LLVMdev] undefined reference when using llvm-config
I'm trying to start a project based on llvm, but am running into some
difficulties. I started with the 'LLVM Project Guide', but got hung
up in the complexities of configure.ac. I'm now using llvm-config to
provide the linker directives, but this results in undefined
references:
$ llvm-g++ `$HOME/local/bin/llvm-config --cppflags --ldflags --libs
bitwriter` ModuleMaker.cpp
2010 Sep 30
2
[LLVMdev] CMake "sudo make install" & headers
Hi Oscar,
I tried that but it didn't work. However, it did work fine on Linux for me so I am now a bit confused.
Here is the output from $ sudo make install
Install the project...
-- Install configuration: "Release"
-- Installing: /usr/local/llvm-2.8/lib/libLLVMSupport.a
-- Installing: /usr/local/llvm-2.8/lib/libLLVMSystem.a
-- Installing: /usr/local/llvm-2.8/lib/libLLVMCore.a
--
2010 Sep 30
0
[LLVMdev] CMake "sudo make install" & headers
Samuel Williams <space.ship.traveller at gmail.com> writes:
> I might just be doing something stupid, but when I do
>
> $ cmake -DCMAKE_INSTALL_PREFIX=/usr/local/llvm-2.8 -DCMAKE_BUILD_TYPE=Release ..
> $ sudo make install
>
> I don't get the expected headers in
> /usr/local/llvm-2.8/include/llvm
>
> It is simply an empty directory.
It works fine for me on