aarch64 based sysutils/u-boot-rpi[34] (and more?) builds fail for: "aarch64-none-elf-gcc: fatal error: -fuse-linker-plugin, but liblto_plugin.so not found"

Mark Millard marklmi at yahoo.com
Sun Apr 26 08:14:18 UTC 2020


The below where based on poudriere-devel based build attempts.
/usr/ports/ was based on head -r532972 and aarch64 FreeBSD was
based on head -r360311 . amd64 FreeBSD did not have the build
problem for the aaarch64-targeted u-boot ports.

The overall build is still going and more aarch64-targeted
u-boot builds might fail.


sysutils/u-boot-rpi4 :

  aarch64-none-elf-gcc -x c -DDO_DEPS_ONLY -M -MP -Wall -Wstrict-prototypes -Wno-format-security -fno-builtin -ffreestanding -std=gnu11 -fshort-wchar -fno-strict-aliasing -fno-PIE -O2 -fno-stack-protector -fno-delete-null-pointer-checks -fmacro-prefix-map=./= -g -fstack-usage -Wno-format-nonliteral  -Werror=date-time  -D__KERNEL__ -D__UBOOT__   -D__ARM__           -fno-pic  -mstrict-align  -ffunction-sections -fdata-sections -fno-common -ffixed-r9     -fno-common -ffixed-x18 -pipe -Iinclude  -I./arch/arm/include -include ./include/linux/kconfig.h  -nostdinc -isystem /usr/local/lib/gcc/aarch64-none-elf/8.4.0/include -MQ include/config/auto.conf ./include/common.h > include/autoconf.mk.dep || { rm include/autoconf.mk.dep; false; }
  sed -n -f ./tools/scripts/define2mk.sed u-boot.cfg | while read line; do if [ -n "" ] || ! grep -q "${line%=*}=" include/config/auto.conf; then echo "$line"; fi done > include/autoconf.mk
aarch64-none-elf-gcc: fatal error: -fuse-linker-plugin, but liblto_plugin.so not found
compilation terminated.
gmake[2]: *** [scripts/Makefile.autoconf:48: include/autoconf.mk.dep] Error 1
gmake[2]: *** Waiting for unfinished jobs....
gmake[1]: *** No rule to make target 'include/config/auto.conf', needed by 'include/config/uboot.release'.  Stop.
gmake[1]: Leaving directory '/wrkdirs/usr/ports/sysutils/u-boot-rpi4/work/u-boot-2020.04'


sysutils/u-boot-rpi3 :

  aarch64-none-elf-gcc -x c -DDO_DEPS_ONLY -M -MP -Wall -Wstrict-prototypes -Wno-format-security -fno-builtin -ffreestanding -std=gnu11 -fshort-wchar -fno-strict-aliasing -fno-PIE -O2 -fno-stack-protector -fno-delete-null-pointer-checks -fmacro-prefix-map=./= -g -fstack-usage -Wno-format-nonliteral  -Werror=date-time  -D__KERNEL__ -D__UBOOT__   -D__ARM__           -fno-pic  -mstrict-align  -ffunction-sections -fdata-sections -fno-common -ffixed-r9     -fno-common -ffixed-x18 -pipe -Iinclude  -I./arch/arm/include -include ./include/linux/kconfig.h  -nostdinc -isystem /usr/local/lib/gcc/aarch64-none-elf/8.4.0/include -MQ include/config/auto.conf ./include/common.h > include/autoconf.mk.dep || { rm include/autoconf.mk.dep; false; }
aarch64-none-elf-gcc: fatal error: -fuse-linker-plugin, but liblto_plugin.so not found
compilation terminated.
gmake[2]: *** [scripts/Makefile.autoconf:48: include/autoconf.mk.dep] Error 1
gmake[2]: *** Waiting for unfinished jobs....
gmake[1]: *** No rule to make target 'include/config/auto.conf', needed by 'include/config/uboot.release'.  Stop.
gmake[1]: Leaving directory '/wrkdirs/usr/ports/sysutils/u-boot-rpi3/work/u-boot-2020.04'


===
Mark Millard
marklmi at yahoo.com
( dsl-only.net went
away in early 2018-Mar)



More information about the freebsd-ports mailing list