Current-Users archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

tool building



I just tried to build today's CVS, and get:

#    format  libarch/arm_sync_icache.html2
PATH=/usr/src/obj.i386/tooldir.NetBSD-5.99.24-i386/lib/groff:${PATH} 
/usr/src/obj.i386/tooldir.NetBSD-5.99.24-i386/bin/nbgroff -Tlatin1 -mdoc2html 
/usr/src/lib/libarch/arm/arm_sync_icache.2 > arm_sync_icache.html2.tmp &&  mv 
arm_sync_icache.html2.tmp arm_sync_icache.html2
/usr/src/obj.i386/tooldir.NetBSD-5.99.24-i386/bin/nbgroff: troff: Segmentation 
fault (core dumped)
*** Error code 2

Rather than try to decipher

(gdb) bt
#0  0x08068341 in ?? ()
#1  0xbfbfe5d8 in ?? ()
#2  0xbb81a426 in ?? ()
#3  0xbb839570 in ?? ()
#4  0x080682ab in ?? ()
#5  0x080aeb78 in ?? ()
#6  0xbb831070 in ?? ()
#7  0x080aec28 in ?? ()
#8  0x00000000 in ?? ()

I thought I would quickly edit tools/groff/Makefile, and throw in a
CFLAGS+="-g -O0"
CXXFLAGS+="-g -O0"

I see that this no longer works, but there is a
CONFIGURE_ARGS
and configure is run - how does that work?
(I looked in /usr/src/share/mk - are we a "gnuhost" for ../Makefile.gnuhost?)
(also tried putting the above in /etc/mk.conf)

Simply put, what is an easy way of getting -g in?
(Solving the core dump is a bonus ;-) )

Cheers,

Patrick


Home | Main Index | Thread Index | Old Index