Subject: Unable to make emacs
To: None <tech-pkg@netbsd.org>
From: Konrad Neuwirth <konrad@mailathome.or.at>
List: tech-pkg
Date: 09/24/2003 14:14:32
For a while now, I've been unable to compile emacs under current; I
don't know when it started, but my tries started at 1.6U and it's
still the same with 1.6ZC built just in the last two hours. 

The build system is: 
|   NetBSD amelie 1.6ZC NetBSD 1.6ZC (GENERIC) #21: Tue Sep 23 11:25:37 CEST 2003  root@amelie:/home/build/obj/sys/arch/i386/compile/GENERIC i386
  
and this is what happens. 

| [amelie:/usr/pkgsrc/editors/emacs]# make
| ===> Checking for vulnerabilities in emacs-21.3nb1
| ===> Building for emacs-21.3nb1
| if [ ! -f /usr/pkgsrc/editors/emacs/work/emacs-21.3/lisp/abbrev.elc ]; then \
|   /usr/pkg/bin/gmake  bootstrap; \
| fi
| cd lib-src; /usr/pkg/bin/gmake all  \
|   CC='cc' CFLAGS='-O2 -I/usr/pkg/include -I/usr/X11R6/include' CPPFLAGS='-I/usr/pkg/include -I/usr/X11R6/include' \
|   LDFLAGS='-Wl,-z,nocombreloc -Wl,-R/usr/pkg/lib -L/usr/pkg/lib  -Wl,-R/usr/X11R6/lib -L/usr/X11R6/lib -L/usr/X11R6/lib' MAKE='/usr/pkg/bin/gmake'
| gmake[1]: Entering directory `/usr/pkgsrc/editors/emacs/work/emacs-21.3/lib-src'gmake[1]: Nothing to be done for `all'.
| gmake[1]: Leaving directory `/usr/pkgsrc/editors/emacs/work/emacs-21.3/lib-src'
| cd src; /usr/pkg/bin/gmake all  \
|   CC='cc' CFLAGS='-O2 -I/usr/pkg/include -I/usr/X11R6/include' CPPFLAGS='-I/usr/pkg/include -I/usr/X11R6/include' \
|   LDFLAGS='-Wl,-z,nocombreloc -Wl,-R/usr/pkg/lib -L/usr/pkg/lib  -Wl,-R/usr/X11R6/lib -L/usr/X11R6/lib -L/usr/X11R6/lib' MAKE='/usr/pkg/bin/gmake'
| gmake[1]: Entering directory `/usr/pkgsrc/editors/emacs/work/emacs-21.3/src'
| cd ../lwlib/; /usr/pkg/bin/gmake -w       CC='cc' CFLAGS='-O2 -I/usr/pkg/include -I/usr/X11R6/include' MAKE='/usr/pkg/bin/gmake'     "C_SWITCH_X_SITE=-I/usr/X11R6/include "     "C_SWITCH_X_MACHINE="     "C_SWITCH_X_SYSTEM="     "C_SWITCH_SITE="     "C_SWITCH_MACHINE="     "C_SWITCH_SYSTEM="
| gmake[2]: Entering directory `/usr/pkgsrc/editors/emacs/work/emacs-21.3/lwlib'
| gmake[2]: Nothing to be done for `all'.
| gmake[2]: Leaving directory `/usr/pkgsrc/editors/emacs/work/emacs-21.3/lwlib'
| LC_ALL=C ./temacs -batch -l loadup dump
| [1]   Bad system call (core dumped) LC_ALL=C ./temac...
| gmake[1]: *** [emacs] Error 140
| gmake[1]: Leaving directory `/usr/pkgsrc/editors/emacs/work/emacs-21.3/src'
| gmake: *** [src] Error 2
| *** Error code 2
| 
| Stop.
| 
| make: stopped in /usr/pkgsrc/editors/emacs
| *** Error code 1
| 
| Stop.
| make: stopped in /usr/pkgsrc/editors/emacs

Also, an emacs binary that I still have always dumps core on exit;
this is what happens according to gdb: 

| (gdb) bt
| #0  0x8167b27 in open ()
| #1  0x80cc17a in dlsym ()
| #2  0x816f168 in getcwd ()
| #3  0x80cd5e4 in abort ()
| #4  0x812145e in abort ()
| #5  0x8148184 in matherr ()
| #6  0x8121a1d in abort ()
| #7  0x812158d in abort ()
| #8  0x811e207 in abort ()
| #9  0x80d8171 in abort ()
| #10 0x80cf1c9 in abort ()
| #11 0x811f9fd in abort ()
| #12 0x80ce578 in abort ()
| #13 0x811f624 in abort ()
| #14 0x80ce52a in abort ()
| #15 0x80ce0b1 in abort ()
| #16 0x80ce1d8 in abort ()
| #17 0x80cd188 in abort ()
| #18 0x804d51c in XMapRaised ()

Unfortunately, I can't provide more information because---I can't
build a new binary with more debug information.

Is there any way that this can be resolved quickly and I'm just
missing?  

Thanks,
 Konrad

PS: For future reference, is it better to send-pr something like this,
or continue sending it here?