This is the mail archive of the
gcc-help@gcc.gnu.org
mailing list for the GCC project.
Re: Emacs 20.6 make failure on GNU/Linux
- To: gcc-help at gcc dot gnu dot org
- Subject: Re: Emacs 20.6 make failure on GNU/Linux
- From: Bill Richter <richter at math dot nwu dot edu>
- Date: Sat, 17 Jun 2000 22:12:28 -0500 (CDT)
To: bug-binutils@gnu.org
Following my success in making `make', I've now suceeded in making
Emacs 20.7 by the kludge of replacing each command
gcc * -o filename *
by
gcc * -o /tmp/temporary-file *
mv -f /tmp/temporary-file filename
I'm compiling on a machine (poincare) running Red Hat Linux 6.1, but
the source code is exported from Solaris 2.6. I think this shows we
have some NFS problem, either on the GNU/Linux or Solaris side.
This always fails:
cd emacs-20.7
make clean
cd src
make CFLAGS=-g
I make `temacs', but fail to dump `emacs', and get error messages like
./temacs -batch -l loadup dump
make: *** [emacs] Segmentation fault
But this always succeeds:
cd emacs-20.7
make clean
cd src
bash -x kludge-src-emacs-make
where `kludge-src-emacs-make' is the shell script below. Here's
evidence of a successfully dumped emacs:
(version)
"GNU Emacs 20.7.1 (i686-pc-linux-gnu, X toolkit)
of Sat Jun 17 2000 on poincare.math.nwu.edu"
I don't know enough `make' to change the Makefile, so I edited the
output of `make CFLAGS=-g'. Here's kludge-src-emacs-make:
gcc -c -D_BSD_SOURCE -D_XOPEN_SOURCE -Demacs -DHAVE_CONFIG_H \
-DUSE_LUCID -I. -I/.autofs/home/richter/auto-test/emacs-20.7/src \
-D_BSD_SOURCE -D_XOPEN_SOURCE -I/usr/X11R6/include -g \
pre-crt0.c -o /tmp/temporary-file
mv -f /tmp/temporary-file pre-crt0.o
cd ../lwlib
gcc -c -DUSE_LUCID -D_BSD_SOURCE -D_XOPEN_SOURCE \
-I/usr/X11R6/include -g -DEMACS_BITMAP_FILES -DHAVE_CONFIG_H \
-Demacs -I. -I../src \
-I/.autofs/home/richter/auto-test/emacs-20.7/lwlib \
-I/.autofs/home/richter/auto-test/emacs-20.7/lwlib/../src \
/.autofs/home/richter/auto-test/emacs-20.7/lwlib/lwlib.c \
-o /tmp/temporary-file
mv -f /tmp/temporary-file lwlib.o
for make_OBJECT in lwlib-Xlw xlwmenu lwlib-Xaw lwlib-utils
do
gcc -c -D_BSD_SOURCE -D_XOPEN_SOURCE -I/usr/X11R6/include -g \
-DEMACS_BITMAP_FILES -DHAVE_CONFIG_H -Demacs -I. -I../src \
-I/.autofs/home/richter/auto-test/emacs-20.7/lwlib -I../src \
$make_OBJECT.c -o /tmp/temporary-file
mv -f /tmp/temporary-file $make_OBJECT.o
done
rm -f liblw.a
ar cq liblw.a lwlib.o lwlib-Xlw.o xlwmenu.o lwlib-Xaw.o lwlib-utils.o
cd ../src
touch stamp-oldxmenu
for make_OBJECT in \
dispnew frame scroll xdisp xmenu window charset coding category ccl cm \
term xfaces xterm xfns xselect xrdb fontset emacs keyboard macros \
keymap sysdep buffer filelock insdel marker intervals textprop minibuf \
fileio dired filemode cmds casetab casefiddle indent search regex undo \
alloc data doc editfns callint eval floatfns fns print lread abbrev \
syntax unexelf mocklisp bytecode process callproc region-cache doprnt \
strftime getloadavg terminfo lastfile vm-limit widget
do
gcc -c -D_BSD_SOURCE -D_XOPEN_SOURCE -Demacs -DHAVE_CONFIG_H \
-DUSE_LUCID -I. -I/.autofs/home/richter/auto-test/emacs-20.7/src \
-D_BSD_SOURCE -D_XOPEN_SOURCE -I/usr/X11R6/include -g \
$make_OBJECT.c -o /tmp/temporary-file
mv -f /tmp/temporary-file $make_OBJECT.o
done
gcc -Demacs -DHAVE_CONFIG_H -DUSE_LUCID \
-I. -I/.autofs/home/richter/auto-test/emacs-20.7/src -D_BSD_SOURCE \
-D_XOPEN_SOURCE -I/usr/X11R6/include -g -L/usr/X11R6/lib \
/.autofs/home/richter/auto-test/emacs-20.7/src/prefix-args.c -o \
-o /tmp/temporary-file
mv -f /tmp/temporary-file prefix-args
gcc -nostdlib `./prefix-args -Xlinker -R/usr/X11R6/lib \
-L/usr/X11R6/lib ` -o /tmp/temporary-file \
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 intervals.o \
textprop.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 doprnt.o strftime.o getloadavg.o \
terminfo.o lastfile.o vm-limit.o widget.o ../lwlib/liblw.a \
-L/usr/X11R6/lib -lXaw -lXmu -lXt -lSM -lICE -lXext -lX11 \
-lncurses -lm -lgcc -lc -lgcc /usr/lib/crtn.o
mv -f /tmp/temporary-file temacs
rm -f ../etc/DOC
../lib-src/make-docfile -d \
/.autofs/home/richter/auto-test/emacs-20.7/src sunfns.o dosfns.o \
msdos.o intervals.o textprop.o xterm.o xfns.o xmenu.o xselect.o \
xrdb.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 intervals.o \
textprop.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 doprnt.o strftime.o getloadavg.o > \
../etc/DOC
../lib-src/make-docfile -a ../etc/DOC -d \
/.autofs/home/richter/auto-test/emacs-20.7/src ../lisp/facemenu.elc \
../lisp/float-sup.elc ../lisp/frame.elc ../lisp/menu-bar.elc \
../lisp/mouse.elc ../lisp/select.elc ../lisp/scroll-bar.elc \
../lisp/vmsproc.elc ../lisp/vms-patch.elc ../lisp/ls-lisp.elc \
../lisp/dos-fns.elc ../lisp/w32-fns.elc ../lisp/dos-w32.elc \
../lisp/abbrev.elc ../lisp/buff-menu.elc ../lisp/byte-run.elc \
../lisp/cus-start.el ../lisp/custom.elc \
../lisp/emacs-lisp/lisp-mode.elc ../lisp/emacs-lisp/lisp.elc \
../lisp/faces.elc ../lisp/files.elc ../lisp/format.elc \
../lisp/help.elc ../lisp/indent.elc ../lisp/isearch.elc \
../lisp/loadup.el ../lisp/loaddefs.el ../lisp/bindings.el \
../lisp/map-ynp.elc ../lisp/international/mule.elc \
../lisp/international/mule-conf.el \
../lisp/international/mule-cmds.elc \
../lisp/international/characters.elc ../lisp/case-table.elc \
../lisp/language/chinese.elc ../lisp/language/cyrillic.elc \
../lisp/language/indian.elc ../lisp/language/devanagari.elc \
../lisp/language/english.elc ../lisp/language/ethiopic.elc \
../lisp/language/european.elc ../lisp/language/czech.elc \
../lisp/language/slovak.elc ../lisp/language/romanian.elc \
../lisp/language/greek.elc ../lisp/language/hebrew.elc \
../lisp/language/japanese.elc ../lisp/language/korean.elc \
../lisp/language/lao.elc ../lisp/language/thai.elc \
../lisp/language/tibetan.elc ../lisp/language/vietnamese.elc \
../lisp/language/misc-lang.elc ../lisp/paths.el \
../lisp/register.elc ../lisp/replace.elc ../lisp/simple.elc \
../lisp/startup.elc ../lisp/subr.elc \
../lisp/textmodes/fill.elc ../lisp/textmodes/page.elc \
../lisp/textmodes/paragraphs.elc \
../lisp/textmodes/text-mode.elc ../lisp/vc-hooks.elc \
../lisp/ediff-hook.elc ../lisp/widget.elc ../lisp/window.elc \
../lisp/version.el
./temacs -batch -l loadup dump