There was a bug fixed in dwarf1 handling between 6.2.0 and 6.2.1, however
I think that in this case it might not be that one.
I think that nagle_g in this case is probably a corrupt file, and that
ld is crashing somehow. What does file nagle_g say?
Did you try the -gstabs+?
John Nagle <nagle@downside.com> wrote:
OK, tried that. The “recursive build system” then
introduced a call to “usemsg”, which complained
“Bad format for load module” when processing the .o
file generated with -g enabled. See below. That’s
another indication that compiling with -g is producing
bad .o files.
Adding the options introduced by the “recursive build system”
does not seem to affect the problem. It’s the presence or
absence of “-g” that does it.
Is there some way to get debug info without bad object files?
If this is fixed in 6.2.1, is there a downloadable upgrade
for the NC version?
John Nagle
Animats
$ addvariant x86 o.g
Creating /home/public/nagle/x86/o.g directory…
$ make
make -j 1 -Cx86 -fMakefile
make[1]: Entering directory /home/public/nagle/x86' make -j 1 -Co -fMakefile && make -j 1 -Co.g -fMakefile make[2]: Entering directory
/home/public/nagle/x86/o’
make[2]: Nothing to be done for first'. make[2]: Leaving directory
/home/public/nagle/x86/o’
make[2]: Entering directory /home/public/nagle/x86/o.g' /usr/bin/qcc -Vgcc_ntox86 -c -Wc,-Wall -Wc,-Wno-parentheses -O -I. -I/home/public/nagle/x86/o -I/home/public/nagle/x86/o.g -I/home/public/nagle/x86 -I/home/public/nagle -I/usr/include -g -DVARIANT_g /home/public/nagle/main.cc /bin/rm -f /home/public/nagle/x86/o.g/nagle_g /usr/bin/qcc -Vgcc_ntox86 -lang-c++ -o/home/public/nagle/x86/o.g/nagle_g main.o -L. -L/x86/lib -L/x86/usr/lib -g /usr/bin/usemsg -s __USAGENTO -s __USAGE /home/public/nagle/x86/o.g/nagle_g /home/public/nagle/nagle.use Bad format for load module /home/public/nagle/x86/o.g/nagle_g. make[2]: *** [/home/public/nagle/x86/o.g/nagle_g] Error 1 make[2]: Leaving directory
/home/public/nagle/x86/o.g’
make[1]: *** [all] Error 2
make[1]: Leaving directory `/home/public/nagle/x86’
make: *** [all] Error 2
Chris McKillop wrote:
John Nagle <> nagle@downside.com> > wrote:
Ah. Unpack that tarball and try
QCC main.cc
and it works fine, producing an error message.
Now try
QCC -g main.cc
Okie dokie - there is a bug in the qcc conf files on 6.2.0 when using
the gcc_ntox86_gpp target (the default for QCC on NC). On a PE machine
under 6.2.0 I can reproduce this bug using:
QCC -Vgcc_ntox86_gpp -g main.cc
However, on 6.2.1 this has been fixed (tested both GNU and Dinkum targets).
This doesn’t appear to happen (on 6.2.0) when you use all the options provided
by the recursive make system for a debug target. You can try that out by
invoking “addvariant x86 o.g” and running make in x86/o.g.
chris
Chris McKillop wrote:
John Nagle <> nagle@downside.com> > wrote:
Ah. Unpack that tarball and try
QCC main.cc
and it works fine, producing an error message.
Now try
QCC -g main.cc
Okie dokie - there is a bug in the qcc conf files on 6.2.0 when using
the gcc_ntox86_gpp target (the default for QCC on NC). On a PE machine
under 6.2.0 I can reproduce this bug using:
QCC -Vgcc_ntox86_gpp -g main.cc
However, on 6.2.1 this has been fixed (tested both GNU and Dinkum targets).
This doesn’t appear to happen (on 6.2.0) when you use all the options provided
by the recursive make system for a debug target. You can try that out by
invoking “addvariant x86 o.g” and running make in x86/o.g.
chris
–
cburgess@qnx.com