John,

Thanks for the advice. I added "-mcpu=v8" in the CFLAGS during compilation
but the executables generated are still limited to ultra sparc machines or
higher. The original binary format is of form "ELF 32-bit MSB executable
SPARC Version 1, dynamically linked, stripped" while the new one is "ELF
32-bit MSB executable SPARC32PLUS Version 1, V8+ Required, UltraSPARC1
Extensions Required, dynamically linked, not stripped".

I am not sure what other info you need. I have tried most of the recommended
techniques in Google to no avail.

OS: solaris 2.6
GCC: 3.1.1
BUILD: sun4u

cheers,
--SH

-----Original Message-----
From: John Clarke [mailto:johnc+slug@;kirriwa.net]
Sent: Wednesday, 13 November 2002 3:46 PM
To: [EMAIL PROTECTED]
Subject: Re: [SLUG] Compilation in C

On Wed, Nov 13, 2002 at 03:29:55PM +1100, SH wrote:
> I am having some difficulty trying to compile a program so that it can run
> on both sun4u and sun4m machines. The gcc (v3.1.1) compiler currently sits
> on a SUN ultra sparc (sun4u) machine.
A little more info might help, but here goes anyway. Depending upon how
gcc was configured, it may be generating code for the ultrasparc by
default. Try adding `-mcpu=v8' to your CFLAGS.

Cheers,
John
--
whois [EMAIL PROTECTED]
GPG key id: 0xD59C360F
http://kirriwa.net/john/
--
SLUG - Sydney Linux User's Group - http://slug.org.au/
More Info: http://lists.slug.org.au/listinfo/slug
-- 
SLUG - Sydney Linux User's Group - http://slug.org.au/
More Info: http://lists.slug.org.au/listinfo/slug

Reply via email to