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#19283 - [emacs] does not build from its PKGBUILD

Attached to Project: Arch Linux
Opened by Raphael Kubo da Costa (rakuco) - Thursday, 29 April 2010, 01:42 GMT
Last edited by Jürgen Hötzel (juergen) - Friday, 30 April 2010, 14:07 GMT
Task Type Bug Report
Category Packages: Extra
Status Closed
Assigned To Jürgen Hötzel (juergen)
Architecture All
Severity Low
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 0
Private No

Details

Description:

After using ABS, I copied the extra/emacs directory to my /tmp and ran makepkg from it. The build then fails right at the beginning with the following error message:

cd lib-src; make all \
CC='gcc' CFLAGS='-march=x86-64 -mtune=generic -O2 -pipe' CPPFLAGS='-D_BSD_SOURCE ' \
LDFLAGS='-Wl,--hash-style=gnu -Wl,--as-needed -Wl,-znocombreloc ' MAKE='make'
make[1]: Entering directory `/tmp/emacs/src/emacs-23.1/lib-src'
Makefile:144: *** commands commence before first target. Stop.
make[1]: Leaving directory `/tmp/emacs/src/emacs-23.1/lib-src'
make: *** [lib-src] Error 2

This is emacs 23.1-5.
This task depends upon

Closed by  Jürgen Hötzel (juergen)
Friday, 30 April 2010, 14:07 GMT
Reason for closing:  Fixed
Additional comments about closing:  Thanks for reporting this issue. Fixed in SVN.
Comment by Kaiting Chen (kaitocracy) - Thursday, 29 April 2010, 11:43 GMT
Apparently the new `cpp` behavior has changed which breaks the build. Not sure what the fix is but apparently Gentoo has it.

http://bugs.gentoo.org/show_bug.cgi?id=308653
Comment by Raphael Kubo da Costa (rakuco) - Thursday, 29 April 2010, 17:38 GMT
The fix is available in emacs HEAD and in patch 6 from the Gentoo patch set.

Further references from the Gentoo patch:
http://debbugs.gnu.org/cgi/bugreport.cgi?bug=5047
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=41748

Basically, cpp must be passed the -P flag.
Comment by Raphael Kubo da Costa (rakuco) - Thursday, 29 April 2010, 17:46 GMT
Hmm, that hasn't solved the issue here. Even after applying Gentoo's patch I still get the same error.

Loading...