r1k0 / kigen

a decent Python3 Kernel|Initramfs generator for Portage (Gentoo/Funtoo/Sabayon/Exherbo/VidaLinux/Calculate)
1 stars 0 forks source link

kigen i --source-lvm2 fails with >=glibc-2.12.1 #7

Closed r1k0 closed 12 years ago

r1k0 commented 13 years ago
z13 ~ # kigen i --luks --lvm2
 * Gentoo Base System release 2.0.2 on x86_64
 * initramfs.append.base
 * ... Gentoo linuxrc 3.4.15 patched
 * initramfs.append.modules 2.6.38-gentoo-r5
 * ... pata_legacy
 * ... pata_pcmcia
 * ... fdomain
 * ... imm
 * ... sx8
 * ... scsi_wait_scan
 * ... e1000
 * ... tg3
 * ... sky2
 * ... atl1c
 * ... e1000e
 * ... iscsi_tcp
 * ... pcmcia
 * ... yenta_socket
 * ... pd6729
 * ... i82092
 * ... ehci-hcd
 * ... uhci-hcd
 * ... ohci-hcd
 * ... sl811-hcd
 * ... i915
 * ... drm
 * ... drm_kms_helper
 * ... intel-agp
 * ... i2c-algo-bit
 * initramfs.append.busybox 1.18.4
 * ... cache found: importing
 * initramfs.append.lvm2 2.02.71
 * ... lvm2.extract
 * ... lvm2.configure
 * ... lvm2.make
error: initramfs.lvm2.make() failed
z13 ~ # tail /var/log/kigen.log 
gcc -c -I. -I../include -DLVM_SHARED_PATH=\"/sbin/lvm\" -DHAVE_CONFIG_H -DDM_IOCTLS  -fPIC -Wall -Wundef -Wshadow -Wcast-align -Wwrite-strings -Wmissing-prototypes -Wmissing-declarations -Wnested-externs -Winline -Wmissing-noreturn -Wformat-security -Wredundant-decls -O2 dmsetup.c -o dmsetup.o
gcc  -fPIC -Wall -Wundef -Wshadow -Wcast-align -Wwrite-strings -Wmissing-prototypes -Wmissing-declarations -Wnested-externs -Winline -Wmissing-noreturn -Wformat-security -Wredundant-decls -O2 -Wl,--export-dynamic -L../libdm -L../lib -L../libdm \
      -o dmsetup dmsetup.o -ldevmapper -lm  
gcc  -fPIC -Wall -Wundef -Wshadow -Wcast-align -Wwrite-strings -Wmissing-prototypes -Wmissing-declarations -Wnested-externs -Winline -Wmissing-noreturn -Wformat-security -Wredundant-decls -O2 -Wl,--export-dynamic -L../libdm -L../lib -static -L../libdm/ioctl \
      -o dmsetup.static dmsetup.o -ldevmapper   -lm  
/usr/lib/gcc/x86_64-pc-linux-gnu/4.5.2/../../../../x86_64-pc-linux-gnu/bin/ld: dynamic STT_GNU_IFUNC symbol \`strcmp' with pointer equality in \`/usr/lib/gcc/x86_64-pc-linux-gnu/4.5.2/../../../../lib64/libc.a(strcmp.o)' can not be used when making an executable; recompile with -fPIE and relink with -pie
collect2: ld returned 1 exit status
make[1]: *** [dmsetup.static] Error 1
make[1]: Leaving directory `/var/tmp/kigen/work/LVM2.2.02.71/tools'
make: *** [tools.device-mapper] Error 2
z13 ~ # 
r1k0 commented 13 years ago

fix:

http://bugs.gentoo.org/332905 http://bugs.gentoo.org/attachment.cgi?id=243283&action=diff

r1k0 commented 13 years ago

pull from git (it's ok don't be afraid :) and:

etc-update

kigen i --bin-lvm2

that'll give something to chew while fixing --source-lvm2.

r1k0 commented 13 years ago

Using 2.02.88 raises the same error.

TODO: I think I will have to write a patch routine for the lvm2 class to use http://bugs.gentoo.org/attachment.cgi?id=243283&action=diff

r1k0 commented 13 years ago

hmmm.. doesnt seem to work with the patch applied...will dig later

cc -fPIC -Wall -Wundef -Wshadow -Wcast-align -Wwrite-strings -Wmissing-prototypes -Wmissing-declarations -Wnested-externs -Winline -Wmissing-noreturn -Wformat-security -Wredundant-decls -Wpointer-arith -O2 -Wl,--export-dynamic -L../libdm -L../lib @STATIC_LDFLAGS@ -static -L../libdm/ioctl \ -o dmsetup.static dmsetup.o -ldevmapper
gcc: @STATIC_LDFLAGS@: No such file or directory make[1]: * [dmsetup.static] Error 1 make[1]: Leaving directory `/var/tmp/kigen/work/LVM2.2.02.88/tools' make: * [tools.device-mapper] Error 2 z13 LVM2.2.02.88 #

r1k0 commented 12 years ago

fixed with 2.02.96