Public bug reported:

ubuntu/ndiswrapper/Makefile has underspecified dependencies on the
generated $(EXPORTS) headers, leading to a race condition when building
in parallel.  This race is most easily triggered by adding "sleep 10" to
the top of ubuntu/ndiswrapper/mkexport.sh and
ubuntu/ndiswrapper/mkstubs.sh.

[EMAIL PROTECTED]:/tmp/linux-source-2.6.26$ cp /boot/config-2.6.26-2-generic 
.config
[EMAIL PROTECTED]:/tmp/linux-source-2.6.26$ make -j ubuntu/ndiswrapper/
…
ubuntu/ndiswrapper/crt.c:17:25: error: crt_exports.h: No such file or directory
make[1]: *** [ubuntu/ndiswrapper/crt.o] Error 1
ubuntu/ndiswrapper/hal.c:17:25: error: hal_exports.h: No such file or directory
make[1]: *** [ubuntu/ndiswrapper/hal.o] Error 1
ubuntu/ndiswrapper/ndis.c:23:26: error: ndis_exports.h: No such file or 
directory
make[1]: *** [ubuntu/ndiswrapper/ndis.o] Error 1
ubuntu/ndiswrapper/ntoskernel.c:21:32: error: ntoskernel_exports.h: No such 
file or directory
make[1]: *** [ubuntu/ndiswrapper/ntoskernel.o] Error 1
ubuntu/ndiswrapper/ntoskernel_io.c:21:35: error: ntoskernel_io_exports.h: No 
such file or directory
make[1]: *** [ubuntu/ndiswrapper/ntoskernel_io.o] Error 1
ubuntu/ndiswrapper/rtl.c:17:25: error: rtl_exports.h: No such file or directory
make[1]: *** [ubuntu/ndiswrapper/rtl.o] Error 1
ubuntu/ndiswrapper/usb.c:19:25: error: usb_exports.h: No such file or directory
make[1]: *** [ubuntu/ndiswrapper/usb.o] Error 1
…

Also, win2lin_stubs.S might be silently built against an empty
win2lin_stubs.h if the latter is being generated at the same time.

Patch: <http://anders.kaseorg.com/pub/patches/ndiswrapper-build-
race.patch>

** Affects: linux (Ubuntu)
     Importance: Undecided
         Status: Confirmed

-- 
[patch] Makefile race condition can lead to ndiswrapper build failure
https://bugs.launchpad.net/bugs/241547
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to