The following message is displayed and fails to compile. <snip> clang -m32 -c boot2.s x86_64-gentoo-freebsd10.0-ld -static -N --gc-sections -m elf_i386_fbsd -Ttext 0x2000 -o boot2.out /var/tmp/portage/sys-freebsd/boot0-10.1/work/sys/boot/i386/boot2/../btx/lib/crt0.o boot2.o sio.o objcopy -S -O binary boot2.out boot2.bin btxld -v -E 0x2000 -f bin -b /var/tmp/portage/sys-freebsd/boot0-10.1/work/sys/boot/i386/boot2/../btx/btx/btx -l boot2.ldr -o boot2.ld -P 1 boot2.bin kernel: ver=1.02 size=690 load=9000 entry=9010 map=16M pgctl=1:1 client: fmt=bin size=1661 text=0 data=0 bss=0 entry=0 output: fmt=bin size=1ef1 text=200 data=1cf1 org=0 entry=0 -241 bytes available *** [boot2] Error code 1 make[2]: stopped in /var/tmp/portage/sys-freebsd/boot0-10.1/work/sys/boot/i386/boot2 1 error make[2]: stopped in /var/tmp/portage/sys-freebsd/boot0-10.1/work/sys/boot/i386/boot2 *** [_sub.all] Error code 2 Reproducible: Always
Created attachment 398510 [details, diff] sample patch for boot0-10.1.ebuild Please update the patch if you find a better solution.
+ 15 Mar 2015; Michał Górny <mgorny@gentoo.org> boot0-10.1.ebuild: + Fix build with clang, bug #542676. https://github.com/gentoo/gentoo-portage- + rsync-mirror/pull/67 by nigoro.