You are not logged in.

#1 2019-02-19 16:36:58

Krasauskas
Member
Registered: 2019-02-19
Posts: 2

[SOLVED] Some installations from AUR fail.

This the what I'm getting while trying to install pacaur:

$ makepkg -si
==> Making package: pacaur 4.8.0-1 (Tue 19 Feb 2019 04:29:24 PM GMT)
==> Checking runtime dependencies...
==> Checking buildtime dependencies...
==> Retrieving sources...
  -> Downloading pacaur-4.8.0.tar.gz...
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100   119    0   119    0     0    411      0 --:--:-- --:--:-- --:--:--   413
100 96927    0 96927    0     0   118k      0 --:--:-- --:--:-- --:--:--  475k
==> Validating source files with sha256sums...
    pacaur-4.8.0.tar.gz ... Passed
==> Extracting sources...
  -> Extracting pacaur-4.8.0.tar.gz with bsdtar
==> Removing existing $pkgdir/ directory...
==> Starting build()...
make: *** unknown output-sync type '3'.  Stop.
# GNU Make 4.2.1
# Built for x86_64-pc-linux-gnu
# Copyright (C) 1988-2016 Free Software Foundation, Inc.
# License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
# This is free software: you are free to change and redistribute it.
# There is NO WARRANTY, to the extent permitted by law.

# Make data base, printed on Tue Feb 19 16:29:25 2019

# Variables

# environment
GNUMAKEFLAGS :=
# environment
DESKTOP_SESSION = gnome
# default
.SHELLFLAGS := -c
# environment
XDG_SESSION_CLASS = user
# environment
XDG_SESSION_TYPE = wayland
# environment
CPPFLAGS = -march=skylake -O3 -pipe -D_FORTIFY_SOURCE=2
# environment
GDMSESSION = gnome
# environment
SHELL = /bin/bash
# environment
GDM_LANG = en_US.UTF-8
# environment
VTE_VERSION = 5403
# environment
_ = /usr/bin/make
# environment
CFLAGS = -march=skylake -O3 -pipe -fstack-protector-strong -fno-plt
# environment
GIO_LAUNCHED_DESKTOP_FILE = /usr/share/applications/org.gnome.Shell.desktop
# environment
USERNAME = krasauskas
# environment
CXXFLAGS = -march=skylake -O3 -pipe -fstack-protector-strong -fno-plt
# environment
DBUS_SESSION_BUS_ADDRESS = unix:path=/run/user/1000/bus
# environment
PATH = /usr/local/bin:/usr/local/sbin:/usr/bin:/usr/bin/site_perl:/usr/bin/vendor_perl:/usr/bin/core_perl
# environment
SOURCE_DATE_EPOCH = 1550593764
# environment
SESSION_MANAGER = local/arch:@/tmp/.ICE-unix/1178,unix/arch:/tmp/.ICE-unix/1178
# environment
XDG_RUNTIME_DIR = /run/user/1000
# environment
TEXTDOMAIN = pacman-scripts
# environment
XDG_MENU_PREFIX = gnome-
# environment
LDFLAGS = -Wl,-O1,--sort-common,--as-needed,-z,relro,-z,now
# default
.FEATURES := target-specific order-only second-expansion else-if shortest-stem undefine oneshell archives jobserver output-sync check-symlink guile load
# environment
XDG_SESSION_DESKTOP = gnome
# environment
SSH_AUTH_SOCK = /run/user/1000/keyring/ssh
# environment
GIO_LAUNCHED_DESKTOP_FILE_PID = 1209
# environment
DISPLAY = :0
# environment
PWD = /tmp/makepkg/pacaur/src/pacaur-4.8.0
# default
.LOADED :=
# environment
XDG_SEAT = seat0
# environment
HOME = /home/krasauskas
# environment
LOGNAME = krasauskas
# environment
XDG_VTNR = 2
# environment
COLORTERM = truecolor
# environment
SHLVL = 2
# environment
XDG_SESSION_ID = 2
# environment
USER = krasauskas
# environment
XDG_CURRENT_DESKTOP = GNOME
# environment
OLDPWD = /tmp/makepkg/pacaur/src
# default
.VARIABLES :=
# environment
MAKEFLAGS = -j9 -march=skylake -O3 -pipe
# environment
MAIL = /var/spool/mail/krasauskas
# environment
CHOST = x86_64-pc-linux-gnu
# environment
COMMAND_MODE = legacy
# environment
TEXTDOMAINDIR = /usr/share/locale
# environment
GJS_DEBUG_TOPICS = JS ERROR;JS LOG
# environment
WAYLAND_DISPLAY = wayland-0
# environment
GJS_PATH = /home/krasauskas/.local/share/gnome-shell/extensions/drop-down-terminal@gs-extensions.zzrough.org
# environment
MOZ_PLUGIN_PATH = /usr/lib/mozilla/plugins
# environment
GJS_DEBUG_OUTPUT = stderr
# default
.RECIPEPREFIX :=
# environment
LANG = en_US.UTF-8
# environment
TERM = xterm
# variable set hash-table stats:
# Load=54/1024=5%, Rehash=0, Collisions=3/56=5%

# Pattern-specific Variable Values

# No pattern-specific variable values.

# Directories


# No files, no impossibilities in 0 directories.

# Implicit Rules

# No implicit rules.

# Files

# files hash-table stats:
# Load=0/1024=0%, Rehash=0, Collisions=0/0=0%
# VPATH Search Paths

# No 'vpath' search paths.

# No general ('VPATH' variable) search path.

# No strcache buffers

# Finished Make data base on Tue Feb 19 16:29:25 2019

==> ERROR: A failure occurred in build().
    Aborting...

I've tried searching for "make: *** unknown output-sync type '3'.  Stop." and vpath, but couldn't find anything useful. Any pointers are appreciated!

EDIT: this is my makepkg.conf after removing the flags from everything except for MAKEFLAGS:

#!/hint/bash
#
# /etc/makepkg.conf
#

#########################################################################
# SOURCE ACQUISITION
#########################################################################
#
#-- The download utilities that makepkg should use to acquire sources
#  Format: 'protocol::agent'
DLAGENTS=('file::/usr/bin/curl -gqC - -o %o %u'
          'ftp::/usr/bin/curl -gqfC - --ftp-pasv --retry 3 --retry-delay 3 -o %o %u'
          'http::/usr/bin/curl -gqb "" -fLC - --retry 3 --retry-delay 3 -o %o %u'
          'https::/usr/bin/curl -gqb "" -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')

# Other common tools:
# /usr/bin/snarf
# /usr/bin/lftpget -c
# /usr/bin/wget

#-- The package required by makepkg to download VCS sources
#  Format: 'protocol::package'
VCSCLIENTS=('bzr::bzr'
            'git::git'
            'hg::mercurial'
            'svn::subversion')

#########################################################################
# ARCHITECTURE, COMPILE FLAGS
#########################################################################
#
CARCH="x86_64"
CHOST="x86_64-pc-linux-gnu"

#-- Compiler and Linker Flags
CPPFLAGS="-D_FORTIFY_SOURCE=2"
CFLAGS="-fstack-protector-strong -fno-plt"
CXXFLAGS="-fstack-protector-strong -fno-plt"
LDFLAGS="-Wl,-O1,--sort-common,--as-needed,-z,relro,-z,now"
#-- Make Flags: change this for DistCC/SMP systems
MAKEFLAGS="-j9 -march=skylake -O3 -pipe"
#-- Debugging flags
DEBUG_CFLAGS="-g -fvar-tracking-assignments"
DEBUG_CXXFLAGS="-g -fvar-tracking-assignments"

#########################################################################
# BUILD ENVIRONMENT
#########################################################################
#
# Defaults: BUILDENV=(!distcc !color !ccache check !sign)
#  A negated environment option will do the opposite of the comments below.
#
#-- 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=(!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 staticlibs emptydirs !zipman !purge !debug)
#  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
#-- staticlibs: Leave static library (.a) 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
#-- debug:      Add debugging flags as specified in DEBUG_* variables
#
OPTIONS=(strip docs !libtool !staticlibs emptydirs zipman purge !debug)

#-- 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)
#-- Directory to store source code in for debug packages
DBGSRCDIR="/usr/src/debug"

#########################################################################
# 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/krasauskas/AUR/
#-- 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
#-- Log files: specify a fixed directory where all log files will be placed
#LOGDEST=/home/makepkglogs
#-- 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=""

#########################################################################
# COMPRESSION DEFAULTS
#########################################################################
#
COMPRESSGZ=(gzip -c -f -n)
COMPRESSBZ2=(bzip2 -c -f)
COMPRESSXZ=(xz -c -z -)
COMPRESSLRZ=(lrzip -q)
COMPRESSLZO=(lzop -q)
COMPRESSZ=(compress -c -f)

#########################################################################
# EXTENSION DEFAULTS
#########################################################################
#
# WARNING: Do NOT modify these variables unless you know what you are
#          doing.
#
PKGEXT='.pkg.tar.xz'
SRCEXT='.src.tar.gz'

Last edited by Krasauskas (2019-02-19 18:58:23)

Offline

#2 2019-02-19 16:41:37

schard
Forum Moderator
From: Hannover
Registered: 2016-05-06
Posts: 1,976
Website

Re: [SOLVED] Some installations from AUR fail.

Please use code tags and show us your ~/makepkg.conf.


macro_rules! yolo { { $($tokens:tt)* } => { unsafe { $($tokens)* } }; }

Offline

#3 2019-02-19 16:54:12

loqs
Member
Registered: 2014-03-06
Posts: 17,323

Re: [SOLVED] Some installations from AUR fail.

MAKEFLAGS = -j9 -march=skylake -O3 -pipe

Why are you setting '-march=skylake -O3 -pipe' in MAKEFLAGS,  CFLAGS,  CPPFLAGS and CXXFLAGS?

Last edited by loqs (2019-02-19 16:54:25)

Offline

#4 2019-02-19 17:19:34

eschwartz
Fellow
Registered: 2014-08-08
Posts: 4,097

Re: [SOLVED] Some installations from AUR fail.

loqs wrote:
MAKEFLAGS = -j9 -march=skylake -O3 -pipe

Why are you setting '-march=skylake -O3 -pipe' in MAKEFLAGS,  CFLAGS,  CPPFLAGS and CXXFLAGS?

Indeed, the consequences of this are passing the following make options:

  -b, -m                      Ignored for compatibility.
make: invalid option -- 'a'
  -r, --no-builtin-rules      Disable the built-in implicit rules.
make: invalid option -- 'c'
  -h, --help                  Print this message and exit.
make: invalid option -- '='
  -s, --silent, --quiet       Don't echo recipes.
  -k, --keep-going            Keep going when some targets can't be made.
make: invalid option -- 'y'
  -l [N], --load-average[=N], --max-load[=N]
                              Don't start multiple jobs unless load is below N. # no argument, removes previous load average
make: invalid option -- 'a'
  -k, --keep-going            Keep going when some targets can't be made. # again
  -e, --environment-overrides
                              Environment variables override makefiles.

  -O[TYPE], --output-sync[=TYPE]
                              Synchronize output of parallel jobs by TYPE. # with type="3"

  -p, --print-data-base       Print make's internal database.
  -i, --ignore-errors         Ignore errors from recipes.
  -p, --print-data-base       Print make's internal database. # again
  -e, --environment-overrides
                              Environment variables override makefiles. # again

This is a lot of strange arguments to GNU make, of which multiple are completely incompatible with actually running make, like the --help flag or --print-data-base.

Krasauskas wrote:

I've tried searching for "make: *** unknown output-sync type '3'.  Stop." and vpath, but couldn't find anything useful. Any pointers are appreciated!

I found lots of useful results for the first error message, they all implied that output-sync is a command-line argument being passed to the "make" command.


Managing AUR repos The Right Way -- aurpublish (now a standalone tool)

Offline

#5 2019-02-19 18:57:58

Krasauskas
Member
Registered: 2019-02-19
Posts: 2

Re: [SOLVED] Some installations from AUR fail.

Thank you! This is now solved. Turns out, AUR packages break with anything but the standard makepkg.conf. Removing all the MAKEFLAGS was the trick.

Offline

#6 2019-02-19 19:15:11

loqs
Member
Registered: 2014-03-06
Posts: 17,323

Re: [SOLVED] Some installations from AUR fail.

Krasauskas wrote:

Thank you! This is now solved. Turns out, AUR packages break with anything but the standard makepkg.conf. Removing all the MAKEFLAGS was the trick.

No AUR packages should not break with valid MAKEFLAGS or other makepkg.conf changes as long as the flags are valid.
eschwartz already covered what the flags you passed to make cause it to do.  You added flags to CPPFLAGS that are pointless in preprocessing.
Makepkg#Building_optimized_binaries
Makepkg#Parallel_compilation

Offline

#7 2019-02-20 18:54:32

eschwartz
Fellow
Registered: 2014-08-08
Posts: 4,097

Re: [SOLVED] Some installations from AUR fail.

Krasauskas wrote:

Thank you! This is now solved. Turns out, AUR packages break with anything but the standard makepkg.conf. Removing all the MAKEFLAGS was the trick.

AUR packages will also fail to build correctly if you try to build them by writing their names down on a piece of paper, wadding it into a ball, and firing it out of a potato gun. But then, no one ever claimed a potato gun is useful for building AUR packages.

Likewise, no one ever claimed that GCC compiler command-line options are also valid GNU MAKE command-line options... so why did you try to do so anyway?


Managing AUR repos The Right Way -- aurpublish (now a standalone tool)

Offline

Board footer

Powered by FluxBB