* GNUPro Toolkit on OSF5.1 on Compaq ES @ 2000-12-06 4:03 rslyon 2000-12-06 5:00 ` Bevin R Brett 2000-12-06 5:00 ` Steffen Neumann 0 siblings, 2 replies; 7+ messages in thread From: rslyon @ 2000-12-06 4:03 UTC (permalink / raw) 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. ^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: GNUPro Toolkit on OSF5.1 on Compaq ES 2000-12-06 4:03 GNUPro Toolkit on OSF5.1 on Compaq ES rslyon @ 2000-12-06 5:00 ` Bevin R Brett 2000-12-07 15:09 ` rslyon 2000-12-06 5:00 ` Steffen Neumann 1 sibling, 1 reply; 7+ messages in thread From: Bevin R Brett @ 2000-12-06 5:00 UTC (permalink / raw) 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. ^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: GNUPro Toolkit on OSF5.1 on Compaq ES 2000-12-06 5:00 ` Bevin R Brett @ 2000-12-07 15:09 ` rslyon 2000-12-07 5:00 ` Bevin R Brett 0 siblings, 1 reply; 7+ messages in thread From: rslyon @ 2000-12-07 15:09 UTC (permalink / raw) 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 <bevin.brett@compaq.com> 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. ^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: GNUPro Toolkit on OSF5.1 on Compaq ES 2000-12-07 15:09 ` rslyon @ 2000-12-07 5:00 ` Bevin R Brett 2000-12-08 5:00 ` rslyon 0 siblings, 1 reply; 7+ messages in thread From: Bevin R Brett @ 2000-12-07 5:00 UTC (permalink / raw) 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 <bevin.brett@compaq.com> 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. ^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: GNUPro Toolkit on OSF5.1 on Compaq ES 2000-12-07 5:00 ` Bevin R Brett @ 2000-12-08 5:00 ` rslyon 2000-12-10 22:43 ` Bevin R Brett 0 siblings, 1 reply; 7+ messages in thread From: rslyon @ 2000-12-08 5:00 UTC (permalink / raw) 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 <opaque> 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 <bevin.brett@compaq.com> 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 <bevin.brett@compaq.com> 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. ^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: GNUPro Toolkit on OSF5.1 on Compaq ES 2000-12-08 5:00 ` rslyon @ 2000-12-10 22:43 ` Bevin R Brett 0 siblings, 0 replies; 7+ messages in thread From: Bevin R Brett @ 2000-12-10 22:43 UTC (permalink / raw) > Using gcc and -gcoff, is there anyway I can totally eliminate the opaque errors? Produce a small example of the opaque problem and send it to the email address shown in the support section of the www.compaq.com/ladebug page. I think it is ladebugsupport@compaq.com /Bevin rslyon@my-deja.com wrote: > 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 <opaque> 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 <bevin.brett@compaq.com> 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 <bevin.brett@compaq.com> 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. ^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: GNUPro Toolkit on OSF5.1 on Compaq ES 2000-12-06 4:03 GNUPro Toolkit on OSF5.1 on Compaq ES rslyon 2000-12-06 5:00 ` Bevin R Brett @ 2000-12-06 5:00 ` Steffen Neumann 1 sibling, 0 replies; 7+ messages in thread From: Steffen Neumann @ 2000-12-06 5:00 UTC (permalink / raw) rslyon@my-deja.com writes: [...] > 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).. How fast can you spell root-exploit ? Consider you had compiled /sbin/ping: -rwsr-xr-x 1 root bin 32768 Apr 12 1999 ping ldd ping libc.so => /shlib/libc.so If I now could use LD_LIBRARY_PATH to set it to, say: /homes/hacker/src/mylibc/lib where a printf() actually does a system("/bin/sh") ? No, unless I got something wrong, a LD_LIBRARY_PATH on suid/gid executable is a very bad thing (tm) Don't know about your other points, tho. Yours, Steffen ^ permalink raw reply [flat|nested] 7+ messages in thread
end of thread, other threads:[~2000-12-10 22:43 UTC | newest] Thread overview: 7+ messages (download: mbox.gz follow: Atom feed -- links below jump to the message on this page -- 2000-12-06 4:03 GNUPro Toolkit on OSF5.1 on Compaq ES rslyon 2000-12-06 5:00 ` Bevin R Brett 2000-12-07 15:09 ` rslyon 2000-12-07 5:00 ` Bevin R Brett 2000-12-08 5:00 ` rslyon 2000-12-10 22:43 ` Bevin R Brett 2000-12-06 5:00 ` Steffen Neumann
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox