You are not logged in.
Pages: 1
Hello everyone,
The problem is, that every time that I execute the makepkg program, it throws the following error message:
==> ERROR: An unknown error has occurred. Exiting...
User defined signal 1
No matter what I do...
Last edited by ErSoul (2015-03-07 00:21:25)
Offline
Offline
I don't get it. I am not using third-party or AUR programs. Just the makepkg command...
Offline
Did you read the entire thread?
Offline
Indeed, I deactivated the zipman option, and it didn't solved the problem...
Offline
In fact, I don't remember to have changed the /etc/makepkg.conf file ever.
And this thing even happens when I run makepkg command, out of a dir with a PKGBUILD file inside
Last edited by ErSoul (2015-03-06 23:32:33)
Offline
Add some context please; at what step did makepkg fail? Is this for certain AUR packages, or for all of them?
Also do "bash -x makepkg" as suggested in the linked thread.
Mods are just community members who have the occasionally necessary option to move threads around and edit posts. -- Trilby
Offline
I guess it is happening with all the packages (For now, I've downloaded three, and with the three, it throws the same error). It happens at the beginning of the call.
The bash -x makepkg gives me the following:
+ export TEXTDOMAIN=pacman-scripts
+ TEXTDOMAIN=pacman-scripts
+ export TEXTDOMAINDIR=/usr/share/locale
+ TEXTDOMAINDIR=/usr/share/locale
+ export COMMAND_MODE=legacy
+ COMMAND_MODE=legacy
+ unset CDPATH
+ unset GREP_OPTIONS
+ declare -r makepkg_version=4.2.1
+ declare -r confdir=/etc
+ declare -r BUILDSCRIPT=PKGBUILD
+ declare -r startdir=/home/erdave/AUR/masterpdfeditor
+ LIBRARY=/usr/lib/makepkg
+ packaging_options=('strip' 'docs' 'libtool' 'staticlibs' 'emptydirs' 'zipman' 'purge' 'upx' 'debug')
+ other_options=('ccache' 'distcc' 'buildflags' 'makeflags')
+ splitpkg_overrides=('pkgdesc' 'arch' 'url' 'license' 'groups' 'depends' 'optdepends' 'provides' 'conflicts' 'replaces' 'backup' 'options' 'install' 'changelog')
+ readonly -a packaging_options other_options splitpkg_overrides
+ known_hash_algos=('md5' 'sha1' 'sha224' 'sha256' 'sha384' 'sha512')
+ ASDEPS=0
+ BUILDFUNC=0
+ CHECKFUNC=0
+ CLEANBUILD=0
+ CLEANUP=0
+ DEP_BIN=0
+ FORCE=0
+ GENINTEG=0
+ HOLDVER=0
+ IGNOREARCH=0
+ INFAKEROOT=0
+ INSTALL=0
+ LOGGING=0
+ NEEDED=0
+ NOARCHIVE=0
+ NOBUILD=0
+ NODEPS=0
+ NOEXTRACT=0
+ PKGFUNC=0
+ PKGLIST=()
+ PKGVERFUNC=0
+ PREPAREFUNC=0
+ REPKG=0
+ RMDEPS=0
+ SKIPCHECKSUMS=0
+ SKIPPGPCHECK=0
+ SIGNPKG=
+ SPLITPKG=0
+ SOURCEONLY=0
+ VERIFYSOURCE=0
+ FORCE_VER=
+ PACMAN_OPTS=
+ shopt -s extglob
+ umask 0022
+ type -p gettext
+ ARGLIST=("$@")
+ OPT_SHORT=AcCdefFghiLmop:rRsSV
+ OPT_LONG=('allsource' 'check' 'clean' 'cleanbuild' 'config:' 'force' 'geninteg' 'help' 'holdver' 'ignorearch' 'install' 'key:' 'log' 'noarchive' 'nobuild' 'nocolor' 'nocheck' 'nodeps' 'noextract' 'noprepare' 'nosign' 'pkg:' 'repackage' 'rmdeps' 'sign' 'skipchecksums' 'skipinteg' 'skippgpcheck' 'source' 'syncdeps' 'verifysource' 'version')
+ OPT_LONG+=('asdeps' 'noconfirm' 'needed' 'noprogressbar')
+ parseopts AcCdefFghiLmop:rRsSV allsource check clean cleanbuild config: force geninteg help holdver ignorearch install key: log noarchive nobuild nocolor nocheck nodeps noextract noprepare nosign pkg: repackage rmdeps sign skipchecksums skipinteg skippgpcheck source syncdeps verifysource version asdeps noconfirm needed noprogressbar --
+ local opt= optarg= i= shortopts=AcCdefFghiLmop:rRsSV
+ longopts=()
+ unused_argv=()
+ local -a longopts unused_argv
+ shift
+ [[ -n allsource ]]
+ [[ allsource != \-\- ]]
+ longopts+=("$1")
+ shift
+ [[ -n check ]]
+ [[ check != \-\- ]]
+ longopts+=("$1")
+ shift
+ [[ -n clean ]]
+ [[ clean != \-\- ]]
+ longopts+=("$1")
+ shift
+ [[ -n cleanbuild ]]
+ [[ cleanbuild != \-\- ]]
+ longopts+=("$1")
+ shift
+ [[ -n config: ]]
+ [[ config: != \-\- ]]
+ longopts+=("$1")
+ shift
+ [[ -n force ]]
+ [[ force != \-\- ]]
+ longopts+=("$1")
+ shift
+ [[ -n geninteg ]]
+ [[ geninteg != \-\- ]]
+ longopts+=("$1")
+ shift
+ [[ -n help ]]
+ [[ help != \-\- ]]
+ longopts+=("$1")
+ shift
+ [[ -n holdver ]]
+ [[ holdver != \-\- ]]
+ longopts+=("$1")
+ shift
+ [[ -n ignorearch ]]
+ [[ ignorearch != \-\- ]]
+ longopts+=("$1")
+ shift
+ [[ -n install ]]
+ [[ install != \-\- ]]
+ longopts+=("$1")
+ shift
+ [[ -n key: ]]
+ [[ key: != \-\- ]]
+ longopts+=("$1")
+ shift
+ [[ -n log ]]
+ [[ log != \-\- ]]
+ longopts+=("$1")
+ shift
+ [[ -n noarchive ]]
+ [[ noarchive != \-\- ]]
+ longopts+=("$1")
+ shift
+ [[ -n nobuild ]]
+ [[ nobuild != \-\- ]]
+ longopts+=("$1")
+ shift
+ [[ -n nocolor ]]
+ [[ nocolor != \-\- ]]
+ longopts+=("$1")
+ shift
+ [[ -n nocheck ]]
+ [[ nocheck != \-\- ]]
+ longopts+=("$1")
+ shift
+ [[ -n nodeps ]]
+ [[ nodeps != \-\- ]]
+ longopts+=("$1")
+ shift
+ [[ -n noextract ]]
+ [[ noextract != \-\- ]]
+ longopts+=("$1")
+ shift
+ [[ -n noprepare ]]
+ [[ noprepare != \-\- ]]
+ longopts+=("$1")
+ shift
+ [[ -n nosign ]]
+ [[ nosign != \-\- ]]
+ longopts+=("$1")
+ shift
+ [[ -n pkg: ]]
+ [[ pkg: != \-\- ]]
+ longopts+=("$1")
+ shift
+ [[ -n repackage ]]
+ [[ repackage != \-\- ]]
+ longopts+=("$1")
+ shift
+ [[ -n rmdeps ]]
+ [[ rmdeps != \-\- ]]
+ longopts+=("$1")
+ shift
+ [[ -n sign ]]
+ [[ sign != \-\- ]]
+ longopts+=("$1")
+ shift
+ [[ -n skipchecksums ]]
+ [[ skipchecksums != \-\- ]]
+ longopts+=("$1")
+ shift
+ [[ -n skipinteg ]]
+ [[ skipinteg != \-\- ]]
+ longopts+=("$1")
+ shift
+ [[ -n skippgpcheck ]]
+ [[ skippgpcheck != \-\- ]]
+ longopts+=("$1")
+ shift
+ [[ -n source ]]
+ [[ source != \-\- ]]
+ longopts+=("$1")
+ shift
+ [[ -n syncdeps ]]
+ [[ syncdeps != \-\- ]]
+ longopts+=("$1")
+ shift
+ [[ -n verifysource ]]
+ [[ verifysource != \-\- ]]
+ longopts+=("$1")
+ shift
+ [[ -n version ]]
+ [[ version != \-\- ]]
+ longopts+=("$1")
+ shift
+ [[ -n asdeps ]]
+ [[ asdeps != \-\- ]]
+ longopts+=("$1")
+ shift
+ [[ -n noconfirm ]]
+ [[ noconfirm != \-\- ]]
+ longopts+=("$1")
+ shift
+ [[ -n needed ]]
+ [[ needed != \-\- ]]
+ longopts+=("$1")
+ shift
+ [[ -n noprogressbar ]]
+ [[ noprogressbar != \-\- ]]
+ longopts+=("$1")
+ shift
+ [[ -n -- ]]
+ [[ -- != \-\- ]]
+ shift
+ (( 0 ))
+ OPTRET+=('--' "${unused_argv[@]}" "$@")
+ unset longoptmatch
+ return 0
+ set -- --
+ unset OPT_SHORT OPT_LONG OPTRET
+ true
+ case "$1" in
+ OPT_IND=0
+ shift
+ break 2
+ extra_environment=()
+ [[ -n '' ]]
+ trap clean_up 0
+ for signal in TERM HUP QUIT
++ gettext '%s signal caught. Exiting...'
+ trap 'trap_exit TERM "%s signal caught. Exiting..." "TERM"' TERM
+ for signal in TERM HUP QUIT
++ gettext '%s signal caught. Exiting...'
+ trap 'trap_exit HUP "%s signal caught. Exiting..." "HUP"' HUP
+ for signal in TERM HUP QUIT
++ gettext '%s signal caught. Exiting...'
+ trap 'trap_exit QUIT "%s signal caught. Exiting..." "QUIT"' QUIT
+ trap 'trap_exit INT "$(gettext "Aborted by user! Exiting...")"' INT
+ trap 'trap_exit USR1 "$(gettext "An unknown error has occurred. Exiting...")"' ERR
+ [[ -n '' ]]
+ [[ -n '' ]]
+ [[ -n '' ]]
+ [[ -n '' ]]
+ [[ -n '' ]]
+ [[ -n '' ]]
+ [[ -n '' ]]
+ [[ -n '' ]]
+ [[ -n '' ]]
+ [[ -n '' ]]
+ MAKEPKG_CONF=/etc/makepkg.conf
+ [[ -r /etc/makepkg.conf ]]
+ source_safe /etc/makepkg.conf
+ shopt -u extglob
+ source /etc/makepkg.conf
++ 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 --no-motd -z %u %o' 'scp::/usr/bin/scp -C %u %o')
++ VCSCLIENTS=('bzr::bzr' 'git::git' 'hg::mercurial' 'svn::subversion')
++ CARCH=x86_64
++ CHOST=x86_64-unknown-linux-gnu
++ CPPFLAGS=-D_FORTIFY_SOURCE=2
++ CFLAGS='-march=x86-64 -mtune=generic -O2 -pipe -fstack-protector-strong --param=ssp-buffer-size=4'
++ CXXFLAGS='-march=x86-64 -mtune=generic -O2 -pipe -fstack-protector-strong --param=ssp-buffer-size=4'
++ LDFLAGS=-Wl,-O1,--sort-common,--as-needed,-z,relro
++ DEBUG_CFLAGS='-g -fvar-tracking-assignments'
++ DEBUG_CXXFLAGS='-g -fvar-tracking-assignments'
++ BUILDENV=(!distcc color !ccache check !sign)
++ OPTIONS=(strip docs !libtool !staticlibs emptydirs zipman purge !upx !debug)
++ INTEGRITY_CHECK=(md5)
++ STRIP_BINARIES=--strip-all
++ STRIP_SHARED=--strip-unneeded
++ STRIP_STATIC=--strip-debug
++ MAN_DIRS=({usr{,/local}{,/share},opt/*}/{man,info})
++ DOC_DIRS=(usr/{,local/}{,share/}{doc,gtk-doc} opt/*/{doc,gtk-doc})
++ PURGE_TARGETS=(usr/{,share}/info/dir .packlist *.pod)
++ COMPRESSGZ=(gzip -c -f -n)
++ COMPRESSBZ2=(bzip2 -c -f)
++ COMPRESSXZ=(xz -c -z -)
++ COMPRESSLRZ=(lrzip -q)
++ COMPRESSLZO=(lzop -q)
++ COMPRESSZ=(compress -c -f)
++ PKGEXT=.pkg.tar.xz
++ SRCEXT=.src.tar.gz
+ shopt -s extglob
+ XDG_PACMAN_DIR=/home/erdave/.config/pacman
+ [[ /etc/makepkg.conf = \/\e\t\c\/\m\a\k\e\p\k\g\.\c\o\n\f ]]
+ [[ -r /home/erdave/.config/pacman/makepkg.conf ]]
+ [[ -r /home/erdave/.makepkg.conf ]]
+ PACMAN=/var/cache/pacman/pkg
++ type -P /var/cache/pacman/pkg
+ PACMAN_PATH=
+++ gettext 'An unknown error has occurred. Exiting...'
++ trap_exit USR1 'An unknown error has occurred. Exiting...'
++ local signal=USR1
++ shift
++ (( ! 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 '' ]]
++ trap -- USR1
++ kill -USR1 3315
++ clean_up
++ local EXIT_CODE=1
++ (( INFAKEROOT ))
++ (( ! EXIT_CODE && CLEANUP ))
++ remove_deps
++ (( ! RMDEPS ))
++ return
User defined signal 1Last edited by ErSoul (2015-03-06 23:58:30)
Offline
The bash -x makepkg gives me the following:
+ PACMAN=/var/cache/pacman/pkg ++ type -P /var/cache/pacman/pkg + PACMAN_PATH= +++ gettext 'An unknown error has occurred. Exiting...'
You seem to have $PACMAN set to "/var/cache/pacman/pkg".
PACMAN
The command that will be used to check for missing dependencies and
to install and remove packages. Pacman’s -Qq, -Rns, -S, -T, and -U
operations must be supported by this command. If the variable is
not set or empty, makepkg will fall back to ‘pacman’.
Offline
Damn... that's the problem! I changed the env_var days ago... thanks bro!
Offline
Pages: 1