tech-pkg archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

wip/grub2 build failure



Hi!

grub2 doesn't build for me and in many bulk builds. Also, it's
outdated.

I took a look at updating it, see wip/grub2, but I can't get over one
build failure, and I don't understand it. Perhaps you can help?

The failure is:

Making install in grub-core
gmake[2]: Entering directory '/scratch/wip/grub2.12/work/grub-2.12/grub-core'
/usr/pkg/bin/gmake  install-am
gmake[3]: Entering directory '/scratch/wip/grub2.12/work/grub-2.12/grub-core'
if test x0 = x1; then   strip -S -x  -o kernel.img.bin kernel.exec;    -felf32 -nr:_grub_mod_init:grub_mod_init -nr:_grub_mod_fini:grub_mod_fini -ed2022 -ed2016 -wd1106 -nu -nd kernel.img.bin kernel.img;   rm -f kernel.img.bin;    elif test ! -z ''; then      strip  -R .rel.dyn -R .reginfo -R .note -R .comment -R .drectve -R .note.gnu.gold-version -R .MIPS.abiflags -R .ARM.exidx  -o kernel.img.bin kernel.exec &&       kernel.img.bin kernel.img || (rm -f kernel.img; rm -f kernel.img.bin; exit 1);      rm -f kernel.img.bin; else strip  -R .rel.dyn -R .reginfo -R .note -R .comment -R .drectve -R .note.gnu.gold-version -R .MIPS.abiflags -R .ARM.exidx  -o kernel.img kernel.exec; fi
gmake[4]: Entering directory '/scratch/wip/grub2.12/work/grub-2.12/grub-core'
if test x0 = x1; then   strip -S -x  -o kernel.img.bin kernel.exec;    -felf32 -nr:_grub_mod_init:grub_mod_init -nr:_grub_mod_fini:grub_mod_fini -ed2022 -ed2016 -wd1106 -nu -nd kernel.img.bin kernel.img;   rm -f kernel.img.bin;    elif test ! -z ''; then      strip  -R .rel.dyn -R .reginfo -R .note -R .comment -R .drectve -R .note.gnu.gold-version -R .MIPS.abiflags -R .ARM.exidx  -o kernel.img.bin kernel.exec &&       kernel.img.bin kernel.img || (rm -f kernel.img; rm -f kernel.img.bin; exit 1);      rm -f kernel.img.bin; else strip  -R .rel.dyn -R .reginfo -R .note -R .comment -R .drectve -R .note.gnu.gold-version -R .MIPS.abiflags -R .ARM.exidx  -o kernel.img kernel.exec; fi
 ../build-aux/install-sh -c -d '/scratch/wip/grub2.12/work/.destdir/usr/pkg/lib/grub/i386-pc'
 /usr/bin/install -c -o pbulk -g builder -m 644 ./kernel.img boot.img boot_hybrid.img cdboot.img pxeboot.img diskboot.img lnxboot.img lzma_decompress.img gdb_helper.py gdb_grub fs.lst command.lst partmap.lst terminal.lst fdt.lst parttool.lst video.lst crypto.lst moddep.lst disk.mod trig.mod cs5536.mod usb.mod usbserial_common.mod usbserial_pl2303.mod usbserial_ftdi.mod usbserial_usbdebug.mod uhci.mod ohci.mod ehci.mod pci.mod nativedisk.mod cmostest.mod cmosdump.mod iorw.mod cbtable.mod cbtime.mod cbls.mod cbmemc.mod regexp.mod '/scratch/wip/grub2.12/work/.destdir/usr/pkg/lib/grub/i386-pc'
install: ./kernel.img: stat: No such file or directory
gmake[4]: *** [Makefile:43902: install-platformDATA] Error 1


1. why is the 'if test x0 = x1' line there twice?
   I turned off parallel make jobs (MAKE_JOBS_SAFE=no AND even setting MAKE_JOBS to 1)

2. as I read the if, it should run the strip command at the end of the
   line and end up with a kernel.img file. Why isn't it there? (It really
   isn't)

3. if I go to grub-core and do 'gmake kernel.img' I get one - this
   executes the same line as I see in the build log above.

Any insights welcome!
 Thomas


Home | Main Index | Thread Index | Old Index