Subject: NetBSD 1.3A C++ Problems
To: None <port-arm32@NetBSD.ORG>
From: Deri James <deri@chuzzlewit.demon.co.uk>
List: port-arm32
Date: 11/23/1997 12:29:46
I have been unable to use c++. Given the following program
(test.C):-

    #include <stdlib.h>

    main(){return 0;}

using command:-

    c++ -v test.C
    
produces this output:-

 /usr/bin/cc -v test.C -lstdc++ -lm gcc version 2.7.2.2+myc1
 /usr/libexec/cpp -lang-c++ -v -undef -D__GNUC__=2 -D__GNUG__=2 -D__cplusplus -D__GNUC_MINOR__=7 -Dunix -Darm32 -D__arm32__ -D__arm6__ -Driscbsd -D__NetBSD__ -D__KPRINTF_ATTRIBUTE__ -D__unix__ -D__arm32__ -D__arm32__ -D__arm6__ -D__riscbsd__ -D__NetBSD__ -D__KPRINTF_ATTRIBUTE__ -D__unix -D__arm32 -D__riscbsd -Asystem(unix) -Asystem(NetBSD) -Acpu(arm) -Amachine(arm) -D__CHAR_UNSIGNED__ test.C /var/tmp/cc01050a.ii
GNU CPP version 2.7.2.2+myc1 (ARM/NetBSD)
#include "..." search starts here:
#include <...> search starts here:
 /usr/include/g++
 /usr/include
End of search list.
 /usr/libexec/cc1plus /var/tmp/cc01050a.ii -quiet -dumpbase test.cc -version -o /var/tmp/cc01050a.s
GNU C++ version 2.7.2.2+myc1 (ARM/NetBSD) compiled by GNU C version 2.7.2.2+myc1.
 as -o /var/tmp/cc01050a1.o /var/tmp/cc01050a.s
 ld -e start -dc -dp /usr/lib/crt0.o -L/usr/libexec /var/tmp/cc01050a1.o -lstdc++ -lm -lgcc -lc -lgcc

and when I run the ./a.out the following is returned:-

    Bad system call (core dumped) 

and the following is sent to the system console:-

    Nov 22 18:21:20 chuzzlewit /netbsd: syscall: nosys
    code=12573452 lr=efbfdad0 proc=f1583a00 pid=1059 a.out
    
What am I doing wrong?

Many thanks.

--
Deri James