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 .
Resolved bug by adding export LDFLAGS="$LDFLAGS -znocombreloc" I also notified spider@gentoo.org who is maintaining the x86 version.
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,
Patch included and tested, things work now