Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 2104 - Emacs 21-1-r4 fails emerge
Summary: Emacs 21-1-r4 fails emerge
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: High critical (vote)
Assignee: Pieter Van den Abeele (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2002-04-25 15:49 UTC by Mark Yeun
Modified: 2006-02-04 06:03 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Mark Yeun 2002-04-25 15:49:17 UTC
Sorry, platform is ppc (ibook 2nd gen). Couldn't change it.

using:

emacs-21.1-r4
gcc-2.95.3-r5
binutls-2.12.90.0.4

Error is below. According to a post I found on debian, it's got something to do
with the newer binutils (ld accepts '-z' arguments, but gcc doesn't). The
offending flag is "-z nocombreloc". I also found a suggestion of building with
LDFLAGS="nocombreloc".

http://gcc.gnu.org/ml/gcc/2001-10/msg01473.html is the post. Oh, I also got the
same error with emacs...r3.


gcc -nostdlib    -R/usr/X11R6/lib   -z nocombreloc  -Xlinker -m -Xlinker
elf32ppc            -L/usr/X11R6/lib       -o temacs pre-crt0.o /usr/lib/crt1.o
/usr/lib/crti.o  dispnew.o frame.o scroll.o xdisp.o xmenu.o window.o   charset.o
coding.o category.o ccl.o     cm.o term.o xfaces.o xterm.o xfns.o xselect.o
xrdb.o fontset.o  emacs.o keyboard.o macros.o keymap.o sysdep.o   buffer.o
filelock.o insdel.o marker.o   minibuf.o fileio.o dired.o filemode.o   cmds.o
casetab.o casefiddle.o indent.o search.o regex.o undo.o  alloc.o data.o doc.o
editfns.o callint.o        eval.o floatfns.o fns.o print.o lread.o        
abbrev.o syntax.o unexelf.o  mocklisp.o bytecode.o      process.o callproc.o   
region-cache.o sound.o atimer.o         doprnt.o strftime.o intervals.o
textprop.o composite.o md5.o  terminfo.o lastfile.o vm-limit.o  widget.o       
   ../lwlib/liblw.a -L/usr/X11R6/lib    -lXaw -lXmu  -lXt -lSM -lICE -lXext
-ltiff  -ljpeg  -lpng -lz -lm  -lungif  -lXpm  -lX11              -lncurses    
    -lm  -lgcc -lc -lgcc /usr/lib/crtn.o     
gcc: nocombreloc: No such file or directory
make[1]: *** [temacs] Error 1
make[1]: Leaving directory `/var/tmp/portage/emacs-21.1-r4/work/emacs-21.1/src'
make: *** [src] Error 2

!!! ERROR: The ebuild did not complete successfully.
!!! Function src_compile, Line 30, Exitcode 2
!!! (no error message)

!!! emerge aborting on  /usr/portage/app-editors/emacs/emacs-21.1-r4.ebuild .
Comment 1 Pieter Van den Abeele (RETIRED) gentoo-dev 2002-04-25 16:36:52 UTC
Resolved bug by adding 
export LDFLAGS="$LDFLAGS -znocombreloc"

I also notified spider@gentoo.org who is maintaining the x86 version.
Comment 2 Mark Yeun 2002-04-26 14:04:22 UTC
Hi,

The change you made to the ebuild didn't work. the '-z nocombreloc' is hardwired
into emacs sources. Below is a patch I found to fix it (I tested it). Same place
reports emacs-21.2 compiles without patching. I'll see if I can submit an ebuild
for 21.2...

references: http://www.livingtorah.org/~csebold/emacs/linuxppc.phtml

Just to clarify: the change you made for me in the ebuild file is not necessary
with this patch.



2001-10-22  Andreas Schwab

* m/macppc.h [LINUX]: Override LD_SWITCH_SYSTEM_TEMACS.

--- emacs-21.1/src/m/macppc.h.~1.6.~    Mon Oct  1 10:57:25 2001
+++ emacs-21.1/src/m/macppc.h   Mon Oct 22 21:02:28 2001
@@ -96,6 +96,10 @@
 #ifdef LINUX
 #define LINKER $(CC) -nostdlib
 #define LD_SWITCH_MACHINE -Xlinker -m -Xlinker elf32ppc
+/* s/gnu-linux.h defines this to `-z nocombreloc' which does not work here
+   because prefix-args is not used.  */
+#undef LD_SWITCH_SYSTEM_TEMACS
+#define LD_SWITCH_MACHINE_TEMACS -Xlinker -znocombreloc
 #endif
     
 #if 0  /* This breaks things on PPC GNU/Linux ecept for Yellowdog,
Comment 3 Pieter Van den Abeele (RETIRED) gentoo-dev 2002-04-27 04:04:50 UTC
Patch included and tested, things work now