The following message is displayed and fails to compile on Gentoo/FBSD 9.0 AMD64. If you use gcc 4.5.3, this problem does not occur. Reproducible: Always Steps to Reproduce: 1. set gcc 4.6.3 using gcc-config 2. emerge boot0 Actual Results: <snip> ===> i386 (all) ===> i386/mbr (all) Warning: Object directory not changed from original /var/tmp/portage/sys-freebsd/boot0-9.0/work/sys/boot/i386/mbr as --defsym FLAGS=0x80 --32 -o mbr.o mbr.s x86_64-gentoo-freebsd9.0-gcc -O2 -pipe -fno-strict-aliasing -ffreestanding -mpreferred-stack-boundary=2 -mno-mmx -mno-3dnow -mno-sse -mno-sse2 -mno-sse3 -msoft-float -m32 -march=i386 -std=gnu99 -e start -Ttext 0x600 -Wl,-N,-S,--oformat,binary -nostdlib -m elf_i386_fbsd -o mbr mbr.o x86_64-gentoo-freebsd9.0-gcc: error: elf_i386_fbsd: No such file or directory *** Error code 1 1 error *** Error code 2 1 error *** Error code 2 1 error * ERROR: sys-freebsd/boot0-9.0 failed (compile phase): * make failed * * Call stack: * ebuild.sh, line 85: Called src_compile * environment, line 2532: Called freebsd_src_compile * environment, line 1280: Called bsdmk_src_compile * environment, line 386: Called die * The specific snippet of code: * mkmake || die "make failed" * * If you need support, post the output of `emerge --info '=sys-freebsd/boot0-9.0'`, * the complete build log and the output of `emerge -pqv '=sys-freebsd/boot0-9.0'`. * The complete build log is located at '/var/tmp/portage/sys-freebsd/boot0-9.0/temp/build.log'. * The ebuild environment file is located at '/var/tmp/portage/sys-freebsd/boot0-9.0/temp/environment'. * Working directory: '/var/tmp/portage/sys-freebsd/boot0-9.0/work/sys/boot' * S: '/var/tmp/portage/sys-freebsd/boot0-9.0/work/sys/boot'
Created attachment 314157 [details, diff] sample patch for boot0-9.0.ebuild This issue looks similar to https://bbs.archlinux.org/viewtopic.php?id=119341 .
(In reply to comment #1) > Created attachment 314157 [details, diff] [details, diff] > sample patch for boot0-9.0.ebuild > > This issue looks similar to > https://bbs.archlinux.org/viewtopic.php?id=119341 . A simple fix would be to patch the Makefile to use -Wl,-m,elf_i386_fbsd instead of -m elf_i386_fbsd. Anyway, this is a duplicate of bug #409815. *** This bug has been marked as a duplicate of bug 409815 ***