Opened by Victor Martinez - 2013-09-10
Last edited by Victor Martinez - 2013-09-13
FS#52 - udev 182 fails with libtool linking with host
arm-crux-linux-gnueabihf-gcc -DHAVE_CONFIG_H -I. -include ./config.h -I./src -DSYSCONFDIR=\""/etc"\" -DPKGLIBEXECDIR=\""/lib/udev"\" -DFIRMWARE_PATH="\"/lib/firmware/updates/\", \
"/lib/firmware/\"" -DUSB_DATABASE=\"/usr/share/usb.ids\" -DPCI_DATABASE=\"/des/crux-arm/3.0/toolchain/clfs/usr/share\" -I/usr/include/blkid -I/usr/include/uuid -O2 -pipe -mfloat
-abi=hard -MT src/udevadm-udevadm-test.o -MD -MP -MF src/.deps/udevadm-udevadm-test.Tpo -c -o src/udevadm-udevadm-test.o `test -f 'src/udevadm-test.c' || echo './'`src/udevadm-test
.c
mv -f src/.deps/udevadm-udevadm-test.Tpo src/.deps/udevadm-udevadm-test.Po
arm-crux-linux-gnueabihf-gcc -DHAVE_CONFIG_H -I. -include ./config.h -I./src -DSYSCONFDIR=\""/etc"\" -DPKGLIBEXECDIR=\""/lib/udev"\" -DFIRMWARE_PATH="\"/lib/firmware/updates/\", \
"/lib/firmware/\"" -DUSB_DATABASE=\"/usr/share/usb.ids\" -DPCI_DATABASE=\"/des/crux-arm/3.0/toolchain/clfs/usr/share\" -I/usr/include/blkid -I/usr/include/uuid -O2 -pipe -mfloat
-abi=hard -MT src/udevadm-udevadm-test-builtin.o -MD -MP -MF src/.deps/udevadm-udevadm-test-builtin.Tpo -c -o src/udevadm-udevadm-test-builtin.o `test -f 'src/udevadm-test-builtin.
c' || echo './'`src/udevadm-test-builtin.c
mv -f src/.deps/udevadm-udevadm-test-builtin.Tpo src/.deps/udevadm-udevadm-test-builtin.Po
/bin/sh ./libtool –tag=CC –mode=link arm-crux-linux-gnueabihf-gcc -I/usr/include/blkid -I/usr/include/uuid -O2 -pipe -mfloat-abi=hard -Wl,–gc-sections -Wl,–as-needed -o u
devadm src/udevadm-udev-event.o src/udevadm-udev-watch.o src/udevadm-udev-node.o src/udevadm-udev-rules.o src/udevadm-udev-ctrl.o src/udevadm-udev-builtin.o src/udevadm-udev-builti
n-blkid.o src/udevadm-udev-builtin-firmware.o src/udevadm-udev-builtin-hwdb.o src/udevadm-udev-builtin-input_id.o src/udevadm-udev-builtin-kmod.o src/udevadm-udev-builtin-path_id.o
src/udevadm-udev-builtin-usb_id.o src/udevadm-udevadm.o src/udevadm-udevadm-info.o src/udevadm-udevadm-control.o src/udevadm-udevadm-monitor.o src/udevadm-udevadm-settle.o src/ude
vadm-udevadm-trigger.o src/udevadm-udevadm-test.o src/udevadm-udevadm-test-builtin.o libudev-private.la -lblkid -lkmod -lrt
libtool: link: arm-crux-linux-gnueabihf-gcc -I/usr/include/blkid -I/usr/include/uuid -O2 -pipe -mfloat-abi=hard -Wl,–gc-sections -Wl,–as-needed -o udevadm src/udevadm-udev-event.
o src/udevadm-udev-watch.o src/udevadm-udev-node.o src/udevadm-udev-rules.o src/udevadm-udev-ctrl.o src/udevadm-udev-builtin.o src/udevadm-udev-builtin-blkid.o src/udevadm-udev-bui
ltin-firmware.o src/udevadm-udev-builtin-hwdb.o src/udevadm-udev-builtin-input_id.o src/udevadm-udev-builtin-kmod.o src/udevadm-udev-builtin-path_id.o src/udevadm-udev-builtin-usb_
id.o src/udevadm-udevadm.o src/udevadm-udevadm-info.o src/udevadm-udevadm-control.o src/udevadm-udevadm-monitor.o src/udevadm-udevadm-settle.o src/udevadm-udevadm-trigger.o src/ude
vadm-udevadm-test.o src/udevadm-udevadm-test-builtin.o ./.libs/libudev-private.a /des/crux-arm/3.0/toolchain/clfs/usr/lib/libblkid.so /usr/lib/libuuid.so /des/crux-arm/3.0/toolcha
in/clfs/usr/lib/libkmod.so -lrt -Wl,-rpath -Wl,/usr/lib -Wl,-rpath -Wl,/usr/lib
/usr/lib/libuuid.so: could not read symbols: File in wrong format
collect2: error: ld returned 1 exit status
make[2]: * [udevadm] Error 1 make[1]: * [all-recursive] Error 1
make: *** [all] Error 2
After pointing lt_sysroot var to our CLFS all is linked how it does.
Fixed in https://crux-arm.nu/gitweb?p=crossrootfs.git;a=commit;h=2425423194b77b6b290af5aaf1384cb4319ac6da