The simple "Hello World" program worked on both platforms so I don't think
2.6->2.7 is the issue. This is really bizarre.

Thanks anyway,
--SH


-----Original Message-----
From: John Clarke [mailto:johnc+slug@;kirriwa.net]
Sent: Thursday, 14 November 2002 11:14 AM

On Thu, Nov 14, 2002 at 10:15:50AM +1100, SH wrote:
> The older SUN machine actually runs solaris 2.7 while the "newer" one
still
> runs 2.6. I would have thought that programs compiled in 2.6 should be
> forward compatible with 2.7. I was using gcc 3.1.1 on the sun4u machine.
I'd expect them to be compatible.
> When I compiled a simple "Hello World" program without the "-mcpu=v8" flag
> on the sun4u machine, the executable was a simple "SPARC Version 1" -
which
So the default cpu built into your gcc is probably v7 (that's the
default if none is specified when gcc is configured). Did this program
run on the sun4m? If this simple program doesn't work, then maybe it's
2.6 -> 2.7 that's the problem, not sun4u -> sun4m.
> I downgraded to gcc 2.8.1 but that didn't seem to fix it. Looks like I'll
> have to try gcc 3.2.
I don't think that'll help, but it can't hurt to try.
-- 
SLUG - Sydney Linux User's Group - http://slug.org.au/
More Info: http://lists.slug.org.au/listinfo/slug

Reply via email to