Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
gcc - ld: final link failed: No space left on device
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
DeIM
Guru
Guru


Joined: 11 Apr 2006
Posts: 429

PostPosted: Fri Jul 30, 2021 8:40 am    Post subject: gcc - ld: final link failed: No space left on device Reply with quote

I'm trying compile gcc and I get
Code:
/usr/lib/gcc/i686-pc-linux-gnu/10.3.0/../../../../i686-pc-linux-gnu/bin/ld: final link failed: No space left on device

I thought it meant space in /vat/tmp/portage so I mounted big enough space to it (hundreds of GiB)
but no change.

So question is where does linking stores data?

Thanks in advance :D
Back to top
View user's profile Send private message
DaggyStyle
Watchman
Watchman


Joined: 22 Mar 2006
Posts: 5909

PostPosted: Fri Jul 30, 2021 10:31 am    Post subject: Re: gcc - ld: final link failed: No space left on device Reply with quote

DeIM wrote:
I'm trying compile gcc and I get
Code:
/usr/lib/gcc/i686-pc-linux-gnu/10.3.0/../../../../i686-pc-linux-gnu/bin/ld: final link failed: No space left on device

I thought it meant space in /vat/tmp/portage so I mounted big enough space to it (hundreds of GiB)
but no change.

So question is where does linking stores data?

Thanks in advance :D

check if there are enough inodes in the fs
_________________
Only two things are infinite, the universe and human stupidity and I'm not sure about the former - Albert Einstein
Back to top
View user's profile Send private message
DeIM
Guru
Guru


Joined: 11 Apr 2006
Posts: 429

PostPosted: Fri Jul 30, 2021 10:52 am    Post subject: Reply with quote

I used nfs mount to tmpfs and after "No space problem" nfs mount to btrfs disk (620G of free space).
Previous emerge of gcc worked fine with /var/tmp/portage on tmpfs over nfs even with ~7.5G space on it.
For the record, this is sys-devel/gcc-10.3.0-r2 stable emerge.
Back to top
View user's profile Send private message
DaggyStyle
Watchman
Watchman


Joined: 22 Mar 2006
Posts: 5909

PostPosted: Fri Jul 30, 2021 11:47 am    Post subject: Reply with quote

DeIM wrote:
I used nfs mount to tmpfs and after "No space problem" nfs mount to btrfs disk (620G of free space).
Previous emerge of gcc worked fine with /var/tmp/portage on tmpfs over nfs even with ~7.5G space on it.
For the record, this is sys-devel/gcc-10.3.0-r2 stable emerge.

why are you using tmpfs over nfs?
I'd recommend using local cold storage
_________________
Only two things are infinite, the universe and human stupidity and I'm not sure about the former - Albert Einstein
Back to top
View user's profile Send private message
DeIM
Guru
Guru


Joined: 11 Apr 2006
Posts: 429

PostPosted: Fri Jul 30, 2021 12:34 pm    Post subject: Reply with quote

Thanks for reply.
Particularly this PC is older 32bit Eeepc. I switched HDD for 30GB SDD, changed RAM for 2GB and using nfs mount to local server (portage and /var/tmp/portage). I just want to maximally defend SSD from degrading. Build time is no concern.
It just worked before and I don't know what device could be out of space.
Back to top
View user's profile Send private message
mike155
Advocate
Advocate


Joined: 17 Sep 2010
Posts: 4438
Location: Frankfurt, Germany

PostPosted: Fri Jul 30, 2021 12:35 pm    Post subject: Re: gcc - ld: final link failed: No space left on device Reply with quote

The message
Code:
final link failed: No space left on device

does not necessarily mean that there's no space. It probably just means: something went wrong.

If you really want to know what is going on: build the package with "ebuild compile". After the error message, run the ebuild command again, but with "strace -f". Find the error in the strace output.

On the other hand, DaggyStlye is right. It's probably not the smartest idea to mount an NFS volume to "/var/tmp/portage". Any chance to use local disk space?


Last edited by mike155 on Fri Jul 30, 2021 4:38 pm; edited 1 time in total
Back to top
View user's profile Send private message
DaggyStyle
Watchman
Watchman


Joined: 22 Mar 2006
Posts: 5909

PostPosted: Fri Jul 30, 2021 12:51 pm    Post subject: Reply with quote

external usb drives are cheep today, if you can afford one, I'd recommend
another possibility is to setup a binhost
_________________
Only two things are infinite, the universe and human stupidity and I'm not sure about the former - Albert Einstein
Back to top
View user's profile Send private message
Irre
Guru
Guru


Joined: 09 Nov 2013
Posts: 434
Location: Stockholm

PostPosted: Fri Jul 30, 2021 2:52 pm    Post subject: Re: gcc - ld: final link failed: No space left on device Reply with quote

DeIM wrote:
I'm trying compile gcc and I get
Code:
/usr/lib/gcc/i686-pc-linux-gnu/10.3.0/../../../../i686-pc-linux-gnu/bin/ld: final link failed: No space left on device

I thought it meant space in /vat/tmp/portage so I mounted big enough space to it (hundreds of GiB)
but no change.

So question is where does linking stores data?

Thanks in advance :D
attach /var/tmp to a device not /vat/ ...
Back to top
View user's profile Send private message
DeIM
Guru
Guru


Joined: 11 Apr 2006
Posts: 429

PostPosted: Sat Aug 07, 2021 3:12 pm    Post subject: Reply with quote

Quote:
attach /var/tmp to a device not /vat/ ...

Sorry it's just typo :oops: /vat/ doesn't exists.

But after attaching external HDD it completed wo errors.
I still doubt why other ebuilds could be compiled that way - even previous versions of gcc.

Are there any concern about not to mount /var/tmp/portage over nfs?
Is it just possibility of network problems or something else - like file locking?
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