Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 477914 - [9.2] freebsd-sources-9.2_beta1: kernel hang in immediately after detection of vtnet (only gcc)
Summary: [9.2] freebsd-sources-9.2_beta1: kernel hang in immediately after detection o...
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: 476646
  Show dependency tree
 
Reported: 2013-07-23 15:22 UTC by Yuta SATOH
Modified: 2015-06-14 18:06 UTC (History)
0 users

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


Attachments
sample patch for freebsd-sources-9.2_rc3.ebuild (477914.patch,684 bytes, patch)
2013-10-14 09:19 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 2013-07-23 15:22:03 UTC
Virtio module has been merged into FreeBSD 9.2.
However, if you have compiled with gcc-4.6.4, hang after detecting the vtnet.

The workaround is to compile with clang.
Please comment if you know a better way.

thanks in advance.


FYI, How to compile using clang

emerge sys-devel/clang
cd /usr/src/sys/amd64/conf
cp GENERIC.hints /boot/device.hints
config GENERIC
cd ../compile/GENERIC
export CC=clang
export CXX="clang++ -stdlib=libc++"
make cleandepend && make depend && make -j3 && make install
Comment 1 Yuta SATOH 2013-10-14 09:19:17 UTC
Created attachment 360856 [details, diff]
sample patch for freebsd-sources-9.2_rc3.ebuild

I've confirm that kernel compiled using gcc-4.6.4 is booted.
This patch is based on the idea of Debian's patch.
(disable CFLAGS=-fstack-protector)

FYI,
http://patch-tracker.debian.org/patch/series/view/kfreebsd-9/9.2-1/950_no_stack_protector.diff
Comment 2 Michał Górny archtester Gentoo Infrastructure gentoo-dev Security 2015-06-14 18:06:32 UTC
+  14 Jun 2015; Michał Górny <mgorny@gentoo.org>
+  +files/freebsd-sources-10.1-gcc48.patch, freebsd-sources-10.1-r3.ebuild:
+  Stop requiring clang. Fix failures with recent gcc versions, bug #477914.
+  https://github.com/gentoo/gentoo-portage-rsync-mirror/pull/148 by nigoro.