This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Question on target specifications for a SPARC machine


Hi All

How do the target specifications work for a sun machine? I'm trying to build a Linux to Solaris on SPARC cross compiler.

I'm using "sparc-sun-solaris2.9" for the target... Does the 2.9 indicate the target version of Solaris, or the version of the SPARC architecture, or ??? . I've dug around and can't seem to track this info down... I'm a bit of a newbie at this stuff so any help is greatly appreciated.

Thanks
Mark

Mark Cuss, B. Sc.
Software Developer
Systems Administrator
CDL Systems Ltd.
Suite 220
3553 31 Street NW
Calgary, AB, Canada
T2L 2K7

Phone 403 289 1733 ext 226
Fax 403 289 3967
mcuss@cdlsystems.com
www.cdlsystems.com
----- Original Message ----- From: "Albert Chin" <gcc@mlists.thewrittenword.com>
To: <gcc@gcc.gnu.org>
Sent: Monday, November 07, 2005 4:39 PM
Subject: Re: Does gcc-3.4.3 for HP-UX 11.23/IA-64 work?



On Mon, Nov 07, 2005 at 03:13:24PM -0800, Jim Wilson wrote:
Albert Chin wrote:
>The "*libgcc" line from the 3.4.3/3.4.4 specs file:
>  *libgcc:
>  %{shared-libgcc:%{!mlp64:-lgcc_s}%{mlp64:-lgcc_s_hpux64}
>  %{static|static-libgcc:-lgcc -lgcc_eh
>  -lunwind}%{!static:%{!static-libgcc:%{!shared:%{!shared-libgcc:-lgcc
>  -lgcc_eh -lunwind}%{shared-libgcc:-lgcc_s%M -lunwind
>  -lgcc}}%{shared:-lgcc_s%M -lunwind}}}}    %{!shared-libgcc:-lgcc}

It looks like there is a close-brace '}' missing after the
-lgcc_s_hpux64.  This will terminate the shared-libgcc rule before
the static rule starts.  Then delete one of the 4 close braces after
the -lunwind.  There are one too many braces here.

I set ':set showmatch' in vim and all the braces match up.


I don't see this problem in the FSF gcc tree.  I'm guessing this is
a mistake in the HP gcc sources that you are using.

The above is from gcc-3.4.3 + some patches. However, the HP 3.4.4 binary has the same "*libgcc" line. Do you have a GCC 3.4.x binary on HP/IA-64 which works correctly with -shared?

--
albert chin (china@thewrittenword.com)




Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]