Subject: g++ ???
To: None <port-arm32@NetBSD.ORG>
From: Thomas Boroske <y0001006@ws.rz.tu-bs.de>
List: port-arm32
Date: 11/23/1997 05:27:29
A question regarding the c++ compiler: Is it actually working ? 
The rather unoriginal program 

#include <iostream.h>
int main()
{
  cout << "Hello World !!!!\n";
  return 0;
}

compiles and links fine but crashes horribly when you start it with 
core dump - as do all other c++ programs.

I'm using the private/failing-light release with the updated libstdc++
and libg++ librarias that Mark kindly made available a few days ago.

>From /var/log/messages:
Nov 23 05:23:16 myname /netbsd: SYSCALL: nosys code=00bfda7f lr=efbfda3c proc=f15bba00 pid=256 Main
Nov 23 05:23:17 myname /netbsd: Process = f15bba00 pid = 256 comm = Main
Nov 23 05:23:17 myname /netbsd: CPSR=60000013 Traceback info (frame=f2d72fb8)
Nov 23 05:23:17 myname /netbsd: fp->lr=f010c28c fp->pc=f011d480
Nov 23 05:23:17 myname /netbsd: Trapframe PC = efbfda3c
Nov 23 05:23:17 myname /netbsd: Trapframe SPSR = a0000010
Nov 23 05:23:17 myname /netbsd: efbfda34 : @@@@ : 00000000 :    ANDEQ	r0, r0, r0
Nov 23 05:23:17 myname /netbsd: efbfda38 : ?Z?o : efbfda7f :    SWI	0x00bfda7f
Nov 23 05:23:17 myname /netbsd: efbfda3c : LZ?o : efbfda8c :    SWI	0x00bfda8c
Nov 23 05:23:18 myname /netbsd: efbfda40 : <Z?o : efbfdabc :    SWI	0x00bfdabc
Nov 23 05:23:18 myname /netbsd: pmap_debug: level=-2


Any help on getting C++ to work is much appreciated (sorry if this was a 
known problem and I missed it).

Another question regarding libraries and the change in symbol naming
conventions: I suppose that means that you can't use old libraries with 
the new system anymore at all ?

Kind regards,

-- 
Thomas Boroske