NetBSD-Bugs archive

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

Re: toolchain/45620: MAKEDEV failures remains unoticed in miniroot build



On Thu, Nov 17, 2011 at 12:25:00AM +0000, Nicolas Joly wrote:
> >Number:         45620
> >Category:       toolchain
> >Synopsis:       MAKEDEV failures remains unoticed in miniroot build
> >Confidential:   no
> >Severity:       serious
> >Priority:       medium
> >Responsible:    toolchain-manager
> >State:          open
> >Class:          sw-bug
> >Submitter-Id:   net
> >Arrival-Date:   Thu Nov 17 00:25:00 +0000 2011
> >Originator:     Nicolas Joly
> >Release:        NetBSD 5.99.56
> >Organization:
> Insitut Pasteur
> >Environment:
> System: NetBSD lanfeust.sis.pasteur.fr 5.99.56 NetBSD 5.99.56 (LANFEUST) #10: 
> Wed Nov 16 11:44:37 CET 2011 
> njoly%lanfeust.sis.pasteur.fr@localhost:/local/src/NetBSD/obj.amd64/sys/arch/amd64/compile/LANFEUST
>  amd64
> Architecture: x86_64
> Machine: amd64
> >Description:
> While cross-building sparc on my amd64 workstation, i luckily found that
> MAKEDEV failures remains unoticed while building miniroot:
> 
> [...]
> #     strip  instbin
> #    create  miniroot/devices.spec
> rm -f devices.spec devices.spec.tmp
> MACHINE=sparc MACHINE_ARCH=sparc  /bin/sh 
> /local/src/NetBSD/src/etc/obj.sparc/MAKEDEV -s all  | 
> /local/src/NetBSD/tool/bin/nbsed -e '/^\. type=dir/d' -e 's,^\.,./dev,'  > 
> devices.spec.tmp  && sort -o devices.spec devices.spec.tmp
> /local/src/NetBSD/src/etc/obj.sparc/MAKEDEV: bpp: unknown device
> /local/src/NetBSD/src/etc/obj.sparc/MAKEDEV: bpp: unknown device
> #    create  miniroot/work.spec
> rm -f work.spec work.spec.tmp
> [...]

The following patch improves the situation. I moved the pipe to group
sed (which is unlikely to fail) and sort. Unfortunately the error
still gets ignored for parallel builds.

njoly@lanfeust [src/distrib]> /local/src/NetBSD/tool/bin/nbmake-sparc dependall
[...]
      strip  instbin
     create  miniroot/devices.spec
/local/src/NetBSD/src/etc/obj.sparc/MAKEDEV: bpp: unknown device
/local/src/NetBSD/src/etc/obj.sparc/MAKEDEV: bpp: unknown device

*** Failed target:  devices.spec
*** Failed command: MACHINE=sparc MACHINE_ARCH=sparc /bin/sh 
/local/src/NetBSD/src/etc/obj.sparc/MAKEDEV -s all > devices.spec.tmp
*** Error code 1

njoly@lanfeust [src/distrib]> /local/src/NetBSD/tool/bin/nbmake-sparc -j 2 
dependall
[...]
     create  ramdisk/devices.spec
rm -f devices.spec devices.spec.tmp
/local/src/NetBSD/src/etc/obj.sparc/MAKEDEV: bpp: unknown device
--- devices.spec ---
*** [devices.spec] Error code 1 (ignored)
rm -f ramdiskbin.conf ramdiskbin.conf.tmp
     create  ramdisk/work.spec
[...]

-- 
Nicolas Joly

Projects and Developments in Bioinformatics
Institut Pasteur, Paris.


Home | Main Index | Thread Index | Old Index