Re: [gentoo-user] Sandbox violation when emerging gentoo-kernel-5.4.105
Thank you. Disabling ccache fixed it.
[gentoo-user] Sandbox violation when emerging gentoo-kernel-5.4.105
Hello Gentoo, I've recently started with Gentoo in the last few months, still interested in learning about the build system and to start trying to slim down my install. This morning I ran into the following issue, I'll try to provide as much detail as I can: THE ISSUE: I am failing to emerge sys-kernel/gentoo-kernel-5.4.105 with a sandbox violation. The violation summary is inserted below: * --- ACCESS VIOLATION SUMMARY --- * LOG FILE: "/var/tmp/portage/sys-kernel/gentoo-kernel-5.4.105/temp/sandbox.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: unlink S: deny P: /dev/null.dwo A: /dev/null.dwo R: /dev/null.dwo C: x86_64-pc-linux-gnu-gcc -Werror -gsplit-dwarf -S -x c /dev/null -o /dev/null * The relevant section of the log is: x86_64-pc-linux-gnu-gcc -Wl,-O1 -Wl,--as-needed -o scripts/kconfig/conf scripts/kconfig/conf.o scripts/kconfig/confdata.o scripts/kconfig/expr.o scripts/kconfig/lexer.lex.o scripts/kconfig/parser.tab.o scripts/kconfig/preprocess.o scripts/kconfig/symbol.o scripts/kconfig/conf --olddefconfig Kconfig * ACCESS DENIED: unlink: /dev/null.dwo # # configuration written to .config # make[1]: Leaving directory '/var/tmp/portage/sys-kernel/gentoo-kernel-5.4.105/work/modprep' I am trying to use a custom config file and am building gentoo-kernel with the "savedconfig" USE flag. I also recently updated to Portage 3.0.17. TROUBLESHOOTING STEPS: To try to troubleshoot, I have ran "eclean distfiles" and have removed the "/var/tmp/portage/sys-kernel/gentoo-kernel-5.4.105" directory. I then ran a sync and deep update, but the issue remains. I have attached the log generated by portage. Let me know if there is any other info that would be helpful. Any help would be greatly appreciated, Grant[32;01m * [39;49;00mPackage:sys-kernel/gentoo-kernel-5.4.105 [32;01m * [39;49;00mRepository: gentoo [32;01m * [39;49;00mMaintainer: dist-ker...@gentoo.org [32;01m * [39;49;00mUSE:abi_x86_64 amd64 elibc_glibc initramfs kernel_linux savedconfig userland_GNU [32;01m * [39;49;00mFEATURES: ccache network-sandbox preserve-libs sandbox userpriv usersandbox [32;01m*[0m Using python3.8 to build >>> Unpacking source... >>> Unpacking linux-5.4.tar.xz to /var/tmp/portage/sys-kernel/gentoo-kernel-5.4.105/work >>> Unpacking genpatches-5.4-108.base.tar.xz to /var/tmp/portage/sys-kernel/gentoo-kernel-5.4.105/work >>> Unpacking genpatches-5.4-108.extras.tar.xz to /var/tmp/portage/sys-kernel/gentoo-kernel-5.4.105/work >>> Unpacking gentoo-kernel-config-5.4.89.tar.gz to /var/tmp/portage/sys-kernel/gentoo-kernel-5.4.105/work >>> Unpacking kernel-x86_64.config.5.4.21 to /var/tmp/portage/sys-kernel/gentoo-kernel-5.4.105/work unpack kernel-x86_64.config.5.4.21: file format not recognized. Ignoring. >>> Source unpacked in /var/tmp/portage/sys-kernel/gentoo-kernel-5.4.105/work >>> Preparing source in /var/tmp/portage/sys-kernel/gentoo-kernel-5.4.105/work/linux-5.4 ... [32;01m*[0m Applying 1000_linux-5.4.1.patch ... [A[231C [34;01m[ [32;01mok[34;01m ][0m [32;01m*[0m Applying 1001_linux-5.4.2.patch ... [A[231C [34;01m[ [32;01mok[34;01m ][0m [32;01m*[0m Applying 1002_linux-5.4.3.patch ... [A[231C [34;01m[ [32;01mok[34;01m ][0m [32;01m*[0m Applying 1003_linux-5.4.4.patch ... [A[231C [34;01m[ [32;01mok[34;01m ][0m [32;01m*[0m Applying 1004_linux-5.4.5.patch ... [A[231C [34;01m[ [32;01mok[34;01m ][0m [32;01m*[0m Applying 1005_linux-5.4.6.patch ... [A[231C [34;01m[ [32;01mok[34;01m ][0m [32;01m*[0m Applying 1006_linux-5.4.7.patch ... [A[231C [34;01m[ [32;01mok[34;01m ][0m [32;01m*[0m Applying 1007_linux-5.4.8.patch ... [A[231C [34;01m[ [32;01mok[34;01m ][0m [32;01m*[0m Applying 1008_linux-5.4.9.patch ... [A[231C [34;01m[ [32;01mok[34;01m ][0m [32;01m*[0m Applying 1009_linux-5.4.10.patch ... [A[231C [34;01m[ [32;01mok[34;01m ][0m [32;01m*[0m Applying 1010_linux-5.4.11.patch ... [A[231C [34;01m[ [32;01mok[34;01m ][0m [32;01m*[0m Applying 1011_linux-5.4.12.patch ... [A[231C [34;01m[ [32;01mok[34;01m ][0m [32;01m*[0m Applying 1012_linux-5.4.13.patch ... [A[231C [34;01m[ [32;01mok[34;01m ][0m [32;01m*[0m Applying 1013_linux-5.4.14.patch ... [A[231C [34;01m[ [32;01mok[34;01m ][0m [32;01m*[0m Applying 1014_linux-5.4.15.patch ... [A[231C [34;01m[ [32;01mok[34;01m ][0m [32;01m*[0m Applying 1015_linux-5.4.16.patch ... [A[231C [34;01m[ [32;01mok[34;01m ][0m [32;01m*[0m Applying 1016_linux-5.4.17.patch ... [A[231C [34;01m[ [32;01mok[34;01m ][0m [32;01m*[0m Applying 1017_linux-5.4.18.patch ... [A[231C [34;01m[ [32;01mok[34;01m ][0m [32;01m*[0m Applying
Re: [gentoo-user] Sandbox violation when emerging gentoo-kernel-5.4.105
On Fri, Apr 02, 2021 at 04:58:56PM +, itsgrant wrote: > THE ISSUE: > I am failing to emerge sys-kernel/gentoo-kernel-5.4.105 with a sandbox > violation. The violation summary is inserted below: > [...] > R: /dev/null.dwo > C: x86_64-pc-linux-gnu-gcc -Werror -gsplit-dwarf -S -x c /dev/null -o > /dev/null This is https://bugs.gentoo.org/770931 Happens when using FEATURES=ccache, so can turn it off to workaround. -- ionen signature.asc Description: PGP signature
Re: [gentoo-user] Sandbox violation when emerging gentoo-kernel-5.4.105
Hey, Quoting itsgrant (2021-04-02 18:58:56) >* ACCESS DENIED: unlink: /dev/null.dwo I had the same issue, I found a bug report about it, it was due to ccache: https://bugs.gentoo.org/770931 Guillaume
Re: [gentoo-user] Sandbox violation emerging media-gfx/dcraw-8.73
On 2/22/10, John H. Moe john...@optusnet.com.au wrote: From the looks of things, it's trying to install a file directly to the filesystem outside the /var/tmp sandbox. I believe this is a bug that needs reporting, but before I did that, I thought I'd check to be sure it wasn't something I was doing wrong. Can can someone more knowledgeable than me advise? Could it be bug #306177? Looks a lot like your case. http://bugs.gentoo.org/show_bug.cgi?id=306177 -- Arttu V.
Re: [gentoo-user] Sandbox violation emerging media-gfx/dcraw-8.73
Arttu V. wrote: On 2/22/10, John H. Moe john...@optusnet.com.au wrote: From the looks of things, it's trying to install a file directly to the filesystem outside the /var/tmp sandbox. I believe this is a bug that needs reporting, but before I did that, I thought I'd check to be sure it wasn't something I was doing wrong. Can can someone more knowledgeable than me advise? Could it be bug #306177? Looks a lot like your case. http://bugs.gentoo.org/show_bug.cgi?id=306177 Perfect, thank you. :-) I had searched bugs.gentoo.org before, but obviously not thoroughly enough... John Moe
[gentoo-user] Sandbox violation emerging media-gfx/dcraw-8.73
When trying to emerge the Thunar thumbnailer plugin, it pulls in dcraw. However, after successfully compiling dcraw, I get the following error when make gets to the install phase: ** Source compiled. Test phase [not enabled]: media-gfx/dcraw-8.73 Install dcraw-8.73 into /var/tmp/portage/media-gfx/dcraw-8.73/image/ category media-gfx make -j5 DESTDIR=/var/tmp/portage/media-gfx/dcraw-8.73/image/ install /usr/bin/install -d /var/tmp/portage/media-gfx/dcraw-8.73/image//usr/bin /usr/bin/install dcraw /var/tmp/portage/media-gfx/dcraw-8.73/image//usr/bin /usr/bin/install dcparse /var/tmp/portage/media-gfx/dcraw-8.73/image//usr/bin /usr/bin/install -d /var/tmp/portage/media-gfx/dcraw-8.73/image//usr/share/man/man1 /usr/bin/install dcraw.1 /var/tmp/portage/media-gfx/dcraw-8.73/image//usr/share/man/man1 cp rawphoto /usr/lib/gimp/2.0/plug-ins ACCESS DENIED open_wr: /usr/lib/gimp/2.0/plug-ins/rawphoto cp: cannot create regular file `/usr/lib/gimp/2.0/plug-ins/rawphoto': Permission denied Completed installing dcraw-8.73 into /var/tmp/portage/media-gfx/dcraw-8.73/image/ --- ACCESS VIOLATION SUMMARY --- LOG FILE /var/log/sandbox/sandbox-9890.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_wr S: deny P: /usr/lib/gimp/2.0/plug-ins/rawphoto A: /usr/lib/gimp/2.0/plug-ins/rawphoto R: /usr/lib/gimp/2.0/plug-ins/rawphoto C: cp rawphoto /usr/lib/gimp/2.0/plug-ins Failed to emerge media-gfx/dcraw-8.73, Log file: '/var/tmp/portage/media-gfx/dcraw-8.73/temp/build.log' ** From the looks of things, it's trying to install a file directly to the filesystem outside the /var/tmp sandbox. I believe this is a bug that needs reporting, but before I did that, I thought I'd check to be sure it wasn't something I was doing wrong. Can can someone more knowledgeable than me advise? I've attached emerge --info and the full build log file for reference. John Moe Portage 2.1.7.16 (default/linux/x86/10.0, gcc-4.3.4, glibc-2.10.1-r1, 2.6.31-gentoo-r6 i686) = System uname: Linux-2.6.31-gentoo-r6-i686-Intel-R-_Pentium-R-_4_CPU_3.40GHz-with-gentoo-1.12.13 Timestamp of tree: Sun, 21 Feb 2010 20:15:02 + distcc 3.1 i686-pc-linux-gnu [enabled] app-shells/bash: 4.0_p35 dev-java/java-config: 2.1.10 dev-lang/python: 2.6.4 dev-util/cmake: 2.6.4-r3 sys-apps/baselayout: 1.12.13 sys-apps/sandbox:1.6-r2 sys-devel/autoconf: 2.13, 2.63-r1 sys-devel/automake: 1.8.5-r3, 1.9.6-r2, 1.10.2 sys-devel/binutils: 2.18-r3 sys-devel/gcc: 4.3.4 sys-devel/gcc-config: 1.4.1 sys-devel/libtool: 2.2.6b virtual/os-headers: 2.6.27-r2 ACCEPT_KEYWORDS=x86 ACCEPT_LICENSE=* -...@eula CBUILD=i686-pc-linux-gnu CFLAGS=-march=native -fomit-frame-pointer -O2 -pipe CHOST=i686-pc-linux-gnu CONFIG_PROTECT=/etc /usr/share/X11/xkb /usr/share/config CONFIG_PROTECT_MASK=/etc/ca-certificates.conf /etc/env.d /etc/env.d/java/ /etc/fonts/fonts.conf /etc/gconf /etc/php/apache2-php5/ext-active/ /etc/php/cgi-php5/ext-active/ /etc/php/cli-php5/ext-active/ /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo /etc/udev/rules.d CXXFLAGS=-march=native -fomit-frame-pointer -O2 -pipe DISTDIR=/usr/portage/distfiles FEATURES=assume-digests distcc distlocks fixpackages news parallel-fetch protect-owned sandbox sfperms strict unmerge-logs unmerge-orphans userfetch GENTOO_MIRRORS=ftp://jhb5970 ftp://ftp.swin.edu.au/gentoo ftp://ftp.planetmirror.com/pub/gentoo; LANG=en_AU LC_ALL=en_AU LDFLAGS=-Wl,-O1 LINGUAS=en_AU en en_GB en_US MAKEOPTS=-j5 PKGDIR=/usr/portage/packages PORTAGE_CONFIGROOT=/ PORTAGE_RSYNC_OPTS=--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages PORTAGE_TMPDIR=/var/tmp PORTDIR=/usr/portage PORTDIR_OVERLAY=/usr/local/portage/layman/sunrise SYNC=rsync://jhb5970/gentoo-portage USE=X a52 aac acl acpi aim alsa apache2 bash-completion berkdb branding bzip2 cdda cddb cdinstall cdr cli cracklib crypt css cups cxx dbus dri dvd dvdr encode exif ffmpeg firefox flac fortran ftp gdbm gif gimp gpm gtk gzip hal hddtemp iconv icq imap jbig joystick jpeg jpeg2k kde libnotify lm_sensors lzo matroska mng modules mp3 mp4 mpeg mplayer msn mudflap mysql mysqli ncurses nls nptl nptlonly nsplugin offensive ogg openexr opengl openmp oscar pam pcre pdf perl php plasma png pppd python qt3support qt4 quicktime raw rdesktop readline reflection samba semantic-desktop session spl sql ssl startup-notification svg sysfs szip taglib tcpd theora tiff truetype unicode usb v4l v4l2 vcd vnc vorbis wavpack
[gentoo-user] Sandbox Violation
Hi everyone, recently I killed a running merge of app-emacs/auctex with C-c in the shell. Now after that I am not able to install the package anymore. I get a sandbox when kpathsea is run. Hints anybody ? Thanks. Here's a snippet of the build log: kpathsea: Running mktexpk --mfmode / --bdpi 600 --mag 1+0/600 --dpi 600 cmtt9 ACCESS DENIED mkdir: /var/cache/fonts/pk/ljfour/public/cm mkdir: cannot create directory `././var/cache/fonts/pk/ljfour/public/cm': Permission denied mktexpk: /usr/share/texmf/web2c/mktexdir /var/cache/fonts/pk/ljfour/public/cm failed. kpathsea: Appending font creation commands to missfont.log. (see the transcript file for additional information) !pdfTeX error: /usr/bin/pdflatex (file cmtt9): Font cmtt9 at 600 not found == Fatal error occurred, no output PDF file produced! make[2]: *** [preview.pdf] Error 70 make[2]: Leaving directory `/var/tmp/portage/app-emacs/auctex-11.85/work/auctex-11.85/preview/latex' make[1]: *** [texmf] Error 2 make[1]: Leaving directory `/var/tmp/portage/app-emacs/auctex-11.85/work/auctex-11.85/preview' make: *** [all] Error 2 * * ERROR: app-emacs/auctex-11.85 failed. * Call stack: * ebuild.sh, line 49: Called src_compile * environment, line 2860: Called die * The specific snippet of code: * emake || die emake failed; * The die message: * emake failed * * If you need support, post the topmost build error, and the call stack if relevant. * A complete build log is located at '/var/tmp/portage/app-emacs/auctex-11.85/temp/build.log'. * The ebuild environment file is located at '/var/tmp/portage/app-emacs/auctex-11.85/temp/environment'. * --- ACCESS VIOLATION SUMMARY --- LOG FILE /var/log/sandbox/sandbox-8791.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: mkdir S: deny P: ././var/cache/fonts/pk/ljfour/public/cm A: /var/cache/fonts/pk/ljfour/public/cm R: /var/cache/fonts/pk/ljfour/public/cm C: mkdir ././var/cache/fonts/pk/ljfour/public/cm -- Thomas Kahle The fundamental theorem of algebra is open source. Like any other mathematical theorem it can be applied free of charge and everybody has access to its proof and can convince himself how it works. Why should software be any different? pgpmU5pZnzUHl.pgp Description: PGP signature