Hi misc@,

I have a slight problem trying to compile a program on an i386 box that has
3.9 installed.  The box until recently ran 4.0-beta but I installed the 
base packages as well as comp.tgz from the 3.9 on it.  It now runs on a 3.9
kernel as well.  However I have this problem, when I compile I get this
message:

# cc -g -o c-exchange c-exchange.c                      
cc: Internal error: Bad system call (program cc1)
Please submit a full bug report.
See <URL:http://gcc.gnu.org/bugs.html> for instructions.

So when I ktrace it (with the -i flag) it shows it's bailing on syscall 
304 which on 3.9 is:

# grep 304 /usr/include/sys/syscall.h
#define SYS_MAXSYSCALL  304

and on 4.0-beta this seems to be:

# grep 304 /usr/include/sys/syscall.h 
#define SYS___getcwd    304

The only binaries that the compile process works through according to ktrace
is the following:

# kdump | awk '$0 ~ /^ [0-9]*/ { print $2 }' | sort -u  

"
<sys/types.h>
==
cc
cc1
error:
ktrace

So in the exec path there isn't too much to go through.

Should these be right for 3.9 (OpenBSD CD)?

# sysctl kern.version
kern.version=OpenBSD 3.9 (GENERIC) #617: Thu Mar  2 02:26:48 MST 2006
    [EMAIL PROTECTED]:/usr/src/sys/arch/i386/compile/GENERIC

# md5 /usr/lib/gcc-lib/i386-unknown-openbsd3.9/3.3.5/cc1 /usr/bin/cc
MD5 (/usr/lib/gcc-lib/i386-unknown-openbsd3.9/3.3.5/cc1) = 
1f2eeaf84b871d8548613341003ea537
MD5 (/usr/bin/cc) = d255b8067c3dc7daf696b13abac1d4ec

# ldd /usr/bin/cc
/usr/bin/cc:
        Start    End      Type Open Ref GrpRef Name
        00000000 00000000 exe  1    0   0      /usr/bin/cc
        0c2b7000 2c2be000 rlib 0    1   0      /usr/lib/libiberty.so.8.0
        0a5cb000 2a5fc000 rlib 0    1   0      /usr/lib/libc.so.39.3
        0d9a6000 0d9a6000 rtld 0    1   0      /usr/libexec/ld.so
# ldd /usr/lib/gcc-lib/i386-unknown-openbsd3.9/3.3.5/cc1
/usr/lib/gcc-lib/i386-unknown-openbsd3.9/3.3.5/cc1:
        Start    End      Type Open Ref GrpRef Name
        00000000 00000000 exe  1    0   0      
/usr/lib/gcc-lib/i386-unknown-openbsd3.9/3.3.5/cc1
        02bfe000 22c05000 rlib 0    1   0      /usr/lib/libiberty.so.8.0
        0062d000 2065e000 rlib 0    1   0      /usr/lib/libc.so.39.3
        0352b000 0352b000 rtld 0    1   0      /usr/libexec/ld.so

So I hope I have provided enough information for someone to pinpoint exactly
what is missing, or where the problem lies.  Can anyone give me some of their
time in helping debugging this problem?

(please contact me privately I'm not subscribed to the list).

-p

-- 
Here my ticker tape .signature #### My name is Peter Philipp #### lynx -dump 
"http://en.wikipedia.org/w/index.php?title=Pufferfish&oldid=20768394"; | sed -n 
131,137p #### http://centroid.eu #### So long and thanks for all the fish!!!

Reply via email to