Subject: interesting nbmake/gcc configure error
To: None <port-sparc64@netbsd.org>
From: Brian A. Seklecki <lavalamp@spiritual-machines.org>
List: port-sparc64
Date: 05/30/2002 15:00:17
..this is with -current src as of this morning, fresh kernel, and a
userland from the may 12th snapshot:
...on a 'build.sh -t', when src/tools/make/configure is run, it compiles
conftest.c which includes confdefs.h. It then runs a.out to test output,
which is segfault'ing, and causing configure to fail.
confdefs.h:
#define _PATH_BSHELL "/bin/sh"
#define _PATH_DEFSHELLDIR "/bin"
conftest.c:
#line 1295 "configure"
#include "confdefs.h"
int
main ()
{
;
return 0;
}
...and a ktruss of the binary:
$ ktruss ./a.out
= 0
2894 ktruss emul(netbsd)
2894 ktruss "/usr/libexec/ld.elf_so" JUSTRETURN
2894 a.out emul(netbsd)
2894 a.out __sysctl(0xffffffffffffcbb0, 0x2, 0x4030cf18,
0xffffffffffffcba8, 0, 0) = 0
2894 a.out mmap(0, 0x8000, 0x3, 0x1002, 0xffffffffffffffff, 0, 0) =
1075888128
2894 a.out geteuid = 1000
2894 a.out getuid = 1000
2894 a.out getegid = 100
2894 a.out getgid = 100
2894 a.out open("/etc/ld.so.conf", 0, 0xffffffffffffd5fe) Err#2
ENOENT
2894 a.out __stat13("/usr/pkg/lib/libc.so.12", 0xffffffffffffce30)
Err#2 ENOENT
2894 a.out __stat13("/usr/lib/libc.so.12", 0xffffffffffffce30) = 0
2894 a.out open("/usr/lib/libc.so.12", 0, 0x4030cc78) = 3
2894 a.out read(0x3, 0xffffffffffffcdf0, 0x40) = 64
"\^?ELF\^B\^B\^A\0\0\0\0\0\0\0\0\0\0\^C\0+\0\0\0\^A\0\0\0\0\0\^B\M-3"
2894 a.out close(0x3) = 0
2894 a.out open("/usr/lib/libc.so.12", 0, 0x4020e0a0) = 3
2894 a.out __fstat13(0x3, 0xffffffffffffcfb0) = 0
2894 a.out read(0x3, 0xffffffffffffaed0, 0x2000) = 8192
2894 a.out mmap(0, 0x1d6000, 0x5, 0x2, 0x3, 0, 0) = 1076953088
2894 a.out mmap(0x404c8000, 0x10000, 0x7, 0x12, 0x3, 0, 0xb8000) =
1078755328
2894 a.out mmap(0x404d8000, 0xe000, 0x7, 0x1012, 0xffffffffffffffff,
0, 0) = 1078820864
2894 a.out munmap(0x403ca000, 0xfe000) = 0
2894 a.out close(0x3) = 0
SIGSEGV SIG_DFL
...the irony is, I'm able to compile a kernel just fine using the same GCC
binary. Should I go ahead and just install another snapshot from
releng.netbsd.org?
-lava