Subject: Crossbuilding on Linux broken?
To: None <port-sparc@NetBSD.org>
From: Thomas =?ISO-8859-15?B?S/ZsbG1hbm4=?= <koellmann@gmx.net>
List: port-sparc
Date: 08/16/2005 17:03:26
Hi, everybody!

[I've posted this to comp.unix.bsd.netbsd.misc a couple of days ago,
but nobody seems to read netnews anymore: no traffic at all there since
then. My apologies should you have read this before.]

Cross building NetBSD 2.0-stable/sparc on a Linux i686 box fails here
reproducable. Is this known to be broken?

I've done a clean cvs checkout of netbsd-2-0 and nfs-mounted the sparc's
/usr/src to /usr/local/src/netbsd/src and /usr/obj to
/usr/local/src/netbsd/obj on a Red Hat EL 4WS i686 box.=20

Here's the output:

=3D=3D=3D> build.sh command: ./build.sh -O /usr/local/src/netbsd/obj -m
spa= rc -j 2 -u tools=0D
=3D=3D=3D> build.sh started: Sat Aug 13 14:22:35 CEST 2005=0D
[...]
test -f grnexmpl.g ||
cp /usr/local/src/netbsd/src/gnu/dist/groff/doc/grnex= mpl.g .=0D
GROFF_COMMAND_PREFIX=3D'';  export GROFF_COMMAND_PREFIX;
GROFF_BIN_PATH=3D=
`echo /usr/local/src/netbsd/obj/tools/groff/build/src/roff/groff  /usr/loca=
l/src/netbsd/obj/tools/groff/build/src/roff/troff  /usr/local/src/netbsd/ob=
j/tools/groff/build/src/preproc/pic  /usr/local/src/netbsd/obj/tools/groff/=
build/src/preproc/eqn  /usr/local/src/netbsd/obj/tools/groff/build/src/prep=
roc/tbl  /usr/local/src/netbsd/obj/tools/groff/build/src/preproc/grn  /usr/=
local/src/netbsd/obj/tools/groff/build/src/preproc/refer  /usr/local/src/ne=
tbsd/obj/tools/groff/build/src/preproc/soelim  /usr/local/src/netbsd/obj/to=
ols/groff/build/src/preproc/html  /usr/local/src/netbsd/obj/tools/groff/bui=
ld/src/devices/grops  /usr/local/src/netbsd/obj/tools/groff/build/src/devic=
es/grohtml | sed -e 's|  *|:|g'`;  export GROFF_BIN_PATH;  sed -e
"s;@VERSI=
ON@;1.19;" /usr/local/src/netbsd/src/gnu/dist/groff/doc/webpage.ms
| /usr/= local/src/netbsd/obj/tools/groff/build/src/roff/groff/groff
| -M/usr/local/sr= c/netbsd/obj/tools/groff/build/tmac
| -M/usr/local/src/netbsd/src/gnu/dist/gr= off/tmac
| -F/usr/local/src/netbsd/obj/tools/groff/build/font -F/usr/local/sr=
c/netbsd/src/gnu/dist/groff/font -Upet -ww -Tps -ms -mwww >webpage.ps=0D
<standard input>:35: can't open `gnu.eps': No such file or directory=0D
GROFF_COMMAND_PREFIX=3D'';  export GROFF_COMMAND_PREFIX;
GROFF_BIN_PATH=3D=
`echo /usr/local/src/netbsd/obj/tools/groff/build/src/roff/groff  /usr/loca=
l/src/netbsd/obj/tools/groff/build/src/roff/troff  /usr/local/src/netbsd/ob=
j/tools/groff/build/src/preproc/pic  /usr/local/src/netbsd/obj/tools/groff/=
build/src/preproc/eqn  /usr/local/src/netbsd/obj/tools/groff/build/src/prep=
roc/tbl  /usr/local/src/netbsd/obj/tools/groff/build/src/preproc/grn  /usr/=
local/src/netbsd/obj/tools/groff/build/src/preproc/refer  /usr/local/src/ne=
tbsd/obj/tools/groff/build/src/preproc/soelim  /usr/local/src/netbsd/obj/to=
ols/groff/build/src/preproc/html  /usr/local/src/netbsd/obj/tools/groff/bui=
ld/src/devices/grops  /usr/local/src/netbsd/obj/tools/groff/build/src/devic=
es/grohtml | sed -e 's|  *|:|g'`;  export GROFF_BIN_PATH;  sed -e
"s;@VERSI=
ON@;1.19;" /usr/local/src/netbsd/src/gnu/dist/groff/doc/grnexmpl.me
| /usr= /local/src/netbsd/obj/tools/groff/build/src/roff/groff/groff
| -M/usr/local/s= rc/netbsd/obj/tools/groff/build/tmac
| -M/usr/local/src/netbsd/src/gnu/dist/g= roff/tmac
| -F/usr/local/src/netbsd/obj/tools/groff/build/font -F/usr/local/s=
rc/netbsd/src/gnu/dist/groff/font -Upet -ww -Tps -ge -me >grnexmpl.ps=0D
*** glibc detected *** double free or corruption (!prev): 0x097ac850
***=0D /usr/local/src/netbsd/obj/tools/groff/build/src/roff/groff/groff:
grn: Abor= ted=0D
Line  -- Unclosed block, footnote, or other diversion (|k)=0D
=0D
*** Failed target:  grnexmpl.ps=0D
*** Failed command: GROFF_COMMAND_PREFIX=3D''; export
GROFF_COMMAND_PREFIX;=
GROFF_BIN_PATH=3D`echo /usr/local/src/netbsd/obj/tools/groff/build/src/rof=
f/groff /usr/local/src/netbsd/obj/tools/groff/build/src/roff/troff /usr/loc=
al/src/netbsd/obj/tools/groff/build/src/preproc/pic /usr/local/src/netbsd/o=
bj/tools/groff/build/src/preproc/eqn /usr/local/src/netbsd/obj/tools/groff/=
build/src/preproc/tbl /usr/local/src/netbsd/obj/tools/groff/build/src/prepr=
oc/grn /usr/local/src/netbsd/obj/tools/groff/build/src/preproc/refer /usr/l=
ocal/src/netbsd/obj/tools/groff/build/src/preproc/soelim /usr/local/src/net=
bsd/obj/tools/groff/build/src/preproc/html /usr/local/src/netbsd/obj/tools/=
groff/build/src/devices/grops /usr/local/src/netbsd/obj/tools/groff/build/s=
rc/devices/grohtml | sed -e 's| *|:|g'`; export GROFF_BIN_PATH; sed -e
"s;@=
VERSION@;1.19;" /usr/local/src/netbsd/src/gnu/dist/groff/doc/grnexmpl.me
| = /usr/local/src/netbsd/obj/tools/groff/build/src/roff/groff/groff
| -M/usr/loc= al/src/netbsd/obj/tools/groff/build/tmac
| -M/usr/local/src/netbsd/src/gnu/di= st/groff/tmac
| -F/usr/local/src/netbsd/obj/tools/groff/build/font -F/usr/loc=
al/src/netbsd/src/gnu/dist/groff/font -Upet -ww -Tps -ge -me
>grnexmpl.ps=0D *** Error code 2=0D
=0D
Stop.=0D
nbmake: stopped in /usr/local/src/netbsd/obj/tools/groff/build/doc=0D
=0D
*** Failed target:  doc=0D
[...]
ERROR: Failed to make tools=0D
*** BUILD ABORTED ***=0D

I have repeated this several times and tried the same with Debian
unstable as build host OS, and also with freshly cvs'd netbsd-2
sources. I always get the same error. I have done this whole procedure
(once) successfully before and I'm strictly following
http://www.netbsd.org/guide/en/chap-build.html, so I think it's not me
doing something wrong -- or is it?

Googling for "glibc detected double free or corruption (!prev)" also
got me nothing (usable).

Any ideas?

Thanks,

Mit schönem Gruß
 - Thomas

-- 
/* PGP key auf Wunsch per e-mail || PGP key sent on request */