Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 542676

Summary: sys-freebsd/boot0: compile fails with llvm-3.5.1
Product: Gentoo/Alt Reporter: Yuta SATOH <nigoro.dev>
Component: FreeBSDAssignee: Gentoo/BSD Team <bsd+disabled>
Status: RESOLVED FIXED    
Severity: normal    
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: FreeBSD   
Whiteboard:
Package list:
Runtime testing required: ---
Attachments: sample patch for boot0-10.1.ebuild

Description Yuta SATOH 2015-03-09 11:10:29 UTC
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
Comment 1 Yuta SATOH 2015-03-09 11:18:49 UTC
Created attachment 398510 [details, diff]
sample patch for boot0-10.1.ebuild

Please update the patch if you find a better solution.
Comment 2 Michał Górny archtester Gentoo Infrastructure gentoo-dev Security 2015-03-15 18:18:29 UTC
+  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.