![](https://secure.gravatar.com/avatar/d7b88f3e8d1ef46936dd35d4a28f61b2.jpg?s=120&d=mm&r=g)
HiTom, this is related to a known bug for emacs 23.1 and gcc version higher than 4.2.2 (reference is appended below) The ./configure script apparently converts mutli-lined variables escaped with "\" to real new lines instead of taking them over as one variable, thus braking the make file and resulting in make to throw an exception due to the fact that it expects a target and not some variable content (which it thinks are commands). You have two solutions to this: 1. append "CPPFLAGS=-P" to the configure script or set it as environment variable, instructing ./configure to handle "\" for new lines as-is and not converting them. 2. use emacs version 23.2, the initial patch reported to this problem was implemented upstream. Emacs 23.2 is out since may this year and I was able to confirm that it builds correctly. You may want to use this version. Anyhow the pre-processor flag -P also works (man cpp), which would mean that you can build it without adjusting the Pkgfile. Hope this helped. Regards, Shin references: http://bugs.gentoo.org/show_bug.cgi?id=308653 On Sun, Oct 10, 2010 at 7:45 AM, Tom Rindborg <Tom.Rindborg@fatburen.org>wrote:
Hi,
Just upgraded the first of my crux boxes to 2.7 today. While most of the problems encountered are pretty easily solved I just cannot get emacs to compile. The configure step succeeds fine, but the make step fails almost instantly with the following output:
+ make cd lib-src; make all \ CC='gcc' CFLAGS='-O2 -march=i686 -pipe' CPPFLAGS='-D_BSD_SOURCE ' \ LDFLAGS='-Wl,-znocombreloc ' MAKE='make' make[1]: Entering directory `/usr/ports/opt/emacs/work/src/emacs-23.1/lib-src' Makefile:144: *** commands commence before first target. Stop. make[1]: Leaving directory `/usr/ports/opt/emacs/work/src/emacs-23.1/lib-src' make: *** [lib-src] Error 2 =======> ERROR: Building '/usr/ports/opt/emacs/emacs#23.1-1.pkg.tar.gz' failed.
Looking at the lib-src/Makefile at the indicated line (144) it is no wonder it fails:
# ========================== start of cpp stuff ======================= LIBS_MOVE=$(KRB4LIB) $(DESLIB) $(KRB5LIB) $(CRYPTOLIB) $(COM_ERRLIB) $(HESIODLIB) LOADLIBES= ALL_CFLAGS = -D_BSD_SOURCE -DHAVE_CONFIG_H -I. -I../src -I${srcdir} -I${srcdir}/../src ${LDFLAGS} ${CPPFLAGS} ${CFLAGS} <-- this is line 144 LINK_CFLAGS = -D_BSD_SOURCE -DHAVE_CONFIG_H -I. -I../src -I${srcdir} -I${srcdir}/../src ${LDFLAGS} ${CFLAGS} CPP_CFLAGS = -D_BSD_SOURCE -DHAVE_CONFIG_H -I. -I../src -I${srcdir} -I${srcdir}/../src ${CPPFLAGS} ${CFLAGS} BASE_CFLAGS = -D_BSD_SOURCE -DHAVE_CONFIG_H -I. -I../src -I${srcdir} -I${srcdir}/../src ${CPPFLAGS} ${CFLAGS}
For some reason the configure step now seems to think it is appropriate to break lines in a severly broken way.
It is now past midnight, and I would rather go to bed than diving into a multi-hour debugging session, so I wonder, has anyone compiled emacs successfully under 2.7, and in that case how? -- Hälsningar/Best regards, Tom ________________________________________________________________________ Tom Rindborg Phone: +46-8-599 984 40 Stockholm, Sweden MailTo:Tom.Rindborg@fatburen.org "If you have to hate, hate gently." _______________________________________________ CRUX mailing list CRUX@lists.crux.nu http://lists.crux.nu/mailman/listinfo/crux