Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 382745 - Some ebuilds are failing with sandbox access violations if gcc is not built with fortran
Summary: Some ebuilds are failing with sandbox access violations if gcc is not built w...
Status: RESOLVED DUPLICATE of bug 332657
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: AMD64 Linux
: Normal normal (vote)
Assignee: Gentoo Linux bug wranglers
Depends on:
Reported: 2011-09-12 21:16 UTC by Marius Caldas
Modified: 2011-09-12 23:21 UTC (History)
0 users

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

Ebuild log for dev-db/sqlite- (Gentoo-bug-382745-sqlite-access-violation,24.59 KB, text/plain)
2011-09-12 21:21 UTC, Marius Caldas
This is ebuild log for media-libs/libmpeg2-0.5.1-r1. (Gentoo-bug-382745-libmpeg-access-violation,25.64 KB, text/plain)
2011-09-12 21:24 UTC, Marius Caldas

Note You need to log in before you can comment on or make changes to this bug.
Description Marius Caldas 2011-09-12 21:16:40 UTC
I had built gcc with -fortran and I have been experiencing a lot of sandbox violations lately. Today I emerge --sync'd and the first to fail was dev-db/sqlite-
I tried to --skipfirst but then media-libs/libmpeg2-0.5.1-r1 failed also with sandbox violations. Then I looked up in the forums and I found this discussion: 

The last comment was a tip about re-building gcc with fortran.

I then re-built gcc with fortran enabled and the problem went away. But since I really do not need fortran and I doubt sqlite depends on it, there seems to be something wrong with dependency calculations.

Reproducible: Always

Steps to Reproduce:
1.Build gcc without fortran
2.Emerge dev-db/sqlite- (fails)
3.Rebuild gcc with fortran
4.Emerge dev-db/sqlite- (succeeds)
Actual Results:  
When dev-db/sqlite- and others are built with a gcc that was built without fortran, the build fails with sandbox access violations.

Expected Results:  
dev-db/sqlite- and other ebuilds that are not fortran dependent should be built successfully with a gcc that was built with the -fortran flag.

Portage (default/linux/amd64/10.0/desktop/kde, gcc-4.6.1, glibc-2.13-r4, x86_64)
System uname: Linux-
Timestamp of tree: Mon, 12 Sep 2011 16:30:01 +0000
app-shells/bash:          4.2_p10
dev-lang/python:          2.7.2-r2, 3.1.4-r2, 3.2-r2
dev-util/cmake:           2.8.5-r2
dev-util/pkgconfig:       0.26
sys-apps/baselayout:      2.0.3
sys-apps/openrc:          0.9.3-r1
sys-apps/sandbox:         2.5
sys-devel/autoconf:       2.13, 2.68
sys-devel/automake:       1.11.1-r1
sys-devel/binutils:       2.21.1-r1
sys-devel/gcc:            4.4.6-r1, 4.5.3-r1, 4.6.1-r1
sys-devel/gcc-config:     1.4.1-r1
sys-devel/libtool:        2.4-r1
sys-devel/make:           3.82-r1
sys-kernel/linux-headers: 2.6.38 (virtual/os-headers)
sys-libs/glibc:           2.13-r4
Repositories: gentoo
ACCEPT_KEYWORDS="amd64 ~amd64"
CFLAGS="-O2 -march=native -pipe"
CONFIG_PROTECT="/etc /usr/share/config /usr/share/gnupg/qualified.txt"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo"
CXXFLAGS="-O2 -march=native -pipe"
FEATURES="assume-digests binpkg-logs distlocks ebuild-locks fixlafiles fixpackages news parallel-fetch protect-owned sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"
USE="X a52 aac acl acpi alsa amd64 apng berkdb bluetooth branding bzip2 cairo cdda cdr cli consolekit cracklib crypt cups cxx dbus declarative dri dts dvd dvdr emboss encode exif fam ffmpeg firefox flac fortran gdbm gdu gif gpm gtk iconv jpeg kde kerberos kipi lcms ldap libnotify mad mmx mng modules mp3 mp4 mpeg mudflap multilib ncurses nls nptl nptlonly ogg openct opengl openmp pam pango pcre pdf perl phonon pkcs11 plasma png policykit ppds pppd private-headers python qt3support qt4 readline sdl sdl-image sdl-sound sdlaudio semantic-desktop session smartcard spell sse sse2 ssl startup-notification svg sysfs tcpd threads tiff truetype udev unicode usb vorbis wav x264 xcb xcomposite xinerama xml xorg xscreensaver xulrunner xv xvid zlib" ALSA_CARDS="hda_intel" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mmap_emul mulaw multi null plug rate route share shm softvol" APACHE2_MODULES="actions alias auth_basic authn_alias authn_anon authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache cgi cgid dav dav_fs dav_lock deflate dir disk_cache env expires ext_filter file_cache filter headers include info log_config logio mem_cache mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias" CALLIGRA_FEATURES="kexi words flow plan stage tables krita karbon braindump" CAMERAS="ptp2" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" ELIBC="glibc" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock itrax mtk3301 nmea ntrip navcom oceanserver oldstyle oncore rtcm104v2 rtcm104v3 sirf superstar2 timing tsip tripmate tnt ubx" INPUT_DEVICES="keyboard mouse evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="en" PHP_TARGETS="php5-3" RUBY_TARGETS="ruby18" USERLAND="GNU" VIDEO_CARDS="vesa" XTABLES_ADDONS="quota2 psd pknock lscan length2 ipv4options ipset ipp2p iface geoip fuzzy condition tee tarpit sysrq steal rawnat logmark ipmark dhcpmac delude chaos account"
Comment 1 Marius Caldas 2011-09-12 21:21:12 UTC
Created attachment 286275 [details]
Ebuild log for dev-db/sqlite-

I added the ebuild output for dev-db/sqlite- in this attachment.
Comment 2 Marius Caldas 2011-09-12 21:24:32 UTC
Created attachment 286277 [details]
This is ebuild log for media-libs/libmpeg2-0.5.1-r1.

Attached log for media-libs/libmpeg2-0.5.1-r1 as well.
Comment 3 Kacper Kowalik (Xarthisius) (RETIRED) gentoo-dev 2011-09-12 22:01:34 UTC
it's ifort's fault, gcc with or w/o fortran use flag has nothing to do with it

*** This bug has been marked as a duplicate of bug 332657 ***
Comment 4 Marius Caldas 2011-09-12 23:21:01 UTC
Ok thanks for the pointer. I am surpised to find IFC in my system since I never manually installed. I traced what pulled IFC and virtual/fortran in to kde-base/cantor and dev-python/pygtk:

mcaldas@atlxdt-mcal01 ~ $ equery depends ifc
 * These packages depend on ifc:
virtual/fortran-0 (dev-lang/ifc)
                  (openmp ? dev-lang/ifc)

atlxdt-mcal01 mcaldas # equery depends virtual/fortran
 * These packages depend on virtual/fortran:
dev-python/numpy-1.6.1 (lapack ? virtual/fortran)
sci-libs/blas-reference-20070226-r2 (virtual/fortran)

atlxdt-mcal01 mcaldas # equery depends numpy
 * These packages depend on numpy:
dev-python/pygtk-2.24.0-r1 (dev-python/numpy)

atlxdt-mcal01 mcaldas # equery depends pygtk
 * These packages depend on pygtk:
dev-python/pygtksourceview-2.10.1 (>=dev-python/pygtk-2.8:2)
dev-python/twisted-11.0.0 (gtk ? >=dev-python/pygtk-1.99)
dev-vcs/git- (gtk ? >=dev-python/pygtk-2.8)

atlxdt-mcal01 mcaldas # equery depends sci-libs/blas-reference
 * These packages depend on sci-libs/blas-reference:
virtual/blas-1.0 (sci-libs/blas-reference)

atlxdt-mcal01 mcaldas # equery depends virtual/blas
 * These packages depend on virtual/blas:
dev-lang/R-2.13.1 (virtual/blas)

atlxdt-mcal01 mcaldas # equery depends dev-lang/R
 * These packages depend on dev-lang/R:
kde-base/cantor-4.7.1 (R ? dev-lang/R)

This problem seems to have appeared with the KDE 4.7.1 update, as before that I had no similar problems.