You are not logged in.

#1 2012-12-27 20:01:33

sysrmr
Member
Registered: 2011-10-06
Posts: 5

Cant build packages anymore. Makepkg fails.

I have a fresh arch installation (installed a few days ago) and building packages worked fine. But today i wanted to install a few programs with yaourt and from the abs (wine,xbmc-git,archey3,zathura-git) and makepkg fails everytime. The programs are always compiled without problems.

...
==> Entering fakeroot environment...
/usr/bin/makepkg: line 1466: cannot create temp file for here-document: Success
/usr/bin/makepkg: line 1475: cannot create temp file for here-document: Success
==> Starting build()...
==> Connecting to GIT server....
Cloning into 'archey3'...
error: Unable to create /tmp/yaourt-tmp-sysrmr/aur-archey3/src/archey3/.git/HEAD
warning: unable to unlink /tmp/yaourt-tmp-sysrmr/aur-archey3/src/archey3/.git/HEAD.lock: Success
==> ERROR: A failure occurred in build().
    Aborting...
==> ERROR: Makepkg was unable to build archey3.

The makepkg errors (line 1466,1475) are always there. The Errors after Starting build() always change but always something with file permissions.

/usr/bin/makepkg Line 1466 is the same like Line 1475:

eval i=\"$(sed 's/^\(['\''"]\)\(.*\)\1$/\2/' <<< "${i%%+([[:space:]])}")\"

Wine also has the error: /usr/bin/makepkg: line 1553: cannot create temp file for here-document: Success
Line 1553:

eval file=\"$(sed 's/^\(['\''"]\)\(.*\)\1$/\2/' <<< "$file")\"

Offline

#2 2012-12-27 22:24:59

Xylankant
Member
From: Saarland, Germany
Registered: 2011-04-26
Posts: 21

Re: Cant build packages anymore. Makepkg fails.

Hi,

have you checked whether you've got enought free disk space in /tmp? I remember having had a similar error once, and deleting some unused files plus clearing my package cache (yaourt -Scc) fixed the problem.

Offline

#3 2012-12-27 23:12:46

graysky
Member
From: /run/user/1000
Registered: 2008-12-01
Posts: 8,524
Website

Re: Cant build packages anymore. Makepkg fails.

@X - Plenty of free space on /tmp


CPU-optimized Linux-ck packages @ Repo-ck  • AUR packagesZsh and other configs

Offline

#4 2012-12-28 00:22:43

Allan
Developer
From: Brisbane, AU
Registered: 2007-06-09
Posts: 10,408
Website

Re: Cant build packages anymore. Makepkg fails.

Lets take a guess...   /tmp is mounted noexec?

Does it work without yaourt?    Or building outside of tmp?

Offline

#5 2012-12-28 17:12:31

sysrmr
Member
Registered: 2011-10-06
Posts: 5

Re: Cant build packages anymore. Makepkg fails.

have enough free space.

no /tmp is mounted without noexec. also tried with and without own tmpfs partition.

no doesnt work with yaourt and also same error if i build the package in my home dir.

deleted the yaourt tmp directory and deleting /usr/bin/makepkg and reinstalling also not helped.
i downgraded sed (was updated 1 or 2 days ago), because it was used in the makepkg lines with the error. but the error is still there

Offline

#6 2012-12-28 18:58:46

falconindy
Developer
From: New York, USA
Registered: 2009-10-22
Posts: 4,094
Website

Re: Cant build packages anymore. Makepkg fails.

fakeroot seems to be the problem here. Those errors make no sense. Does something as simple as the following work?

$ fakeroot cat <<EOF
hello world
EOF

Offline

#7 2012-12-29 14:10:30

sysrmr
Member
Registered: 2011-10-06
Posts: 5

Re: Cant build packages anymore. Makepkg fails.

The fakeroot example works without problems. But yes it seems fakeroot is the problem. Disabling fakeroot in makepkg makes it work. Removing and reinstalling fakeroot doesn't help.

Offline

#8 2013-08-14 03:10:58

thiagoboche
Member
Registered: 2011-07-18
Posts: 5

Re: Cant build packages anymore. Makepkg fails.

Same here. Whenever I try to build any package the error occur. An example with the dropbox AUR package:

/usr/bin/makepkg: line 1915: 24182 Bus error               (core dumped) ${COMPRESSXZ[@]:-xz -c -z -}
bsdtar: Write error
==> ERROR: Failed to create package file.
==> ERROR: Makepkg was unable to build dropbox.

Offline

#9 2013-08-14 03:23:59

karol
Archivist
Registered: 2009-05-06
Posts: 25,428

Re: Cant build packages anymore. Makepkg fails.

You say 'same here' but you have a different error. Did disabling fakeroot in makepkg work?
What's the output of 'df -h' and 'df -ih'?
Are you using some AUR helper?

Offline

#10 2013-08-14 03:43:42

thiagoboche
Member
Registered: 2011-07-18
Posts: 5

Re: Cant build packages anymore. Makepkg fails.

Sorry, i said that because I'm having the same problem that is not being able to build a package.
So, I have plenty of space in my tmp, disabling fakeroot changed nothing.
What do you mean with AUR helper?

Offline

#11 2013-08-14 03:45:40

karol
Archivist
Registered: 2009-05-06
Posts: 25,428

Re: Cant build packages anymore. Makepkg fails.

I'm asking how exactly are you building the package, what command do you use? Pure makepkg, yaourt or something else?

Last edited by karol (2013-08-14 03:45:50)

Offline

#12 2013-08-15 04:22:41

thiagoboche
Member
Registered: 2011-07-18
Posts: 5

Re: Cant build packages anymore. Makepkg fails.

I'm using yaourt.

Offline

#13 2013-08-15 11:35:54

falconindy
Developer
From: New York, USA
Registered: 2009-10-22
Posts: 4,094
Website

Re: Cant build packages anymore. Makepkg fails.

Stop. Using. Yaourt.

Your errors are fairly clear that you are out of disk.

Offline

#14 2013-08-28 02:45:13

thiagoboche
Member
Registered: 2011-07-18
Posts: 5

Re: Cant build packages anymore. Makepkg fails.

$df -h
Filesystem      Size  Used Avail Use% Mounted on
/dev/sda2       9.3G  7.7G  1.2G  88% /
dev            1005M     0 1005M   0% /dev
run            1006M  1.2M 1005M   1% /run
tmpfs          1006M     0 1006M   0% /dev/shm
tmpfs          1006M     0 1006M   0% /sys/fs/cgroup
tmpfs          1006M  118M  889M  12% /tmp
/dev/sda1        30M   17M   12M  59% /boot
/dev/sda4       1.8T  1.1T  704G  60% /home

I'm not out of space.

Offline

#15 2013-12-07 13:25:11

Alphanumerix
Member
Registered: 2013-12-07
Posts: 1

Re: Cant build packages anymore. Makepkg fails.

Same problem today with freshly installed Antergos.
Try:

pacman -Sy base-devel

smile

Last edited by Alphanumerix (2013-12-07 15:10:28)

Offline

#16 2013-12-07 13:47:04

oliver
Member
Registered: 2007-12-12
Posts: 411

Re: Cant build packages anymore. Makepkg fails.

thiagoboche wrote:
$df -h
Filesystem      Size  Used Avail Use% Mounted on
/dev/sda2       9.3G  7.7G  1.2G  88% /
dev            1005M     0 1005M   0% /dev
run            1006M  1.2M 1005M   1% /run
tmpfs          1006M     0 1006M   0% /dev/shm
tmpfs          1006M     0 1006M   0% /sys/fs/cgroup
tmpfs          1006M  118M  889M  12% /tmp
/dev/sda1        30M   17M   12M  59% /boot
/dev/sda4       1.8T  1.1T  704G  60% /home

I'm not out of space.

I don't think it's the problem here but it's possible to get the same errors even with lots of disk space if you're out of inodes.  You can use 'df -i' to verify

Offline

#17 2013-12-07 16:27:02

ewaller
Administrator
From: Pasadena, CA
Registered: 2009-07-13
Posts: 12,950

Re: Cant build packages anymore. Makepkg fails.

Alphanumerix wrote:

Same problem today with freshly installed Antergos.
Try:

pacman -Sy base-devel

smile

That is actually poor advice.  One should not use the -Sy without u.

Edit:  BTW, welcome to the Arch Linux forums.  Just be aware that you are not running a pure Arch installation, so we won't really be able to provide support.

Last edited by ewaller (2013-12-07 16:31:08)


Nothing is too wonderful to be true, if it be consistent with the laws of nature -- Michael Faraday
Like you, I have no idea what you are doing, but I am pretty sure it is wrong...Jasonwryan
----
How to Ask Questions the Smart Way

Offline

#18 2014-01-11 13:42:08

supersymmetry
Member
Registered: 2012-11-02
Posts: 9

Re: Cant build packages anymore. Makepkg fails.

In my case, I had `nosuid` set in my /etc/fstab entry for tmpfs on /tmp. Resolved the issue, thanks since the `noexec` comment in this thread hinted me in the right direction.

Offline

Board footer

Powered by FluxBB