Forums

Skip to content

Advanced search
  • Quick links
    • Unanswered topics
    • Active topics
    • Search
  • FAQ
  • Login
  • Register
  • Board index Assistance Portage & Programming
  • Search

gcc - ld: final link failed: No space left on device

Problems with emerge or ebuilds? Have a basic programming question about C, PHP, Perl, BASH or something else?
Post Reply
Advanced search
9 posts • Page 1 of 1
Author
Message
DeIM
Guru
Guru
User avatar
Posts: 465
Joined: Tue Apr 11, 2006 7:03 pm

gcc - ld: final link failed: No space left on device

  • Quote

Post by DeIM » Fri Jul 30, 2021 8:40 am

I'm trying compile gcc and I get

Code: Select all

/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
Top
DaggyStyle
Watchman
Watchman
User avatar
Posts: 5969
Joined: Wed Mar 22, 2006 6:57 am

Re: gcc - ld: final link failed: No space left on device

  • Quote

Post by DaggyStyle » Fri Jul 30, 2021 10:31 am

DeIM wrote:I'm trying compile gcc and I get

Code: Select all

/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
Top
DeIM
Guru
Guru
User avatar
Posts: 465
Joined: Tue Apr 11, 2006 7:03 pm

  • Quote

Post by DeIM » Fri Jul 30, 2021 10:52 am

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.
Top
DaggyStyle
Watchman
Watchman
User avatar
Posts: 5969
Joined: Wed Mar 22, 2006 6:57 am

  • Quote

Post by DaggyStyle » Fri Jul 30, 2021 11:47 am

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
Top
DeIM
Guru
Guru
User avatar
Posts: 465
Joined: Tue Apr 11, 2006 7:03 pm

  • Quote

Post by DeIM » Fri Jul 30, 2021 12:34 pm

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.
Top
mike155
Advocate
Advocate
Posts: 4438
Joined: Fri Sep 17, 2010 11:33 pm
Location: Frankfurt, Germany

Re: gcc - ld: final link failed: No space left on device

  • Quote

Post by mike155 » Fri Jul 30, 2021 12:35 pm

The message

Code: Select all

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.
Top
DaggyStyle
Watchman
Watchman
User avatar
Posts: 5969
Joined: Wed Mar 22, 2006 6:57 am

  • Quote

Post by DaggyStyle » Fri Jul 30, 2021 12:51 pm

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
Top
Irre
Guru
Guru
Posts: 434
Joined: Sat Nov 09, 2013 10:03 am
Location: Stockholm

Re: gcc - ld: final link failed: No space left on device

  • Quote

Post by Irre » Fri Jul 30, 2021 2:52 pm

DeIM wrote:I'm trying compile gcc and I get

Code: Select all

/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/ ...
Top
DeIM
Guru
Guru
User avatar
Posts: 465
Joined: Tue Apr 11, 2006 7:03 pm

  • Quote

Post by DeIM » Sat Aug 07, 2021 3:12 pm

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?
Top
Post Reply

9 posts • Page 1 of 1

Return to “Portage & Programming”

Jump to
  • Assistance
  • ↳   News & Announcements
  • ↳   Frequently Asked Questions
  • ↳   Installing Gentoo
  • ↳   Multimedia
  • ↳   Desktop Environments
  • ↳   Networking & Security
  • ↳   Kernel & Hardware
  • ↳   Portage & Programming
  • ↳   Gamers & Players
  • ↳   Other Things Gentoo
  • ↳   Unsupported Software
  • Discussion & Documentation
  • ↳   Documentation, Tips & Tricks
  • ↳   Gentoo Chat
  • ↳   Gentoo Forums Feedback
  • ↳   Duplicate Threads
  • International Gentoo Users
  • ↳   中文 (Chinese)
  • ↳   Dutch
  • ↳   Finnish
  • ↳   French
  • ↳   Deutsches Forum (German)
  • ↳   Diskussionsforum
  • ↳   Deutsche Dokumentation
  • ↳   Greek
  • ↳   Forum italiano (Italian)
  • ↳   Forum di discussione italiano
  • ↳   Risorse italiane (documentazione e tools)
  • ↳   Polskie forum (Polish)
  • ↳   Instalacja i sprzęt
  • ↳   Polish OTW
  • ↳   Portuguese
  • ↳   Documentação, Ferramentas e Dicas
  • ↳   Russian
  • ↳   Scandinavian
  • ↳   Spanish
  • ↳   Other Languages
  • Architectures & Platforms
  • ↳   Gentoo on ARM
  • ↳   Gentoo on PPC
  • ↳   Gentoo on Sparc
  • ↳   Gentoo on Alternative Architectures
  • ↳   Gentoo on AMD64
  • ↳   Gentoo for Mac OS X (Portage for Mac OS X)
  • Board index
  • All times are UTC
  • Delete cookies

© 2001–2026 Gentoo Foundation, Inc.

Powered by phpBB® Forum Software © phpBB Limited

Privacy Policy