Aleksander Alekseev via llvm-dev
2016-Mar-17 06:10 UTC
[llvm-dev] Trunk: LLVM build is failing with a lot of `undefined reference` errors
> Try checking out libcxxabi as well.It helped, thanks. But I have another problem now. Regression tests don't pass: http://paste.ubuntu.com/15406485/ Also I discovered that build process sometimes consumes about 10 Gb of RAM. Luckily I have total 16 Gb of RAM. Still I had to close Google Chrome and kill KVM guest systems to compile a project. I think its just an insanity. -- Best regards, Aleksander Alekseev http://eax.me/
Evgeny Astigeevich via llvm-dev
2016-Mar-17 10:23 UTC
[llvm-dev] Trunk: LLVM build is failing with a lot of `undefined reference` errors
Hi Aleksander, By default the build type is Debug. It uses a lot of memory because object files contain debug information. Each linking process consumes up to 4 GB of memory. Ninja runs several linking processes at the same time. If you want to build debug builds and work with them I recommend you to have 32 GB or more for comfortable work. Solutions to memory problems: 1. Build a release version giving the following to cmake: -DCMAKE_BUILD_TYPE=Release Other options for type are RelWithDebInfo and MinSizeRel. And of course Debug. 2. Use gold instead of ld for linking. The failed tests are MemorySanitizer tests. They were failing on Ubuntu 14.04 during preparation of 3.8.0 release. I don't know their current status. I think you can ignore this if you are not going to use MemorySanitizer. Kind regards, Evgeny Astigeevich -----Original Message----- From: Aleksander Alekseev [mailto:afiskon at devzen.ru] Sent: 17 March 2016 06:11 To: llvm-dev Cc: Evgeny Astigeevich Subject: Re: [llvm-dev] Trunk: LLVM build is failing with a lot of `undefined reference` errors> Try checking out libcxxabi as well.It helped, thanks. But I have another problem now. Regression tests don't pass: http://paste.ubuntu.com/15406485/ Also I discovered that build process sometimes consumes about 10 Gb of RAM. Luckily I have total 16 Gb of RAM. Still I had to close Google Chrome and kill KVM guest systems to compile a project. I think its just an insanity. -- Best regards, Aleksander Alekseev http://eax.me/
Aleksander Alekseev via llvm-dev
2016-Mar-17 17:36 UTC
[llvm-dev] Trunk: LLVM build is failing with a lot of `undefined reference` errors
Hello, Eugeny Thanks for your answer.> The failed tests are MemorySanitizer tests. They were failing on > Ubuntu 14.04 during preparation of 3.8.0 release. I don't know their > current status. I think you can ignore this if you are not going to > use MemorySanitizer.I discovered that same regression tests are broken not only in trunk bat also in RELEASE_380/final (as you mentioned) and RELEASE_371/final. You see, I wanted to test sanitizers from latests LLVM releases (which are unavailable out of the box on Ubuntu 14.04) on our project. It is the reason why I'm compiling LLVM from source in the first place. Maybe you could recommend a relatively fresh LLVM release where all sanitizers are still working? -- Best regards, Aleksander Alekseev http://eax.me/