Created attachment 364320 [details] webkit-build.log.gz /var/tmp/portage/net-libs/webkit-gtk-2.0.4/work/webkitgtk-2.0.4/tmp-introspectE3gFwv/.libs/WebKit2-3.0: error while loading shared libraries: /var/tmp/portage/net-libs/webkit-gtk-2.0.4/work/webkitgtk-2.0.4/.libs/libjavascriptcoregtk-3.0.so.0: cannot make segment writable for relocation: Permission denied Command '['/var/tmp/portage/net-libs/webkit-gtk-2.0.4/work/webkitgtk-2.0.4/tmp-introspectE3gFwv/WebKit2-3.0', '--introspect-dump=/var/tmp/portage/net-libs/webkit-gtk-2.0.4/work/webkitgtk-2.0.4/tmp-introspectE3gFwv/functions.txt,/var/tmp/portage/net-libs/webkit-gtk-2.0.4/work/webkitgtk-2.0.4/tmp-introspectE3gFwv/dump.xml']' returned non-zero exit status 127 make[1]: *** [WebKit2-3.0.gir] Error 1 make[1]: *** Waiting for unfinished jobs.... (process:18417): GLib-GObject-CRITICAL **: g_object_class_install_property: assertion `class->set_property != NULL' failed Source/WebKit/gtk/webkit/webkitwebplugin.cpp:217: Warning: WebKit: webkit_web_plugin_get_mimetypes: Unknown type: 'WebKit.WebKitWebPluginMIMEType' Source/WebKit/gtk/webkit/webkitspellchecker.cpp:42: Warning: WebKit: webkit_spell_checker_check_spelling_of_string: unknown parameter 'string' in documentation comment, should be 'word' Source/WebKit/gtk/webkit/webkitglobals.cpp:267: Warning: WebKit: webkit_get_text_checker: return value: Missing (transfer) annotation DerivedSources/webkitdom/WebKitDOMCustom.h:31: Warning: WebKit: webkit_dom_blob_webkit_slice: return value: Missing (transfer) annotation DerivedSources/webkitdom/WebKitDOMEventTarget.h:61: Warning: WebKit: webkit_dom_event_target_add_event_listener: argument handler: Missing (scope) annotation for callback without GDestroyNotify (valid: call, async) DerivedSources/webkitdom/WebKitDOMEventTarget.h:67: Warning: WebKit: webkit_dom_event_target_remove_event_listener: argument handler: Missing (scope) annotation for callback without GDestroyNotify (valid: call, async) DerivedSources/webkitdom/WebKitDOMCustom.h:34: Warning: WebKit: webkit_dom_html_element_get_class_list: return value: Missing (transfer) annotation DerivedSources/webkitdom/WebKitDOMCustom.h:39: Warning: WebKit: webkit_dom_webkit_named_flow_get_content_nodes: return value: Missing (transfer) annotation DerivedSources/webkitdom/WebKitDOMCustom.h:40: Warning: WebKit: webkit_dom_webkit_named_flow_get_regions_by_content_node: return value: Missing (transfer) annotation Source/WebKit/gtk/webkit/webkitwebframe.cpp:840: Warning: WebKit: webkit_web_frame_get_global_context: return value: Unresolved type: 'JSGlobalContextRef' Source/WebKit/gtk/webkit/webkitwebframe.cpp:1146: Warning: WebKit: webkit_web_frame_get_range_for_word_around_caret: return value: Missing (transfer) annotation Source/WebKit/gtk/webkit/webkitwebplugindatabase.h:51: Warning: WebKit: webkit_web_plugin_database_plugins_list_free: argument list: Missing (element-type) annotation make[1]: Leaving directory `/var/tmp/portage/net-libs/webkit-gtk-2.0.4/work/webkitgtk-2.0.4' make: *** [all] Error 2 [31;01m*[0m ERROR: net-libs/webkit-gtk-2.0.4::gentoo failed (compile phase): [31;01m*[0m emake failed [31;01m*[0m [31;01m*[0m If you need support, post the output of `emerge --info '=net-libs/webkit-gtk-2.0.4::gentoo'`, [31;01m*[0m the complete build log and the output of `emerge -pqv '=net-libs/webkit-gtk-2.0.4::gentoo'`. [31;01m*[0m The complete build log is located at '/var/tmp/portage/net-libs/webkit-gtk-2.0.4/temp/build.log'. [31;01m*[0m The ebuild environment file is located at '/var/tmp/portage/net-libs/webkit-gtk-2.0.4/temp/environment'. [31;01m*[0m Working directory: '/var/tmp/portage/net-libs/webkit-gtk-2.0.4/work/webkitgtk-2.0.4' [31;01m*[0m S: '/var/tmp/portage/net-libs/webkit-gtk-2.0.4/work/webkitgtk-2.0.4'
Created attachment 364322 [details] emerge --info output
Also in dmesg output: [618708.935909] type=1400 audit(1385876011.301:282): avc: denied { execmod } for pid=18417 comm="WebKit-3.0" path="/var/tmp/portage/net-libs/webkit-gtk-2.0.4/work/webkitgtk-2.0.4/.libs/libjavascriptcoregtk-3.0.so.0.13.16" dev="sda3" ino=504471 scontext=staff_u:sysadm_r:portage_sandbox_t tcontext=staff_u:object_r:portage_tmp_t tclass=file [618709.185005] grsec: denied RWX mprotect of /var/tmp/portage/net-libs/webkit-gtk-2.0.4/work/webkitgtk-2.0.4/.libs/libjavascriptcoregtk-3.0.so.0.13.16 by /var/tmp/portage/net-libs/webkit-gtk-2.0.4/work/webkitgtk-2.0.4/tmp-introspectE3gFwv/.libs/WebKit2-3.0[WebKit2-3.0:18463] uid/euid:250/250 gid/egid:250/250, parent /usr/bin/g-ir-scanner[g-ir-scanner:18218] uid/euid:250/250 gid/egid:250/250
Looks to me like a hardened related issue, but I don't know how to deal with it :/
*** Bug 493136 has been marked as a duplicate of this bug. ***
Apparently this can fail at several stages?
(In reply to Jeroen Roovers from comment #5) > Apparently this can fail at several stages? Looks like the same bug https://bugs.gentoo.org/show_bug.cgi?id=483610
Can you disable ccache and rebuild webkit-gtk? What flags do you build webkit-gtk with?
what use flags did you use on mesa?
(In reply to Magnus Granberg from comment #8) > what use flags did you use on mesa? media-libs/mesa-9.2.3 USE="classic egl gallium nptl pax_kernel pic (selinux) xorg" VIDEO_CARDS="intel" net-libs/webkit-gtk-2.0.4 USE="geoloc gstreamer introspection jit webgl" Rebuilding without ccache currently is in progress.
(In reply to Magnus Granberg from comment #7) > Can you disable ccache and rebuild webkit-gtk? Done, still same error.
I got a problem related to webkit-gtk-2.0.4 which looks almost the same. I'm not using a hardened system and the build doesn't exit, but runs forever, I interrupted it when I came back from nightshift, after it was compiling for 12+ hours: PT PaX marking -m ./tmp-introspectfnSq0s/.libs/WebKit-3.0 g-ir-scanner: compile: x86_64-pc-linux-gnu-gcc -Wno-deprecated-declarations -pthread -I/usr/include/gtk-3.0 -I/usr/include/at-spi2-atk/2.0 -I/usr/include/gtk-3.0 -I/usr/include/gio-unix-2.0/ -I/usr/include/cairo -I/usr/include/pango-1.0 -I/usr/include/harfbuzz -I/usr/include/pango-1.0 -I/usr/include/atk-1.0 -I/usr/include/cairo -I/usr/include/pixman-1 -I/usr/include/freetype2 -I/usr/include/libdrm -I/usr/include/gdk-pixbuf-2.0 -I/usr/include/libpng15 -I/usr/include/libsoup-2.4 -I/usr/include/libxml2 -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include -march=native -O2 -pipe -std=c99 -I./Source -I./Source/WebKit2 -I./DerivedSources -I./DerivedSources/webkitdom -I./DerivedSources/WebKit2 -I./Source/WebKit2/UIProcess/API/gtk -I./Source/JavaScriptCore/ForwardingHeaders -I. -I./DerivedSources/WebKit2/webkit2gtk/include -I./DerivedSources/WebKit2/webkit2gtk -I/usr/include/libsoup-2.4 -I/usr/include/libxml2 -I/usr/include/gtk-3.0 -I/usr/include/at-spi2-atk/2.0 -I/usr/include/atk-1.0 -I/usr/include/gtk-3.0 -I/usr/include/gio-unix-2.0/ -I/usr/include/cairo -I/usr/include/pango-1.0 -I/usr/include/harfbuzz -I/usr/include/pango-1.0 -I/usr/include/gdk-pixbuf-2.0 -I/usr/include/cairo -I/usr/include/pixman-1 -I/usr/include/freetype2 -I/usr/include/libdrm -I/usr/include/libpng15 -I/usr/include/pango-1.0 -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include -c -o /var/tmp/portage/net-libs/webkit-gtk-2.0.4/work/webkitgtk-2.0.4/tmp-introspectPF6j37/WebKit2-3.0.o /var/tmp/portage/net-libs/webkit-gtk-2.0.4/work/webkitgtk-2.0.4/tmp-introspectPF6j37/WebKit2-3.0.c g-ir-scanner: link: /bin/sh ./libtool --mode=link --tag=CC x86_64-pc-linux-gnu-gcc -o /var/tmp/portage/net-libs/webkit-gtk-2.0.4/work/webkitgtk-2.0.4/tmp-introspectPF6j37/WebKit2-3.0 -export-dynamic -march=native -O2 -pipe -std=c99 -Wl,-O1 -Wl,--as-needed -Wl,--hash-style=gnu -Wl,--no-keep-memory /var/tmp/portage/net-libs/webkit-gtk-2.0.4/work/webkitgtk-2.0.4/tmp-introspectPF6j37/WebKit2-3.0.o -L. -lwebkit2gtk-3.0 -ljavascriptcoregtk-3.0 -Wl,--export-dynamic -lgmodule-2.0 -pthread -lgtk-3 -lgdk-3 -lpangocairo-1.0 -lpango-1.0 -latk-1.0 -lcairo-gobject -lcairo -lgdk_pixbuf-2.0 -lsoup-2.4 -lgio-2.0 -lgobject-2.0 -lglib-2.0 libtool: link: x86_64-pc-linux-gnu-gcc -o /var/tmp/portage/net-libs/webkit-gtk-2.0.4/work/webkitgtk-2.0.4/tmp-introspectPF6j37/.libs/WebKit2-3.0 -march=native -O2 -pipe -std=c99 -Wl,-O1 -Wl,--hash-style=gnu -Wl,--no-keep-memory /var/tmp/portage/net-libs/webkit-gtk-2.0.4/work/webkitgtk-2.0.4/tmp-introspectPF6j37/WebKit2-3.0.o -Wl,--export-dynamic -pthread -Wl,--export-dynamic -Wl,--as-needed -L. /var/tmp/portage/net-libs/webkit-gtk-2.0.4/work/webkitgtk-2.0.4/.libs/libwebkit2gtk-3.0.so -L/usr/lib64 -lenchant -lharfbuzz-icu -lharfbuzz -lgailutil-3 -lgeoclue -ldbus-glib-1 -ldbus-1 -lgstapp-1.0 -lgstaudio-1.0 -lgstfft-1.0 -lgstpbutils-1.0 -lgstvideo-1.0 -lgstbase-1.0 -lgstreamer-1.0 -ljpeg -lsecret-1 -lxslt -lxml2 -lGL -ldl -lpangoft2-1.0 -lfontconfig -lfreetype -lpng15 -lsqlite3 -lwebp -lXrender -lXcomposite -lXdamage -lXfixes -lXt -lX11 -lz /var/tmp/portage/net-libs/webkit-gtk-2.0.4/work/webkitgtk-2.0.4/.libs/libjavascriptcoregtk-3.0.so -lpthread -licui18n -licuuc -licudata -lgthread-2.0 -lrt -lgmodule-2.0 -lgtk-3 -lgdk-3 -lpangocairo-1.0 -lpango-1.0 -latk-1.0 -lcairo-gobject -lcairo -lgdk_pixbuf-2.0 -lsoup-2.4 -lgio-2.0 -lgobject-2.0 -lglib-2.0 -pthread (process:7383): GLib-GObject-CRITICAL **: g_object_class_install_property: assertion `class->set_property != NULL' failed (process:7502): GLib-GObject-CRITICAL **: g_object_class_install_property: assertion `class->set_property != NULL' failed Source/WebKit2/UIProcess/API/gtk/WebKitJavascriptResult.cpp:91: Warning: WebKit2: webkit_javascript_result_get_global_context: return value: Unresolved type: 'JSGlobalContextRef' Source/WebKit2/UIProcess/API/gtk/WebKitJavascriptResult.cpp:105: Warning: WebKit2: webkit_javascript_result_get_value: return value: Unresolved type: 'JSValueRef' Source/WebKit2/UIProcess/API/gtk/WebKitWebView.cpp:2477: Warning: WebKit2: webkit_web_view_get_javascript_global_context: return value: Unresolved type: 'JSGlobalContextRef' DerivedSources/webkitdom/WebKitDOMCustom.h:31: Warning: WebKit2: webkit_dom_blob_webkit_slice: return value: Missing (transfer) annotation DerivedSources/webkitdom/WebKitDOMCustom.h:34: Warning: WebKit2: webkit_dom_html_element_get_class_list: return value: Missing (transfer) annotation DerivedSources/webkitdom/WebKitDOMEventTarget.h:61: Warning: WebKit2: webkit_dom_event_target_add_event_listener: argument handler: Missing (scope) annotation for callback without GDestroyNotify (valid: call, async) DerivedSources/webkitdom/WebKitDOMEventTarget.h:67: Warning: WebKit2: webkit_dom_event_target_remove_event_listener: argument handler: Missing (scope) annotation for callback without GDestroyNotify (valid: call, async) DerivedSources/webkitdom/WebKitDOMCustom.h:39: Warning: WebKit2: webkit_dom_webkit_named_flow_get_content_nodes: return value: Missing (transfer) annotation DerivedSources/webkitdom/WebKitDOMCustom.h:40: Warning: WebKit2: webkit_dom_webkit_named_flow_get_regions_by_content_node: return value: Missing (transfer) annotation /usr/bin/g-ir-compiler --includedir ./Source/WebKit2 --includedir . WebKit2-3.0.gir -o WebKit2-3.0.typelib sandbox:stop caught signal 2 in pid 27667 Traceback (most recent call last): File "/usr/bin/g-ir-scanner", line 46, in <module> sys.exit(scanner_main(sys.argv)) File "/usr/lib64/gobject-introspection/giscanner/scannermain.py", line 462, in scanner_main shlibs = create_binary(transformer, options, args) File "/usr/lib64/gobject-introspection/giscanner/scannermain.py", line 357, in create_binary gdump_parser.parse() File "/usr/lib64/gobject-introspection/giscanner/gdumpparser.py", line 110, in parse tree = self._execute_binary_get_tree() File "/usr/lib64/gobject-introspection/giscanner/gdumpparser.py", line 167, in _execute_binary_get_tree subprocess.check_call(args, stdout=sys.stdout, stderr=sys.stderr) File "/usr/lib64/python2.7/subprocess.py", line 537, in check_call retcode = call(*popenargs, **kwargs) File "/usr/lib64/python2.7/subprocess.py", line 524, in call return Popen(*popenargs, **kwargs).wait() File "/usr/lib64/python2.7/subprocess.py", line 1357, in wait pid, sts = _eintr_retry_call(os.waitpid, self.pid, 0) File "/usr/lib64/python2.7/subprocess.py", line 478, in _eintr_retry_call return func(*args) KeyboardInterrupt sandbox:stop signal already caught and busy still cleaning up! make[1]: *** [WebKit-3.0.gir] Error 1 make: *** [all] Interrupt
emerge --info output: Portage 2.2.7 (default/linux/amd64/13.0/desktop/gnome/systemd, gcc-4.7.3, glibc-2.17, 3.10.17-gentoo-monolithic x86_64) ================================================================= System uname: Linux-3.10.17-gentoo-monolithic-x86_64-AMD_Athlon-tm-_7850_Dual-Core_Processor-with-gentoo-2.2 KiB Mem: 4046984 total, 313312 free KiB Swap: 4194300 total, 3534220 free Timestamp of tree: Wed, 04 Dec 2013 14:45:01 +0000 ld GNU ld (GNU Binutils) 2.23.1 app-shells/bash: 4.2_p45 dev-java/java-config: 2.1.12-r1 dev-lang/python: 2.7.5-r3, 3.2.5-r3, 3.3.3 dev-util/cmake: 2.8.12.1-r1 dev-util/pkgconfig: 0.28 sys-apps/baselayout: 2.2 sys-apps/openrc: 0.11.8 sys-apps/sandbox: 2.6-r1 sys-devel/autoconf: 2.13, 2.69 sys-devel/automake: 1.9.6-r3, 1.10.3, 1.11.6, 1.12.6, 1.13.4 sys-devel/binutils: 2.23.1 sys-devel/gcc: 4.7.3-r1 sys-devel/gcc-config: 1.7.3 sys-devel/libtool: 2.4.2 sys-devel/make: 3.82-r4 sys-kernel/linux-headers: 3.10 (virtual/os-headers) sys-libs/glibc: 2.17 Repositories: gentoo local gentoo-guis multimedia science sunrise gamerlay octave niftyled java enlightenment ACCEPT_KEYWORDS="amd64" ACCEPT_LICENSE="* -@EULA" CBUILD="x86_64-pc-linux-gnu" CFLAGS="-march=native -O2 -pipe" CHOST="x86_64-pc-linux-gnu" CONFIG_PROTECT="/etc /usr/share/config /usr/share/gnupg/qualified.txt /usr/share/themes/oxygen-gtk/gtk-2.0 /var/lib/hsqldb /var/spool/munin-async/.ssh" CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/dconf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo /etc/texmf/language.dat.d /etc/texmf/language.def.d /etc/texmf/updmap.d /etc/texmf/web2c" CXXFLAGS="-march=native -O2 -pipe" DISTDIR="/usr/portage/distfiles" EMERGE_DEFAULT_OPTS="--with-bdeps y --complete-graph --jobs --load-average 3" FCFLAGS="-march=native -O2 -pipe" FEATURES="assume-digests binpkg-logs buildsyspkg config-protect-if-modified distlocks ebuild-locks fakeroot fixlafiles merge-sync news parallel-fetch preserve-libs protect-owned sandbox sfperms split-elog split-log strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync xattr" FFLAGS="-march=native -O2 -pipe" GENTOO_MIRRORS="ftp://sunsite.informatik.rwth-aachen.de/pub/Linux/gentoo ftp://de-mirror.org/gentoo/" LANG="en_US.utf8" LDFLAGS="-Wl,-O1 -Wl,--as-needed -Wl,--hash-style=gnu" MAKEOPTS="-j3" PKGDIR="/usr/portage/packages" PORTAGE_CONFIGROOT="/" PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --omit-dir-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="/usr/local/portage /var/lib/layman/gentoo-guis /var/lib/layman/multimedia /var/lib/layman/science /var/lib/layman/sunrise /var/lib/layman/gamerlay /var/lib/layman/octave /var/lib/layman/niftyled /var/lib/layman/java /var/lib/layman/enlightenment" SYNC="rsync://rsync.de.gentoo.org/gentoo-portage" USE="3dnow 3dnowext X a52 aac acl acpi alsa amd64 amr ao bash-completion branding bzip2 cairo cdda cddb cdio cdr cli colord cracklib crypt cryptsetup cscope cups curl cxx dbus device-mapper dga dmx dri dts dv dvd dvdr dvi eds emacs emboss encode evo exif fam ffmpeg firefox flac fluidsynth fontconfig fortran gcrypt gd gdbm gif git glade gmp gnome gnome-keyring gnome-online-accounts graphviz gstreamer gtk gtk3 http i18n iconv icu idn imagemagick inotify introspection iodbc ipv6 jadetex java jbig jpeg jpeg2k kde lame latex lcms ldap libffi libnotify libproxy libsecret lzma mad midi mjpeg mms mmx mmxext mng modules mono mp3 mp4 mpeg mudflap multilib musepack mysql nautilus ncurses networkmanager nls nptl offensive ogg openal opencl openexr opengl openmp opus pam pango pcre pdf pgf phonon png pnm policykit postgres postscript ppds pstricks pulseaudio python qt3support qt4 raw readline samba sdl semantic-desktop session sndfile socialweb sound speex spell sqlite sse sse2 sse3 ssl ssse3 startup-notification subversion svg systemd systemtap t1lib taglib tcpd telepathy tga theora tiff truetype twolame udev udisks unicode upower vaapi vcd vcdx vdpau vim vlc vorbis vpx wavpack webp wmf x264 xattr xcb xine xinerama xml xmp xpm xv xvid xvmc zlib" ABI_X86="64" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1x ens1370 ens1371 es1938 es1968 fm801 hda-intel intel8x0 intel8x0m maestro3 trident usb-audio via82xx via82xx-modem ymfpci" APACHE2_MODULES="authn_core authz_core socache_shmcb unixd 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 sheets stage tables krita karbon braindump author" CAMERAS="*" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" DRACUT_MODULES="caps crypt crypt-gpg lvm" 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 ublox ubx" GRUB_PLATFORMS="multiboot pc qemu" INPUT_DEVICES="evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="nlpsolver presenter-minimizer" LINGUAS="de de_DE en en_GB" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php5-5" PYTHON_SINGLE_TARGET="python2_7" PYTHON_TARGETS="python2_7 python3_3" QEMU_SOFTMMU_TARGETS="arm i386 x86_64" QEMU_USER_TARGETS="arm armeb i386 x86_64" RUBY_TARGETS="ruby19 ruby20" SANE_BACKENDS="*" USERLAND="GNU" VIDEO_CARDS="fbdev modesetting nvidia nv 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" Unset: CPPFLAGS, CTARGET, INSTALL_MASK, LC_ALL, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, USE_PYTHON
(In reply to Bernd Waibel from comment #11) > I got a problem related to webkit-gtk-2.0.4 which looks almost the same. I'm > not using a hardened system and the build doesn't exit, but runs forever, I > interrupted it when I came back from nightshift, after it was compiling for > 12+ hours: > This bug is a hardened one so make a new bugreport with your problem.
The problem is that libjavascriptcoregtk-3.0.so.0 have textrel and is not allowed on pax or selinux enable setups. *** This bug has been marked as a duplicate of bug 483610 ***
I can't say for sure SELinux is prohibiting the build here. Is SELinux running in enforcing mode? If so, you might need to enable execmod for portage_sandbox_t on portage_tmp_t: ~# selocal -a "allow portage_sandbox_t portage_tmp_t:file execmod;" -c "bug 493014" -Lb Or run portage_sandbox_t in permissive mode to have SELinux not enforce anything for this domain: ~# semanage permissive -A -t portage_sandbox_t You can undo the above by "semanage permissive -d -t portage_sandbox_t" or through "selocal -d <linenum>" where <linenum> is the number shown for the allow-rule ("selocal -l" to display them all).