I'm trying to compile 21.2-beta of XEmacs on my old and slow Sony
NWS-5000 whose OS is NEWS-OS 4.2.1a+RD based on 4.3BSD.
By some modification of src/m/news-risc.h, only TWO problem
remains. That is,
collect2: ld returned 1 exit status
Output sections overlap, check -T, -D and -B values (1st)
I think the first one is serious and the other is easy to solve.
Here is Installation.
Gcc is 220.127.116.11 because newer gcc can't be made on this system. I'm
trying it too.
NAKAJI Hiroyuki (中治 弘行)
Show replies by thread
I tried again and failed.
1. HEAD branch (21.1.9?)
2. binutils 2.9.1
3. gcc 2.8.1 (--with-gnu-as --with-gnu-ld and some change to the source)
4. a little change to src/m/news-risc.h and
5. some variable definition in command line (^^;
Temacs dumps core with bus error.
./temacs -batch -l /export2/src/xemacs/src/../lisp/update-elc.el
/bin/sh: 545 Bus error - core dumped
gmake: *** [update-elc.stamp] Error 138
gmake: Leaving directory `/export2/src/xemacs/src'
gmake: *** [src] Error 2
The error is at src/gmalloc.c line 586.
$ gdb temacs
GNU gdb 20000117
Copyright 1998 Free Software Foundation, Inc.
GDB is free software, covered by the GNU General Public License, and you are
welcome to change it and/or distribute copies of it under certain conditions.
Type "show copying" to see the conditions.
There is absolutely no warranty for GDB. Type "show warranty" for details.
This GDB was configured as "mips-sony-bsd"...
(gdb) r -batch -l /export2/src/xemacs/src/../lisp/update-elc.el
Starting program: /export2/src/xemacs/src/temacs -batch -l
Program received signal SIGBUS, Bus error.
malloc (size=0) at gmalloc.c:586
586 next->prev->next = next->next;
#0 malloc (size=0) at gmalloc.c:586
#1 0x40188c in xmalloc (size=16) at alloc.c:392
#2 0x4332d8 in sort_args (argc=4, argv=0x7fffd734) at emacs.c:1816
#3 0x432394 in xemacs_21_1_9_mips_sony_newsos4 (argc=4, argv=0x7fffd734,
envp=0x7fffd748, restart=0) at emacs.c:573
#4 0x433b68 in main (argc=4, argv=0x7fffd734, envp=0x7fffd748) at emacs.c:2075
(gdb) p *next
Cannot access memory at address 0x7080025
Temacs fails in just the beginning stage... (;_;)