On 07/14/2012 10:51 AM, Armin K. wrote: > On 07/14/2012 01:30 AM, Bruce Dubbs wrote: >> OK, here is my first trial build of udev from systemd. >> >> These are the instructions: >> >> wget http://www.freedesktop.org/software/systemd/systemd-186.tar.xz >> tar -xf systemd-186.tar.xz >> cd systemd-186 >> >> tar -xf ../udev-lfs-186.tar.bz2 >> >> make -f udev-lfs-186/Makefile.lfs >> make -f udev-lfs-186/Makefile.lfs DESTDIR=/tmp/udev install >> >> The build time on my system is about 10 seconds. It builds in chroot >> for a fresh system I built a couple of days ago, but I have not actually >> tried to boot with it yet. >> >> I'll keep testing, but would appreciate feedback. >> >> -- Bruce >> >> > > Hi there. I just got to test it. It ends up with an error: > > $ make -f udev-lfs-186/Makefile.lfs > CC src/shared/util.c > src/shared/util.c: In function ‘parse_bytes’: > src/shared/util.c:2867:17: error: overflow in implicit constant > conversion [-Werror=overflow] > src/shared/util.c:2868:17: error: overflow in implicit constant > conversion [-Werror=overflow] > src/shared/util.c:2869:17: error: overflow in implicit constant > conversion [-Werror=overflow] > src/shared/util.c: In function ‘format_bytes’: > src/shared/util.c:5441:17: error: overflow in implicit constant > conversion [-Werror=overflow] > src/shared/util.c:5442:17: error: overflow in implicit constant > conversion [-Werror=overflow] > src/shared/util.c:5443:17: error: overflow in implicit constant > conversion [-Werror=overflow] > cc1: some warnings being treated as errors > make: *** [build/util.o] Error 1 > > It's x86 LFS. > > Other thing that I dislike is shipping .la file. Those files are > UNNECESARY in every context. You are not building udev with libtool so > that file is pointless. Just look at files that don't use autotools, > they don't have .la files, but they work very great. BLFS talloc, mysql, > most packages that use cmake don't have .la files, but work very well. > > Also, shipping rules in the archive is really nice, avoids having 2 > archives. I would suggest you look at Debian's write_dev_root_rule. That > one had to be started before udevadm settle and after udevd. It symlinks > /dev/root to whatever partition that is set as root partition (/). I had > some problems with grub-install without that one. Also with > grub-mkconfig ... >
I found the error. It's 32bit specific problem only. You need to add -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 to CFLAGS. See http://comments.gmane.org/gmane.comp.sysutils.systemd.devel/4897 Another stuff -DUSB_DATABASE=0 \ -DPCI_DATABASE=0 \ You can safely add here path to usb.ids and pci.ids ... It won't fail in building, nor at runtime. It will just print a warning if they don't exist. That was the requirement of pciutils and usbutils, just to find the location of such files. -- http://linuxfromscratch.org/mailman/listinfo/lfs-dev FAQ: http://www.linuxfromscratch.org/faq/ Unsubscribe: See the above information page