Alexandre Isoard via llvm-dev
2016-Sep-06 22:37 UTC
[llvm-dev] Recommended computer resources to build llvm
And again... LLVM_BUILD_LLVM_DYLIB:BOOL=ON LLVM_LINK_LLVM_DYLIB:BOOL=ON This one is the good one... maybe. On Tue, Sep 6, 2016 at 11:35 PM, Alexandre Isoard < alexandre.isoard at gmail.com> wrote:> That is because I mistyped it: > LLVM_ENABLE_LLVM_DYLIB:BOOL=ON > LLVM_LINK_LLVM_DYLIB:BOOL=ON > > On Tue, Sep 6, 2016 at 11:31 PM, Wink Saville <wink at saville.com> wrote: > >> 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_LINK_DYLIB >> >> >> -- Build files have been written to: /home/wink/foss/llvm.3.9.0/build >> > > > > -- > *Alexandre Isoard* >-- *Alexandre Isoard* -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20160906/26e6dbba/attachment.html>
Piotr Padlewski via llvm-dev
2016-Sep-06 22:48 UTC
[llvm-dev] Recommended computer resources to build llvm
I usually work on release+asserts build, which is much faster and doesn't require that much RAM as Debug/RelWithDebInfo build. I only build debug when I need it :) Also lowering jobs for linking is very helpful when building with debug/LTO etc. On Tue, Sep 6, 2016 at 3:37 PM, Alexandre Isoard via llvm-dev < llvm-dev at lists.llvm.org> wrote:> And again... > LLVM_BUILD_LLVM_DYLIB:BOOL=ON > LLVM_LINK_LLVM_DYLIB:BOOL=ON > > This one is the good one... maybe. > > On Tue, Sep 6, 2016 at 11:35 PM, Alexandre Isoard < > alexandre.isoard at gmail.com> wrote: > >> That is because I mistyped it: >> LLVM_ENABLE_LLVM_DYLIB:BOOL=ON >> LLVM_LINK_LLVM_DYLIB:BOOL=ON >> >> On Tue, Sep 6, 2016 at 11:31 PM, Wink Saville <wink at saville.com> wrote: >> >>> 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_LINK_DYLIB >>> >>> >>> -- Build files have been written to: /home/wink/foss/llvm.3.9.0/build >>> >> >> >> >> -- >> *Alexandre Isoard* >> > > > > -- > *Alexandre Isoard* > > _______________________________________________ > LLVM Developers mailing list > llvm-dev at lists.llvm.org > http://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-dev > >-------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20160906/ff558e86/attachment.html>
Wink Saville via llvm-dev
2016-Sep-06 22:51 UTC
[llvm-dev] Recommended computer resources to build llvm
@prazek, can you share your cmake and or ninja command line? Actually are most people using -G Ninja for cmake as the documentation suggests? On Tue, Sep 6, 2016 at 3:48 PM, Piotr Padlewski <prazek at google.com> wrote:> I usually work on release+asserts build, which is much faster and doesn't > require that much RAM as Debug/RelWithDebInfo build. I only build debug when > I need it :) > Also lowering jobs for linking is very helpful when building with debug/LTO > etc. > > On Tue, Sep 6, 2016 at 3:37 PM, Alexandre Isoard via llvm-dev > <llvm-dev at lists.llvm.org> wrote: >> >> And again... >> LLVM_BUILD_LLVM_DYLIB:BOOL=ON >> LLVM_LINK_LLVM_DYLIB:BOOL=ON >> >> This one is the good one... maybe. >> >> On Tue, Sep 6, 2016 at 11:35 PM, Alexandre Isoard >> <alexandre.isoard at gmail.com> wrote: >>> >>> That is because I mistyped it: >>> LLVM_ENABLE_LLVM_DYLIB:BOOL=ON >>> LLVM_LINK_LLVM_DYLIB:BOOL=ON >>> >>> On Tue, Sep 6, 2016 at 11:31 PM, Wink Saville <wink at saville.com> wrote: >>>> >>>> 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_LINK_DYLIB >>>> >>>> >>>> -- Build files have been written to: /home/wink/foss/llvm.3.9.0/build >>> >>> >>> >>> >>> -- >>> Alexandre Isoard >> >> >> >> >> -- >> Alexandre Isoard >> >> _______________________________________________ >> LLVM Developers mailing list >> llvm-dev at lists.llvm.org >> http://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-dev >> >
Wink Saville via llvm-dev
2016-Sep-06 22:56 UTC
[llvm-dev] Recommended computer resources to build llvm
I'll give it a try on the next build, txs again. On Tue, Sep 6, 2016 at 3:37 PM, Alexandre Isoard <alexandre.isoard at gmail.com> wrote:> And again... > LLVM_BUILD_LLVM_DYLIB:BOOL=ON > LLVM_LINK_LLVM_DYLIB:BOOL=ON > > This one is the good one... maybe. > > On Tue, Sep 6, 2016 at 11:35 PM, Alexandre Isoard > <alexandre.isoard at gmail.com> wrote: >> >> That is because I mistyped it: >> LLVM_ENABLE_LLVM_DYLIB:BOOL=ON >> LLVM_LINK_LLVM_DYLIB:BOOL=ON >> >> On Tue, Sep 6, 2016 at 11:31 PM, Wink Saville <wink at saville.com> wrote: >>> >>> 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_LINK_DYLIB >>> >>> >>> -- Build files have been written to: /home/wink/foss/llvm.3.9.0/build >> >> >> >> >> -- >> Alexandre Isoard > > > > > -- > Alexandre Isoard
Wink Saville via llvm-dev
2016-Sep-06 23:04 UTC
[llvm-dev] Recommended computer resources to build llvm
So with this cmake command line: $ cmake -G Ninja .. -DCMAKE_INSTALL_PREFIX=/home/wink/opt/llvm -DLLVM_PARALLEL_LINK_JOBS=2 And then running the build with "time ninja" took 21min: $ time ninja ... [3345/3481] Building C object tools/llvm-c-test/CMakeFiles/llvm-c-test.dir/metadata.c.o In file included from ../tools/llvm-c-test/llvm-c-test.h:17:0, from ../tools/llvm-c-test/metadata.c:15: ../include/llvm-c/Core.h:83:23: warning: enumerator value for ‘LLVMNonLazyBind’ is not an integer constant expression [-Wpedantic] LLVMNonLazyBind = 1 << 31 ^ [3481/3481] Linking CXX executable bin/opt real 20m57.995s user 182m51.022s sys 7m36.690s For maybe 20 seconds 100% of RAM was used while compiling and then twice during linking it was 95-98% so overall not to bad. I'm now going to try "time ninja check-all" I'll report back what happens. Thanks everyone for the assistance!!! -- Wink On Tue, Sep 6, 2016 at 3:56 PM, Wink Saville <wink at saville.com> wrote:> I'll give it a try on the next build, txs again. > > On Tue, Sep 6, 2016 at 3:37 PM, Alexandre Isoard > <alexandre.isoard at gmail.com> wrote: >> And again... >> LLVM_BUILD_LLVM_DYLIB:BOOL=ON >> LLVM_LINK_LLVM_DYLIB:BOOL=ON >> >> This one is the good one... maybe. >> >> On Tue, Sep 6, 2016 at 11:35 PM, Alexandre Isoard >> <alexandre.isoard at gmail.com> wrote: >>> >>> That is because I mistyped it: >>> LLVM_ENABLE_LLVM_DYLIB:BOOL=ON >>> LLVM_LINK_LLVM_DYLIB:BOOL=ON >>> >>> On Tue, Sep 6, 2016 at 11:31 PM, Wink Saville <wink at saville.com> wrote: >>>> >>>> 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_LINK_DYLIB >>>> >>>> >>>> -- Build files have been written to: /home/wink/foss/llvm.3.9.0/build >>> >>> >>> >>> >>> -- >>> Alexandre Isoard >> >> >> >> >> -- >> Alexandre Isoard
Robinson, Paul via llvm-dev
2016-Sep-06 23:48 UTC
[llvm-dev] Recommended computer resources to build llvm
Re-add llvm-dev, which keeps getting lost in my replies...> -----Original Message----- > From: Robinson, Paul > Sent: Tuesday, September 06, 2016 4:05 PM > To: 'Wink Saville'; Alexandre Isoard > Subject: RE: [llvm-dev] Recommended computer resources to build llvm > > I recently ran into a problem trying to build a debug version for the > first time in ages, on a similar spec machine running Ubuntu 16.04. > It turns out Ubuntu is defaulting to BFD ld, and if I switch it to gold > then the memory problems magically go away. > HTH, > --paulr > > > -----Original Message----- > > From: llvm-dev [mailto:llvm-dev-bounces at lists.llvm.org] On Behalf Of > Wink > > Saville via llvm-dev > > Sent: Tuesday, September 06, 2016 3:56 PM > > To: Alexandre Isoard > > Cc: llvm-dev > > Subject: Re: [llvm-dev] Recommended computer resources to build llvm > > > > I'll give it a try on the next build, txs again. > > > > On Tue, Sep 6, 2016 at 3:37 PM, Alexandre Isoard > > <alexandre.isoard at gmail.com> wrote: > > > And again... > > > LLVM_BUILD_LLVM_DYLIB:BOOL=ON > > > LLVM_LINK_LLVM_DYLIB:BOOL=ON > > > > > > This one is the good one... maybe. > > > > > > On Tue, Sep 6, 2016 at 11:35 PM, Alexandre Isoard > > > <alexandre.isoard at gmail.com> wrote: > > >> > > >> That is because I mistyped it: > > >> LLVM_ENABLE_LLVM_DYLIB:BOOL=ON > > >> LLVM_LINK_LLVM_DYLIB:BOOL=ON > > >> > > >> On Tue, Sep 6, 2016 at 11:31 PM, Wink Saville <wink at saville.com> > wrote: > > >>> > > >>> 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_LINK_DYLIB > > >>> > > >>> > > >>> -- Build files have been written to: > /home/wink/foss/llvm.3.9.0/build > > >> > > >> > > >> > > >> > > >> -- > > >> Alexandre Isoard > > > > > > > > > > > > > > > -- > > > Alexandre Isoard > > _______________________________________________ > > LLVM Developers mailing list > > llvm-dev at lists.llvm.org > > http://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-dev