You are not logged in.

#1 2010-06-01 19:24:22

Primoz
Member
From: Ljubljana-Slovena-EU
Registered: 2009-03-04
Posts: 688

Can't build packages not enough space [Solved]

I'm trying to compile latest -ck kernel but after it gets built I get an error saying: there is not enough space to build package.
I remember that last time I was compiling the kernel, I've set-up so that /tmp is loaded in memory or something like that..
And now when I try to compile the kernel, even though I choose menuconfig I still don't get in ti, to turn it off or even check what it was.

My /tmp just have 1,3GB free space left, so that could be it, but I doubt it...

Last edited by Primoz (2010-06-03 11:46:33)


Arch x86_64 ATI AMD APU KDE frameworks 5
---------------------------------
Whatever I do, I always end up with something horribly mis-configured.

Offline

#2 2010-06-01 23:54:47

fukawi2
Ex-Administratorino
From: .vic.au
Registered: 2007-09-28
Posts: 6,226
Website

Re: Can't build packages not enough space [Solved]

Copy paste the actual error message and surrounding test (eg, the output from makepkg) would be helpful.

EDIT: Spelling

Last edited by fukawi2 (2010-06-01 23:54:59)

Offline

#3 2010-06-02 11:56:56

Primoz
Member
From: Ljubljana-Slovena-EU
Registered: 2009-03-04
Posts: 688

Re: Can't build packages not enough space [Solved]

fukawi2 wrote:

Copy paste the actual error message and surrounding test (eg, the output from makepkg) would be helpful.

EDIT: Spelling

Yeah I tought so... Sorry for not including it in my OP, but I've just done it then and forgot to copy-paste and didn't want to do it again.

/bin/sh: line 0: echo: write error: No space left on device
make[1]: *** [crypto/lrw.ko] Error 1
make: *** [modules] Error 2
==> ERROR: Build Failed.
    Aborting...
ERROR: makepkg exited with an error (512)
WARNING: expected package does not exist: /tmp/bauerbill/build/aur/kernel26-ck/kernel26-ck-2.6.34-1-x86_64.pkg.tar.xz
--> scanning /tmp/bauerbill/build/aur/kernel26-ck for matching packages...
ERROR: no package found: /tmp/bauerbill/build/aur/kernel26-ck/kernel26-ck-2.6.34-1-x86_64.pkg.tar.xz
:: Abort? [Y/n]
aborting...

That's what happens, but I think it is problem with root, as when this happens there's only 9,7MB free space left.
I guess I have either remove unneeded packages or make root bigger...


Arch x86_64 ATI AMD APU KDE frameworks 5
---------------------------------
Whatever I do, I always end up with something horribly mis-configured.

Offline

#4 2010-06-02 12:05:58

fukawi2
Ex-Administratorino
From: .vic.au
Registered: 2007-09-28
Posts: 6,226
Website

Re: Can't build packages not enough space [Solved]

Quite possibly... What is the output of `df -h`?

Offline

#5 2010-06-02 12:18:05

Primoz
Member
From: Ljubljana-Slovena-EU
Registered: 2009-03-04
Posts: 688

Re: Can't build packages not enough space [Solved]

/dev/sda3             9,7G  9,1G   39M 100% /
none                 1005M  208K 1004M   1% /dev
shm                  1005M     0 1005M   0% /dev/shm
/dev/sda4             283G  249G   20G  93% /home
/dev/sda1              38M   12M   25M  33% /boot

Also I did a bit of "research" and most of space on root partition is used by /usr and /var both of them are at 3,9GB (which means thet together they are almost 8GB; out of 10GB that I gave to root partition).
I think I gave too little to my root, or is my root filled up with things that are "trash" and just needs to be cleaned?

Last edited by Primoz (2010-06-02 12:19:09)


Arch x86_64 ATI AMD APU KDE frameworks 5
---------------------------------
Whatever I do, I always end up with something horribly mis-configured.

Offline

#6 2010-06-02 13:17:57

stqn
Member
Registered: 2010-03-19
Posts: 1,191
Website

Re: Can't build packages not enough space [Solved]

There are a few other threads currently running that talk about freeing disk space...

http://bbs.archlinux.org/viewtopic.php?id=98066
http://bbs.archlinux.org/viewtopic.php?id=9104 (safer alternative to "pacman -Sc")

Offline

#7 2010-06-02 23:07:27

fukawi2
Ex-Administratorino
From: .vic.au
Registered: 2007-09-28
Posts: 6,226
Website

Re: Can't build packages not enough space [Solved]

You also don't have a separate /tmp partition (which is where you're building) so yes, the lack of space on root will be causing your problems.

Free up some space (perhaps `pacman -Sc` as a start) then you should be fine.

Offline

#8 2010-06-03 02:04:25

sand_man
Member
From: Australia
Registered: 2008-06-10
Posts: 2,164

Re: Can't build packages not enough space [Solved]

When I compile a kernel like that I find it easier to use slurpy to download the PKGBUILD (and anything else needed) to my home directory and build from there. I only have 1GB /tmp partition.


neutral

Offline

#9 2010-06-03 11:48:22

Primoz
Member
From: Ljubljana-Slovena-EU
Registered: 2009-03-04
Posts: 688

Re: Can't build packages not enough space [Solved]

I did pacman -Sc and now I have 3GB of free space, I think that should be enough.
If not there are aditional options that were presented in this thread that I can use.
And if that still won't be enough I'll resize my root to 15GB which should be more than enough.


Arch x86_64 ATI AMD APU KDE frameworks 5
---------------------------------
Whatever I do, I always end up with something horribly mis-configured.

Offline

Board footer

Powered by FluxBB