NetBSD-Bugs archive

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

bin/44138: netbsd-5-1-RELEASE: crossbuild failed on Linux

>Number:         44138
>Category:       bin
>Synopsis:       netbsd-5-1-RELEASE: crossbuild failed on Linux
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    bin-bug-people
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Tue Nov 23 14:50:00 +0000 2010
>Originator:     Sébastien Marie
Linux srvcom 2.6.26-2-amd64 #1 SMP Thu Sep 16 15:56:38 UTC 2010 x86_64 GNU/Linux
I crossbuild netbsd-5-1-RELEASE on Linux amd64 (Debian Lenny) for NetBSD i386 
(with clean obj.i386)

===> command: ./ -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
===> 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/usr/xsrc/external/mit/libXfont/dist/src/stubs  -DBDFFORMAT 
-c -o bunzip2.lo.o    
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)
1. Get netbsd-5-1-RELEASE from cvs (src + xsrc)
2. Cross-build with ./ -x release on a Linux platform without bzlib.h
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)

Home | Main Index | Thread Index | Old Index