Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
should I file a bug report?
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware
View previous topic :: View next topic  
Author Message
haxle
n00b
n00b


Joined: 18 Feb 2005
Posts: 59

PostPosted: Sun Dec 23, 2012 4:01 pm    Post subject: should I file a bug report? Reply with quote

Ok so I'm having an issue with trying to build a kernel for a hardened IRCD. I checked in #gentoo-hardened and they told me to go ahead and file a bug but there's some things that I'm noticing that makes me think there might be something I can do beforehand.

The problem occurs when trying to build kernel/sched/core.o as seen here:

Code:

ircd linux # make
make[1]: Nothing to be done for `all'.
make[1]: Nothing to be done for `relocs'.
  CHK     include/linux/version.h
  CHK     include/generated/utsrelease.h
  CALL    scripts/checksyscalls.sh
  CHK     include/generated/compile.h
make[3]: `arch/x86/realmode/rm/realmode.bin' is up to date.
  CC      kernel/sched/core.o
*** WARNING *** there are active plugins, do not report this as a bug unless you can reproduce it without enabling any plugins.
Event                            | Plugins
PLUGIN_FINISH_TYPE               | constify_plugin
PLUGIN_ATTRIBUTES                | latent_entropy_plugin size_overflow_plugin constify_plugin
PLUGIN_START_UNIT                | start_unit start_unit colorize_plugin
kernel/sched/core.c: In function 'get_user_cpu_mask':
kernel/sched/core.c:8525:1: internal compiler error: in gimple_build_call, at gimple.c:243
Please submit a full bug report,
with preprocessed source if appropriate.
See <http://bugs.gentoo.org/> for instructions.
make[2]: *** [kernel/sched/core.o] Error 1
make[1]: *** [kernel/sched] Error 2
make: *** [kernel] Error 2


my emerge --info:

Code:

ircd ~ # emerge --info
Portage 2.1.11.31 (hardened/linux/x86, gcc-4.5.4, glibc-2.15-r3, 3.2.11-hardened i686)
=================================================================
System uname: Linux-3.2.11-hardened-i686-Intel-R-_Pentium-R-_4_CPU_1.60GHz-with-gentoo-2.
Timestamp of tree: Sat, 22 Dec 2012 04:15:01 +0000
ld GNU ld (GNU Binutils) 2.22
app-shells/bash:          4.2_p37
dev-lang/python:          3.2.3
dev-util/pkgconfig:       0.27.1
sys-apps/baselayout:      2.1-r1
sys-apps/openrc:          0.11.8
sys-apps/sandbox:         2.5
sys-devel/autoconf:       2.68
sys-devel/automake:       1.11.6
sys-devel/binutils:       2.22-r1
sys-devel/gcc:            4.5.4
sys-devel/gcc-config:     1.7.3
sys-devel/libtool:        2.4-r1
sys-devel/make:           3.82-r4
sys-kernel/linux-headers: 3.6 (virtual/os-headers)
sys-libs/glibc:           2.15-r3
Repositories: gentoo
ACCEPT_KEYWORDS="x86"
ACCEPT_LICENSE="* -@EULA"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-O2 -march=i686 -pipe"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/gconf /etc/gentoo-release etc/revdep-rebuild /etc/sandbox.d /etc/terminfo"
CXXFLAGS="-O2 -march=i686 -pipe"
DISTDIR="/usr/portage/distfiles"
FCFLAGS="-march=i686 -O2 -pipe"
FEATURES="assume-digests binpkg-logs config-protect-if-modified distlocks ebuild-locks filafiles merge-sync news parallel-fetch protect-owned sandbox sfperms strict unknown-featues-warn unmerge-logs unmerge-orphans userfetch"
FFLAGS="-march=i686 -O2 -pipe"
GENTOO_MIRRORS="http://www.gtlib.gatech.edu/pub/gentoo http://gentoo.mirrors.hoobly.com/ ttp://gentoo.osuosl.org/ http://gentoo.mirrors.pair.com/ http://gentoo.cites.uiuc.edu/pubgentoo/ http://mirror.usu.edu/mirrors/gentoo/ ftp://ftp.wallawalla.edu/pub/mirrors/ftp.getoo.org"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force -whole-file --delete --stats --human-readable --timeout=180 --exclude=/distfiles --exclude/local --exclude=/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY=""
SYNC="rsync://rsync.us.gentoo.org/gentoo-portage"
USE="acl berkdb bindist bzip2 cli cracklib crypt cups cxx dri gdbm gpm hardened iconv ipv mmx modules mudflap ncurses nls nptl openmp pam pax_kernel pcre pic pppd readline sessio sse sse2 ssl tcpd unicode urandom x86 zlib" ALSA_CARDS="ali5451 als4000 atiixp atiixp-moem bt87x ca0106 cmipci emu10k1 emu10k1x ens1370 ens1371 es1938 es1968 fm801 hda-intel intl8x0 intel8x0m maestro3 trident usb-audio via82xx via82xx-modem ymfpci" ALSA_PCM_PLUGINS=adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lflat linear meter mmap_emul mulaw multi null plug rate route share shm softvol" APACHE2_MODLES="authn_core authz_core socache_shmcb unixd actions alias auth_basic authn_alias authnanon authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_hos authz_owner authz_user autoindex cache cgi cgid dav dav_fs dav_lock deflate dir disk_cace env expires ext_filter file_cache filter headers include info log_config logio mem_cach mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack host_alias" CALLIGRA_FEATURES="kexi words flow plan sheets stage tables krita karbon braidump" CAMERAS="ptp2" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" LIBC="glibc" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclck itrax mtk3301 nmea ntrip navcom oceanserver oldstyle oncore rtcm104v2 rtcm104v3 sirf sperstar2 timing tsip tripmate tnt ubx" INPUT_DEVICES="keyboard mouse evdev" KERNEL="linux LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBROFFICE_EXTENSIONS="presenter-console presenter-minimizer" PHP_TARGETS="php5-3" PYTHON_SINLE_TARGET="python2_7" PYTHON_TARGETS="python2_7 python3_2" RUBY_TARGETS="ruby18 ruby19" UERLAND="GNU" VIDEO_CARDS="apm ark chips cirrus cyrix dummy fbdev glint i128 i740 intel mah64 mga nsc nv r128 radeon rendition s3 s3virge savage siliconmotion sis sisusb tdfx tga rident tseng v4l vesa via vmware nouveau" XTABLES_ADDONS="quota2 psd pknock lscan length2ipv4options ipset ipp2p iface geoip fuzzy condition tee tarpit sysrq steal rawnat logmarkipmark dhcpmac delude chaos account"
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LANG, LC_ALL, PORTAGE_BUNZI2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, USE_PYTHON


One thing in particular I noticed was that here recently I changed my use flags to be a little more minimal.. i've done an env-update && source /etc/profile since then but the emerge --info is still showing a crap ton of use flags.. was wondering if I'm going to need to do an "emerge world" to get that to change so as to rebuild the system with the more minimal use flag settings..

As you can see i don't have that many use flags enabled in my make.conf:

Code:

ircd linux # more /etc/portage/make.conf
# These settings were set by the catalyst build script that automatically
# built this stage.
# Please consult /usr/share/portage/config/make.conf.example for a more
# detailed example.
CFLAGS="-O2 -march=i686 -pipe"
CXXFLAGS="${CFLAGS}"
# WARNING: Changing your CHOST is not something that should be done lightly.
# Please consult http://www.gentoo.org/doc/en/change-chost.xml before changing.
CHOST="i686-pc-linux-gnu"
# These are the USE flags that were used in addition to what is provided by the
# profile used for building.
USE="mmx sse sse2"
MAKEOPTS="-j2"

GENTOO_MIRRORS="http://www.gtlib.gatech.edu/pub/gentoo http://gentoo.mirrors.hoobly.com/
http://gentoo.osuosl.org/ http://gentoo.mirrors.pair.com/ http://gentoo.cites.uiuc.edu/pu
b/gentoo/ http://mirror.usu.edu/mirrors/gentoo/ ftp://ftp.wallawalla.edu/pub/mirrors/ftp.
gentoo.org"

SYNC="rsync://rsync.us.gentoo.org/gentoo-portage"


I also noticed it stated not to file a bug report unless you can replicate the bugs without the plugins loaded.. I am uneducated as to the process for unloading those plugins.. guy in gentoo-hardened said to go ahead but I just want to be sure as I know the devs have quite enough on their plates as it is.
Thanks in advance for the suggestions.
Back to top
View user's profile Send private message
NeddySeagoon
Administrator
Administrator


Joined: 05 Jul 2003
Posts: 33044
Location: 56N 3W

PostPosted: Sun Dec 23, 2012 4:44 pm    Post subject: Reply with quote

haxle,

If in doubt, submit a bug report. If the devs don't like it, it will be marked as INVALID.
Ask for some debug help in #gentoo-hardened if you feel you don't have the detial.
You will find the devs who will be reading your bug report there.
_________________
Regards,

NeddySeagoon

Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail.
Back to top
View user's profile Send private message
The Doctor
Veteran
Veteran


Joined: 27 Jul 2010
Posts: 1601

PostPosted: Sun Dec 23, 2012 5:42 pm    Post subject: Re: should I file a bug report? Reply with quote

haxle wrote:

One thing in particular I noticed was that here recently I changed my use flags to be a little more minimal.. i've done an env-update && source /etc/profile since then but the emerge --info is still showing a crap ton of use flags.. was wondering if I'm going to need to do an "emerge world" to get that to change so as to rebuild the system with the more minimal use flag settings..
Most of the flags you see are set by your profile. Most are also features you would want. There is a nice list here of what they do. For example, you appear to be running a hardened profile, so you need all the trimmings that go with that, like the hardened flag and the pax-kernel flag, and flags like cups is for printing. If you don't want them you will need to specifically unset them in make.conf, but look up what they do first! You may find that it does more harm than good. You may also find that packages require other packages with specific flags as well, so you may have to keep the packages anyway.
_________________
First things first, but not necessarily in that order.
Back to top
View user's profile Send private message
haxle
n00b
n00b


Joined: 18 Feb 2005
Posts: 59

PostPosted: Sun Dec 23, 2012 5:46 pm    Post subject: Reply with quote

Thanks for clearing that up guys, I'll go ahead and post the bug report. Thanks for your time :)
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum