Subject: Re: uname: Bad address
To: Chris G. Demetriou <cgd@pa.dec.com>
From: Patrick Welche <prlw1@cam.ac.uk>
List: port-arm32
Date: 06/05/1998 16:08:00
Chris G. Demetriou wrote:
> 
> > During my last make build using a freshly built current from
> > 1.3-alpha, I got
> > 
> > make: uname: Bad address
> 
> I seem to recall running into this problem when using a
> compiler/assembler combination that didn't understand symbol type
> information properly.  In my situation, it was only a problem for
> dynamically linked binaries.
> 
> Do statcially-linked binaries show the problem as well?  Maybe your
> compiler and assembler are out of sync somehow.  (I've not been
> following all of the assembler-related changes, but I know there was a
> change to the type specifier character, and I don't recall if it was
> done so that the specifier used by the old compiler works properly.)

There was I thinking how amazing it was that not only the build of
current / egcs worked, but then using it, no cc core dumps while
compiling dhcp even with optimisation on!

I thought I would try to compile uname statically, so stage one:

# cc -O  -Werror -Wall -Wstrict-prototypes -Wmissing-prototypes
-Wpointer-arith  -c /usr/src/usr.bin/uname/uname.c
cc: Internal compiler error: program cc1 got fatal signal 11

or with the versions:

# cc -v -O  -Werror -Wall -Wstrict-prototypes -Wmissing-prototypes
    -Wpointer-arith  -c /usr/src/usr.bin/uname/uname.c
Using builtin specs.
gcc version egcs-2.90.27 980315 (egcs-1.0.2 release)
    /usr/libexec/cpp -lang-c -v -undef -D__GNUC__=2 -D__GNUC_MINOR__=90
    -D__arm32__ -D__NetBSD__ -D__KPRINTF_ATTRIBUTE__ -D__arm32__
    -D__NetBSD__ -D__KPRINTF_ATTRIBUTE__ -D__CHAR_UNSIGNED__
    -D__OPTIMIZE__ -Werror -Wall -Wstrict-prototypes -Wmissing-prototypes
    -Wpointer-arith /usr/src/usr.bin/uname/uname.c /var/tmp/cc00164a.i
GNU CPP version egcs-2.90.27 980315 (egcs-1.0.2 release) (ARM/NetBSD)
#include "..." search starts here:
#include <...> search starts here:
 /usr/include
End of search list.
 /usr/libexec/cc1 /var/tmp/cc00164a.i -quiet -dumpbase uname.c -O
    -Werror -Wall -Wstrict-prototypes -Wmissing-prototypes -Wpointer-arith
    -version -o /var/tmp/cc00164a.s
GNU C version egcs-2.90.27 980315 (egcs-1.0.2 release) (arm-netbsd)
    compiled by GNU C version 2.7.2.2+myc1.
cc: Internal compiler error: program cc1 got fatal signal 11


Cheers,

Patrick