Hello LFS editors,

I just finished building lfs-7.2.
Had a problem with udev-lfs though...

I was not able to build udev (extracted from systemd) in parallel with make -j ...

I am using a six core (AMD Phenom II X6) processor, so I wanted to build udev with make -j 6, but it fails with following error:

<snip>

GEN build/udev.pc
GEN build/libudev.pc
LINK build/udevadm
gcc: error: build/udev-local.a: No such file or directory
make: *** [build/udevadm] Error 1
make: *** Waiting for unfinished jobs....

I traced this down and found the bug in the corresponding Makefile Makefile.lfs:
The dependency of the static library udev-local.a is missing for udevadm.

This problem is also in the current development lfs (udev-lfs-193).
See attached patch to fix this issue.

Kind regards,
MR
diff -Naur a/Makefile.lfs b/Makefile.lfs
--- a/Makefile.lfs	2012-09-28 09:38:12.000000000 +0200
+++ b/Makefile.lfs	2012-10-14 00:48:53.490128901 +0200
@@ -204,7 +204,7 @@
       build/udev-local.a build/$(COMMON_LIB)
 	$(VB)strip --strip-unneeded $@
 
-build/udevadm: $(UDEV_ADMIN_OBJS)
+build/udevadm: $(UDEV_ADMIN_OBJS) build/$(COMMON_LIB)
 	@echo LINK $@
 	$(VB)gcc $(UDEV_ADMIN_OBJS) -o $@ $(LDFLAGS2) build/$(COMMON_LIB)
 	$(VB)strip --strip-unneeded $@
-- 
http://linuxfromscratch.org/mailman/listinfo/lfs-dev
FAQ: http://www.linuxfromscratch.org/faq/
Unsubscribe: See the above information page

Reply via email to