You are not logged in.
I don't know what it is, but ever since updating pacman to the 4.x series, I've been getting errors on almost every makepkg build. Running makepkg manually, or through yaourt, doesn't seem to make a difference.
==> Tidying install...
-> Purging unwanted files...
-> Compressing man and info pages...
==> ERROR: An unknown error has occurred. Exiting...
-> Stripping unneeded symbols from binaries and libraries...
==> Creating package...
-> Generating .PKGINFO file...
-> Compressing package...
==> Finished making:
The packages install, and seem to run properly. What does this mean?
The error only appears after the compressing man pages line. Could my installed localepurge be the culprit? It worked fine pre-4.x pacman.
Last edited by *nixer (2012-01-19 19:55:48)
Offline
Please post your /etc/makepkg.conf file.
Offline
...and your makepkg.conf.pacnew
Offline
Nah, he merged it already.
Offline
I didn't have anything changed other than native flag, but here it is.
#
# /etc/makepkg.conf
#
#########################################################################
# SOURCE ACQUISITION
#########################################################################
#
#-- The download utilities that makepkg should use to acquire sources
# Format: 'protocol::agent'
DLAGENTS=('ftp::/usr/bin/curl -fC - --ftp-pasv --retry 3 --retry-delay 3 -o %o %u'
'http::/usr/bin/curl -fLC - --retry 3 --retry-delay 3 -o %o %u'
'https::/usr/bin/curl -fLC - --retry 3 --retry-delay 3 -o %o %u'
'rsync::/usr/bin/rsync -z %u %o'
'scp::/usr/bin/scp -C %u %o')
# Other common tools:
# /usr/bin/snarf
# /usr/bin/lftpget -c
# /usr/bin/wget
#########################################################################
# ARCHITECTURE, COMPILE FLAGS
#########################################################################
#
CARCH="x86_64"
CHOST="x86_64-unknown-linux-gnu"
#-- Compiler and Linker Flags
# -march (or -mcpu) builds exclusively for an architecture
# -mtune optimizes for an architecture, but builds for whole processor family
CFLAGS="-march=native -O2 -pipe -fstack-protector --param=ssp-buffer-size=4 -D_FORTIFY_SOURCE=2"
CXXFLAGS="${CFLAGS}"
LDFLAGS="-Wl,-O1,--sort-common,--as-needed,-z,relro,--hash-style=gnu"
#-- Make Flags: change this for DistCC/SMP systems
#MAKEFLAGS="-j2"
#########################################################################
# BUILD ENVIRONMENT
#########################################################################
#
# Defaults: BUILDENV=(fakeroot !distcc color !ccache check !sign)
# A negated environment option will do the opposite of the comments below.
#
#-- fakeroot: Allow building packages as a non-root user
#-- distcc: Use the Distributed C/C++/ObjC compiler
#-- color: Colorize output messages
#-- ccache: Use ccache to cache compilation
#-- check: Run the check() function if present in the PKGBUILD
#-- sign: Generate PGP signature file
#
BUILDENV=(fakeroot !distcc color !ccache check !sign)
#
#-- If using DistCC, your MAKEFLAGS will also need modification. In addition,
#-- specify a space-delimited list of hosts running in the DistCC cluster.
#DISTCC_HOSTS=""
#
#-- Specify a directory for package building.
#BUILDDIR=/tmp/makepkg
#########################################################################
# GLOBAL PACKAGE OPTIONS
# These are default values for the options=() settings
#########################################################################
#
# Default: OPTIONS=(strip docs libtool emptydirs zipman purge !upx)
# A negated option will do the opposite of the comments below.
#
#-- strip: Strip symbols from binaries/libraries
#-- docs: Save doc directories specified by DOC_DIRS
#-- libtool: Leave libtool (.la) files in packages
#-- emptydirs: Leave empty directories in packages
#-- zipman: Compress manual (man and info) pages in MAN_DIRS with gzip
#-- purge: Remove files specified by PURGE_TARGETS
#-- upx: Compress binary executable files using UPX
#
OPTIONS=(strip docs libtool emptydirs zipman purge !upx)
#-- File integrity checks to use. Valid: md5, sha1, sha256, sha384, sha512
INTEGRITY_CHECK=(md5)
#-- Options to be used when stripping binaries. See `man strip' for details.
STRIP_BINARIES="--strip-all"
#-- Options to be used when stripping shared libraries. See `man strip' for details.
STRIP_SHARED="--strip-unneeded"
#-- Options to be used when stripping static libraries. See `man strip' for details.
STRIP_STATIC="--strip-debug"
#-- Manual (man and info) directories to compress (if zipman is specified)
MAN_DIRS=({usr{,/local}{,/share},opt/*}/{man,info})
#-- Doc directories to remove (if !docs is specified)
DOC_DIRS=(usr/{,local/}{,share/}{doc,gtk-doc} opt/*/{doc,gtk-doc})
#-- Files to be removed from all packages (if purge is specified)
PURGE_TARGETS=(usr/{,share}/info/dir .packlist *.pod)
#########################################################################
# PACKAGE OUTPUT
#########################################################################
#
# Default: put built package and cached source in build directory
#
#-- Destination: specify a fixed directory where all packages will be placed
#PKGDEST=/home/packages
#-- Source cache: specify a fixed directory where source files will be cached
#SRCDEST=/home/sources
#-- Source packages: specify a fixed directory where all src packages will be placed
#SRCPKGDEST=/home/srcpackages
#-- Packager: name/email of the person or organization building packages
#PACKAGER="John Doe <john@doe.com>"
#-- Specify a key to use for package signing
#GPGKEY=""
#########################################################################
# EXTENSION DEFAULTS
#########################################################################
#
# WARNING: Do NOT modify these variables unless you know what you are
# doing.
#
PKGEXT='.pkg.tar.xz'
SRCEXT='.src.tar.gz'
# vim: set ft=sh ts=2 sw=2 et:
-edit-
Fixed format tags.
Last edited by *nixer (2012-01-21 19:47:55)
Offline
When pasting code, please use [ code ] tags, not [ quote ] tags https://bbs.archlinux.org/help.php#bbcode
like this
Offline
Looks like it is failing while compressing man pages. You can "echo" debug messages there to see if you can limit the issues to a single line.
Online
You can "echo" debug messages there to see if you can limit the issues to a single line.
I don't follow.
How do I do this? I've never debugged anything short of programs with debug options in their gui interfaces.
Offline
I had this problem recently too (same error on same spot in the build), but for me only when using packer. Manually using makepkg didn't give me any errors, and neither did other aur helpers like pacaur.
Offline
yes, same here, pacman is ok, but the errors happen when using "packer" now.
ie:
...
-> Compressing man and info pages...
==> ERROR: An unknown error has occurred. Exiting...
==> ERROR: An unknown error has occurred. Exiting...
==> ERROR: An unknown error has occurred. Exiting...
==> ERROR: An unknown error has occurred. Exiting...
==> ERROR: An unknown error has occurred. Exiting...
-> Stripping unneeded symbols from binaries and libraries...
...
thx.
Last edited by scjet (2012-01-22 14:17:48)
The "BSD" things in life are "Free", and "Open", and so is "Arch"
Offline
I have the same situation but the easy fix was to edit the /etc/makepkg.conf and find this line:
OPTIONS=(strip docs libtool emptydirs zipman purge !upx)
Change it to this:
OPTIONS=(strip docs libtool emptydirs !zipman purge !upx)
Basically you are disabling the compress manual with gzip option.
For me, this did the trick and I no longer receive the ==> ERROR: An unknown error has occurred. Exiting...
MSF RiderCoach at http://bikertraining.net
Offline
Or we could find and fix the issue....
Online
can any of you pass us some PKGBUILD files that are failing for you so we can start getting to the bottom of this?
Arch i686 on Phenom X4 | GTX760
Offline
can any of you pass us some PKGBUILD files that are failing for you so we can start getting to the bottom of this?
You could just run a "packer" yourself, and you'll find lots of those errors.
The "BSD" things in life are "Free", and "Open", and so is "Arch"
Offline
So not a makepkg problem but a packer one?
Online
here's as example of (one of many others ?), "fvwm-patched" in AUR
----------------------------------------------------------------------------------
"...
==> Tidying install...
-> Purging unwanted files...
-> Compressing man and info pages...
==> ERROR: An unknown error has occurred. Exiting...
.....
-> Stripping unneeded symbols from binaries and libraries...
==> Creating package...
-> Generating .PKGINFO file...
-> Compressing package...
==> Finished making: fvwm-patched 2.6.3-1 (Tue Jan 24 09:39:03 EST 2012)
------------------------------------------------------------------------------------------------------
and here's the PKGBUILD:
https://aur.archlinux.org/packages/fv/f … d/PKGBUILD
Last edited by scjet (2012-01-24 14:57:20)
The "BSD" things in life are "Free", and "Open", and so is "Arch"
Offline
I've just used makepkg to build that package:
...
make[2]: Nothing to be done for `install-exec-am'.
make[2]: Nothing to be done for `install-data-am'.
make[2]: Leaving directory `/home/karol/apps/fvwm-patched/src/fvwm-2.6.3'
make[1]: Leaving directory `/home/karol/apps/fvwm-patched/src/fvwm-2.6.3'
==> Tidying install...
-> Purging unwanted files...
-> Compressing man and info pages...
-> Stripping unneeded symbols from binaries and libraries...
==> Creating package...
-> Generating .PKGINFO file...
-> Compressing package...
==> Leaving fakeroot environment.
==> Finished making: fvwm-patched 2.6.3-1 (wto, 24 sty 2012, 15:55:09 CET)
==> Installing package fvwm-patched with pacman -U...
loading packages...
resolving dependencies...
looking for inter-conflicts...
Targets (1):
Name Old Version New Version Net Change
fvwm-patched 2.6.3-1 7,15 MiB
Total Installed Size: 7,15 MiB
Proceed with installation? [Y/n]
No errors. Thus, your error remains unknown ;P
Offline
stefanwilkens wrote:can any of you pass us some PKGBUILD files that are failing for you so we can start getting to the bottom of this?
You could just run a "packer" yourself, and you'll find lots of those errors.
packer is a third party thing to arch, if you have an issue that only happens while using packer you should take it to packer's github, forum topic or AUR comments.
we're interested to find out if the same happens while building this package with makepkg itself rather than through packer, as the first post in this topic mentioned.
you should try to build that package with makepkg to rule out a fault in makepkg.
Last edited by stefanwilkens (2012-01-24 15:53:57)
Arch i686 on Phenom X4 | GTX760
Offline
scjet wrote:stefanwilkens wrote:can any of you pass us some PKGBUILD files that are failing for you so we can start getting to the bottom of this?
You could just run a "packer" yourself, and you'll find lots of those errors.
packer is a third party thing to arch, if you have an issue that only happens while using packer you should take it to packer's github, forum topic or AUR comments.
we're interested to find out if the same happens while building this package with makepkg itself rather than through packer, as the first post in this topic mentioned.
you should try to build that package with makepkg to rule out a fault in makepkg.
I already posted it up to (AUR) packer maintainer... a few days ago.
http://aur.archlinux.org/packages.php?ID=33378
but thx anyway,
I'll just wait until "packer" is fixed.
In the meantime, when I DO run into these OBVIOUS errors, as mentioned numerous times in this thread again,
also with "makepkg", then I'll post them all here for you to see.
Last edited by scjet (2012-01-24 21:48:25)
The "BSD" things in life are "Free", and "Open", and so is "Arch"
Offline
Hi guys, I'm encountering the same issue and packer is not the problem : makepkg display the infamous error with weboob-git AUR package :
(...)
changing mode of /var/abs/local/yaourtbuild/weboob-git/pkg/usr/bin/wetboobs to 755
changing mode of /var/abs/local/yaourtbuild/weboob-git/pkg/usr/bin/traveloob to 755
==> Tidying install...
-> Purging unwanted files...
-> Compressing man and info pages...
==> ERROR: An unknown error has occurred. Exiting...
==> ERROR: An unknown error has occurred. Exiting...
==> ERROR: An unknown error has occurred. Exiting...
==> ERROR: An unknown error has occurred. Exiting...
==> ERROR: An unknown error has occurred. Exiting...
==> ERROR: An unknown error has occurred. Exiting...
==> ERROR: An unknown error has occurred. Exiting...
==> ERROR: An unknown error has occurred. Exiting...
==> ERROR: An unknown error has occurred. Exiting...
==> ERROR: An unknown error has occurred. Exiting...
==> ERROR: An unknown error has occurred. Exiting...
==> ERROR: An unknown error has occurred. Exiting...
==> ERROR: An unknown error has occurred. Exiting...
==> ERROR: An unknown error has occurred. Exiting...
==> ERROR: An unknown error has occurred. Exiting...
==> ERROR: An unknown error has occurred. Exiting...
==> ERROR: An unknown error has occurred. Exiting...
==> ERROR: An unknown error has occurred. Exiting...
==> ERROR: An unknown error has occurred. Exiting...
==> ERROR: An unknown error has occurred. Exiting...
==> ERROR: An unknown error has occurred. Exiting...
==> ERROR: An unknown error has occurred. Exiting...
==> ERROR: An unknown error has occurred. Exiting...
==> ERROR: An unknown error has occurred. Exiting...
==> ERROR: An unknown error has occurred. Exiting...
-> Stripping unneeded symbols from binaries and libraries...
==> Creating package...
-> Generating .PKGINFO file...
-> Compressing package...
==> Finished making: weboob-git 20120125-1 (Wed Jan 25 00:52:43 CET 2012)
==> Installing package weboob-git with pacman -U...
loading packages...
warning: weboob-git-20120125-1 is up to date -- reinstalling
resolving dependencies...
looking for inter-conflicts...
Targets (1): weboob-git-20120125-1
Total Installed Size: 6.18 MiB
Net Upgrade Size: 0.00 MiB
Proceed with installation? [Y/n] Y
(1/1) checking package integrity [##########################################################################] 100%
(1/1) loading package files [##########################################################################] 100%
(1/1) checking for file conflicts [##########################################################################] 100%
(1/1) upgrading weboob-git [##########################################################################] 100%
root@FreAkyLab:/var/abs/local/yaourtbuild/weboob-git#
makepkg is bash, so it's simple to debug :
The find command fails to find some man pages (qvideoob.1) :
# LANG=C bash -x /usr/bin/makepkg -si --asroot
(...)
+ IFS='
'
+ read -rd '' -a hardlinks
++ find usr/man usr/info usr/share/man usr/share/info usr/local/man usr/local/info usr/local/share/man usr/local/share/info 'opt/*/man' 'opt/*/info' '!' -name qvideoob.1 -samefile usr/share/man/man1/qvideoob.1
++++ gettext 'An unknown error has occurred. Exiting...'
+++ trap_exit 'An unknown error has occurred. Exiting...'
+++ (( ! INFAKEROOT ))
+++ echo
+++ error 'An unknown error has occurred. Exiting...'
+++ local 'mesg=An unknown error has occurred. Exiting...'
+++ shift
++++ gettext ERROR:
+++ printf '==> ERROR: An unknown error has occurred. Exiting...\n'
==> ERROR: An unknown error has occurred. Exiting...
+++ [[ -n '' ]]
+++ exit 1
+ true
+ rm -f
+ gzip -9 usr/share/man/man1/qvideoob.1
(...)
Offline
Bug reported https://github.com/Daenyth/pkgtools/issues/42
Offline
Uh. I think you reported the bug in the wrong place. Thanks for actually posting debug output -- I know where this is breaking now.
Ok, thanks, closed.
Offline
Yaourt 1.0.1-1:
Through Yaourt.
==> Tidying install...
-> Purging unwanted files...
-> Compressing man and info pages...
==> ERROR: An unknown error has occurred. Exiting...
==> ERROR: An unknown error has occurred. Exiting...
-> Stripping unneeded symbols from binaries and libraries...
==> Creating package...
-> Generating .PKGINFO file...
-> Compressing package...
==> Finished making: yaourt 1.0.1-1
==> Continue installing yaourt ? [Y/n]
==> [v]iew package contents [c]heck package with namcap
==> ---------------------------------------------------
==>
Through makepkg directly.
==> Tidying install...
-> Purging unwanted files...
-> Compressing man and info pages...
==> ERROR: An unknown error has occurred. Exiting...
==> ERROR: An unknown error has occurred. Exiting...
-> Stripping unneeded symbols from binaries and libraries...
==> Creating package...
-> Generating .PKGINFO file...
-> Compressing package...
==> Finished making: yaourt 1.0.1-1
There are more packages like this. Even if it is an user configuration problem on my end, I don't know how to debug this.
Last edited by *nixer (2012-01-26 00:20:08)
Offline
I have the same problem. I just merged in my makepkg.conf.pacnew and now about 1/3 of the packages installed through yaourt is giving the "==> ERROR: An unknown error has occurred. Exiting..." error. I don't have the list of packages, though.
Offline