Subject: Error making man pages during build.sh tools
To: toolchain <tech-toolchain@netbsd.org>
From: pete hilton <saruman@ruvolo-hilton.org>
List: tech-toolchain
Date: 01/14/2006 15:58:24
Hi there,
On Wednesday I got an error trying to build the tools chain for
hpcmips.
The hostsystem is a Linux 2.6.10 OS with gcc 3.3.4 and libc 2.3.4. The Linux
box is a dual xeon.
the build environment variables are set by:-
#!/bin/ksh
#
# sandbox variables
#
export SANDBOX=/netbsd
export XTOOLS=${SANDBOX}/tools
export PATH=${XTOOLS}/bin:$PATH
export TOOLDIR=${XTOOLS}
export DESTDIR=${SANDBOX}/dest
export MACHINE=hpcmips
export MKSHARE=yes
export MKX11=yes
export X11SRCDIR=${SANDBOX}/usr/xsrc
The error is a double free error detected in glibc and occurs when groff is
processing grnexmpl.me and gives the following message:-
test -f grnexmpl.g || cp /netbsd/usr/src/gnu/dist/groff/doc/grnexmpl.g .
GROFF_COMMAND_PREFIX=''; export GROFF_COMMAND_PREFIX;
GROFF_BIN_PATH=`echo /netbsd/usr/src/tools/groff/obj/build/src/roff/groff /netbsd/usr/src/tools/groff/obj/build/src/roff/troff /netbsd/usr/src/tools/groff/obj/build/src/preproc/pic /netbsd/usr/src/tools/groff/obj/build/src/preproc/eqn /netbsd/usr/src/tools/groff/obj/build/src/preproc/tbl /netbsd/usr/src/tools/groff/obj/build/src/preproc/grn /netbsd/usr/src/tools/groff/obj/build/src/preproc/refer /netbsd/usr/src/tools/groff/obj/build/src/preproc/soelim /netbsd/usr/src/tools/groff/obj/build/src/preproc/html /netbsd/usr/src/tools/groff/obj/build/src/devices/grops /netbsd/usr/src/tools/groff/obj/build/src/devices/grohtml
| sed -e 's| *|:|g'`; export GROFF_BIN_PATH; sed -e
"s;@VERSION@;1.19;" /netbsd/usr/src/gnu/dist/groff/doc/webpage.ms
| /netbsd/usr/src/tools/groff/obj/build/src/roff/groff/groff
-M/netbsd/usr/src/tools/groff/obj/build/tmac
-M/netbsd/usr/src/gnu/dist/groff/tmac
-F/netbsd/usr/src/tools/groff/obj/build/font
-F/netbsd/usr/src/gnu/dist/groff/font -Upet -ww -Tps -ms -mwww >webpage.ps
<standard input>:35: can't open `gnu.eps': No such file or directory
GROFF_COMMAND_PREFIX=''; export GROFF_COMMAND_PREFIX;
GROFF_BIN_PATH=`echo /netbsd/usr/src/tools/groff/obj/build/src/roff/groff /netbsd/usr/src/tools/groff/obj/build/src/roff/troff /netbsd/usr/src/tools/groff/obj/build/src/preproc/pic /netbsd/usr/src/tools/groff/obj/build/src/preproc/eqn /netbsd/usr/src/tools/groff/obj/build/src/preproc/tbl /netbsd/usr/src/tools/groff/obj/build/src/preproc/grn /netbsd/usr/src/tools/groff/obj/build/src/preproc/refer /netbsd/usr/src/tools/groff/obj/build/src/preproc/soelim /netbsd/usr/src/tools/groff/obj/build/src/preproc/html /netbsd/usr/src/tools/groff/obj/build/src/devices/grops /netbsd/usr/src/tools/groff/obj/build/src/devices/grohtml
| sed -e 's| *|:|g'`; export GROFF_BIN_PATH; sed -e
"s;@VERSION@;1.19;" /netbsd/usr/src/gnu/dist/groff/doc/grnexmpl.me
| /netbsd/usr/src/tools/groff/obj/build/src/roff/groff/groff
-M/netbsd/usr/src/tools/groff/obj/build/tmac
-M/netbsd/usr/src/gnu/dist/groff/tmac
-F/netbsd/usr/src/tools/groff/obj/build/font
-F/netbsd/usr/src/gnu/dist/groff/font -Upet -ww -Tps -ge -me >grnexmpl.ps
*** glibc detected *** double free or corruption (!prev): 0x08056978 ***
/netbsd/usr/src/tools/groff/obj/build/src/roff/groff/groff: grn: Aborted
Line -- Unclosed block, footnote, or other diversion (|k)
*** Failed target: grnexmpl.ps
*** Failed command: GROFF_COMMAND_PREFIX=''; export GROFF_COMMAND_PREFIX;
GROFF_BIN_PATH=`echo /netbsd/usr/src/tools/groff/obj/build/src/roff/groff /netbsd/usr/src/tools/groff/obj/build/src/roff/troff /netbsd/usr/src/tools/groff/obj/build/src/preproc/pic /netbsd/usr/src/tools/groff/obj/build/src/preproc/eqn /netbsd/usr/src/tools/groff/obj/build/src/preproc/tbl /netbsd/usr/src/tools/groff/obj/build/src/preproc/grn /netbsd/usr/src/tools/groff/obj/build/src/preproc/refer /netbsd/usr/src/tools/groff/obj/build/src/preproc/soelim /netbsd/usr/src/tools/groff/obj/build/src/preproc/html /netbsd/usr/src/tools/groff/obj/build/src/devices/grops /netbsd/usr/src/tools/groff/obj/build/src/devices/grohtml
| sed -e 's| *|:|g'`; export GROFF_BIN_PATH; sed -e
"s;@VERSION@;1.19;" /netbsd/usr/src/gnu/dist/groff/doc/grnexmpl.me
| /netbsd/usr/src/tools/groff/obj/build/src/roff/groff/groff
-M/netbsd/usr/src/tools/groff/obj/build/tmac
-M/netbsd/usr/src/gnu/dist/groff/tmac
-F/netbsd/usr/src/tools/groff/obj/build/font
-F/netbsd/usr/src/gnu/dist/groff/font -Upet -ww -Tps -ge -me >grnexmpl.ps
*** Error code 2
Stop.
nbmake: stopped in /netbsd/usr/src/tools/groff/obj/build/doc
I avoided this my setting MKMAN="no", cleaning out the TOOLDIR, and rerunning
build.sh tools.
However I would like to know if this is a known problem, or is it a problem
with my host system.
cheers
pete
--
pete hilton
saruman@ruvolo-hilton.org
IsaBella --- ICE Explorer #1070