Arch Linux

Please read this before reporting a bug:
https://wiki.archlinux.org/title/Bug_reporting_guidelines

Do NOT report bugs when a package is just outdated, or it is in the AUR. Use the 'flag out of date' link on the package page, or the Mailing List.

REPEAT: Do NOT report bugs for outdated packages!
Tasklist

FS#46437 - [cups] failed build

Attached to Project: Arch Linux
Opened by Robert Dale Watson (gillecaluim) - Friday, 25 September 2015, 15:24 GMT
Last edited by Doug Newgard (Scimmia) - Friday, 25 September 2015, 16:08 GMT
Task Type Bug Report
Category Packages: Extra
Status Closed
Assigned To No-one
Architecture All
Severity Medium
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 0
Private No

Details

Description:
Failure to build cups 2.1.0...
==> Making package: cups 2.1.0-1 (Fri Sep 25 01:13:02 PDT 2015)
==> Checking runtime dependencies...
==> Checking buildtime dependencies...
==> Retrieving sources...
-> Found cups-2.1.0-source.tar.bz2
-> Found cups-2.1.0-source.tar.bz2.sig
-> Found cups.logrotate
-> Found cups.pam
-> Found cups-no-export-ssllibs.patch
-> Found cups-no-gcrypt.patch
-> Found cups-no-gzip-man.patch
-> Found cups-1.6.2-statedir.patch
-> Found cups-1.6.0-fix-install-perms.patch
==> Validating source files with md5sums...
cups-2.1.0-source.tar.bz2 ... Passed
cups-2.1.0-source.tar.bz2.sig ... Skipped
cups.logrotate ... Passed
cups.pam ... Passed
cups-no-export-ssllibs.patch ... Passed
cups-no-gcrypt.patch ... Passed
cups-no-gzip-man.patch ... Passed
cups-1.6.2-statedir.patch ... Passed
cups-1.6.0-fix-install-perms.patch ... Passed
==> Verifying source file signatures with gpg...
cups-2.1.0-source.tar.bz2 ... Passed
==> Extracting sources...
-> Extracting cups-2.1.0-source.tar.bz2 with bsdtar
==> Starting prepare()...
patching file config-scripts/cups-ssl.m4
Hunk #1 succeeded at 104 (offset -76 lines).
patching file config-scripts/cups-ssl.m4
Hunk #1 succeeded at 63 (offset 3 lines).
patching file config-scripts/cups-manpages.m4
Hunk #1 succeeded at 55 (offset -14 lines).
patching file config-scripts/cups-directories.m4
Hunk #1 succeeded at 298 (offset -122 lines).
patching file Makedefs.in
==> Removing existing $pkgdir/ directory...
==> Starting build()...
checking for gawk... gawk
checking for clang... clang
checking whether the C compiler works... no
configure: error: in `/home/ourhome/packages/directory/depends/samba/cups/src/cups-2.1.0':
configure: error: C compiler cannot create executables
See `config.log' for more details
==> ERROR: A failure occurred in build().


Additional info:
pacman -Q gcc -> gcc 5.2.0-2

config.log file
This file contains any messages produced by compilers while
running configure, to aid debugging if configure makes a mistake.

It was created by CUPS configure 2.1.0, which was
generated by GNU Autoconf 2.69. Invocation command line was

$ ./configure --prefix=/usr --sysconfdir=/etc --localstatedir=/var --sbindir=/usr/bin --libdir=/usr/lib --with-logdir=/var/log/cups --with-docdir=/usr/share/cups/doc --with-cups-user=daemon --with-cups-group=lp --enable-pam=yes --enable-raw-printing --enable-dbus --with-dbusdir=/etc/dbus-1 --enable-ssl=yes --enable-threads --enable-avahi --enable-libpaper --with-php=/usr/bin/php-cgi --with-optim=-march=x86-64 -mtune=generic -O2 -pipe -fstack-protector-strong --param=ssp-buffer-size=4

## --------- ##
## Platform. ##
## --------- ##

hostname = server.ourhome.net
uname -m = x86_64
uname -r = 4.1.6-1-ARCH
uname -s = Linux
uname -v = #1 SMP PREEMPT Mon Aug 17 08:52:28 CEST 2015

/usr/bin/uname -p = unknown
/bin/uname -X = unknown

/bin/arch = unknown
/usr/bin/arch -k = unknown
/usr/convex/getsysinfo = unknown
/usr/bin/hostinfo = unknown
/bin/machine = unknown
/usr/bin/oslevel = unknown
/bin/universe = unknown

PATH: /usr/lib/hardening-wrapper/bin
PATH: /usr/local/sbin
PATH: /usr/local/bin
PATH: /usr/bin
PATH: /usr/lib/jvm/default/bin
PATH: /usr/bin/site_perl
PATH: /usr/bin/vendor_perl
PATH: /usr/bin/core_perl


## ----------- ##
## Core tests. ##
## ----------- ##

configure:2592: checking for gawk
configure:2608: found /usr/bin/gawk
configure:2619: result: gawk
configure:2684: checking for clang
configure:2700: found /usr/lib/hardening-wrapper/bin/clang
configure:2711: result: clang
configure:2742: checking for C compiler version
configure:2751: clang --version >&5
configure:2762: $? = 1
configure:2751: clang -v >&5
configure:2762: $? = 1
configure:2751: clang -V >&5
configure:2762: $? = 1
configure:2751: clang -qversion >&5
configure:2762: $? = 1
configure:2782: checking whether the C compiler works
configure:2804: clang -march=x86-64 -mtune=generic -O2 -pipe -fstack-protector-strong --param=ssp-buffer-size=4 -D_FORTIFY_SOURCE=2 -Wl,-O1,--sort-common,--as-needed,-z,relro conftest.c >&5
configure:2808: $? = 1
configure:2846: result: no
configure: failed program was:
| /* confdefs.h */
| #define PACKAGE_NAME "CUPS"
| #define PACKAGE_TARNAME "cups"
| #define PACKAGE_VERSION "2.1.0"
| #define PACKAGE_STRING "CUPS 2.1.0"
| #define PACKAGE_BUGREPORT "https://www.cups.org/str.php"
| #define PACKAGE_URL "https://www.cups.org/"
| #define CUPS_SVERSION "CUPS v2.1.0"
| #define CUPS_MINIMAL "CUPS/2.1.0"
| /* end confdefs.h. */
|
| int
| main ()
| {
|
| ;
| return 0;
| }
configure:2851: error: in `/home/ourhome/packages/directory/depends/samba/cups/src/cups-2.1.0':
configure:2853: error: C compiler cannot create executables

Steps to reproduce:
This task depends upon

Closed by  Doug Newgard (Scimmia)
Friday, 25 September 2015, 16:08 GMT
Reason for closing:  Not a bug
Comment by Doug Newgard (Scimmia) - Friday, 25 September 2015, 15:40 GMT
Get rid of the hardening-wrapper.
Comment by Robert Dale Watson (gillecaluim) - Friday, 25 September 2015, 15:50 GMT
sorry for my ignorance but how is that being added?
I don't see any mention of it in the makepkg.conf file or the cups PKGBUILD
Comment by Doug Newgard (Scimmia) - Friday, 25 September 2015, 15:55 GMT
It's a package you have installed.
Comment by Robert Dale Watson (gillecaluim) - Friday, 25 September 2015, 16:07 GMT
Thanks, it must have been installed as a dependency. Removing it allowed me to build cups successfully. Is there a way to modify the PKGBUILD to prevent its inclusion?
Comment by Doug Newgard (Scimmia) - Friday, 25 September 2015, 16:08 GMT
Not really. The PKGBUILD can't account for every random thing you might have installed. That's why packages are built in a clean chroot.

Loading...