From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: f678f,b1cd27db8b4f365c X-Google-Attributes: gidf678f,public X-Google-ArrivalTime: 1994-03-21 06:44:24 PST Newsgroups: comp.unix.osf.misc Path: gmd.de!xlink.net!howland.reston.ans.net!gatech!udel!rochester!honeydew.srv.cs.cmu.edu!snl From: snl@CS.CMU.EDU (Sean Levy) Subject: Re: Known problems with varargs on Alpha OSF/1 1.3? In-Reply-To: sean@applix.com's message of 8 Mar 94 00:11:19 GMT Message-ID: Originator: snl@paneer.ndim.edrc.cmu.edu Sender: news@cs.cmu.edu (Usenet News System) Nntp-Posting-Host: paneer.ndim.edrc.cmu.edu Reply-To: snl+@cmu.edu Organization: n-dim Group, Engineering Design Research Center, CMU References: <1978@applix.com> Date: Mon, 21 Mar 1994 00:51:30 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/lib/gcc-lib/alpha-dec-osf1.3//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.