FAQ Search Today's Posts Mark Forums Read
» Video Reviews

» Linux Archive

Linux-archive is a website aiming to archive linux email lists and to make them easily accessible for linux users/developers.


» Sponsor

» Partners

» Sponsor

Go Back   Linux Archive > CRUX > CRUX

 
 
LinkBack Thread Tools
 
Old 10-09-2010, 10:45 PM
Tom Rindborg
 
Default Problems upgrading emacs to 2.7

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
 
Old 10-10-2010, 08:17 AM
Shin Sterneck
 
Default Problems upgrading emacs to 2.7

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




_______________________________________________
CRUX mailing list
CRUX@lists.crux.nu
http://lists.crux.nu/mailman/listinfo/crux
 
Old 10-10-2010, 10:49 AM
Tom Rindborg
 
Default Problems upgrading emacs to 2.7

Hi Shin,

On Sun, 10 Oct 2010, Shin Sterneck wrote:

> 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.

Absolutely! Fascinating how you learn something new everyday, I wasn't
aware of the -P cpp option, but it certainly helped.

Unless I absolutely need something from the bleeding edge versions of
software I tend to stay with what's in the distro repository, so I'll
stay with 23.1 for now.

Thanks a lot for saving me a couple of hours of boring debugging! :-)
--
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
 
Old 10-10-2010, 11:00 AM
Shin Sterneck
 
Default Problems upgrading emacs to 2.7

Hi Tom,
glad I could help!
Cheers,Shin

On Sun, Oct 10, 2010 at 7:49 PM, Tom Rindborg <Tom.Rindborg@fatburen.org> wrote:

Hi Shin,



On Sun, 10 Oct 2010, Shin Sterneck wrote:



> 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.



Absolutely! Fascinating how you learn something new everyday, I wasn't

aware of the -P cpp option, but it certainly helped.



Unless I absolutely need something from the bleeding edge versions of

software I tend to stay with what's in the distro repository, so I'll

stay with 23.1 for now.



Thanks a lot for saving me a couple of hours of boring debugging! :-)

--

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
 

Thread Tools




All times are GMT. The time now is 04:41 AM.

VBulletin, Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO ©2007, Crawlability, Inc.
Copyright ©2007 - 2008, www.linux-archive.org