tech-toolchain archive

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

Unnoticed host-mkdep failure with binstall



Hi,

While trying to update my -current amd64 workstation, i luckily found
a non-fatal(?) error while early building binstall ...

dependall ===> binstall
     create  binstall/getid.d
     create  binstall/xinstall.d
In file included from 
/local/src/NetBSD/src/tools/binstall/../../usr.bin/xinstall/xinstall.c:77:0:
/local/src/NetBSD/src/tools/binstall/../compat/sys/sha1.h:4:27: fatal error: 
nbtool_config.h: No such file or directory
compilation terminated.
     create  binstall/.depend
    compile  binstall/xinstall.lo
    compile  binstall/getid.lo
       link  binstall/xinstall
xinstall.lo: In function `do_symlink':
xinstall.c:(.text+0x604): warning: warning: mktemp() possibly used unsafely,use 
mkstemp() or mkdtemp()

Looks like host_mkdep tool does not return a non zero status upon
error, letting build continue :

#    create  binstall/xinstall.d
/local/src/NetBSD/src/tools/host-mkdep/obj.amd64/host-mkdep -f xinstall.d  --   
  -I/local/src/NetBSD/src/tools/binstall/../compat/sys 
-DTARGET_STRIP=\"/local/src/NetBSD/tool/bin/x86_64--netbsd-strip\"-I/local/src/NetBSD/src/usr.sbin/mtree
  /local/src/NetBSD/src/tools/binstall/../../usr.bin/xinstall/xinstall.c
In file included from 
/local/src/NetBSD/src/tools/binstall/../../usr.bin/xinstall/xinstall.c:77:0:
/local/src/NetBSD/src/tools/binstall/../compat/sys/sha1.h:4:27: fatal error: 
nbtool_config.h: No such file or directory
compilation terminated.
#    create  binstall/.depend
rm -f .depend
/local/src/NetBSD/src/tools/host-mkdep/obj.amd64/host-mkdep -s .lo\ .ln -d -f 
.depend getid.d xinstall.d
[...]

Any idea how to correctly fix this one ... I'm not a shell
expert. This problem arise when C preprocessor fails, but the error
seems lost because the of the pipe to an awk command.

Thanks.

-- 
Nicolas Joly

Biology IT Center
Institut Pasteur, Paris.


Home | Main Index | Thread Index | Old Index