Hi folks, I encountered a build error when using ptxdist-2017.07.0 with OSELAS.Toolchain-2014.12.2 (specifically, the "oselas.toolchain-2014.12.2-arm-v7a-linux-gnueabihf-gcc-4.9.2-glibc-2.20-binutils-2.24-kernel-3.16-sanitized" Debian package) to build barebox_mlo for an Altera SoCFPGA target. Here are the last few lines of the build output: LD barebox SYSMAP System.map OBJCOPY barebox.bin LDS images/pbl.lds LZO images/barebox.z LD images/start_socfpga_socrates_xload.pbl OBJCOPYB images/start_socfpga_socrates_xload.pblb PBLX images/start_socfpga_socrates_xload.pblx invalid magic /mnt/lindata/work/abbotti/ptxdist/projects/testproject/platform-EBV-Socrates/build-target/barebox_mlo-2017.08.0/images/Makefile:77: recipe for target 'images/start_socfpga_socrates_xload.pblx' failed make[2]: *** [images/start_socfpga_socrates_xload.pblx] Error 1 Makefile:501: recipe for target 'images' failed make[1]: *** [images] Error 2 make[1]: Leaving directory '/mnt/lindata/work/abbotti/ptxdist/projects/testproject/platform-EBV-Socrates/build-target/barebox_mlo-2017.08.0' /mnt/lindata/work/abbotti/ptxdist/ptxdist/releases/ptxdist-2017.07.0/rules/post/ptxd_make_world_compile.make:21: recipe for target '/home/abbotti/work/ptxdist/projects/testproject/platform-EBV-Socrates/state/barebox_mlo.compile' failed make: *** [/home/abbotti/work/ptxdist/projects/testproject/platform-EBV-Socrates/state/barebox_mlo.compile] Error 2 The "invalid magic" message comes from the "fix_size" program executed by "images/Makefile". It seems to be caused by the presence of a ".note.gnu-build-id" section before the the ".text" section in the "start_socfpga_socrates_xload.pbl" file, as shown by "arm-v7a-linux-gnueabihf-objdump -h start_socfpga_socrates_xload.pbl": start_socfpga_socrates_xload.pbl: file format elf32-littlearm Sections: Idx Name Size VMA LMA File off Algn 0 .note.gnu.build-id 000001f8 00000000 00000000 00008000 2**2 CONTENTS, ALLOC, LOAD, READONLY, DATA 1 .text 0000322c 000001f8 000001f8 000081f8 2**2 CONTENTS, ALLOC, LOAD, READONLY, CODE 2 .rodata 00000d31 00003424 00003424 0000b424 2**2 CONTENTS, ALLOC, LOAD, READONLY, DATA 3 .interp 00000011 00004155 00004155 0000c155 2**0 CONTENTS, ALLOC, LOAD, READONLY, DATA 4 .dynamic 00000080 00004670 00004670 0000c670 2**2 CONTENTS, ALLOC, LOAD, DATA 5 .dynsym 00000150 000048cc 000048cc 0000c8cc 2**2 CONTENTS, ALLOC, LOAD, READONLY, DATA 6 .dynstr 000000f4 00004166 00004166 0000c166 2**0 CONTENTS, ALLOC, LOAD, READONLY, DATA 7 .gnu.hash 00000050 0000425c 0000425c 0000c25c 2**2 CONTENTS, ALLOC, LOAD, READONLY, DATA 8 .data 000003c4 000042ac 000042ac 0000c2ac 2**2 CONTENTS, ALLOC, LOAD, DATA 9 .got.plt 0000000c 000046f0 000046f0 0000c6f0 2**2 CONTENTS, ALLOC, LOAD, DATA 10 .rel.dyn 000001d0 000046fc 000046fc 0000c6fc 2**2 CONTENTS, ALLOC, LOAD, READONLY, DATA 11 .bss 00000020 00004a1c 00004a1c 0000ca1c 2**2 ALLOC 12 .image_end 00000004 00004a3c 00004a3c 0000ca3c 2**2 CONTENTS, ALLOC, LOAD, DATA 13 .comment 00000028 00000000 00000000 0000ca40 2**0 CONTENTS, READONLY 14 .ARM.attributes 0000002f 00000000 00000000 0000ca68 2**0 CONTENTS, READONLY (In a working build, the ".text" section starts at offset 00008000 and there is no ".note.gnu.build-id" section.) The problem does not occur with ptxdist-2017.06.0. I upgraded to 2017.07.0 because I was getting Perl errors with automake-1.15 after upgrading my Debian "testing" (buster/sid) system. Also, the problem does not occur with OSELAS.Toolchain-2016.06.1 (Debian package "oselas.toolchain-2016.06.1-arm-v7a-linux-gnueabihf-gcc-5.4.0-glibc-2.23-binutils-2.26-kernel-4.6-sanitized"). I use the older toolchain because it produces smaller binaries and I'm a bit short on space in flash memory. I've attached a pretty minimal set of project files in case anyone feels like trying to reproduce it. The files are: configs/ptxconfig configs/ebv-socrates/barebox_mlo-config configs/ebv-socrates/platformconfig I'll continue my investigation tomorrow to find out what is causing the ".note.gnu.build-id" header to appear in the .pbl file. Thankyou for your time, and for PTXdist! -- -=( Ian Abbott @ MEV Ltd. E-mail: )=- -=( Web: http://www.mev.co.uk/ )=-