Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 542676 - sys-freebsd/boot0: compile fails with llvm-3.5.1
Summary: sys-freebsd/boot0: compile fails with llvm-3.5.1
Status: RESOLVED FIXED
Alias: None
Product: Gentoo/Alt
Classification: Unclassified
Component: FreeBSD (show other bugs)
Hardware: All FreeBSD
: Normal normal (vote)
Assignee: Gentoo/BSD Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2015-03-09 11:10 UTC by Yuta SATOH
Modified: 2015-03-15 18:18 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments
sample patch for boot0-10.1.ebuild (542676.patch,533 bytes, patch)
2015-03-09 11:18 UTC, Yuta SATOH
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
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.