Karl Kleinpaste <karl(a)justresearch.com> wrote:
Darryl Okahata <darrylo(a)sr.hp.com> writes:
> OK, I've just compiled Pyrenean using an old gcc 2.8.1, and it
> seems to work fine.
Interesting. It might be useful to know why your build worked so
readily, whereas I've had maybe a dozen failures in the last couple
days when trying variations on "-g -O3 -Wall -Wno-switch", as auto-
selected (usually, and certainly initially) by configure. Also, why
the 20.4 builder (Marcus Thiessel <thiessel(a)rhrk.uni-kl.de>) chose the
long, involved set of options I've subsequently used with success.
I don't know. I can only surmise that he's using a pure-GNU
version of gcc. I'm using a gcc that's configured to use HP's ld.
There may also be bugs in the HPPA version of gcc. Like the i386
gcc, the HPPA gcc may also have optimizer bugs.
If it matters, the machine in question has gcc 2.7.2, with
"uname -a"
showing "HP-UX clyde A.09.07 A 9000/735 2010262023 two-user license".
Strictly a gcc age issue, perhaps?
As said before, details at
http://www.cs.cmu.edu/~karl/xemacs-21/.
[ Hmm. Mumble. Clang. Crash ... I've got a 9.07 system w/gcc 2.7.2.2
around here somewhere .... ]
Eeep. Pyrenean crashes with gcc -g.
Yow. It's a bug in XEmacs -- configure, specifically. I think
it'll only be seen on HP-UX 9.0 (and 8.0?) systems, though; I'm pretty
sure that HP-UX 10 and 11 are safe.
For some reason, under HP-UX 9.0, running "./configure" (without
any arguments) results in XEmacs using the include file, "s/hpux9.h",
but the build process still creates an executable that uses shared
libraries (which requires the use of "s/hpux9-shr.h", instead).
As a workaround, try using:
./configure --dynamic=yes
You could also try the (untested) attached patch. Unfortunately, this
patch isn't quite right (which is why I haven't submitted it to
xemacs-patches), as it doesn't fix the case where people on (ancient)
HP-UX 8/9 systems want to create binaries that don't use shared
libraries. This patch simply makes the use of shared libraries the
default under HP-UX (I don't have the time for anything else).
Comments, anyone?
[ Side note: it's interesting to note that, under HP-UX 10 and HP-UX 11,
any "--dynamic" option to configure is ignored, because the files,
"s/hpux10.h" and "s/hpux11.h", always build XEmacs executables that
use shared libraries. ]
--
Darryl Okahata
darrylo(a)sr.hp.com
DISCLAIMER: this message is the author's personal opinion and does not
constitute the support, opinion, or policy of Hewlett-Packard, or of the
little green men that have been following him all day.