From mboxrd@z Thu Jan 1 00:00:00 1970 Message-ID: <96075322406737.tru64-unix-managers.marc@archive.invalid> From: Liz Stewart Date: Thu, 24 Aug 1995 15:17:59 +0000 To: tru64-unix-managers Subject: SUMMARY: Compiling gcc on OSF 3.0 - Hints? X-MARC-Message: https://marc.info/?l=tru64-unix-managers&m=96075322406737 My original post asked for hints for compiling gcc 2.6.3 on the DEC OSF/1 3.0 platform, and stated I was having trouble with the string functions, and perhaps I had accessed a buggy library. Thanks to all who responded: Jason Yanowitz (yanowitz@cs.umass.edu) Steven J Kassarjian (Steven.Kassarjian@Colorado.edu) Dan Stromberg (strombrg@uci.edu) Steve Osselton (steve@prismtech.co.uk) Ernie Rael (ernie@MasPar.COM) Ken Teh (teh@chinook.phy.anl.gov) Dave (golden@falcon.invincible.com) In summary, it was mentioned that gcc doesn't run well on the Alphas, and that cc runs better on this platform. Getting the newest version of gcc (2.7.0) could solve the problems I have been having, as well as making sure my version of libg++ is current (for gcc 2.6.3, this is 2.6.2) for the version of gcc I want to compile. Also, people have reported success compiling under Digital Unix 3.2. Someone mentioned using the -std1 flag when compiling. I tried this...cc still gives the warnings with regards to the string functions when I use this flag. Someone also mentioned that it might be my programs, and not the compiler. I don't think this is the case, but I am checking into it just to be sure. I have since compiled gcc 2.7.0 and am testing it now. Hopefully I am all set! -- Liz -- Comments below: --- Jason Yanowitz (yanowitz@cs.umass.edu) said: > get gcc 2.7.0.. > > however, and I love gcc and FSF and GNU stuff in general (and I'm a > huge Linux fan), OSF's cc is much, much better than gcc :( > > When optimizing, cc almost always generates better code (never worse, > in the tests i've done and seen). look at the -migrate option, by the > way. --- Steven J Kassarjian (Steven.Kassarjian@Colorado.edu) said: >gcc 2.7.0 will compile properly under Digital Unix 3.2 using cc, >giving one spurious warning message (repeated many time). --- Dan Stromberg (strombrg@uci.edu) said: >'last I heard, gcc still didn't function very well on alpha's. --- Steve Osselton (steve@prismtech.co.uk) said: > We have been using this setup for quite some time now on a sizable >development project and have had no problems. What version of libg++ are you Pusing ?, it should be 2.6.2 for version 2.6.3 of the compiler. --- Ernie Rael (ernie@MasPar.COM) said: >I've had best luck compiling freeware by making sure the -std1 flag is >turned on when compiling, that turns on STDC and will turn on prototypes >for most gnu stuff. Also making sure that stdlib is included can help. > >These things occasionally cause problems since gnu stuff isn't always full >ansi, but if i'm having problems with the program, i'll fix the source >and leave std1 and stdlib in place. --- Ken Teh (teh@chinook.phy.anl.gov) said: >Perhaps the problems are not the same, but I've also had problems with >string functions with gcc on an OSF machine. However they were mostly >compiler errors, not run-time errors. I found that if you include the >the appropriate header files, as specified on the man page for string >functions, the compiler messages go away. --- Dave (golden@falcon.invincible.com) said: >I have gotten 2.7.0 and libg++ 2.7.0 to compile under OSF/1 3.2.