Can I use ppa:team-gcc-arm-embedded to build PX4 formware?

I’m trying to use the latest gcc-arm-embedded and everything compiles, but I get a weird link error.

Then genromfs step works fine:

/usr/bin/genromfs -f /mnt/d/git/px4/Firmware/build_px4fmu-v2_default/src/firmware/nuttx/romfs.bin -d /mnt/d/git/px4/Firmware/build_px4fmu-v2_default/tmp/ROMFS/px4fmu_common -V NSHInitVol

but arm-none-eabi-ld doesn’t like it…

/usr/bin/arm-none-eabi-ld -r -o romfs.o.bin.o romfs.o.c.o -b binary romfs.bin

/usr/bin/arm-none-eabi-ld: romfs.bin: not in ELF format

Anyone seen this before?

It depends on the GCC version. I’d stick to 5.4 for now. It’s usually best to stick with the version mentioned in the dev guide.