Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 7756 - xfree-4.2.1 emerge fails
Summary: xfree-4.2.1 emerge fails
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Core system (show other bugs)
Hardware: x86 Linux
: High normal (vote)
Assignee: Martin Schlemmer (RETIRED)
URL:
Whiteboard:
Keywords:
: 7633 (view as bug list)
Depends on:
Blocks:
 
Reported: 2002-09-10 11:24 UTC by Sven Wermke
Modified: 2003-02-04 19:42 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 Sven Wermke 2002-09-10 11:24:24 UTC
System: K6-2 400 Laptop, gcc3.2-r1, everything at newest version (baselayout,
linuxheaders etc.) using CFLAGS="-mcpu=K6-2 -march=K6-2 -O3 -pipe", same for
CXXFLAGS
xfree 4.2.0-r12 has no probs

Error:

miPck1Prim.c: In function 'CheckFAreaPick1':
miPck1Prim.c:405: unable to find a register to spill in class 'FLOAT-REGS'
miPck1Prim.c:405: this is the insn:
(insn 299 297 302 (set (subreg:SF (reg/v:DI 29 rmm0 [64]) 0)
        (float:SF (reg:HI 5 di [149]))) 167 {floathisf2} (nil)
    (nil))
miPck1Prim.c:405: confused by earlier errors, bailing out
make[5]: *** [miPckPrim.o] Error 1
make[5]: Leaving directory
'/var/tmp/portage/xfree-4.2.1/work/xc/programs/Xserver/PEX5/ddpex/mi/level1'
make[4]: *** [ddpex/mi/level1] Error 2
make[4]: Leaving directory
'/var/tmp/portage/xfree-4.2.1/work/xc/programs/Xserver/PEX5'
make[3]: *** [PEX5] Error 2
make[3]: Leaving directory '/var/tmp/portage/xfree-4.2.1/work/xc/programs/Xserver'
make[2]: *** [install] Error 2
make[2]: Leaving directory '/var/tmp/portage/xfree-4.2.1/work/xc/programs'
make[1]: *** [install] Error 2
make[1]: Leaving directory '/var/tmp/portage/xfree-4.2.1/work/xc'
make: *** [install] Error 2

!!! ERROR: The ebuild did not complete successfully.
!!! Function src_indstall, Line 2, Exitcode 2
!!! (no error message)

I'll retry it to see if it bails out again at the same position.
Comment 1 Wilbert van Bakel 2002-09-10 13:19:14 UTC
I have the same error here, and to me this is a deja vu from gcc-3.2 and xfree-
4.1.0-r12. (Bug #7633)
Comment 2 Martin Schlemmer (RETIRED) gentoo-dev 2002-09-10 13:46:48 UTC
Its a gcc arch optimization bug.  Cut down on CFLAGS (maybe -march=i586 or
if supported by k6, -march=i686).

Bass: check that this is not the same for you ...
Comment 3 Wilbert van Bakel 2002-09-10 13:56:06 UTC
The problem was fixed with gcc-3.2 and xfree-4.2.0-r12. You added some -mno-mmx 
patch. I didn't need to change my cflags. Is this issue different?
Comment 4 Martin Schlemmer (RETIRED) gentoo-dev 2002-09-10 16:00:42 UTC
Urk, ok.  Tested fine this side on my p4 which had similar issues.
Will fix asap.
Comment 5 Sven Wermke 2002-09-11 05:37:59 UTC
I played a little with my CFLAGS
CFLAGS="-march=K6-2 -O3 -pipe"  same error as before

CFLAGS="-march=K6-2 -O2 -pipe" and CFLAGS="-march=K6 -O2 -pipe" give me a
sandbox violation error as follows:

install in nls/XI18N_OBJS done
make[1]: Leaving directory '/var/tmp/portage/xfree-4.2.1/work/xc/nls/XI18N_OBJS'
chown: failed to get attributes of
'/var/tmp/portage/xfree-4.2.1/image//usr/X11R6/bin/xterm': No such file or directory
chmod: failed to get attributes of
'/var/tmp/portage/xfree-4.2.1/image//usr/X11R6/bin/xterm': No such file or directory
cp: cannot stat
'/var/tmp/portage/xfree-4.2.1/image//usr/X11R6/lib/X11/config/host.def': No such
file or directory
/usr/sbin/ebuild.sh:
/var/tmp/portage/xfree-4.2.1/image//usr/X11R6/lib/X11/config/host.def: No such
file or directory
 * Installing MS Core Fonts...
 * Moving libGL and friends for dynamic switching...
strip:
>>> Completed installing into /var/tmp/portage/xfree-4.2.1/image/


--------------------------- AccESS VIOLATION SUMMARY ---------------------------
LOG FILE = "/tmp/sandbox-xfree-4.2.1-5053.log"


unlink:    /usr/X11R6/include/X11/DECkeysym.h
unlink:    /usr/X11R6/include/X11/HPkeysym.h
unlink:    /usr/X11R6/include/X11/Sunkeysym.h
unlink:    /usr/X11R6/include/X11/X.h
unlink:    /usr/X11R6/include/X11/XF86keysym.h
unlink:    /usr/X11R6/include/X11/XWDFile.h
unlink:    /usr/X11R6/include/X11/Xalloca.h
unlink:    /usr/X11R6/include/X11/Xarch.h
unlink:    /usr/X11R6/include/X11/Xatom.h
unlink:    /usr/X11R6/include/X11/Xdefs.h
unlink:    /usr/X11R6/include/X11/Xfuncproto.h
unlink:    /usr/X11R6/include/X11/Xfuncs.h
unlink:    /usr/X11R6/include/X11/Xmd.h
unlink:    /usr/X11R6/include/X11/Xos.h
unlink:    /usr/X11R6/include/X11/Xos_r.h
unlink:    /usr/X11R6/include/X11/Xosdefs.h
unlink:    /usr/X11R6/include/X11/Xpoll.h
unlink:    /usr/X11R6/include/X11/Xproto.h
unlink:    /usr/X11R6/include/X11/Xprotostr.h
unlink:    /usr/X11R6/include/X11/Xthreads.h
unlink:    /usr/X11R6/include/X11/ap_keysym.h
unlink:    /usr/X11R6/include/X11/keysym.h
unlink:    /usr/X11R6/include/X11/keysymdef.h
--------------------------------------------------------------------------------
Comment 6 José Alberto Suárez López 2002-09-11 06:20:44 UTC
now it compiles, without -mmmx, but i have the same sandbox violation of Sven.
Comment 7 Magnus 2002-09-11 08:20:42 UTC
I get the same error as Sven Wermke with this CFLAGS:

CFLAGS="-march=athlon-xp -O3 -pipe -msse -mfpmath=sse -m3dnow -mmmx -fforce-addr
-fomit-frame-pointer -funroll-loops -frerun-cse-after-loop -frerun-loop-opt
-falign-functions=4 -maccumulate-outgoing-args"

I also tried it without -mmmx but it won't work.

Magnus
Comment 8 Sven Wermke 2002-09-11 10:30:22 UTC
I tried CFLAGS="-march=i586 -O2 -pipe" and it still gives the sandbox error.
The -O3 will certainly break it like in my innitial post and using -O2 takes
care of that but I have no idea about the sandbox issue.
Comment 9 Martin Schlemmer (RETIRED) gentoo-dev 2002-09-11 13:00:27 UTC
Tweaked things a bit, please try again if not too much trouble, thanks.
Comment 10 José Alberto Suárez López 2002-09-11 16:51:40 UTC
works for me :) great Job.
I pay the next Beer ;P
Comment 11 Sven Wermke 2002-09-12 02:01:44 UTC
It works now, I'm using CFLAGS="-mcpu=K6-2 -march=K6-2 -O2 -pipe", no more
sandbox violation. Thx for the quick fix, good job. I'll retry with -O3 to see
if it still exits as in my innitial post.
Comment 12 Sven Wermke 2002-09-12 14:51:11 UTC
Yay, it even works with -03 flags, so for me this bug is fixed.
Comment 13 Wilbert van Bakel 2002-09-12 15:51:07 UTC
I still get the following error message, but I end up with an installed xfree-
4.2.1. So, it looks like it is working, but I wonder what that error message is 
doing?

=====
miPck1Prim.c: In function `CheckFAreaPick1':			  
miPck1Prim.c:405: unable to find a register to spill in class `FLOAT_REGS'
miPck1Prim.c:405: this is the insn:				  
(insn 299 297 302 (set (subreg:SF (reg/v:DI 29 rmm0 [64]) 0)	  
	(float:SF (reg:HI 5 di [157]))) 167 {floathisf2} (nil)	  
    (nil))							  
miPck1Prim.c:405: confused by earlier errors, bailing out	  
======
Comment 14 Matthew Kennedy (RETIRED) gentoo-dev 2002-09-16 02:40:23 UTC
*** Bug 7633 has been marked as a duplicate of this bug. ***