LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 11-15-2019, 05:09 AM   #16
USUARIONUEVO
Senior Member
 
Registered: Apr 2015
Posts: 2,335

Rep: Reputation: 930Reputation: 930Reputation: 930Reputation: 930Reputation: 930Reputation: 930Reputation: 930Reputation: 930

Quote:
Originally Posted by nobodino View Post
read carefully what I wrote.
I work with:
- slackware64-current
- plasma
- multilib,

and nothing else. no testing kernel.

And I try to rebuild plasma: SFS purpose.
qt5 is the first not building in the deps packages.
I have only 8 Go of RAM, is it suffisant?
If you try to build under "live" , no ... not suffisant... i remember some time try under my machine 16gb in live mode ... NO SPACE.

8GB in live , to build qt5 .... thats the problem.
 
Old 11-15-2019, 06:07 AM   #17
nobodino
Senior Member
 
Registered: Jul 2010
Location: Near Bordeaux in France
Distribution: slackware, slackware from scratch, LFS, slackware [arm], linux Mint...
Posts: 1,564

Original Poster
Rep: Reputation: 892Reputation: 892Reputation: 892Reputation: 892Reputation: 892Reputation: 892Reputation: 892
I don't build in live. My current system has been upgraded to plasma with kde removed as advised by Alien Bob.
 
Old 11-15-2019, 06:57 AM   #18
Didier Spaier
LQ Addict
 
Registered: Nov 2008
Location: Paris, France
Distribution: Slint64-15.0
Posts: 11,057

Rep: Reputation: Disabled
Quote:
Originally Posted by nobodino View Post
I have only 8 Go of RAM, is it suffisant?
No. For Slint I ended up building Qt 5.13.2 with a 32G swap file. Maybe an overkill, but 8G is certainly not enough. It at first failed to build on my laptop that has 8G RAM.

Last edited by Didier Spaier; 11-15-2019 at 08:35 AM.
 
Old 11-16-2019, 01:45 AM   #19
nobodino
Senior Member
 
Registered: Jul 2010
Location: Near Bordeaux in France
Distribution: slackware, slackware from scratch, LFS, slackware [arm], linux Mint...
Posts: 1,564

Original Poster
Rep: Reputation: 892Reputation: 892Reputation: 892Reputation: 892Reputation: 892Reputation: 892Reputation: 892
I finally got it built, it was without X, in a lonely console. The limit is really above 8 Go.
A question: is there a way to limit the memory usage during the building of a package?

Last edited by nobodino; 11-16-2019 at 03:49 AM.
 
Old 11-17-2019, 02:13 AM   #20
TheRealGrogan
Member
 
Registered: Oct 2010
Location: Ontario, Canada
Distribution: Slackware, LFS, Manjaro (for gaming)
Posts: 570

Rep: Reputation: 413Reputation: 413Reputation: 413Reputation: 413Reputation: 413
One way to reduce memory usage for a build like that, would be to reduce the number of jobs. By default, ninja will use numprocs +2 so a quad core with hyperthreading would be -j10

Just add a -j value to the ninja command in your SlackBuild. e.g.

Code:
ninja -j4 -C builds/Release64
It will obviously take longer, but use less memory and run cooler.
 
1 members found this post helpful.
Old 11-17-2019, 02:35 AM   #21
Skaendo
Senior Member
 
Registered: Dec 2014
Location: West Texas, USA
Distribution: Slackware64-14.2
Posts: 1,445

Rep: Reputation: Disabled
Quote:
Originally Posted by Didier Spaier View Post
For Slint I ended up building Qt 5.13.2 with a 32G swap file. Maybe an overkill, but 8G is certainly not enough. It at first failed to build on my laptop that has 8G RAM.
I have been building 5.13.1 with -j8, 8GB RAM and a 16GB Swap.
 
Old 11-17-2019, 02:39 AM   #22
Skaendo
Senior Member
 
Registered: Dec 2014
Location: West Texas, USA
Distribution: Slackware64-14.2
Posts: 1,445

Rep: Reputation: Disabled
Quote:
Originally Posted by TheRealGrogan View Post
Just add a -j value to the ninja command in your SlackBuild. e.g.

Code:
ninja -j4 -C builds/Release64
Would using
Code:
ninja -j4 -n5 -C builds/Release64
help any there (with ninja)?
 
Old 11-17-2019, 04:45 AM   #23
TheRealGrogan
Member
 
Registered: Oct 2010
Location: Ontario, Canada
Distribution: Slackware, LFS, Manjaro (for gaming)
Posts: 570

Rep: Reputation: 413Reputation: 413Reputation: 413Reputation: 413Reputation: 413
Quote:
Originally Posted by Skaendo View Post
Would using
Code:
ninja -j4 -n5 -C builds/Release64
help any there (with ninja)?


Perhaps you mean -l5? That would limit the number of jobs according to load average. -n is "dry run"

Code:
[grogan@getstuffed:~]$ ninja --help
usage: ninja [options] [targets...]

if targets are unspecified, builds the 'default' target (see manual).

options:
  --version      print ninja version ("1.9.0")
  -v, --verbose  show all command lines while building

  -C DIR   change to DIR before doing anything else
  -f FILE  specify input build file [default=build.ninja]

  -j N     run N jobs in parallel (0 means infinity) [default=10 on this system]
  -k N     keep going until N jobs fail (0 means infinity) [default=1]
  -l N     do not start new jobs if the load average is greater than N
  -n       dry run (don't run commands but act like they succeeded)

  -d MODE  enable debugging (use '-d list' to list modes)
  -t TOOL  run a subtool (use '-t list' to list subtools)
    terminates toplevel options; further flags are passed to the tool
  -w FLAG  adjust warnings (use '-w list' to list warnings)
 
1 members found this post helpful.
Old 11-17-2019, 05:09 AM   #24
Skaendo
Senior Member
 
Registered: Dec 2014
Location: West Texas, USA
Distribution: Slackware64-14.2
Posts: 1,445

Rep: Reputation: Disabled
Quote:
Originally Posted by TheRealGrogan View Post
Perhaps you mean -l5? That would limit the number of jobs according to load average. -n is "dry run"
Yep, you are correct. I was thinking -l. Don't know where I got n from.
 
Old 11-24-2019, 02:26 AM   #25
nobodino
Senior Member
 
Registered: Jul 2010
Location: Near Bordeaux in France
Distribution: slackware, slackware from scratch, LFS, slackware [arm], linux Mint...
Posts: 1,564

Original Poster
Rep: Reputation: 892Reputation: 892Reputation: 892Reputation: 892Reputation: 892Reputation: 892Reputation: 892
upgraded to 16 Go RAM this week end, qt5 builds fine now.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] QT5 failed build from sbopkg Gugur Slackware 5 03-08-2018 02:01 AM
[SOLVED] Can't Build qt5 with slackrepo in VM bilbod Slackware 15 05-03-2017 02:30 AM
QT5 won't build, don't understand error message Ook Slackware 2 10-26-2015 02:21 PM
[SOLVED] SBo + sbopkg, qt5 build parallel a4z Slackware 3 10-12-2014 11:54 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 11:42 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration