Sam Ravnborg wrote: > On Wed, Jan 18, 2006 at 08:54:54AM +1100, Eyal Lebedinsky wrote: > >>Linus Torvalds wrote: >> >>>Ok, it's two weeks since 2.6.15, and the merge window is closed. >> >>I am looking at a problem where the build seems to remove /dev/null, >>which is then created as a regular file (naturally). This did not >>happen before. >> >># ls -l /dev/null >>crw-rw-rw- 1 root root 1, 3 Jan 18 08:42 /dev/null >># make distclean >> CLEAN scripts/basic >> CLEAN scripts/kconfig >> CLEAN include/config >> CLEAN .config .config.old include/asm include/linux/autoconf.h include/linux/version.h .kernelrelease >># ls -l /dev/null >>-rwxr-xr-x 1 root root 47 Jan 18 08:42 /dev/null > > > Strange. > I have tried to reproduce without luck... > Can you please do above steps again with V=1 added like this: > ls -l /dev/null > make distclean V=1 > ls -l /dev/null I added some lines to scripts/Makefile.clean: @ls -l /dev/null I see some unusual statements at the end of the log: rm -rf rm -f which should be safe but unusual. But /dev/null seems to disappear earlier: crw-rw-rw- 1 root root 1, 3 Jan 18 19:31 /dev/null make -f scripts/Makefile.clean obj=scripts/kconfig crw-rw-rw- 1 root root 1, 3 Jan 18 19:31 /dev/null make -f scripts/Makefile.clean obj=scripts/kconfig/lxdialog -rwxr-xr-x 1 root root 11650 Jan 18 19:31 /dev/null And /dev/null contains one line: cat: .kernelrelease: No such file or directory But I expect it was overwritten a few times though. In scripts/kconfig/lxdialog/check-lxdialog.sh I see lines like echo "main() {}" | $cc -lncursesw -xc - -o /dev/null 2> /dev/null and I will not be surprised if gcc removed its output at some point (on failure?). kconfig/lxdialog is a new directory... -- Eyal Lebedinsky (eyal@eyal.emu.id.au) attach .zip as .dat