Usenet comp.unix.osf.misc (1992-2004)
 help / color / mirror / Atom feed
From: snl@CS.CMU.EDU (Sean Levy)
Subject: Re: Known problems with varargs on Alpha OSF/1 1.3?
Date: Mon, 21 Mar 1994 00:51:30 GMT	[thread overview]
Message-ID: <CMzp1v.4J0.3@cs.cmu.edu> (raw)
In-Reply-To: sean@applix.com's message of 8 Mar 94 00:11:19 GMT

I've had varargs problems with DEC's cc.  I've had no problems with
gcc 2.5.5 and greater PROVIDED that you insert the following magic
in your compilation lines/Makefiles:

-I<root_of_gcc_install_tree>/lib/gcc-lib/alpha-dec-osf1.3/<gcc_vers>/include

Just to make this concrete, for me this is:

-I/usr/ndim/local/lib/gcc-lib/alpha-dec-osf1.3/2.5.7/include

For some odd reason which I have not yet had time to figure out, gcc
either does not do this by default or puts this directory after all
the standard ones on its paths.  In any case, this is a Bad Thing,
since it causes the /usr/include version of varargs.h (or stdargs.h,
depending on how you're doing your stuff) to be found before gcc's.
If you put the above -I in your calls to gcc, your varargs code will
magically work.

I *strongly* suggest folks doing serious development on alphas go out
and get gcc 2.5.7 (NOT 2.5.8 -- it gets fatal internal errors trying
to compile simple things) and gdb 4.12, minimally.  Even if you like
the DEC cc's optimizer better, the GNU stuff is still a much better
environment for debugging (as in, it works).  One word of caution,
however: do NOT use -ggdb if you intend to use pixie, as it puts
things in the symbol table that confuses prof.

Hope this helps.

Cheers,
				-- Sean
-- 
                                                       prototype (n) -
Sean Levy, n-dim Group, EDRC, CMU | +1 412 268-      |  something you intend to
snl+@CMU.EDU (MIME,ATK)           |        5222(vox) |  throw away, but somehow
snl@DAMRAK.SLIP.CS.CMU.EDU (NeXT) |        5229(fax) |  never do.


  reply	other threads:[~1994-03-21  0:51 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1994-03-08  0:11 Known problems with varargs on Alpha OSF/1 1.3? Sean Murphy [ext 332]
1994-03-21  0:51 ` Sean Levy [this message]
1994-03-21 12:13 ` John Hascall
1994-03-22 15:39   ` Keith Refson
1994-03-22 18:00     ` Randy Buckland
1994-03-22 18:09       ` Randy Buckland
read-only archive

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox