Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 474942 - sys-devel/gcc-4.8.1 sandbox violations when running fix includes step
Summary: sys-devel/gcc-4.8.1 sandbox violations when running fix includes step
Status: RESOLVED OBSOLETE
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Gentoo Toolchain Maintainers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-06-27 06:47 UTC by Patrick Lauer
Modified: 2017-06-24 21:21 UTC (History)
3 users (show)

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


Attachments
build log (gcc-build-logs.tar.bz2,42.21 KB, application/x-bzip2)
2013-06-27 06:47 UTC, Patrick Lauer
Details
build log (gcc-build-logs.tar.bz2,41.84 KB, application/x-bzip2)
2013-10-09 17:59 UTC, Darko Luketic
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Patrick Lauer gentoo-dev 2013-06-27 06:47:22 UTC
Created attachment 352056 [details]
build log

/var/tmp/portage/sys-devel/gcc-4.8.1/work/gcc-4.8.1/gcc/../move-if-change cc1plus-checksum.c.tmp cc1plus-checksum.c
x86_64-pc-linux-gnu-g++ -c    -DIN_GCC_FRONTEND  -DIN_GCC   -fno-exceptions -fno-rtti -fasynchronous-unwind-tables -W -Wall -Wno-narrowing -Wwrite-strings -Wcast-qual -Wmissing-format-attribute -pedantic -Wno-long-long -Wno-variadic-macros -Wno-overlength-strings   -DHAVE_CONFIG_H -I. -I. -I/var/tmp/portage/sys-devel/gcc-4.8.1/work/gcc-4.8.1/gcc -I/var/tmp/portage/sys-devel/gcc-4.8.1/work/gcc-4.8.1/gcc/. -I/var/tmp/portage/sys-devel/gcc-4.8.1/work/gcc-4.8.1/gcc/../include -I/var/tmp/portage/sys-devel/gcc-4.8.1/work/gcc-4.8.1/gcc/../libcpp/include  -I/var/tmp/portage/sys-devel/gcc-4.8.1/work/gcc-4.8.1/gcc/../libdecnumber -I/var/tmp/portage/sys-devel/gcc-4.8.1/work/gcc-4.8.1/gcc/../libdecnumber/bid -I../libdecnumber -I/var/tmp/portage/sys-devel/gcc-4.8.1/work/gcc-4.8.1/gcc/../libbacktrace    cc1-checksum.c -o cc1-checksum.o
x86_64-pc-linux-gnu-g++ -c    -DIN_GCC_FRONTEND  -DIN_GCC   -fno-exceptions -fno-rtti -fasynchronous-unwind-tables -W -Wall -Wno-narrowing -Wwrite-strings -Wcast-qual -Wmissing-format-attribute -pedantic -Wno-long-long -Wno-variadic-macros -Wno-overlength-strings   -DHAVE_CONFIG_H -I. -I. -I/var/tmp/portage/sys-devel/gcc-4.8.1/work/gcc-4.8.1/gcc -I/var/tmp/portage/sys-devel/gcc-4.8.1/work/gcc-4.8.1/gcc/. -I/var/tmp/portage/sys-devel/gcc-4.8.1/work/gcc-4.8.1/gcc/../include -I/var/tmp/portage/sys-devel/gcc-4.8.1/work/gcc-4.8.1/gcc/../libcpp/include  -I/var/tmp/portage/sys-devel/gcc-4.8.1/work/gcc-4.8.1/gcc/../libdecnumber -I/var/tmp/portage/sys-devel/gcc-4.8.1/work/gcc-4.8.1/gcc/../libdecnumber/bid -I../libdecnumber -I/var/tmp/portage/sys-devel/gcc-4.8.1/work/gcc-4.8.1/gcc/../libbacktrace    cc1plus-checksum.c -o cc1plus-checksum.o
x86_64-pc-linux-gnu-g++      -DIN_GCC   -fno-exceptions -fno-rtti -fasynchronous-unwind-tables -W -Wall -Wno-narrowing -Wwrite-strings -Wcast-qual -Wmissing-format-attribute -pedantic -Wno-long-long -Wno-variadic-macros -Wno-overlength-strings   -DHAVE_CONFIG_H -static-libstdc++ -static-libgcc -Wl,-O1 -Wl,--as-needed -o cc1 c/c-lang.o c-family/stub-objc.o attribs.o c/c-errors.o c/c-decl.o c/c-typeck.o c/c-convert.o c/c-aux-info.o c/c-objc-common.o c/c-parser.o c-family/c-common.o c-family/c-cppbuiltin.o c-family/c-dump.o c-family/c-format.o c-family/c-gimplify.o c-family/c-lex.o c-family/c-omp.o c-family/c-opts.o c-family/c-pch.o c-family/c-ppoutput.o c-family/c-pragma.o c-family/c-pretty-print.o c-family/c-semantics.o c-family/c-ada-spec.o tree-mudflap.o i386-c.o glibc-c.o \
  cc1-checksum.o libbackend.a main.o  libcommon-target.a libcommon.a ../libcpp/libcpp.a ../libdecnumber/libdecnumber.a libcommon.a ../libcpp/libcpp.a   ../libbacktrace/.libs/libbacktrace.a ../libiberty/libiberty.a ../libdecnumber/libdecnumber.a   -lmpc -lmpfr -lgmp -rdynamic -ldl  -lz
x86_64-pc-linux-gnu-g++      -DIN_GCC   -fno-exceptions -fno-rtti -fasynchronous-unwind-tables -W -Wall -Wno-narrowing -Wwrite-strings -Wcast-qual -Wmissing-format-attribute -pedantic -Wno-long-long -Wno-variadic-macros -Wno-overlength-strings   -DHAVE_CONFIG_H -static-libstdc++ -static-libgcc -Wl,-O1 -Wl,--as-needed -o cc1plus \
      cp/cp-lang.o c-family/stub-objc.o cp/call.o cp/decl.o cp/expr.o cp/pt.o cp/typeck2.o cp/class.o cp/decl2.o cp/error.o cp/lex.o cp/parser.o cp/ptree.o cp/rtti.o cp/typeck.o cp/cvt.o cp/except.o cp/friend.o cp/init.o cp/method.o cp/search.o cp/semantics.o cp/tree.o cp/repo.o cp/dump.o cp/optimize.o cp/mangle.o cp/cp-objcp-common.o cp/name-lookup.o cp/cxx-pretty-print.o cp/cp-gimplify.o attribs.o incpath.o c-family/c-common.o c-family/c-cppbuiltin.o c-family/c-dump.o c-family/c-format.o c-family/c-gimplify.o c-family/c-lex.o c-family/c-omp.o c-family/c-opts.o c-family/c-pch.o c-family/c-ppoutput.o c-family/c-pragma.o c-family/c-pretty-print.o c-family/c-semantics.o c-family/c-ada-spec.o tree-mudflap.o i386-c.o glibc-c.o cc1plus-checksum.o libbackend.a main.o  libcommon-target.a libcommon.a ../libcpp/libcpp.a ../libdecnumber/libdecnumber.a libcommon.a ../libcpp/libcpp.a   ../libbacktrace/.libs/libbacktrace.a ../libiberty/libiberty.a ../libdecnumber/libdecnumber.a   -lmpc -lmpfr -lgmp -rdynamic -ldl  -lz
 Searching /usr/include/./libpq-fe.h
 * ACCESS DENIED:  open_rd:      /var/log/sandbox
find: ‘./libpq-fe.h/./var/log/sandbox’: Permission denied
find: ‘./libpq-fe.h/./proc/5513’: No such file or directory
find: ‘./libpq-fe.h/./proc/5732’: No such file or directory
find: ‘./libpq-fe.h/./proc/5743’: No such file or directory
find: ‘./libpq-fe.h/./proc/5750’: No such file or directory
find: ‘./libpq-fe.h/./proc/5751’: No such file or directory
find: ‘./libpq-fe.h/./proc/5754’: No such file or directory
 * ACCESS DENIED:  open_rd:      /var/log/sandbox
find: ‘./libpq-fe.h/./var/log/sandbox’: Permission denied
find: ‘./libpq-fe.h/./proc/13193’: No such file or directory
 Searching /usr/include/./libpq
 * ACCESS DENIED:  open_rd:      /var/log/sandbox
find: ‘./libpq/./var/log/sandbox’: Permission denied
 * ACCESS DENIED:  open_rd:      /var/log/sandbox
find: ‘./libpq/./var/log/sandbox’: Permission denied
^C

Exiting on signal 2
sandbox:stop  caught signal 2 in pid 31291
sandbox:stop  signal already caught and busy still cleaning up!
make[3]: *** [stmp-fixinc] Interrupt
make[3]: *** Deleting intermediate file `gcc.pod'
make[2]: *** [all-stage1-gcc] Interrupt
make[1]: *** [stage1-bubble] Interrupt
make: *** [bootstrap-lean] Interrupt

/usr/portage/sys-devel/gcc/gcc-4.8.1.ebuild: src_compile aborted; exiting.

 * --------------------------- ACCESS VIOLATION SUMMARY ---------------------------
 * LOG FILE: "/var/log/sandbox/sandbox-31291.log"
 * 
VERSION 1.0
FORMAT: F - Function called
FORMAT: S - Access Status
FORMAT: P - Path as passed to function
FORMAT: A - Absolute Path (not canonical)
FORMAT: R - Canonical Path
FORMAT: C - Command Line

F: open_rd
S: deny
P: /var/log/sandbox
A: /var/log/sandbox
R: /var/log/sandbox
C: find ./libpq-fe.h/. -type d -print 

F: open_rd
S: deny
P: /var/log/sandbox
A: /var/log/sandbox
R: /var/log/sandbox
C: find ./libpq-fe.h/. -type l -print 

F: open_rd
S: deny
P: /var/log/sandbox
A: /var/log/sandbox
R: /var/log/sandbox
C: find ./libpq/. -type d -print 

F: open_rd
S: deny
P: /var/log/sandbox
A: /var/log/sandbox
R: /var/log/sandbox
C: find ./libpq/. -type l -print 
 * --------------------------------------------------------------------------------
 * 
 * Please include /var/tmp/portage/sys-devel/gcc-4.8.1/work/build/gcc-build-logs.tar.bz2 in your bug report

Portage 2.2.0_alpha185 (default/linux/amd64/13.0/desktop/kde, gcc-4.8.0, glibc-2.17, 3.9.7-gentoo x86_64)
=================================================================
System uname: Linux-3.9.7-gentoo-x86_64-AMD_Phenom-tm-_II_X4_965_Processor-with-gentoo-2.2
KiB Mem:     7921176 total,    846244 free
KiB Swap:   25165812 total,  25165716 free
Timestamp of tree: Unknown
ld GNU ld (GNU Binutils) 2.23.1
app-shells/bash:          4.2_p45
dev-java/java-config:     2.2.0
dev-lang/python:          2.7.5, 3.2.5, 3.3.2
dev-util/cmake:           2.8.11.1
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.11.6, 1.12.6, 1.13.4, 1.14
sys-devel/binutils:       2.23.1
sys-devel/gcc:            4.7.2-r1, 4.8.0
sys-devel/gcc-config:     1.8
sys-devel/libtool:        2.4.2
sys-devel/make:           3.82-r4
sys-kernel/linux-headers: 3.9 (virtual/os-headers)
sys-libs/glibc:           2.17
Repositories: gentoo laurentb x11
ACCEPT_KEYWORDS="amd64 ~amd64"
ACCEPT_LICENSE="*"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=native -O2 -pipe -ggdb"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/config /usr/share/gnupg/qualified.txt /usr/share/polkit-1/actions /usr/share/themes/oxygen-gtk/gtk-2.0 /var/lib/hsqldb"
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="-march=native -O2 -pipe -ggdb"
DISTDIR="/chroot/distfiles"
EMERGE_DEFAULT_OPTS="--quiet-build=n"
FCFLAGS="-O2 -pipe"
FEATURES="assume-digests binpkg-logs compressdebug config-protect-if-modified distlocks ebuild-locks fixlafiles merge-sync news parallel-fetch preserve-libs protect-owned sandbox sfperms splitdebug strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox xattr"
FFLAGS="-O2 -pipe"
GENTOO_MIRRORS="http://mirrors.sohu.com/gentoo/ http://ftp.kaist.ac.kr/pub/gentoo/ http://gentoo.mirrors.hoobly.com/"
LANG="en_US.utf8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
MAKEOPTS="-j6"
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="/chroot/build"
PORTDIR="/home/pl/code/gentoo-x86"
PORTDIR_OVERLAY="/var/lib/layman/laurentb /var/lib/layman/x11"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="X a52 aac acpi alsa amd64 bash-completion berkdb bluetooth branding bzip2 cairo cdda cdr cjk cli compat consolekit crypt cups curl cxx dbus declarative dri dts dvd dvdr dvdread emboss encode exif expat fam ffmpeg firefox flac foomaticdb fortran ftp gcj gd gdbm gif gmp gnutls gpm gtk iconv icq idn imagemagick imap imlib innodb ipod ipv6 jabber javascript jingle jpeg jpeg2k kde kdehiddenvisibility kipi lame lcms libnotify lzo mad matroska md5sum midi mmap mmx mng modules mp3 mp4 mpeg mplayer msn mudflap multilib musepack musicbrainz mysql ncurses nls nptl nsplugin offensive ogg openal openexr opengl openmp oscar pam pango pcre pdf perl php plasma png policykit ppds python qt3support qt4 quicktime raw rdesktop readline rss samba sdl semantic-desktop session speex spell sqlite sqlite3 sse sse2 sse3 ssl ssse3 startup-notification subversion svg syslog taglib tcpd threads tidy tiff tk truetype udev udisks unicode upower usb vdpau vlc vorbis wifi wmf wxwidgets wxwindows x264 xattr xcb xcomposite xine xinerama xml xmlrpc xpm xscreensaver xulrunner xv xvid zlib" ABI_X86="64" ALSA_CARDS="hda-intel" 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="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="evdev" KERNEL="linux" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" LINGUAS="en en_GB de de_DE" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php5-3" PYTHON_SINGLE_TARGET="python2_7" PYTHON_TARGETS="python2_7 python3_2" QEMU_SOFTMMU_TARGETS="x86_64 alpha arm cris i386 lm32 m68k microblaze microblazeel mips mips64 mips64el mipsel or32 ppc ppc64 ppcemb s390x sh4 sh4eb sparc sparc64 unicore32 xtensa xtensaeb" QEMU_USER_TARGETS="alpha arm armeb cris i386 m68k microblaze microblazeel mips mipsel or32 ppc ppc64 ppc64abi32 s390x sh4 sh4eb sparc sparc32plus sparc64 unicore32 x86_64" RUBY_TARGETS="ruby18" USERLAND="GNU" VIDEO_CARDS="radeon r600" 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
Comment 1 Darko Luketic 2013-10-09 17:59:32 UTC
Created attachment 360514 [details]
build log
Comment 2 Daniel Schulte 2013-10-10 14:48:59 UTC
For me I could fix this issue by deleting the following symlinks in /usr/include which look like remains from a postgres installation:
lrwxrwxrwx  1 root root       5 15. Jul 17:27 libpq -> ../..
lrwxrwxrwx  1 root root       5 15. Jul 17:27 libpq-fe.h -> ../..
lrwxrwxrwx  1 root root       5 15. Jul 17:27 pg_config_manual.h -> ../..
lrwxrwxrwx  1 root root       5 15. Jul 17:27 postgres_ext.h -> ../..
lrwxrwxrwx  1 root root      14 15. Jul 17:27 postgresql -> postgresql-9.2

I simply removed them as I don't have postgresql installed anymore.
After removing them gcc emerges without problems.
Comment 3 Darko Luketic 2014-01-09 10:24:50 UTC
I tried different versions of gcc. I'm getting this in any >=4.7 (have not tried <4.7) must be something on the system, but what? The libpq stuff Daniel mentioned didn't do it for me.
Comment 4 Daniel Schulte 2014-01-09 10:32:27 UTC
(In reply to Darko Luketic from comment #3)
> I tried different versions of gcc. I'm getting this in any >=4.7 (have not
> tried <4.7) must be something on the system, but what? The libpq stuff
> Daniel mentioned didn't do it for me.

If you are still getting access violations post them here like Patrick did.
Also there could be other broken symlinks in your /usr/include if thats causing the problems for you.
Comment 5 Darko Luketic 2014-01-09 12:33:45 UTC
(In reply to Daniel Schulte from comment #4)
> (In reply to Darko Luketic from comment #3)
> > I tried different versions of gcc. I'm getting this in any >=4.7 (have not
> > tried <4.7) must be something on the system, but what? The libpq stuff
> > Daniel mentioned didn't do it for me.
> 
> If you are still getting access violations post them here like Patrick did.
> Also there could be other broken symlinks in your /usr/include if thats
> causing the problems for you.

It compiled, it was just me being dumb/ unable to read properly.

I checked the sandbox log and saw the files mentioned and they were relatively linked and were pointing to non-existing files.

Thanks Daniel.
Comment 6 Andreas K. Hüttel archtester gentoo-dev 2017-06-24 21:21:40 UTC
OK whatever change in postgres caused this was long in the past, so closing the bug now as obsolete.