From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: fa528,77a0c0853f67580b X-Google-Attributes: gidfa528,public From: rslyon@my-deja.com Subject: Re: GNUPro Toolkit on OSF5.1 on Compaq ES Date: 2000/12/08 Message-ID: <90po2h$n51$1@nnrp1.deja.com>#1/1 X-Deja-AN: 702429223 References: <90kdqb$cpf$1@nnrp1.deja.com> <3A2EEDF7.C3AAF458@compaq.com> <90o97h$f94$1@nnrp1.deja.com> <3A305A4F.83D37D04@compaq.com> X-Http-Proxy: 1.1 x63.deja.com:80 (Squid/1.1.22) for client 24.141.43.85 Organization: Deja.com - Before you buy. X-Article-Creation-Date: Fri Dec 08 04:29:09 2000 GMT X-MyDeja-Info: XMYDJUIDrslyon Newsgroups: comp.unix.tru64 X-Http-User-Agent: Mozilla/4.0 (compatible; MSIE 5.5; Windows 98) We've tried switching from gcc to cc. I would agree that the native compiler would by nature do a better job than a compiler intended for the general case. The problem lies in that we've inherited a system so heavily tied into gcc and it's oodles of switches, that it's more machine than man. cc doesnt seem to supply the same switches to produce the same result (without reinventing the wheel) (which is the problem of a convoluted make system).. Currently we are investing our time in fixing non 64-bit compliant code (most namely derefenced NULLS, and alignment problems). If was as easy as switching the CC environment var to read CC instead of GCC, we would do it.. I did install ladebug 62 today, and I must say it is an improvement over 58. 62 still gets lost in places (most common error being: Information: An type ......), but it produces more accurate results than the supplied dbx compiler.. Using gcc and -gcoff, is there anyway I can totally eliminate the opaque errors? (-g confuses ladebug to tears).. Richard In article <3A305A4F.83D37D04@compaq.com>, Bevin R Brett wrote: > The gcc compilers produce incorrect debugging information - bad indexes > into tables. They also produce inadequate debugging information to do a > really good job - especially if you are trying to debug optimized code. > > On Tru64 systems, ladebug expects the compilers to produce the so- called > 3rd-eye symbol table inside coff .o files (all the Compaq compilers do) > plus Compaq extensions that describe optimized code (inlining, split > lifetimes, etc.). On Alpha Linux systems, Compaq uses Dwarf2 in elf .o > files. > > Have you tried using the Compaq cc and cxx compilers and ladebug? I > understand that there are advantages to using the same dialect/dev system > on several platforms, but my experience is that the Compaq compilers > usually produce better diagnostics, and almost always produce much better > code and better debugging information. > > Apart from a few places where g++ would not accept valid C++, we had good > success using g++ to port Ladebug to Alpha Linux, although we have since > switched to using Compaq's cxx on that platform also. The Compaq compilers > have command line switches that cause them to accept pretty close to the > gcc dialects on both platforms. > > /Bevin Brett > Ladebug team > Core Tech Group, High Performance Technical Computing Group > Compaq > > ps: On Tru64, use ladebug, not dbx. dbx is being phased out. > > rslyon@my-deja.com wrote: > > > When you say that GCC produces invalid .o files, do you mean that they > > are not accurate, or that they are not easily read with debuggers? > > > > We have had nothing but terrible luck porting from AIX to OSF51.. Same > > GCC version, but unpredictable results. What kind of debug > > information does ladebug read? I found that -g confuses DBX.. The > > only one dbx will accept is -gcoff.. > > > > Richard > > > > In article <3A2EEDF7.C3AAF458@compaq.com>, > > Bevin R Brett wrote: > > > Download the latest ladebug from www.compaq.com/ladebug - -64 should > > be > > > there any day now > > > > > > There are some problems with the gcc generating invalid .o files, we > > have > > > been making some changes to ladebug more robust when it encounters > > such > > > badness > > > > > > /Bevin > > > Compaq Ladebug Team > > > > > > rslyon@my-deja.com wrote: > > > > > > > Has anyone experience problems using the GNUPro Toolkit that comes > > with > > > > the freeware CD for osf5.1? > > > > > > > > We have experienced major problems an difficulties.. > > > > > > > > The first being that it doesn't come with GDB (nor will GDB come > > close > > > > to compiling on the machine). The version of DBX tends to be > > > > unreliable using the supplied GCC version, and LADEBUG core dumps > > > > consistently. > > > > > > > > The second being that without defining _LIBC_POLLUTION_H_, the > > header > > > > files that come with GNUPro collide with the system header files > > (most > > > > notibly, unistd.h.. cuserid redefined) > > > > > > > > The third being that if you change the owner of an executable that > > > > relies on shared libraries, and set the group and user sticky bit > > > > (gu+s), it looses track of paths from LD_LIBRARY_PATH (/sbin/loader > > > > cannot find them).. > > > > > > > > Any comments, or suggestions would be greatly appreciated... > > > > > > > > Richard > > > > > > > > Sent via Deja.com http://www.deja.com/ > > > > Before you buy. > > > > > > > > > > Sent via Deja.com http://www.deja.com/ > > Before you buy. > > Sent via Deja.com http://www.deja.com/ Before you buy.