Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 419503 - [amd64-fbsd] sys-freebsd/boot0-9.0 fails to compile using gcc 4.6.3
Summary: [amd64-fbsd] sys-freebsd/boot0-9.0 fails to compile using gcc 4.6.3
Status: RESOLVED DUPLICATE of bug 409815
Alias: None
Product: Gentoo/Alt
Classification: Unclassified
Component: FreeBSD (show other bugs)
Hardware: AMD64 FreeBSD
: Normal normal (vote)
Assignee: Gentoo/BSD Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: new-fbsd-stage
  Show dependency tree
 
Reported: 2012-06-03 17:43 UTC by Yuta SATOH
Modified: 2012-06-05 04:47 UTC (History)
0 users

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


Attachments
sample patch for boot0-9.0.ebuild (boot0-9.0.ebuild.patch,501 bytes, patch)
2012-06-04 11:10 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 2012-06-03 17:43:42 UTC
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'
Comment 1 Yuta SATOH 2012-06-04 11:10:20 UTC
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 .
Comment 2 Richard Yao (RETIRED) gentoo-dev 2012-06-05 04:47:34 UTC
(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 ***