Subject: problem with "1.5" toolchain: diagnosis.
To: None <>
From: matthew green <>
List: port-sparc64
Date: 12/06/2000 23:11:52
the problem with the toolchain distributed with NetBSD 1.5 is that /usr/libexec/cpp
does not define any of:

#define __arch64__ 1
#define __sparc64__ 1
#define __NetBSD__ 1
#define __sparc_v9__ 1
#define __sparc__ 1
#define __ELF__ 1

as far as i can tell, in a GNU installed tree, $prefix/bin/cpp is a frontend to the
real cpp, which is in $prefix/lib/gcc-lib/.../cpp.  the former defines the various
parts, where the latter is the real backend.  i believe the comp toolchain has just
the backend installed.. the result of this when building NetBSD is that when we call
cpp (/usr/bin/cpp), __ELF__ isn't defined, so we do a.out names for syscalls, which
causes link problems.