Re: [gentoo-user] Xorg Compiling Failure

2005-02-06 Thread Jason Cooper
Captain FantastiK ([EMAIL PROTECTED]) scribbled:
 Now, I foudn out what was the problem. It seems to be the -static USE Flag 
 (But I don't understand why) so when I removed, the compiling Process was 
 OK. But Now, I have another Problem with X: the modules is failing from 
 Loading: Here is the output of Xorg.0.log:
 
[snip log info]
 (II) LoadModule: bitmap
 (II) Loading /usr/lib/modules/fonts/libbitmap.a
 Duplicate symbol __i686.get_pc_thunk.bx in 
 /usr/lib/modules/fonts/libbitmap.a:bitmapmod.o
 Also defined in /usr/lib/modules/fonts/libbitmap.a
 
 Fatal server error:
 Module load failure

This is a bug with using a hardened gcc/glibc combo.  There are two
solutions to this problem.  The first is to patch Xorg source to add the
'-norun' flag (this is from memory, may not be the right word).  Or you
can remove the hardened USE flag, and re-merge gcc, glibc, and then
Xorg. 

I'll be honest, I took the easier route and re-merged without -hardened.
I encountered this same problem on my primary work machine and needed to
get it back up fast.

This has to do with when functions are looked up in shared libraries.
Without -hardened, gcc/glibc does 'lazy lookups'.  When you use
-hardened, all symbols are looked up at initial execution, thus
inconsistencies are found.  

hth,

Cooper.

--
gentoo-user@gentoo.org mailing list



Re: [gentoo-user] Xorg Compiling Failure

2005-02-06 Thread Rumen Yotov
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
Jason Cooper wrote:
| Captain FantastiK ([EMAIL PROTECTED]) scribbled:
|
|Now, I foudn out what was the problem. It seems to be the -static USE
Flag
|(But I don't understand why) so when I removed, the compiling Process was
|OK. But Now, I have another Problem with X: the modules is failing from
|Loading: Here is the output of Xorg.0.log:
|
|
| [snip log info]
|
|(II) LoadModule: bitmap
|(II) Loading /usr/lib/modules/fonts/libbitmap.a
|Duplicate symbol __i686.get_pc_thunk.bx in
|/usr/lib/modules/fonts/libbitmap.a:bitmapmod.o
|Also defined in /usr/lib/modules/fonts/libbitmap.a
|
|Fatal server error:
|Module load failure
|
|
| This is a bug with using a hardened gcc/glibc combo.  There are two
| solutions to this problem.  The first is to patch Xorg source to add the
| '-norun' flag (this is from memory, may not be the right word).  Or you
| can remove the hardened USE flag, and re-merge gcc, glibc, and then
| Xorg.
|
| I'll be honest, I took the easier route and re-merged without -hardened.
| I encountered this same problem on my primary work machine and needed to
| get it back up fast.
|
| This has to do with when functions are looked up in shared libraries.
| Without -hardened, gcc/glibc does 'lazy lookups'.  When you use
| -hardened, all symbols are looked up at initial execution, thus
| inconsistencies are found.
|
| hth,
|
| Cooper.
|
| --
| gentoo-user@gentoo.org mailing list
|
|
Hi,
IMO there are two ways to go.
1.Switch off hardened USE-flag (-hardened), must also switch (temporary)
to your GCC's vanilla-profile (not a hardened one).
All this if using a hardened-system/toolchain.
2.Left +hardened but also add +dlloader USE-flag, thus even the latest
xorg-x11-6.8.1.904 compiles and runs OK (some XKB problems here).
PS: note you can't use 3-D accel. with nvidia using +dlloader, only 2D
(by using nv-driver). See hardened-doc-pages.
HTH
Rumen
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.0-ecc0.1.6 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org
iD8DBQFCBlV+w4vKYiLy/AsRArZzAJ9mSkBopeYTpqkoOTLDzW1iYLRoFACglgg1
4UtTFCBmwBVpMQZjKnY5zOs=
=63Tx
-END PGP SIGNATURE-
--
gentoo-user@gentoo.org mailing list


Re: [gentoo-user] Xorg Compiling Failure

2005-02-06 Thread Captain FantastiK


cApTaiN_FaNtAsTiK


From: Rumen Yotov [EMAIL PROTECTED]
Reply-To: [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Subject: Re: [gentoo-user] Xorg Compiling Failure
Date: Sun, 06 Feb 2005 19:35:58 +0200
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
Jason Cooper wrote:
| Captain FantastiK ([EMAIL PROTECTED]) scribbled:
|
|Now, I foudn out what was the problem. It seems to be the -static USE
Flag
|(But I don't understand why) so when I removed, the compiling Process was
|OK. But Now, I have another Problem with X: the modules is failing from
|Loading: Here is the output of Xorg.0.log:
|
|
| [snip log info]
|
|(II) LoadModule: bitmap
|(II) Loading /usr/lib/modules/fonts/libbitmap.a
|Duplicate symbol __i686.get_pc_thunk.bx in
|/usr/lib/modules/fonts/libbitmap.a:bitmapmod.o
|Also defined in /usr/lib/modules/fonts/libbitmap.a
|
|Fatal server error:
|Module load failure
|
|
| This is a bug with using a hardened gcc/glibc combo.  There are two
| solutions to this problem.  The first is to patch Xorg source to add the
| '-norun' flag (this is from memory, may not be the right word).  Or you
| can remove the hardened USE flag, and re-merge gcc, glibc, and then
| Xorg.
|
| I'll be honest, I took the easier route and re-merged without -hardened.
| I encountered this same problem on my primary work machine and needed to
| get it back up fast.
|
| This has to do with when functions are looked up in shared libraries.
| Without -hardened, gcc/glibc does 'lazy lookups'.  When you use
| -hardened, all symbols are looked up at initial execution, thus
| inconsistencies are found.
|
| hth,
|
| Cooper.
|
| --
| gentoo-user@gentoo.org mailing list
|
|
Hi,
IMO there are two ways to go.
1.Switch off hardened USE-flag (-hardened), must also switch (temporary)
to your GCC's vanilla-profile (not a hardened one).
All this if using a hardened-system/toolchain.
2.Left +hardened but also add +dlloader USE-flag, thus even the latest
xorg-x11-6.8.1.904 compiles and runs OK (some XKB problems here).
PS: note you can't use 3-D accel. with nvidia using +dlloader, only 2D
(by using nv-driver). See hardened-doc-pages.
HTH
Rumen
HI
Me, I'd like to use the nvidia-glx driver (not the nv Generic)..
-Will the 3D accell work?Besides, I dont know how to switch to GCC's Vanilla 
Profile.
-Do I have to recompile GCC again with hardened USE-flas removed?
-Can I Put back -static USE-Flag  I removed it I thought it was the cause of 
compile failure?

Cheers
_
Gardez le contrôle grâce à la protection contre les fenêtres pop-up 
articulée sur la technologie brevetée Microsoft SmartScreen 
http://join.msn.com/?pgmarket=fr-capage=features/popup Commencez dès 
maintenant à profiter de tous les avantages de MSN Premium et obtenez les 
deux premiers mois GRATUITS*.

--
gentoo-user@gentoo.org mailing list


Re: [gentoo-user] Xorg Compiling Failure

2005-02-05 Thread Captain FantastiK

From: Jason Cooper [EMAIL PROTECTED]
Reply-To: [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Subject: Re: [gentoo-user] Xorg Compiling Failure
Date: Fri, 4 Feb 2005 09:04:59 -0500
Captain FantastiK ([EMAIL PROTECTED]) scribbled:

 Hi

 I tried many times compiling xorg but it was always ending with the same
 error message:

 ...
 collect2: ld returned 1 exit status
 make[4]: ***[Xorg] Error 1
 make[4]: Leaving Directory:
 '/var/tmp/portage/xorg-x11-6.8.0-r4/work/xc/programs/Xserver'
 make[3]: ***[all] Error 2
 make[3]: Leaving Directory:
 '/var/tmp/portage/xorg-x11-6.8.0-r4/work/xc/programs'
 make[2]: ***[all] Error 2
 make[2]: Leaving Directory: '/var/tmp/portage/xorg-x11-6.8.0-r4/work/xc'
 make[1]: ***[World] Error 2
 make[1]: Leaving Directory: '/var/tmp/portage/xorg-x11-6.8.0-r4/work/xc'
 make:***[World] Error2
Need about 15 to 20 more lines above this... All that can be seen from
this is that you have a linker error.  Chances are you need to run
'fix_libtool_files.sh' with a version of gcc as an argument.  Run a
search of gentoo-user for that and it should explain how to use it.
hth,
Cooper.
Hi
Here are the lines before this (taken from /var/log/portage/...)
***
cfb32/libcfb32.a(cfbcmap.o)(.text+0x361): In function `cfbInitVisuals':
: multiple definition of `cfbInitVisuals'
cfb16/libcfb16.a(cfbcmap.o)(.text+0x361): first defined here
cfb/libcfb.a(cfbcmap.o)(.text+0x1d8): In function `cfbExpandDirectColors':
: multiple definition of `cfbExpandDirectColors'
cfb16/libcfb16.a(cfbcmap.o)(.text+0x1d8): first defined here
cfb/libcfb.a(cfbcmap.o)(.text+0x248): In function `cfbCreateDefColormap':
: multiple definition of `cfbCreateDefColormap'
cfb16/libcfb16.a(cfbcmap.o)(.text+0x248): first defined here
cfb/libcfb.a(cfbcmap.o)(.text+0x2a0): In function `cfbClearVisualTypes':
: multiple definition of `cfbClearVisualTypes'
cfb16/libcfb16.a(cfbcmap.o)(.text+0x2a0): first defined here
cfb/libcfb.a(cfbcmap.o)(.text+0x2f1): In function `cfbSetVisualTypes':
: multiple definition of `cfbSetVisualTypes'
cfb16/libcfb16.a(cfbcmap.o)(.text+0x2f1): first defined here
cfb/libcfb.a(cfbcmap.o)(.text+0x361): In function `cfbInitVisuals':
: multiple definition of `cfbInitVisuals'
cfb16/libcfb16.a(cfbcmap.o)(.text+0x361): first defined here
mfb/libmfb.a(mfbgc.o)(.text+0xbac): In function `mfbGetInverseAlu':
: multiple definition of `mfbGetInverseAlu'
../../programs/Xserver/hw/xfree86/xf1bpp/libxf1bpp.a(mfbgc.o)(.text+0xbac): 
first defined here
mfb/libmfb.a(mfbfont.o)(.text+0x49): In function `mfbRealizeFontWeak':
: multiple definition of `mfbRealizeFontWeak'
../../programs/Xserver/hw/xfree86/xf1bpp/libxf1bpp.a(mfbfont.o)(.text+0x49): 
first defined here
mfb/libmfb.a(mfbfont.o)(.text+0xdc): In function `mfbUnrealizeFontWeak':
: multiple definition of `mfbUnrealizeFontWeak'
../../programs/Xserver/hw/xfree86/xf1bpp/libxf1bpp.a(mfbfont.o)(.text+0xdc): 
first defined here
mfb/libmfb.a(maskbits.o)(.text+0x192): In function `mergeGetRopBits':
: multiple definition of `mergeGetRopBits'
../../programs/Xserver/hw/xfree86/xf1bpp/libxf1bpp.a(maskbits.o)(.text+0x192): 
first defined here
mfb/libmfb.a(mfbpushpxl.o)(.text+0x60b): In function `mfbPushPixelsWeak':
: multiple definition of `mfbPushPixelsWeak'
../../programs/Xserver/hw/xfree86/xf1bpp/libxf1bpp.a(mfbpushpxl.o)(.text+0x60e): 
first defined here
mfb/libmfb.a(mfbclip.o)(.text+0x66d): In function `mfbPixmapToRegionWeak':
: multiple definition of `mfbPixmapToRegionWeak'
../../programs/Xserver/hw/xfree86/xf1bpp/libxf1bpp.a(mfbclip.o)(.text+0x6ee): 
first defined here
mfb/libmfb.a(mfbmisc.o)(.text+0xc5): In function `mfbQueryBestSizeWeak':
: multiple definition of `mfbQueryBestSizeWeak'
../../programs/Xserver/hw/xfree86/xf1bpp/libxf1bpp.a(mfbmisc.o)(.text+0xc5): 
first defined here


_
Des mécanismes de contrôle parental puissants permettent à votre enfant de 
découvrir tout ce qu’Internet a à offrir. 
http://join.msn.com/?pgmarket=fr-capage=features/parental Commencez dès 
maintenant à profiter de tous les avantages de MSN Premium et obtenez les 
deux premiers mois GRATUITS*.

--
gentoo-user@gentoo.org mailing list


Re: [gentoo-user] Xorg Compiling Failure

2005-02-05 Thread Captain FantastiK
Hi
Now, I foudn out what was the problem. It seems to be the -static USE Flag 
(But I don't understand why) so when I removed, the compiling Process was 
OK. But Now, I have another Problem with X: the modules is failing from 
Loading: Here is the output of Xorg.0.log:

***
X Window System Version 6.8.0
Release Date: 8 September 2004
X Protocol Version 11, Revision 0, Release 6.8
Build Operating System: Linux 2.6.10-gentoo-r6 i686 [ELF]
Current Operating System: Linux modemcable158.221-37-24.mc.videotron.ca 
2.6.10-gentoo-r6 #1 Thu Feb 3 09:40:12 EST 2005 i686
Build Date: 05 February 2005
	Before reporting problems, check http://wiki.X.Org
	to make sure that you have the latest version.
Module Loader present
Markers: (--) probed, (**) from config file, (==) default setting,
	(++) from command line, (!!) notice, (II) informational,
	(WW) warning, (EE) error, (NI) not implemented, (??) unknown.
(==) Log file: /var/log/Xorg.0.log, Time: Sat Feb  5 21:41:27 2005
(==) Using config file: /etc/X11/xorg.conf
(==) ServerLayout Simple Layout
(**) |--Screen Screen 1 (0)
(**) |   |--Monitor My Monitor
(**) |   |--Device ** NVIDIA (generic)   [nv]
(**) |--Input Device Mouse1
(**) |--Input Device Keyboard1
(**) FontPath set to 
/usr/share/fonts/misc/,/usr/share/fonts/TTF/,/usr/share/fonts/Type1/,/usr/share/fonts/75dpi/,/usr/share/fonts/100dpi/,/usr/share/fonts/local/
(**) RgbPath set to /usr/X11R6/lib/X11/rgb
(==) ModulePath set to /usr/lib/modules
(WW) Open APM failed (/dev/apm_bios) (No such file or directory)
(II) Module ABI versions:
	X.Org ANSI C Emulation: 0.2
	X.Org Video Driver: 0.7
	X.Org XInput driver : 0.4
	X.Org Server Extension : 0.2
	X.Org Font Renderer : 0.4
(II) Loader running on linux
(II) LoadModule: bitmap
(II) Loading /usr/lib/modules/fonts/libbitmap.a
Duplicate symbol __i686.get_pc_thunk.bx in 
/usr/lib/modules/fonts/libbitmap.a:bitmapmod.o
Also defined in /usr/lib/modules/fonts/libbitmap.a

Fatal server error:
Module load failure
Please consult the The X.Org Foundation support
	 at http://wiki.X.Org
for help.
Please also check the log file at /var/log/Xorg.0.log for additional 
information.

Does anybody knew how to fix this
cApTaiN_FaNtAsTiK


From: Jason Cooper [EMAIL PROTECTED]
Reply-To: [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Subject: Re: [gentoo-user] Xorg Compiling Failure
Date: Fri, 4 Feb 2005 09:04:59 -0500
Captain FantastiK ([EMAIL PROTECTED]) scribbled:

 Hi

 I tried many times compiling xorg but it was always ending with the same
 error message:

 ...
 collect2: ld returned 1 exit status
 make[4]: ***[Xorg] Error 1
 make[4]: Leaving Directory:
 '/var/tmp/portage/xorg-x11-6.8.0-r4/work/xc/programs/Xserver'
 make[3]: ***[all] Error 2
 make[3]: Leaving Directory:
 '/var/tmp/portage/xorg-x11-6.8.0-r4/work/xc/programs'
 make[2]: ***[all] Error 2
 make[2]: Leaving Directory: '/var/tmp/portage/xorg-x11-6.8.0-r4/work/xc'
 make[1]: ***[World] Error 2
 make[1]: Leaving Directory: '/var/tmp/portage/xorg-x11-6.8.0-r4/work/xc'
 make:***[World] Error2
Need about 15 to 20 more lines above this... All that can be seen from
this is that you have a linker error.  Chances are you need to run
'fix_libtool_files.sh' with a version of gcc as an argument.  Run a
search of gentoo-user for that and it should explain how to use it.
hth,
Cooper.
--
gentoo-user@gentoo.org mailing list
_
Des mécanismes de contrôle parental puissants permettent à votre enfant de 
découvrir tout ce qu’Internet a à offrir. 
http://join.msn.com/?pgmarket=fr-capage=features/parentalST=1xAPID=1983DI=2043 
Commencez dès maintenant à profiter de tous les avantages de MSN Premium et 
obtenez les deux premiers mois GRATUITS*.

--
gentoo-user@gentoo.org mailing list


[gentoo-user] Xorg Compiling Failure

2005-02-04 Thread Captain FantastiK
Hi
I tried many times compiling xorg but it was always ending with the same 
error message:

...
collect2: ld returned 1 exit status
make[4]: ***[Xorg] Error 1
make[4]: Leaving Directory: 
'/var/tmp/portage/xorg-x11-6.8.0-r4/work/xc/programs/Xserver'
make[3]: ***[all] Error 2
make[3]: Leaving Directory: 
'/var/tmp/portage/xorg-x11-6.8.0-r4/work/xc/programs'
make[2]: ***[all] Error 2
make[2]: Leaving Directory: '/var/tmp/portage/xorg-x11-6.8.0-r4/work/xc'
make[1]: ***[World] Error 2
make[1]: Leaving Directory: '/var/tmp/portage/xorg-x11-6.8.0-r4/work/xc'
make:***[World] Error2

Here is the content of /etc/make.conf file:
CFLAGS=-O3 -march=pentium4 -mcpu=i686 -fomit-frame-pointer -pipe -ftracer
CHOST=i686-pc-linux-gnu
CXXFLAGS=${CFLAGS}
MAKEOPTS=-j2
AUTOCLEAN=Yes
CONFIG_PROTECT=-*
USE=aalib acpi cdr codecs esd gnutls gtkhtml guile ruby hal hardened idea \
sasl sse static tcltk xine xinerama threads -quicktime -xmms
Need Help here please!
Thanks
cApTaiN_FaNtAsTiK
_
Des mécanismes de contrôle parental puissants permettent à votre enfant de 
découvrir tout ce qu’Internet a à offrir. 
http://join.msn.com/?pgmarket=fr-capage=features/parentalST=1xAPID=1983DI=2043 
Commencez dès maintenant à profiter de tous les avantages de MSN Premium et 
obtenez les deux premiers mois GRATUITS*.

--
gentoo-user@gentoo.org mailing list


Re: [gentoo-user] Xorg Compiling Failure

2005-02-04 Thread Jason Cooper
Captain FantastiK ([EMAIL PROTECTED]) scribbled:
 
 Hi
 
 I tried many times compiling xorg but it was always ending with the same 
 error message:
 
 ...
 collect2: ld returned 1 exit status
 make[4]: ***[Xorg] Error 1
 make[4]: Leaving Directory: 
 '/var/tmp/portage/xorg-x11-6.8.0-r4/work/xc/programs/Xserver'
 make[3]: ***[all] Error 2
 make[3]: Leaving Directory: 
 '/var/tmp/portage/xorg-x11-6.8.0-r4/work/xc/programs'
 make[2]: ***[all] Error 2
 make[2]: Leaving Directory: '/var/tmp/portage/xorg-x11-6.8.0-r4/work/xc'
 make[1]: ***[World] Error 2
 make[1]: Leaving Directory: '/var/tmp/portage/xorg-x11-6.8.0-r4/work/xc'
 make:***[World] Error2

Need about 15 to 20 more lines above this... All that can be seen from
this is that you have a linker error.  Chances are you need to run
'fix_libtool_files.sh' with a version of gcc as an argument.  Run a
search of gentoo-user for that and it should explain how to use it.

hth,

Cooper.

--
gentoo-user@gentoo.org mailing list



Re: [gentoo-user] Xorg Compiling Failure

2005-02-04 Thread Damian Kolkowski
* Captain FantastiK [EMAIL PROTECTED] [2005-02-04 16:22]:
 CFLAGS=-O3 -march=pentium4 -mcpu=i686 -fomit-frame-pointer -pipe -ftracer

Use this instead:
-O2 -march=pentium4 -formit-frame-pointer

Yours CFLAGS are wrong, You need to use onlu one (mcpu or marcg), the last one
are used.

P.S. fix_libtool_files.sh ;-)

-- 
### Damian Kokowski (dEiMoS) ## http://kolkowski.no-ip.org/ ###
# echo teb.cv-ba.vxfjbxybx.anvznq | rot13 | rev | sed s/\\./@/ #

--
gentoo-user@gentoo.org mailing list



Re: [gentoo-user] Xorg Compiling Failure

2005-02-04 Thread Captain FantastiK
HI
I wanted know if  this compile error would be saved by portage on a log 
file?


cApTaiN_FaNtAsTiK


From: Jason Cooper [EMAIL PROTECTED]
Reply-To: [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Subject: Re: [gentoo-user] Xorg Compiling Failure
Date: Fri, 4 Feb 2005 09:04:59 -0500
Captain FantastiK ([EMAIL PROTECTED]) scribbled:

 Hi

 I tried many times compiling xorg but it was always ending with the same
 error message:

 ...
 collect2: ld returned 1 exit status
 make[4]: ***[Xorg] Error 1
 make[4]: Leaving Directory:
 '/var/tmp/portage/xorg-x11-6.8.0-r4/work/xc/programs/Xserver'
 make[3]: ***[all] Error 2
 make[3]: Leaving Directory:
 '/var/tmp/portage/xorg-x11-6.8.0-r4/work/xc/programs'
 make[2]: ***[all] Error 2
 make[2]: Leaving Directory: '/var/tmp/portage/xorg-x11-6.8.0-r4/work/xc'
 make[1]: ***[World] Error 2
 make[1]: Leaving Directory: '/var/tmp/portage/xorg-x11-6.8.0-r4/work/xc'
 make:***[World] Error2
Need about 15 to 20 more lines above this... All that can be seen from
this is that you have a linker error.  Chances are you need to run
'fix_libtool_files.sh' with a version of gcc as an argument.  Run a
search of gentoo-user for that and it should explain how to use it.
hth,
Cooper.
--
gentoo-user@gentoo.org mailing list
_
Gardez le contrôle grâce à la protection contre les fenêtres pop-up 
articulée sur la technologie brevetée Microsoft SmartScreen 
http://join.msn.com/?pgmarket=fr-capage=features/popup Commencez dès 
maintenant à profiter de tous les avantages de MSN Premium et obtenez les 
deux premiers mois GRATUITS*.

--
gentoo-user@gentoo.org mailing list


Re: [gentoo-user] Xorg Compiling Failure

2005-02-04 Thread Karsten Baumgarten
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
Captain FantastiK wrote:
| HI
|
| I wanted know if  this compile error would be saved by portage on a log
| file?
Not by default. You can enable logging by adding the following to your
/etc/make.conf:
PORT_LOGDIR=/var/log/portage
Regards,
Karsten
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.2.6 (GNU/Linux)
Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org
iD8DBQFCA74igUNlsZQzobwRAisAAKC++n4bQD7sfhI5PF8Zun+o95xeQgCfcCHV
nkmtkkbRV8yO8Jt163DlfcQ=
=gpAX
-END PGP SIGNATURE-
--
gentoo-user@gentoo.org mailing list


Re: [gentoo-user] Xorg Compiling Failure

2005-02-04 Thread Tero Grundström
On Fri, 4 Feb 2005, Damian Kolkowski wrote:

 * Captain FantastiK [EMAIL PROTECTED] [2005-02-04 16:22]:
  CFLAGS=-O3 -march=pentium4 -mcpu=i686 -fomit-frame-pointer -pipe -ftracer

 Use this instead:
 -O2 -march=pentium4 -formit-frame-pointer

 Yours CFLAGS are wrong, You need to use onlu one (mcpu or marcg), the last one
 are used.

I might be wrong but I believe that, in the case of mcpu and march, both
are used.

Therefore where

-mcpu=pentium4
would generate code that is compatible with processors = i386

-march=i686 -mcpu=pentium4
would generate code that works with all i686 compatible processors but
also takes advantage of most pentium4 specific features.

--
T.G.

--
gentoo-user@gentoo.org mailing list



Re: [gentoo-user] Xorg Compiling Failure

2005-02-04 Thread Boyd Stephen Smith Jr.
On Friday 04 February 2005 10:13 am, Damian Kolkowski 
[EMAIL PROTECTED] wrote:
 * Captain FantastiK [EMAIL PROTECTED] [2005-02-04 16:22]:
  CFLAGS=-O3 -march=pentium4 -mcpu=i686 -fomit-frame-pointer -pipe
  -ftracer

 Use this instead:
 -O2 -march=pentium4 -formit-frame-pointer

 Yours CFLAGS are wrong, You need to use onlu one (mcpu or marcg), the
 last one are used.

That's incorrect.

-march=arch produces code that will only work on that architecture.  For 
example, it may use MMX, SSE, or 3dNow operations.  It also includes the 
optimizations performed by -mcpu=arch.

-mcpu=cpu (Previously -mtune=cpu) produces code that will work on any 
architecture (within the limits of this gcc binary) but performs 
instruction scheduling to optimize for a certain CPU.

For CFLAGS in make.conf, I suggest using both, just in case a certain 
ebuild / makefile strips out -march, that way you still get the -mcpu 
optimizations.

From info gcc: (I have gcc 3.4.3 installed)
`-mtune=CPU-TYPE'
 Tune to CPU-TYPE everything applicable about the generated code,
 except for the ABI and the set of available instructions.

`-march=CPU-TYPE'
 Generate instructions for the machine type CPU-TYPE.  The choices
 for CPU-TYPE are the same as for `-mtune'.  Moreover, specifying
 `-march=CPU-TYPE' implies `-mtune=CPU-TYPE'.

`-mcpu=CPU-TYPE'
 A deprecated synonym for `-mtune'.

(Looks like I had -mtune and -mcpu backwards.)

-- 
Boyd Stephen Smith Jr.
[EMAIL PROTECTED]
ICQ: 514984 YM/AIM: DaTwinkDaddy

--
gentoo-user@gentoo.org mailing list