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#16439 - makepkg.conf breaks compilation of any package

Attached to Project: Arch Linux
Opened by J. McBlane (Square) - Friday, 02 October 2009, 23:18 GMT
Last edited by Allan McRae (Allan) - Saturday, 03 October 2009, 00:02 GMT
Task Type Bug Report
Category Packages: Core
Status Closed
Assigned To No-one
Architecture i686
Severity High
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 0
Private No

Details

Description:
makepkg.conf includes an LDFLAGS line that breaks compilation of anything at all through makepkg.
The line was previously commented, but it uncommented in the new file provided in the newer package.

The error given is:
checking for C compiler default output file name...
configure: error: in `/home/square/abs/irssi/src/irssi-0.8.14':
configure: error: C compiler cannot create executables
See `config.log' for more details.
make: *** No targets specified and no makefile found. Stop.
==> ERROR: Build Failed.
Aborting...

And again, this happens with *any* package to be built, and after commenting the LDFLAGS line once more, everything builds properly.

Additional info:
* pacman 3.3.1-1
* makepkg.conf
* broken line: LDFLAGS="-Wl, --hash-style=gnu -Wl, --as-needed"


Steps to reproduce:
Attempt to build a package with the makepkg.conf.pacnew provided from upgrading to the pacman version.
This task depends upon

Closed by  Allan McRae (Allan)
Saturday, 03 October 2009, 00:02 GMT
Reason for closing:  Not a bug
Comment by Jan de Groot (JGC) - Friday, 02 October 2009, 23:20 GMT
What is the output of config.log at the point where it doesn't work?
I've compiled a whole GNOME 2.28 repository with these flags and haven't seen any problems with them.
Comment by J. McBlane (Square) - Friday, 02 October 2009, 23:21 GMT
My apologies, I should have attached that previously.
Comment by Jan de Groot (JGC) - Friday, 02 October 2009, 23:46 GMT
You should remove the spaces from the LDFLAGS after "-Wl,". It's -Wl,--as-needed, not "-Wl,<space>--as-needed"
Comment by Gerardo Exequiel Pozzi (djgera) - Friday, 02 October 2009, 23:55 GMT
makepkg.conf from pacman-3.3.1-1-i686.pkg.tar.gz have the correct LDFLAGS:

LDFLAGS="-Wl,--hash-style=gnu -Wl,--as-needed"

(without spaces as Jan said)

Loading...