Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 75034 - xorg-x11-6.7.0-r3 sandbox violation: /usr/src/linux-2.6.9/.tmp_gas_check
Summary: xorg-x11-6.7.0-r3 sandbox violation: /usr/src/linux-2.6.9/.tmp_gas_check
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: PPC Linux
: High blocker
Assignee: Gentoo X packagers
URL:
Whiteboard:
Keywords: PullRequest
: 75115 (view as bug list)
Depends on:
Blocks:
 
Reported: 2004-12-20 04:51 UTC by Miguel Sousa Filipe
Modified: 2024-07-08 10:02 UTC (History)
5 users (show)

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Miguel Sousa Filipe 2004-12-20 04:51:08 UTC
/usr/lib/portage/bin/ebuild.sh: line 254: [: too many arguments
pam
ppc
ipv6                                                                                                  [ ok ]>>> Source unpacked.
--------------------------- ACCESS VIOLATION SUMMARY ---------------------------
LOG FILE = "/tmp/sandbox-x11-base_-_xorg-x11-6.7.0-r3-13486.log"

unlink:    /usr/src/linux-2.6.9/.tmp_gas_check
open_wr:   /usr/src/linux-2.6.9/.tmp_gas_check
unlink:    /usr/src/linux-2.6.9/.tmp_gas_check
open_wr:   /usr/src/linux-2.6.9/.tmp_gas_check
unlink:    /usr/src/linux-2.6.9/.tmp_gas_check
open_wr:   /usr/src/linux-2.6.9/.tmp_gas_check
unlink:    /usr/src/linux-2.6.9/.tmp_gas_check
open_wr:   /usr/src/linux-2.6.9/.tmp_gas_check
unlink:    /usr/src/linux-2.6.9/.tmp_gas_check
open_wr:   /usr/src/linux-2.6.9/.tmp_gas_check
unlink:    /usr/src/linux-2.6.9/.tmp_gas_check
open_wr:   /usr/src/linux-2.6.9/.tmp_gas_check
unlink:    /usr/src/linux-2.6.9/.tmp_gas_check
open_wr:   /usr/src/linux-2.6.9/.tmp_gas_check
unlink:    /usr/src/linux-2.6.9/.tmp_gas_check
open_wr:   /usr/src/linux-2.6.9/.tmp_gas_check
unlink:    /usr/src/linux-2.6.9/.tmp_gas_check
open_wr:   /usr/src/linux-2.6.9/.tmp_gas_check
unlink:    /usr/src/linux-2.6.9/.tmp_gas_check
open_wr:   /usr/src/linux-2.6.9/.tmp_gas_check
--------------------------------------------------------------------------------


Reproducible: Always
Steps to Reproduce:
1.emerge xorg-x11 (with xorg-x11-6.7.0-r2 installed)
2.wait..
3.

Actual Results:  
emerge fails with a access violation

Expected Results:  
proceed with the emerge without problems

newton root # emerge info
Portage 2.0.51-r3 (default-ppc-2004.2, gcc-3.4.1, glibc-2.3.3.20040420-r2,
2.6.7-hardened-r10 ppc)
=================================================================
System uname: 2.6.7-hardened-r10 ppc 750FX
Gentoo Base System version 1.4.16
Autoconf: sys-devel/autoconf-2.59-r5
Automake: sys-devel/automake-1.8.5-r1
Binutils: sys-devel/binutils-2.15.90.0.3-r3
Headers:  sys-kernel/linux-headers-2.4.22,sys-kernel/linux-headers-2.4.19-r1
Libtools: sys-devel/libtool-1.5.2-r7
ACCEPT_KEYWORDS="ppc"
AUTOCLEAN="yes"
CFLAGS="-O2 -pipe -mcpu=750 -mpowerpc-gfxopt"
CHOST="powerpc-unknown-linux-gnu"
COMPILER=""
CONFIG_PROTECT="/etc /usr/X11R6/lib/X11/xkb /usr/kde/2/share/config
/usr/kde/3.1/share/config /usr/kde/3/share/config /usr/share/config
/var/qmail/control"
CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d"
CXXFLAGS="-O2 -pipe -mcpu=750 -mpowerpc-gfxopt"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoaddcvs ccache distcc distlocks fixpackages sandbox"
GENTOO_MIRRORS="ftp://ftp.rnl.ist.utl.pt/gentoo http://gentoo.oregonstate.edu/
http://www.ibiblio.org/pub/Linux/distributions/gentoo"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY=""
SYNC="rsync://ftp.rnl.ist.utl.pt/gentoo-portage"
USE="X acl alsa arts berkdb cdr chroot crypt divx4linux dvd esd f77 gdbm gif
gnome gnome-libs gpm gtk gtk2 imlib ipv6 java jpeg junit motif moznocompose
moznoirc mpeg ncurses nls nptl oggvorbis opengl pam perl pic png ppc python
quicktime radeon readline samba sdl slang ssl tcltk tcpd theora threads tiff
truetype xft xine xinerama xmms xprint xv xvid zlib video_cards_radeon"
Comment 1 Donnie Berkholz (RETIRED) gentoo-dev 2004-12-20 18:00:43 UTC
*** Bug 75115 has been marked as a duplicate of this bug. ***
Comment 2 Donnie Berkholz (RETIRED) gentoo-dev 2004-12-20 20:06:01 UTC
Also see bug #74655, same problem w/ the orinoco drivers.
Comment 3 Mike Gardiner (RETIRED) gentoo-dev 2004-12-20 22:37:59 UTC
Applying the reverse of this diff:

http://www.gentoo.org/cgi-bin/viewcvs.cgi/x11-base/xorg-x11/xorg-x11-6.8.0-r4.ebuild?r1=1.26&r2=1.27

solves the problem for me (same for xorg-x11-6.8.1*). Looks like something in those kernel eclasses, will need to look into it further.
Comment 4 Donnie Berkholz (RETIRED) gentoo-dev 2004-12-20 22:49:08 UTC
Trouble in linux-info land, John.
Comment 5 splite 2004-12-21 06:55:51 UTC
Yeah, it's this bit from /usr/src/linux/arch/ppc/Makefile that gets sucked in and run by getfilevar():

# Use the file '.tmp_gas_check' for binutils tests, as gas won't output
# to stdout and these checks are run even on install targets.
TOUT    := .tmp_gas_check
# Ensure this is binutils 2.12.1 (or 2.12.90.0.7) or later for altivec
# instructions.
AS_ALTIVEC      := $(shell echo dssall | $(AS) -many -o $(TOUT) >/dev/null 2>&1
; echo $$?)
# gcc-3.4 and binutils-2.14 are a fatal combination.
GCC_VERSION     := $(call cc-version)
BAD_GCC_AS      := $(shell echo mftb 5 | $(AS) -mppc -many -o $(TOUT) >/dev/null
 2>&1 && echo 0 || echo 1)
Comment 6 splite 2004-12-21 07:04:06 UTC
Also, the ebuild patch should be:

--- /home/portage-tree/current/x11-base/xorg-x11/xorg-x11-6.7.0-r3.ebuild      2004-12-06 23:23:15.000000000 -0500
+++ xorg-x11-6.7.0-r3.ebuild    2004-12-21 10:02:45.454392744 -0500
@@ -251,7 +251,7 @@
                fi
 
                if ( [ -e "${ROOT}/usr/src/linux" ] && \
-                       [ ! `kernel_is "2" "2"` ] ) || \
+                       ! kernel_is "2" "2" ) || \
                        [ "`uname -r | cut -d. -f1,2`" != "2.2" ]
                then
                        echo "#define HasLinuxInput YES" >> config/cf/host.def
Comment 7 Donnie Berkholz (RETIRED) gentoo-dev 2004-12-23 00:19:14 UTC
Fixed the problem in comment #6, along with a few related changes.
Comment 8 John Mylchreest (RETIRED) gentoo-dev 2004-12-29 02:47:44 UTC
does someone have a box I can mess with this on?
I'm lacking a PPC box.
if anyone wants to pass on a pegasos box feel free! :)
Comment 9 John Mylchreest (RETIRED) gentoo-dev 2004-12-29 12:48:13 UTC
hmm, ok this is a tricky one.
since we include Makfile, which includes the above as you stated to generate the versioning information (most reliable method) we cant neccessarily get around this.
is there a way in make to negate an include?
since the arch includes are never going to be needed it makes sense.
Comment 10 Andrew Bevitt 2004-12-29 17:37:11 UTC
Just to clarify.. We must use make, as we might need to get arch default values from the arch default configs, not just from .config, yes? 
Comment 11 John Mylchreest (RETIRED) gentoo-dev 2005-01-02 07:26:02 UTC
we also need to be able to evaluate makefile vars.
think something like:

VARIABLE=$(objtree)/$(arch)
or anything of that sort.

KBUILD_OUTPUT is a good example.

KBUILD_OUTPUT=/var/tmp/linux-output/$(VERSION)....

Comment 12 Miguel A. Liebana 2005-01-03 07:33:06 UTC
I have this problem while installing xorg-x11-6.8.1.901 and xorg-x11-6.8.0-rx with kernel 2.6.9-gentoo-r9.
None of the solutions works for me, but after emerging the new kernel 2.6.10-gentoo-r2, xorg-x11 compiles without problems.
Comment 13 Olivier Castan 2005-01-05 08:27:41 UTC
One quick fix for xorg-x11-6.8.1.901 is to manually modify /usr/src/linux/arch/ppc/Makefile with the fix which is present in /usr/portage/eclass/kernel-2.eclass ie replace the line "TOUT := .tmp_gas_check" with "TOUT  := $(T).tmp_gas_check"
This will stop the sandbox violation.
Comment 14 John Mylchreest (RETIRED) gentoo-dev 2005-01-06 05:57:02 UTC
this has now been fixed in linux-info.eclass temporarily until we can look at addressing the real issue in the sources.
fixed in cvs.
Comment 15 Larry the Git Cow gentoo-dev 2024-07-08 10:02:59 UTC
The bug has been referenced in the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=31c7e60f5cf2c3bc8251f2f13aa899c836f4b40b

commit 31c7e60f5cf2c3bc8251f2f13aa899c836f4b40b
Author:     Ulrich Müller <ulm@gentoo.org>
AuthorDate: 2024-06-22 17:06:32 +0000
Commit:     Ulrich Müller <ulm@gentoo.org>
CommitDate: 2024-07-08 09:42:06 +0000

    linux-info.eclass: Drop temporary fix for powerpc
    
    Apparently there is no reference to a .tmp_gas_check file or to a TOUT
    variable in Linux sources any more.
    
    Bug: https://bugs.gentoo.org/75034#c14
    Signed-off-by: Ulrich Müller <ulm@gentoo.org>

 eclass/linux-info.eclass | 6 ------
 1 file changed, 6 deletions(-)