NetBSD Problem Report #44138
From www@NetBSD.org Tue Nov 23 14:46:20 2010
Return-Path: <www@NetBSD.org>
Received: from mail.netbsd.org (mail.netbsd.org [204.152.190.11])
by www.NetBSD.org (Postfix) with ESMTP id C769463BAE5
for <gnats-bugs@gnats.NetBSD.org>; Tue, 23 Nov 2010 14:46:20 +0000 (UTC)
Message-Id: <20101123144620.9A1AE63B95F@www.NetBSD.org>
Date: Tue, 23 Nov 2010 14:46:20 +0000 (UTC)
From: semarie@latrappe.fr
Reply-To: semarie@latrappe.fr
To: gnats-bugs@NetBSD.org
Subject: netbsd-5-1-RELEASE: crossbuild failed on Linux
X-Send-Pr-Version: www-1.0
>Number: 44138
>Category: bin
>Synopsis: netbsd-5-1-RELEASE: crossbuild failed on Linux
>Confidential: no
>Severity: non-critical
>Priority: medium
>Responsible: tsutsui
>State: closed
>Class: sw-bug
>Submitter-Id: net
>Arrival-Date: Tue Nov 23 14:50:00 +0000 2010
>Closed-Date: Sat Jan 08 09:38:54 +0000 2011
>Last-Modified: Sat Jan 08 09:38:54 +0000 2011
>Originator: Sébastien Marie
>Release:
>Organization:
>Environment:
Linux srvcom 2.6.26-2-amd64 #1 SMP Thu Sep 16 15:56:38 UTC 2010 x86_64 GNU/Linux
>Description:
I crossbuild netbsd-5-1-RELEASE on Linux amd64 (Debian Lenny) for NetBSD i386 (with clean obj.i386)
===> build.sh command: ./build.sh -m i386 -U -O /srv/netbsd/build/obj.i386 -T /srv/netbsd/build/tooldir -R /srv/netbsd/build/releasedir -X /srv/netbsd/usr/xsrc -x -u release
===> build.sh started: Tue Nov 23 09:25:20 CET 2010
===> NetBSD version: 5.1
===> MACHINE: i386
===> MACHINE_ARCH: i386
===> Build platform: Linux 2.6.26-2-amd64 x86_64
===> HOST_SH: /bin/sh
===> TOOLDIR path: /srv/netbsd/build/tooldir
===> DESTDIR path: /srv/netbsd/build/obj.i386/destdir.i386
===> RELEASEDIR path: /srv/netbsd/build/releasedir
===> makewrapper: /srv/netbsd/build/tooldir/bin/nbmake-i386
===> Updated /srv/netbsd/build/tooldir/bin/nbmake-i386
The build process failed here:
*** Failed target: bunzip2.lo
*** Failed target: dependall
*** Failed target: dependall-bdftopcf
*** Failed target: do-tools
*** Failed target: build
*** Failed target: do-x11
*** Failed target: build
*** Failed target: distribution
On this command:
# compile bdftopcf/bunzip2.lo
cc -O -I/srv/netbsd/build/obj.i386/destdir.i386/usr/X11R7/include -I/srv/netbsd/build/obj.i386/destdir.i386/usr/X11R7/include -I/srv/netbsd/build/obj.i386/destdir.i386/usr/X11R7/include/X11/fonts -I/srv/netbsd/build/obj.i386/destdir.i386/usr/X11R7/include/freetype2 -I/srv/netbsd/usr/xsrc/external/mit/libXfont/dist/src/stubs -DBDFFORMAT -DPCFFORMAT -DSNFFORMAT -DX_GZIP_FONT_COMPRESSION -DX_BZIP2_FONT_COMPRESSION -DFONT_ENCODINGS_DIRECTORY=\"/usr/X11R7/lib/X11/fonts/encodings/encodings.dir\" -c -o bunzip2.lo.o /srv/netbsd/usr/xsrc/external/mit/libXfont/dist/src/fontfile/bunzip2.c
/srv/netbsd/usr/xsrc/external/mit/libXfont/dist/src/fontfile/bunzip2.c:40:19: error: bzlib.h: No such file or directory
"bzlib.h" is in "/srv/netbsd/build/obj.i386/destdir.i386/usr/include", but this directory is not include in command line.
If bzlib.h is not existent in build platform, build failed. Else, build success.
I am not sure the correct thing should be using "bzlib.h" of build platform (if versions mismatch, for example)
Better should be use "bzlib.h" of netbsd source tree (in destdir/usr/include)
(I have a typescript (70M) for the build without bzip2 headers. The typescript for the build with headers is in progress)
>How-To-Repeat:
1. Get netbsd-5-1-RELEASE from cvs (src + xsrc)
2. Cross-build with ./build.sh -x release on a Linux platform without bzlib.h
>Fix:
Depending the problem is doc-bug or sw-bug:
- src/tools/compat/README should mention bzip2 headers are need for crossbuilding NetBSD 5.1 src+xsrc on Linux (but were not need with 5.0.2).
- src/external/mit/xorg/tools/bdftopcf/Makefile should include "-I${DESTDIR}/usr/include" (but should exist a variable for that)
>Release-Note:
>Audit-Trail:
From: David Holland <dholland-bugs@netbsd.org>
To: gnats-bugs@NetBSD.org
Cc:
Subject: Re: bin/44138: netbsd-5-1-RELEASE: crossbuild failed on Linux
Date: Wed, 24 Nov 2010 02:54:33 +0000
On Tue, Nov 23, 2010 at 02:50:01PM +0000, semarie@latrappe.fr wrote:
> # compile bdftopcf/bunzip2.lo
> [...]
That's the "tools" version that's supposed to run on the build host,
so it's doing the right thing
> - src/tools/compat/README should mention bzip2 headers are need for
> crossbuilding NetBSD 5.1 src+xsrc on Linux (but were not need with
> 5.0.2).
That would be it, I guess.
--
David A. Holland
dholland@netbsd.org
From: Izumi Tsutsui <tsutsui@ceres.dti.ne.jp>
To: gnats-bugs@NetBSD.org
Cc: gnats-admin@NetBSD.org, netbsd-bugs@NetBSD.org, tsutsui@ceres.dti.ne.jp
Subject: Re: bin/44138: netbsd-5-1-RELEASE: crossbuild failed on Linux
Date: Sat, 18 Dec 2010 22:07:10 +0900
> - src/tools/compat/README should mention bzip2 headers are need
> for crossbuilding NetBSD 5.1 src+xsrc on Linux
> (but were not need with 5.0.2).
>
> - src/external/mit/xorg/tools/bdftopcf/Makefile should include
> "-I${DESTDIR}/usr/include" (but should exist a variable for that)
I doubt we really need bzip2 support in tools bdftopcf.
(we only have .gz fonts and use gzip(1) command to generate them)
How about the following patch for tools bdftopcf?
Index: external/mit/xorg/tools/bdftopcf/Makefile
===================================================================
RCS file: /cvsroot/src/external/mit/xorg/tools/bdftopcf/Makefile,v
retrieving revision 1.4
diff -u -p -r1.4 Makefile
--- external/mit/xorg/tools/bdftopcf/Makefile 14 Aug 2010 11:12:16 -0000 1.4
+++ external/mit/xorg/tools/bdftopcf/Makefile 18 Dec 2010 13:04:23 -0000
@@ -16,7 +16,7 @@ HOST_CPPFLAGS+= -I${DESTDIR}${X11INCDIR}
-I${DESTDIR}${X11INCDIR}/X11/fonts \
-I${DESTDIR}${X11INCDIR}/freetype2 \
-I${X11SRCDIR.Xfont}/src/stubs \
- -DBDFFORMAT -DPCFFORMAT -DSNFFORMAT -DX_GZIP_FONT_COMPRESSION -DX_BZIP2_FONT_COMPRESSION \
+ -DBDFFORMAT -DPCFFORMAT -DSNFFORMAT -DX_GZIP_FONT_COMPRESSION \
-DFONT_ENCODINGS_DIRECTORY=\"${X11FONTDIR}/encodings/encodings.dir\"
.PATH: ${X11SRCDIR.Xfont}/src/bitmap
@@ -24,12 +24,12 @@ SRCS+= bdfread.c bdfutils.c bitmap.c bi
pcfread.c pcfwrite.c
.PATH: ${X11SRCDIR.Xfont}/src/fontfile
-SRCS+= bufio.c decompress.c defaults.c fileio.c filewr.c gunzip.c bunzip2.c
+SRCS+= bufio.c decompress.c defaults.c fileio.c filewr.c gunzip.c
.PATH: ${X11SRCDIR.Xfont}/src/util
SRCS+= atom.c fontaccel.c private.c utilbitmap.c
-LDADD+= -lz -lbz2
+LDADD+= -lz
.include <bsd.x11.mk>
.include <bsd.hostprog.mk>
---
Izumi Tsutsui
From: Martin Husemann <martin@duskware.de>
To: Izumi Tsutsui <tsutsui@ceres.dti.ne.jp>
Cc: gnats-bugs@NetBSD.org, gnats-admin@NetBSD.org, netbsd-bugs@NetBSD.org
Subject: Re: bin/44138: netbsd-5-1-RELEASE: crossbuild failed on Linux
Date: Sat, 18 Dec 2010 14:09:35 +0100
I like this.
Martin
From: matthew green <mrg@eterna.com.au>
To: Izumi Tsutsui <tsutsui@ceres.dti.ne.jp>
Cc: gnats-admin@NetBSD.org, netbsd-bugs@NetBSD.org,
gnats-bugs@NetBSD.org
Subject: re: bin/44138: netbsd-5-1-RELEASE: crossbuild failed on Linux
Date: Sun, 19 Dec 2010 00:16:35 +1100
> I doubt we really need bzip2 support in tools bdftopcf.
> (we only have .gz fonts and use gzip(1) command to generate them)
sure.
From: semarie@latrappe.fr
To: gnats-bugs@NetBSD.org
Cc: Izumi Tsutsui <tsutsui@ceres.dti.ne.jp>
Subject: Re: bin/44138: netbsd-5-1-RELEASE: crossbuild failed on Linux
Date: Sat, 18 Dec 2010 16:52:11 +0100 (CET)
> I doubt we really need bzip2 support in tools bdftopcf.
> (we only have .gz fonts and use gzip(1) command to generate them)
>
> How about the following patch for tools bdftopcf?
It just work. build.sh terminated successfully.
Please note, that I retest build using netbsd-5-1 source (instead of
netbsd-5-1-RELEASE). I can rebuild using the RELEASE version if need.
Thanks.
---
Sebastien Marie
From: semarie@latrappe.fr
To: gnats-bugs@NetBSD.org
Cc: Izumi Tsutsui <tsutsui@ceres.dti.ne.jp>
Subject: Re: bin/44138: netbsd-5-1-RELEASE: crossbuild failed on Linux
Date: Sun, 19 Dec 2010 09:29:54 +0100 (CET)
> > I doubt we really need bzip2 support in tools bdftopcf.
> > (we only have .gz fonts and use gzip(1) command to generate them)
> >
> > How about the following patch for tools bdftopcf?
>
> It just work. build.sh terminated successfully.
>
> Please note, that I retest build using netbsd-5-1 source (instead of
> netbsd-5-1-RELEASE). I can rebuild using the RELEASE version if need.
I rebuild against netbsd-5-1-RELEASE (with previous patch applied). As
expected, it works also.
---
Sebastien Marie
From: "Izumi Tsutsui" <tsutsui@netbsd.org>
To: gnats-bugs@gnats.NetBSD.org
Cc:
Subject: PR/44138 CVS commit: src/external/mit/xorg/tools/bdftopcf
Date: Sun, 19 Dec 2010 13:04:54 +0000
Module Name: src
Committed By: tsutsui
Date: Sun Dec 19 13:04:54 UTC 2010
Modified Files:
src/external/mit/xorg/tools/bdftopcf: Makefile
Log Message:
Disable bzip2 support in tools bdftopcf(1).
We don't use bzip2 fonts on build and some OS doesn't have bzip2 headers.
Ok'ed by mrg@, martin@, fixes PR/44138.
Should be pulled up to netbsd-5 (and netbsd-5-1).
To generate a diff of this commit:
cvs rdiff -u -r1.4 -r1.5 src/external/mit/xorg/tools/bdftopcf/Makefile
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Responsible-Changed-From-To: bin-bug-people->tsutsui
Responsible-Changed-By: tsutsui@NetBSD.org
Responsible-Changed-When: Mon, 20 Dec 2010 22:38:43 +0900
Responsible-Changed-Why:
State-Changed-From-To: open->pending-pullups
State-Changed-By: tsutsui@NetBSD.org
State-Changed-When: Mon, 20 Dec 2010 22:38:43 +0900
State-Changed-Why:
[pullup-5 #1512]
From: "Jeff Rizzo" <riz@netbsd.org>
To: gnats-bugs@gnats.NetBSD.org
Cc:
Subject: PR/44138 CVS commit: [netbsd-5] src/external/mit/xorg/tools/bdftopcf
Date: Fri, 7 Jan 2011 23:57:05 +0000
Module Name: src
Committed By: riz
Date: Fri Jan 7 23:57:05 UTC 2011
Modified Files:
src/external/mit/xorg/tools/bdftopcf [netbsd-5]: Makefile
Log Message:
Pull up following revision(s) (requested by tsutsui in ticket #1512):
external/mit/xorg/tools/bdftopcf/Makefile: revision 1.5
Disable bzip2 support in tools bdftopcf(1).
We don't use bzip2 fonts on build and some OS doesn't have bzip2 headers.
Ok'ed by mrg@, martin@, fixes PR/44138.
Should be pulled up to netbsd-5 (and netbsd-5-1).
To generate a diff of this commit:
cvs rdiff -u -r1.1.1.1.8.1 -r1.1.1.1.8.2 \
src/external/mit/xorg/tools/bdftopcf/Makefile
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
From: "Jeff Rizzo" <riz@netbsd.org>
To: gnats-bugs@gnats.NetBSD.org
Cc:
Subject: PR/44138 CVS commit: [netbsd-5-1] src/external/mit/xorg/tools/bdftopcf
Date: Sat, 8 Jan 2011 00:52:28 +0000
Module Name: src
Committed By: riz
Date: Sat Jan 8 00:52:28 UTC 2011
Modified Files:
src/external/mit/xorg/tools/bdftopcf [netbsd-5-1]: Makefile
Log Message:
Pull up following revision(s) (requested by tsutsui in ticket #1512):
external/mit/xorg/tools/bdftopcf/Makefile: revision 1.5
Disable bzip2 support in tools bdftopcf(1).
We don't use bzip2 fonts on build and some OS doesn't have bzip2 headers.
Ok'ed by mrg@, martin@, fixes PR/44138.
Should be pulled up to netbsd-5 (and netbsd-5-1).
To generate a diff of this commit:
cvs rdiff -u -r1.1.1.1.8.1 -r1.1.1.1.8.1.2.1 \
src/external/mit/xorg/tools/bdftopcf/Makefile
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
State-Changed-From-To: pending-pullups->closed
State-Changed-By: tsutsui@NetBSD.org
State-Changed-When: Sat, 08 Jan 2011 18:38:54 +0900
State-Changed-Why:
Pullups done.
>Unformatted:
(Contact us)
$NetBSD: query-full-pr,v 1.39 2013/11/01 18:47:49 spz Exp $
$NetBSD: gnats_config.sh,v 1.8 2006/05/07 09:23:38 tsutsui Exp $
Copyright © 1994-2007
The NetBSD Foundation, Inc. ALL RIGHTS RESERVED.