master fails to create moddep.lst, related to luks2 changes
After upgrade from 4e75b2ae313b13b5bfb54cc5e5c53368d6eb2a08..d5a32255de0e073881980fca0262000c865b30dd I get this compile error:
env CFLAGS=-Wall CXXFLAGS=-Wall FFLAGS=-Wall ../grub2-src/configure --target=i386-suse-linux --with-platform=pc --prefix=/usr/lib64/grub2-chainloader --disable-boot-time --disable-cache-stats --disable-device-mapper --disable-efiemu --disable-grub-emu-pci --disable-grub-emu-sdl --disable-grub-mkfont --disable-grub-mount --disable-grub-themes --disable-liblzma --disable-libzfs --disable-mm-debug --disable-nls --disable-werror --enable-rpath --with-bootdir=/chainloader/grub2-chainloader --enable-grub-mkfont --enable-grub-themes --with-grubdir=grub2
...
[ 187s] cat kernel_syms.lst > syminfo.lst.new [ 187s] for m in disk.module trig.module cs5536.module usb.module usbserial_common.module usbserial_pl2303.module usbserial_ftdi.module usbserial_usbdebug.module uhci.module ohci.module ehci.module pci.module nativedisk.module cmostest.module cmosdump.module iorw.module cbtable.module cbtime.module cbls.module cbmemc.module regexp.module acpi.module lsacpi.module blocklist.module boot.module cat.module cmp.module configfile.module cpuid.module date.module drivemap.module echo.module eval.module extcmd.module gptsync.module halt.module reboot.module hashsum.module pgp.module verifiers.module hdparm.module help.module hexdump.module keystatus.module loadenv.module ls.module lsmmap.module lspci.module memrw.module minicmd.module parttool.module password.module password_pbkdf2.module play.module spkmodem.module morse.module probe.module read.module search.module search_fs_file.module search_fs_uuid.module search_label.module setpci.module pcidump.module sleep.module smbios.module terminal.module test.module true.module usbtest.module videoinfo.module videotest.module xnu_uuid.module dm_nv.module loopback.module cryptodisk.module json.module afsplitter.module luks.module luks2.module geli.module lvm.module ldm.module mdraid09.module mdraid09_be.module mdraid1x.module diskfilter.module raid5rec.module raid6rec.module scsi.module memdisk.module ata.module ahci.module pata.module biosdisk.module usbms.module efiemu.module font.module procfs.module affs.module afs.module bfs.module zstd.module btrfs.module archelp.module cbfs.module cpio.module cpio_be.module newc.module odc.module ext2.module fat.module exfat.module f2fs.module fshelp.module hfs.module hfsplus.module hfspluscomp.module iso9660.module jfs.module minix.module minix2.module minix3.module minix_be.module minix2_be.module minix3_be.module nilfs2.module ntfs.module ntfscomp.module reiserfs.module romfs.module sfs.module squash4.module tar.module udf.module ufs1.module ufs1_be.module ufs2.module xfs.module zfs.module zfscrypt.module zfsinfo.module macbless.module pxe.module gettext.module gfxmenu.module hello.module gzio.module offsetio.module bufio.module elf.module crypto.module pbkdf2.module relocator.module datetime.module setjmp.module aout.module bsd.module plan9.module linux16.module ntldr.module truecrypt.module freedos.module pxechain.module multiboot2.module multiboot.module linux.module xnu.module random.module macho.module chain.module mmap.module normal.module part_acorn.module part_amiga.module part_apple.module part_gpt.module part_msdos.module part_sun.module part_plan.module part_dvh.module part_bsd.module part_sunpc.module part_dfly.module msdospart.module at_keyboard.module gfxterm.module gfxterm_background.module serial.module sendkey.module terminfo.module usb_keyboard.module vga.module vga_text.module mda_text.module video_cirrus.module video_bochs.module functional_test.module exfctest.module strtoull_test.module setjmp_test.module signature_test.module sleep_test.module xnu_uuid_test.module pbkdf2_test.module legacy_password_test.module div.module div_test.module mul_test.module shift_test.module cmp_test.module ctz_test.module bswap_test.module videotest_checksum.module gfxterm_menu.module cmdline_cat_test.module bitmap.module bitmap_scale.module jpeg.module png.module tga.module vbe.module video_fb.module video.module video_colors.module datehook.module net.module tftp.module http.module legacycfg.module syslinuxcfg.module test_blockarg.module xzio.module lzopio.module testload.module backtrace.module lsapm.module keylayouts.module priority_queue.module time.module adler32.module crc64.module mpi.module all_video.module gdb.module testspeed.module tr.module progress.module file.module rdmsr.module wrmsr.module gcry_arcfour.module gcry_blowfish.module gcry_camellia.module gcry_cast5.module gcry_crc.module gcry_des.module gcry_dsa.module gcry_idea.module gcry_md4.module gcry_md5.module gcry_rfc2268.module gcry_rijndael.module gcry_rmd160.module gcry_rsa.module gcry_seed.module gcry_serpent.module gcry_sha1.module gcry_sha256.module gcry_sha512.module gcry_tiger.module gcry_twofish.module gcry_whirlpool.module; do \ [ 187s] sh gensyminfo.sh $m >> syminfo.lst.new || exit 1; \ [ 187s] done [ 188s] mv syminfo.lst.new syminfo.lst [ 188s] cat syminfo.lst | sort | gawk -f ../../grub2-src/grub-core/genmoddep.awk > moddep.lst || (rm -f moddep.lst; exit 1) [ 188s] grub_debug_free in luks2 is not defined [ 188s] grub_debug_malloc in luks2 is not defined [ 188s] make[3]: *** [Makefile:47208: moddep.lst] Error 1 [ 188s] make[3]: Leaving directory '/home/abuild/rpmbuild/BUILD/grub2-20200228T124129.d5a32255d/builddir-i386-pc/grub-core'
Any idea what needs to be done to fix this?
Olaf
Dear Olaf,
Quoted 3 lines · Olaf Hering
After upgrade from
4e75b2ae313b13b5bfb54cc5e5c53368d6eb2a08..d5a32255de0e073881980fca0262000c865b30ddI get this compile error:env CFLAGS=-Wall CXXFLAGS=-Wall FFLAGS=-Wall ../grub2-src/configure --target=i386-suse-linux --with-platform=pc --prefix=/usr/lib64/grub2-chainloader --disable-boot-time --disable-cache-stats --disable-device-mapper --disable-efiemu --disable-grub-emu-pci --disable-grub-emu-sdl --disable-grub-mkfont --disable-grub-mount --disable-grub-themes --disable-liblzma --disable-libzfs --disable-mm-debug --disable-nls --disable-werror --enable-rpath --with-bootdir=/chainloader/grub2-chainloader --enable-grub-mkfont --enable-grub-themes --with-grubdir=grub2
Please share the commands, how you configured your system?
$ ./bootstrap
$ ./configureThat builds fine in my environment.
Quoted 12 lines
...
[ 187s] cat kernel_syms.lst > syminfo.lst.new [ 187s] for m in disk.module trig.module cs5536.module usb.module usbserial_common.module usbserial_pl2303.module usbserial_ftdi.module usbserial_usbdebug.module uhci.module ohci.module ehci.module pci.module nativedisk.module cmostest.module cmosdump.module iorw.module cbtable.module cbtime.module cbls.module cbmemc.module regexp.module acpi.module lsacpi.module blocklist.module boot.module cat.module cmp.module configfile.module cpuid.module date.module drivemap.module echo.module eval.module extcmd.module gptsync.module halt.module reboot.module hashsum.module pgp.module verifiers.module hdparm.module help.module hexdump.module keystatus.module loadenv.module ls.module lsmmap.module lspci.module memrw.module minicmd.module parttool.module password.module password_pbkdf2.module play.module spkmodem.module morse.module probe.module read.module search.module search_fs_file.module search_fs_uuid.module search_label.module setpci.module pcidump.module sleep.module smbios.module terminal.module test.module true.module usbtest.module videoinfo.module videotest.module xnu_uuid.module dm_nv.module loopback.module cryptodisk.module json.module afsplitter.module luks.module luks2.module geli.module lvm.module ldm.module mdraid09.module mdraid09_be.module mdraid1x.module diskfilter.module raid5rec.module raid6rec.module scsi.module memdisk.module ata.module ahci.module pata.module biosdisk.module usbms.module efiemu.module font.module procfs.module affs.module afs.module bfs.module zstd.module btrfs.module archelp.module cbfs.module cpio.module cpio_be.module newc.module odc.module ext2.module fat.module exfat.module f2fs.module fshelp.module hfs.module hfsplus.module hfspluscomp.module iso9660.module jfs.module minix.module minix2.module minix3.module minix_be.module minix2_be.module minix3_be.module nilfs2.module ntfs.module ntfscomp.module reiserfs.module romfs.module sfs.module squash4.module tar.module udf.module ufs1.module ufs1_be.module ufs2.module xfs.module zfs.module zfscrypt.module zfsinfo.module macbless.module pxe.module gettext.module gfxmenu.module hello.module gzio.module offsetio.module bufio.module elf.module crypto.module pbkdf2.module relocator.module datetime.module setjmp.module aout.module bsd.module plan9.module linux16.module ntldr.module truecrypt.module freedos.module pxechain.module multiboot2.module multiboot.module linux.module xnu.module random.module macho.module chain.module mmap.module normal.module part_acorn.module part_amiga.module part_apple.module part_gpt.module part_msdos.module part_sun.module part_plan.module part_dvh.module part_bsd.module part_sunpc.module part_dfly.module msdospart.module at_keyboard.module gfxterm.module gfxterm_background.module serial.module sendkey.module terminfo.module usb_keyboard.module vga.module vga_text.module mda_text.module video_cirrus.module video_bochs.module functional_test.module exfctest.module strtoull_test.module setjmp_test.module signature_test.module sleep_test.module xnu_uuid_test.module pbkdf2_test.module legacy_password_test.module div.module div_test.module mul_test.module shift_test.module cmp_test.module ctz_test.module bswap_test.module videotest_checksum.module gfxterm_menu.module cmdline_cat_test.module bitmap.module bitmap_scale.module jpeg.module png.module tga.module vbe.module video_fb.module video.module video_colors.module datehook.module net.module tftp.module http.module legacycfg.module syslinuxcfg.module test_blockarg.module xzio.module lzopio.module testload.module backtrace.module lsapm.module keylayouts.module priority_queue.module time.module adler32.module crc64.module mpi.module all_video.module gdb.module testspeed.module tr.module progress.module file.module rdmsr.module wrmsr.module gcry_arcfour.module gcry_blowfish.module gcry_camellia.module gcry_cast5.module gcry_crc.module gcry_des.module gcry_dsa.module gcry_idea.module gcry_md4.module gcry_md5.module gcry_rfc2268.module gcry_rijndael.module gcry_rmd160.module gcry_rsa.module gcry_seed.module gcry_serpent.module gcry_sha1.module gcry_sha256.module gcry_sha512.module gcry_tiger.module gcry_twofish.module gcry_whirlpool.module; do \ [ 187s] sh gensyminfo.sh $m >> syminfo.lst.new || exit 1; \ [ 187s] done [ 188s] mv syminfo.lst.new syminfo.lst [ 188s] cat syminfo.lst | sort | gawk -f ../../grub2-src/grub-core/genmoddep.awk > moddep.lst || (rm -f moddep.lst; exit 1) [ 188s] grub_debug_free in luks2 is not defined [ 188s] grub_debug_malloc in luks2 is not defined [ 188s] make[3]: *** [Makefile:47208: moddep.lst] Error 1 [ 188s] make[3]: Leaving directory '/home/abuild/rpmbuild/BUILD/grub2-20200228T124129.d5a32255d/builddir-i386-pc/grub-core'
Quoted 1 line
Any idea what needs to be done to fix this?
Please bisect the problem to found out the commit introducing the build regression in your environment.
Kind regards,
Paul
Quoted 8 lines · Paul Menzel
Dear Olaf,
Quoted 3 lines · Olaf Hering
After upgrade from
4e75b2ae313b13b5bfb54cc5e5c53368d6eb2a08..d5a32255de0e073881980fca0262000c865b30ddI get this compile error:env CFLAGS=-Wall CXXFLAGS=-Wall FFLAGS=-Wall ../grub2-src/configure --target=i386-suse-linux --with-platform=pc --prefix=/usr/lib64/grub2-chainloader --disable-boot-time --disable-cache-stats --disable-device-mapper --disable-efiemu --disable-grub-emu-pci --disable-grub-emu-sdl --disable-grub-mkfont --disable-grub-mount --disable-grub-themes --disable-liblzma --disable-libzfs --disable-mm-debug --disable-nls --disable-werror --enable-rpath --with-bootdir=/chainloader/grub2-chainloader --enable-grub-mkfont --enable-grub-themes --with-grubdir=grub2
Please share the commands, how you configured your system?
I would add "make distclean" here...
Quoted 17 lines
$ ./bootstrap $ ./configureThat builds fine in my environment.
Quoted 12 lines
...
[ 187s] cat kernel_syms.lst > syminfo.lst.new [ 187s] for m in disk.module trig.module cs5536.module usb.module usbserial_common.module usbserial_pl2303.module usbserial_ftdi.module usbserial_usbdebug.module uhci.module ohci.module ehci.module pci.module nativedisk.module cmostest.module cmosdump.module iorw.module cbtable.module cbtime.module cbls.module cbmemc.module regexp.module acpi.module lsacpi.module blocklist.module boot.module cat.module cmp.module configfile.module cpuid.module date.module drivemap.module echo.module eval.module extcmd.module gptsync.module halt.module reboot.module hashsum.module pgp.module verifiers.module hdparm.module help.module hexdump.module keystatus.module loadenv.module ls.module lsmmap.module lspci.module memrw.module minicmd.module parttool.module password.module password_pbkdf2.module play.module spkmodem.module morse.module probe.module read.module search.module search_fs_file.module search_fs_uuid.module search_label.module setpci.module pcidump.module sleep.module smbios.module terminal.module test.module true.module usbtest.module videoinfo.module videotest.module xnu_uuid.module dm_nv.module loopback.module cryptodisk.module json.module afsplitter.module luks.module luks2.module geli.module lvm.module ldm.module mdraid09.module mdraid09_be.module mdraid1x.module diskfilter.module raid5rec.module raid6rec.module scsi.module memdisk.module ata.module ahci.module pata.module biosdisk.module usbms.module efiemu.module font.module procfs.module affs.module afs.module bfs.module zstd.module btrfs.module archelp.module cbfs.module cpio.module cpio_be.module newc.module odc.module ext2.module fat.module exfat.module f2fs.module fshelp.module hfs.module hfsplus.module hfspluscomp.module iso9660.module jfs.module minix.module minix2.module minix3.module minix_be.module minix2_be.module minix3_be.module nilfs2.module ntfs.module ntfscomp.module reiserfs.module romfs.module sfs.module squash4.module tar.module udf.module ufs1.module ufs1_be.module ufs2.module xfs.module zfs.module zfscrypt.module zfsinfo.module macbless.module pxe.module gettext.module gfxmenu.module hello.module gzio.module offsetio.module bufio.module elf.module crypto.module pbkdf2.module relocator.module datetime.module setjmp.module aout.module bsd.module plan9.module linux16.module ntldr.module truecrypt.module freedos.module pxechain.module multiboot2.module multiboot.module linux.module xnu.module random.module macho.module chain.module mmap.module normal.module part_acorn.module part_amiga.module part_apple.module part_gpt.module part_msdos.module part_sun.module part_plan.module part_dvh.module part_bsd.module part_sunpc.module part_dfly.module msdospart.module at_keyboard.module gfxterm.module gfxterm_background.module serial.module sendkey.module terminfo.module usb_keyboard.module vga.module vga_text.module mda_text.module video_cirrus.module video_bochs.module functional_test.module exfctest.module strtoull_test.module setjmp_test.module signature_test.module sleep_test.module xnu_uuid_test.module pbkdf2_test.module legacy_password_test.module div.module div_test.module mul_test.module shift_test.module cmp_test.module ctz_test.module bswap_test.module videotest_checksum.module gfxterm_menu.module cmdline_cat_test.module bitmap.module bitmap_scale.module jpeg.module png.module tga.module vbe.module video_fb.module video.module video_colors.module datehook.module net.module tftp.module http.module legacycfg.module syslinuxcfg.module test_blockarg.module xzio.module lzopio.module testload.module backtrace.module lsapm.module keylayouts.module priority_queue.module time.module adler32.module crc64.module mpi.module all_video.module gdb.module testspeed.module tr.module progress.module file.module rdmsr.module wrmsr.module gcry_arcfour.module gcry_blowfish.module gcry_camellia.module gcry_cast5.module gcry_crc.module gcry_des.module gcry_dsa.module gcry_idea.module gcry_md4.module gcry_md5.module gcry_rfc2268.module gcry_rijndael.module gcry_rmd160.module gcry_rsa.module gcry_seed.module gcry_serpent.module gcry_sha1.module gcry_sha256.module gcry_sha512.module gcry_tiger.module gcry_twofish.module gcry_whirlpool.module; do \ [ 187s] sh gensyminfo.sh $m >> syminfo.lst.new || exit 1; \ [ 187s] done [ 188s] mv syminfo.lst.new syminfo.lst [ 188s] cat syminfo.lst | sort | gawk -f ../../grub2-src/grub-core/genmoddep.awk > moddep.lst || (rm -f moddep.lst; exit 1) [ 188s] grub_debug_free in luks2 is not defined [ 188s] grub_debug_malloc in luks2 is not defined [ 188s] make[3]: *** [Makefile:47208: moddep.lst] Error 1 [ 188s] make[3]: Leaving directory '/home/abuild/rpmbuild/BUILD/grub2-20200228T124129.d5a32255d/builddir-i386-pc/grub-core'
Quoted 3 lines
Quoted 1 line
Any idea what needs to be done to fix this?
Please bisect the problem to found out the commit introducing the build regression in your environment.
If you do steps mentioned above then everything should work. If not just clone clean GRUB git repo again.
Daniel
Quoted 1 line · Paul Menzel
Please bisect the problem to found out the commit introducing the build regression in your environment.
git bisect start
# bad: [d5a32255de0e073881980fca0262000c865b30dd] misc: Make grub_strtol() "end" pointers have safer const qualifiers git bisect bad d5a32255de0e073881980fca0262000c865b30dd
# good: [4e75b2ae313b13b5bfb54cc5e5c53368d6eb2a08] sparc64: Fix BIOS Boot Partition support
git bisect good 4e75b2ae313b13b5bfb54cc5e5c53368d6eb2a08
# good: [528938d503088ce0e2fe7d83f8f711efefaed0fd] json: Import upstream jsmn-1.1.0
git bisect good 528938d503088ce0e2fe7d83f8f711efefaed0fd
# bad: [8c2c35dcc027a77aee48de89093d8770de0a8cf8] kern: Add %X option to printf functions
git bisect bad 8c2c35dcc027a77aee48de89093d8770de0a8cf8
# bad: [365e0cc3e7e44151c14dd29514c2f870b49f9755] disk: Implement support for LUKS2
git bisect bad 365e0cc3e7e44151c14dd29514c2f870b49f9755
# good: [9fbdec2f6b4fa8b549daa4d49134d1fe89d95ef9] bootstrap: Add gnulib's base64 module
git bisect good 9fbdec2f6b4fa8b549daa4d49134d1fe89d95ef9
# good: [dd3f49b106497416d4da557e8d583e1e9d6f2357] luks: Move configuration of ciphers into cryptodisk git bisect good dd3f49b106497416d4da557e8d583e1e9d6f2357
# first bad commit: [365e0cc3e7e44151c14dd29514c2f870b49f9755] disk: Implement support for LUKS2
This is always a clean build.
Full logfile at https://build.opensuse.org/package/live_build_log/home:olh/grub2/SLE_15/x86_64
# curl https://build.opensuse.org/build/home:olh/SLE_15/x86_64/grub2/_log
Where is grub_debug_malloc/grub_debug_free supposed to come from?
Olaf
Adding Patrick...
Quoted 20 lines · Olaf Hering
Quoted 1 line · Paul Menzel
Please bisect the problem to found out the commit introducing the build regression in your environment.
git bisect start
# bad: [d5a32255de0e073881980fca0262000c865b30dd] misc: Makegrub_strtol()"end" pointers have safer const qualifiers git bisect badd5a32255de0e073881980fca0262000c865b30dd
# good: [4e75b2ae313b13b5bfb54cc5e5c53368d6eb2a08] sparc64: Fix BIOS Boot Partition support
git bisect good4e75b2ae313b13b5bfb54cc5e5c53368d6eb2a08
# good: [528938d503088ce0e2fe7d83f8f711efefaed0fd] json: Import upstream jsmn-1.1.0
git bisect good528938d503088ce0e2fe7d83f8f711efefaed0fd
# bad: [8c2c35dcc027a77aee48de89093d8770de0a8cf8] kern: Add %X option to printf functions
git bisect bad8c2c35dcc027a77aee48de89093d8770de0a8cf8
# bad: [365e0cc3e7e44151c14dd29514c2f870b49f9755] disk: Implement support for LUKS2
git bisect bad365e0cc3e7e44151c14dd29514c2f870b49f9755
# good: [9fbdec2f6b4fa8b549daa4d49134d1fe89d95ef9] bootstrap: Add gnulib's base64 module
git bisect good9fbdec2f6b4fa8b549daa4d49134d1fe89d95ef9
# good: [dd3f49b106497416d4da557e8d583e1e9d6f2357] luks: Move configuration of ciphers into cryptodisk git bisect gooddd3f49b106497416d4da557e8d583e1e9d6f2357
Quoted 6 lines
# first bad commit: [365e0cc3e7e44151c14dd29514c2f870b49f9755] disk: Implement support for LUKS2This is always a clean build.
Full logfile at https://build.opensuse.org/package/live_build_log/home:olh/grub2/SLE_15/x86_64
# curl https://build.opensuse.org/build/home:olh/SLE_15/x86_64/grub2/_log
Patrick, could you take a look at this?
Quoted 1 line
Where is grub_debug_malloc/grub_debug_free supposed to come from?
IIRC these are memory allocator debug functions. It seems to me that --disable-mm-debug is a culprit...
Daniel
Quoted 25 lines · Daniel Kiper
Adding Patrick...
Quoted 22 lines · Olaf Hering
Quoted 1 line · Paul Menzel
Please bisect the problem to found out the commit introducing the build regression in your environment.
git bisect start
# bad: [d5a32255de0e073881980fca0262000c865b30dd] misc: Makegrub_strtol()"end" pointers have safer const qualifiers git bisect badd5a32255de0e073881980fca0262000c865b30dd
# good: [4e75b2ae313b13b5bfb54cc5e5c53368d6eb2a08] sparc64: Fix BIOS Boot Partition support
git bisect good4e75b2ae313b13b5bfb54cc5e5c53368d6eb2a08
# good: [528938d503088ce0e2fe7d83f8f711efefaed0fd] json: Import upstream jsmn-1.1.0
git bisect good528938d503088ce0e2fe7d83f8f711efefaed0fd
# bad: [8c2c35dcc027a77aee48de89093d8770de0a8cf8] kern: Add %X option to printf functions
git bisect bad8c2c35dcc027a77aee48de89093d8770de0a8cf8
# bad: [365e0cc3e7e44151c14dd29514c2f870b49f9755] disk: Implement support for LUKS2
git bisect bad365e0cc3e7e44151c14dd29514c2f870b49f9755
# good: [9fbdec2f6b4fa8b549daa4d49134d1fe89d95ef9] bootstrap: Add gnulib's base64 module
git bisect good9fbdec2f6b4fa8b549daa4d49134d1fe89d95ef9
# good: [dd3f49b106497416d4da557e8d583e1e9d6f2357] luks: Move configuration of ciphers into cryptodisk git bisect gooddd3f49b106497416d4da557e8d583e1e9d6f2357# first bad commit: [365e0cc3e7e44151c14dd29514c2f870b49f9755] disk: Implement support for LUKS2
Quoted 6 lines
Quoted 4 lines
This is always a clean build.
Full logfile at https://build.opensuse.org/package/live_build_log/home:olh/grub2/SLE_15/x86_64
# curl https://build.opensuse.org/build/home:olh/SLE_15/x86_64/grub2/_logPatrick, could you take a look at this?
Will do. Currently traveling because of a conference until Saturday, but I'll try to find some time on Sunday.
Quoted 6 lines
Quoted 1 line
Where is grub_debug_malloc/grub_debug_free supposed to come from?
IIRC these are memory allocator debug functions. It seems to me that --disable-mm-debug is a culprit...
Daniel