[systemd-devel] binutils (objcopy?) >= 2.26 breaks syslinux (bios) build

poma pomidorabelisima at gmail.com
Sat Jan 30 04:55:13 PST 2016


Hi Fi


$ rpm --query --file /usr/bin/objcopy
binutils-2.25.1-9.fc24.x86_64

$ cd syslinux-7cd1ed6/
$ make bios
...
make[3]: Leaving directory '/tmp/syslinux-7cd1ed6/bios/gpxe'
make[2]: Leaving directory '/tmp/syslinux-7cd1ed6/bios'
make[1]: Leaving directory '/tmp/syslinux-7cd1ed6'

$ file bios/core/*.bin
bios/core/isolinux.bin:       data
bios/core/isolinux-debug.bin: isolinux Loader (version 6.04)
bios/core/ldlinux.bin:        Syslinux bootloader (version 3.10 or newer)
bios/core/lpxelinux.bin:      data
bios/core/pxelinux.bin:       data

this looks OK,
however ...

$ rpm --query --file /usr/bin/objcopy
binutils-2.26-4.fc24.x86_64

$ cd syslinux-7cd1ed6/
$ make bios
...
objcopy -O binary -S ldlinux.elf ldlinux.raw
objcopy -O binary -S isolinux.elf isolinux.raw
objcopy -O binary -S isolinux-debug.elf isolinux-debug.raw
/tmp/syslinux-7cd1ed6/bios/core/../lzo/prepcore ldlinux.raw ldlinux.bin
objdump -h pxelinux.elf > pxelinux.sec
perl /tmp/syslinux-7cd1ed6/core/lstadjust.pl pxelinux.lsr pxelinux.sec pxelinux.lst
objdump -h lpxelinux.elf > lpxelinux.sec
perl /tmp/syslinux-7cd1ed6/core/lstadjust.pl lpxelinux.lsr lpxelinux.sec lpxelinux.lst
/tmp/syslinux-7cd1ed6/bios/core/../lzo/prepcore isolinux.raw isolinux.bin
/tmp/syslinux-7cd1ed6/bios/core/../lzo/prepcore isolinux-debug.raw isolinux-debug.bin
/tmp/syslinux-7cd1ed6/bios/core/../lzo/prepcore: ldlinux.raw: write error
/tmp/syslinux-7cd1ed6/core/Makefile:153: recipe for target 'ldlinux.bin' failed
make[3]: *** [ldlinux.bin] Error 1
make[3]: *** Waiting for unfinished jobs....
/tmp/syslinux-7cd1ed6/bios/core/../lzo/prepcore: isolinux.raw: write error
/tmp/syslinux-7cd1ed6/core/Makefile:153: recipe for target 'isolinux.bin' failed
make[3]: *** [isolinux.bin] Error 1
/tmp/syslinux-7cd1ed6/bios/core/../lzo/prepcore: isolinux-debug.raw: write error
/tmp/syslinux-7cd1ed6/core/Makefile:153: recipe for target 'isolinux-debug.bin' failed
make[3]: *** [isolinux-debug.bin] Error 1
rm isolinux-debug.raw isolinux-debug.o ldlinux.o ldlinux.raw isolinux.o isolinux.raw
make[3]: Leaving directory '/tmp/syslinux-7cd1ed6/bios/core'
/tmp/syslinux-7cd1ed6/Makefile:287: recipe for target 'core' failed
make[2]: *** [core] Error 2
make[2]: Leaving directory '/tmp/syslinux-7cd1ed6/bios'
/tmp/syslinux-7cd1ed6/Makefile:256: recipe for target 'bios' failed
make[1]: *** [bios] Error 2
make[1]: Leaving directory '/tmp/syslinux-7cd1ed6'
Makefile:104: recipe for target 'bios' failed
make: *** [bios] Error 2

$ file bios/core/*.bin
bios/core/isolinux.bin:       empty
bios/core/isolinux-debug.bin: empty
bios/core/ldlinux.bin:        empty

the same goes for
$ /usr/local/bin/objcopy --version | head -1
GNU objcopy (GNU Binutils) 2.26.51.20160130


https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=806487

The GNU Binutils
https://www.gnu.org/software/binutils
https://packages.debian.org/sid/devel/binutils
https://apps.fedoraproject.org/packages/binutils



More information about the systemd-devel mailing list