Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
gcc 6.4 compile on tmpfs [solved]
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Portage & Programming
View previous topic :: View next topic  
Author Message
snIP3r
l33t
l33t


Joined: 21 May 2004
Posts: 853
Location: germany

PostPosted: Mon Nov 20, 2017 11:35 am    Post subject: gcc 6.4 compile on tmpfs [solved] Reply with quote

hi all!
i recently tried to compile the new gcc 6.4. my /tmp is moved to tmpfs with 3gb of space. former upgrades of gcc (version 5.x) did not go until i resized tmp to 4gb.
Code:

mount -o remount,size=4G /tmp

but this does not work with 6.4 due to insufficient space. 4,5 gb are also not enough. my server has only 6gb of ram so i am not sure if i can go to 5gb?
i think the best choice would be to temporarly revert the move to normal root partition on my ssd... can the revert be done on running system? and how?

greets
snIP3r
_________________
Intel i3-4130T on ASUS P9D-X
Kernel 5.15.88-gentoo SMP
-----------------------------------------------
if your problem is fixed please add something like [solved] to the topic!


Last edited by snIP3r on Mon Nov 20, 2017 1:12 pm; edited 1 time in total
Back to top
View user's profile Send private message
fedeliallalinea
Administrator
Administrator


Joined: 08 Mar 2003
Posts: 30887
Location: here

PostPosted: Mon Nov 20, 2017 11:42 am    Post subject: Reply with quote

You can also create a temporary swap file and reduce parallel job with a lower MAKEOPTS value
_________________
Questions are guaranteed in life; Answers aren't.
Back to top
View user's profile Send private message
NeddySeagoon
Administrator
Administrator


Joined: 05 Jul 2003
Posts: 54214
Location: 56N 3W

PostPosted: Mon Nov 20, 2017 11:53 am    Post subject: Reply with quote

snIP3r,

Code:
PORTAGE_TMPDIR="/var/tmp"
which comes from your environment, can be set in make.conf and even on a per package basis, as its an environment variable.

Lets say you want to change it for sys-devel/gcc only. It needs to point to some space where the portage user has read and write access.
There are two steps.

Create a file /etc/portage/env/bigbuild The file name can be anything but it must be in /etc/portage/env/.
Its a good idea if the file name means something to you.
In bigbuild put PORTAGE_TMPDIR="</some/new/portage/buildspace>"

In /etc/portage/package.env/ make a file called bigstuff. Again the name needs to mean something to you.
In bigstuff, put
Code:
sys-devel/gcc bigbuild


When you build sys-devel/gcc, the environment changes in bigbuild will take effect for the one package only.
You can list other packages here that need the same treatment.
_________________
Regards,

NeddySeagoon

Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail.
Back to top
View user's profile Send private message
snIP3r
l33t
l33t


Joined: 21 May 2004
Posts: 853
Location: germany

PostPosted: Mon Nov 20, 2017 1:11 pm    Post subject: Reply with quote

@NeddySeagoon: thx for the quick help! that was exactly what i needed!!!
_________________
Intel i3-4130T on ASUS P9D-X
Kernel 5.15.88-gentoo SMP
-----------------------------------------------
if your problem is fixed please add something like [solved] to the topic!
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Portage & Programming All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum