public inbox for gcc-help@gcc.gnu.org
 help / color / mirror / Atom feed
* RE: 64 bit gcc
@ 2000-12-08 12:44 Grove, David
  2000-12-08 13:28 ` Alexandre Oliva
  0 siblings, 1 reply; 6+ messages in thread
From: Grove, David @ 2000-12-08 12:44 UTC (permalink / raw)
  To: 'Alexandre Oliva'; +Cc: 'gcc-help@gcc.gnu.org'

Thank you for your comment.

I downloaded the binary development snapshot of the 64 bit enabled egcs from
www.sunfreeware.com.

I can successfully create 64 bit object modules.  (as verified by the 'file'
utility).

But when attempting to link with 64 bit libraries supplied by Informix (they
used Sun Workshop 5.0 compiler with -xarch=v9) it fails with the following
message:

"gcc: language arch=v9 not recognized"

I used "-mcpu=ultrasparc" and "-m64" in the command string, but didn't help.

My question is, does the use of -xarch=v9 by Informix in their original
compile of libraries using Sun cc preclude me from using gcc to compile new
64 bit objects and link to the Informix libraries?  In other words, are
there any options I can set in the command string of gcc so that I can link
with libraries compiled with Sun cc using "-xarch=v9"?  If not with the
3/06/2000 snapshot of egcs, perhaps the current development snapshot, or the
anticipated gcc 3.0?

The motivation, of course, is to avoid having to buy Sun's compiler.  It's
ironic that Sun recommended (in a training class I attended) the GNU
compiler over their own product!

Thank you for your comments.

David Grove
State of Alaska
Dept. Health & Social Services



-----Original Message-----
From: Alexandre Oliva [ mailto:aoliva@redhat.com ]
Sent: Wednesday, December 06, 2000 9:54 AM
To: Grove, David
Cc: 'gcc-help@gcc.gnu.org'
Subject: Re: 64 bit gcc


On Dec  6, 2000, "Grove, David" <David_Grove@health.state.ak.us> wrote:

> Have tried using the version of gcc Sun includes as a courtesy with the
> Solaris distribution media.  I used -mcpu=ultrasparc and -m64, but didn't
> work.

This is not fully supported in GCC 2.95.2, the latest official release
of GCC.  It is supposed to work in development snapshots that will
eventually become GCC 3.0

-- 
Alexandre Oliva   Enjoy Guarana', see http://www.ic.unicamp.br/~oliva/
Red Hat GCC Developer                  aoliva@{cygnus.com, redhat.com}
CS PhD student at IC-Unicamp        oliva@{lsd.ic.unicamp.br, gnu.org}
Free Software Evangelist    *Please* write to mailing lists, not to me

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: 64 bit gcc
  2000-12-08 12:44 64 bit gcc Grove, David
@ 2000-12-08 13:28 ` Alexandre Oliva
  0 siblings, 0 replies; 6+ messages in thread
From: Alexandre Oliva @ 2000-12-08 13:28 UTC (permalink / raw)
  To: Grove, David; +Cc: 'gcc-help@gcc.gnu.org'

On Dec  8, 2000, "Grove, David" <David_Grove@health.state.ak.us> wrote:

> But when attempting to link with 64 bit libraries supplied by Informix (they
> used Sun Workshop 5.0 compiler with -xarch=v9) it fails with the following
> message:

> "gcc: language arch=v9 not recognized"

IIRC, this is a flag for the linker, so you have to use -Wl,-xarch=v9
so that GCC doesn't attempt to understand the flag itself, and passes
it literally to the linker.  I'd think -m64 might implicitly pass this
flag to the linker, but I can't see any hooks to do it in the GCC
configuration files.  Try to use just -m64 -v and see whether the flag
shows up in the linker command line.  If not, pass it in explicitly
as suggested above.

> It's ironic that Sun recommended (in a training class I attended)
> the GNU compiler over their own product!

Wow!  Cool :-)

-- 
Alexandre Oliva   Enjoy Guarana', see http://www.ic.unicamp.br/~oliva/
Red Hat GCC Developer                  aoliva@{cygnus.com, redhat.com}
CS PhD student at IC-Unicamp        oliva@{lsd.ic.unicamp.br, gnu.org}
Free Software Evangelist    *Please* write to mailing lists, not to me

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: 64 bit gcc
  2000-12-06 10:46 Grove, David
@ 2000-12-06 10:54 ` Alexandre Oliva
  0 siblings, 0 replies; 6+ messages in thread
From: Alexandre Oliva @ 2000-12-06 10:54 UTC (permalink / raw)
  To: Grove, David; +Cc: 'gcc-help@gcc.gnu.org'

On Dec  6, 2000, "Grove, David" <David_Grove@health.state.ak.us> wrote:

> Have tried using the version of gcc Sun includes as a courtesy with the
> Solaris distribution media.  I used -mcpu=ultrasparc and -m64, but didn't
> work.

This is not fully supported in GCC 2.95.2, the latest official release
of GCC.  It is supposed to work in development snapshots that will
eventually become GCC 3.0

-- 
Alexandre Oliva   Enjoy Guarana', see http://www.ic.unicamp.br/~oliva/
Red Hat GCC Developer                  aoliva@{cygnus.com, redhat.com}
CS PhD student at IC-Unicamp        oliva@{lsd.ic.unicamp.br, gnu.org}
Free Software Evangelist    *Please* write to mailing lists, not to me

^ permalink raw reply	[flat|nested] 6+ messages in thread

* 64 bit gcc
@ 2000-12-06 10:46 Grove, David
  2000-12-06 10:54 ` Alexandre Oliva
  0 siblings, 1 reply; 6+ messages in thread
From: Grove, David @ 2000-12-06 10:46 UTC (permalink / raw)
  To: 'gcc-help@gcc.gnu.org'

Sir/Madam:

I'm looking to produce 64 bit executables.

Running Solaris 8 on Sun E3000. (Ultrasparc, Sun4u).

Have tried using the version of gcc Sun includes as a courtesy with the
Solaris distribution media.  I used -mcpu=ultrasparc and -m64, but didn't
work.

Is there a way to compile to 64 bit executables with gcc?

Thank you for your time.

Regards,


David Grove
Database Specialist
Alaska Dept. Health & Social Services
Ph.  907-465-5844
Fax 907-465-3034
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - 
"I think not," said Descartes, and disappeared.

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: 64 bit gcc
  2000-08-10  9:08 Bibhas Kumar Samanta
@ 2000-08-10 11:22 ` Alexandre Oliva
  0 siblings, 0 replies; 6+ messages in thread
From: Alexandre Oliva @ 2000-08-10 11:22 UTC (permalink / raw)
  To: bksam; +Cc: gcc-help

On Aug 10, 2000, "Bibhas Kumar Samanta" <bksam@flashmail.com> wrote:

>   Is Solalis 64 bit version of gcc/gnu available.

GCC 2.95.2, the latest official release of GCC, doesn't fully support
64-bit sparc.  I believe recent development snapshots of GCC do.

>  What 'bout HP-UX 11.0 PA2.0w architecture gcc/gnu release

Likewise.

> heard about cygnus's Gnupro, but that seems not with source-code.

Of course Red Hat GNU Pro comes with source code, it just isn't for
free.  If you purchase it, you get the sources and the right to
re-distribute them, just like mandated by the GNU GPL, that regulates
the distribution of GCC, binutils, GDB and all derived products, such
as Red Hat GNU Pro.

-- 
Alexandre Oliva   Enjoy Guarana', see http://www.ic.unicamp.br/~oliva/
Red Hat GCC Developer                  aoliva@{cygnus.com, redhat.com}
CS PhD student at IC-Unicamp        oliva@{lsd.ic.unicamp.br, gnu.org}
Free Software Evangelist    *Please* write to mailing lists, not to me

^ permalink raw reply	[flat|nested] 6+ messages in thread

* 64 bit gcc
@ 2000-08-10  9:08 Bibhas Kumar Samanta
  2000-08-10 11:22 ` Alexandre Oliva
  0 siblings, 1 reply; 6+ messages in thread
From: Bibhas Kumar Samanta @ 2000-08-10  9:08 UTC (permalink / raw)
  To: gcc-help

Hi,

  Is Solalis 64 bit version of gcc/gnu available.
 If yes pls advice be which release to use.

 What 'bout HP-UX 11.0 PA2.0w architecture gcc/gnu release , heard about cygnus's

 Gnupro, but that seems not with source-code.


 Any help would be appreciated.

 Thanks,
 Bibhas


______________________________________________________
Get Your FREE FlashMail Address now at http://www.flashmail.com
It's Free, Easy, & Fun !!!

^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2000-12-08 13:28 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2000-12-08 12:44 64 bit gcc Grove, David
2000-12-08 13:28 ` Alexandre Oliva
  -- strict thread matches above, loose matches on Subject: below --
2000-12-06 10:46 Grove, David
2000-12-06 10:54 ` Alexandre Oliva
2000-08-10  9:08 Bibhas Kumar Samanta
2000-08-10 11:22 ` Alexandre Oliva

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).