Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Centrino make.conf
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Installing Gentoo
View previous topic :: View next topic  
Author Message
QuantumFunk
n00b
n00b


Joined: 06 Jan 2004
Posts: 18

PostPosted: Thu Jan 20, 2005 6:57 am    Post subject: Centrino make.conf Reply with quote

So Centrino users, I'm curious to see your make.conf! I'm about to do a stage 1 install on my Dell M600 with a centrino 1.6. What kind of optimizations do you guys use beyond -march=pentium-m?
Back to top
View user's profile Send private message
QuantumFunk
n00b
n00b


Joined: 06 Jan 2004
Posts: 18

PostPosted: Thu Jan 20, 2005 7:26 am    Post subject: Reply with quote

Whoops, I'm having problems compiling gettext during bootstrap. Here's my make.conf
Code:
livecd portage # cat /etc/make.conf
# These settings were set by the catalyst build script that automatically built this stage
# Please consult /etc/make.conf.example for a more detailed example
CFLAGS="-O2 -march=pentium-m -pipe"
CHOST="i686-pc-linux-gnu"
CXXFLAGS="${CFLAGS}"
USE="X acpi aim avi crypt dio divx4linux dvd ethereal ftp gnome gtk2 mmx mpeg -mozilla ncurses opengl pcmcia samba svg usb xine xvid x86"
GENTOO_MIRRORS="http://gentoo.ccccom.com http://gentoo.osuosl.org"
MAKEOPTS="-j2"



and the error
Code:
configure: running /bin/sh './configure' --prefix=/usr  '--prefix=/usr' '--host=i686-pc-linux-gnu' '--mandir=/usr/share/man' '--infodir=/usr/share/info' '--datadir=/usr/share' '--sysconfdir=/etc' '--localstatedir=/var/lib' '--without-included-gettext' '--enable-nls' 'CC=gcc' 'CFLAGS=-O2 -march=pentium-m -pipe' 'CXXFLAGS=-O2 -march=pentium-m -pipe' 'CXX=gcc' 'host_alias=i686-pc-linux-gnu' --cache-file=/dev/null --srcdir=.
configure: WARNING: If you wanted to set the --build type, don't use --host.
    If a cross compiler is detected then cross compile mode will be used.
checking for a BSD-compatible install... /bin/install -c
checking whether build environment is sane... yes
checking for gawk... gawk
checking whether make sets $(MAKE)... yes
checking for i686-pc-linux-gnu-strip... no
checking for strip... strip
checking for i686-pc-linux-gnu-gcc... gcc
checking for C compiler default output... configure: error: C compiler cannot create executables
See `config.log' for more details.
configure: error: /bin/sh './configure' failed for autoconf-lib-link

!!! ERROR: sys-devel/gettext-0.12.1-r2 failed.
!!! Function econf, Line 449, Exitcode 1
!!! econf failed
!!! If you need support, post the topmost build error, NOT this status message.
Back to top
View user's profile Send private message
kmj0377
Guru
Guru


Joined: 26 Sep 2003
Posts: 397

PostPosted: Thu Jan 20, 2005 8:07 am    Post subject: Reply with quote

I'm not certain on this, but -march=pentium-m might require gcc-3.4.x, which the livecd has 3.3.x I believe. So just use pentium3 for the march during the bootstrap.
Back to top
View user's profile Send private message
unix
l33t
l33t


Joined: 06 Jul 2003
Posts: 615
Location: Dürnten ZH Switzerland

PostPosted: Thu Jan 20, 2005 8:09 am    Post subject: Reply with quote

hi a centrino needs -march=pentium-m if you have a gcc-3.4 and -machr=pentium3 if you have gcc-3.3
_________________
Neue Funktionen in Portage 2.0.51 || BBCode Guide
Linux User #379064
Back to top
View user's profile Send private message
QuantumFunk
n00b
n00b


Joined: 06 Jan 2004
Posts: 18

PostPosted: Thu Jan 20, 2005 8:49 am    Post subject: Reply with quote

Yup, that was the problem... thanks boys. Its working now.
Back to top
View user's profile Send private message
kimchi_sg
Advocate
Advocate


Joined: 26 Nov 2004
Posts: 2969

PostPosted: Thu Jan 20, 2005 4:00 pm    Post subject: Reply with quote

QuantumFunk wrote:
Yup, that was the problem... thanks boys. Its working now.

Please edit the title of this topic, and insert [SOLVED] in the title.
Back to top
View user's profile Send private message
Enlight
Advocate
Advocate


Joined: 28 Oct 2004
Posts: 3519
Location: Alsace (France)

PostPosted: Thu Jan 20, 2005 4:04 pm    Post subject: Reply with quote

Stop!!! you've got Gentoo, so take advantage of your system; use -march=pentium3, emerge gcc 3.4 (select it by default) and then change the CFLAG to pentium-m and run the bootstrap.sh
Back to top
View user's profile Send private message
Jerem
Apprentice
Apprentice


Joined: 11 Jun 2004
Posts: 177

PostPosted: Sun Feb 13, 2005 12:53 pm    Post subject: Reply with quote

Well after some testing I can say that pentium-m flag is not worth it.

Pentium-m support is really poor, even in gcc 3.4. Why ? Because GCC 3.4 only considers pentium M as a high frequency i686 CPU and does not
take in consideration some of the pentium-M features, shuch as better branch prediction, etc...

If you want to optimize for your pentium M, use the Intel Compiler (ICC) which fully supports that CPU.

I'm even not sure that -msse ans -msse2 are implied by pentium-m flag.

Therefore I would rather go for pentium3 flag like this:
Code:
"-march=pentium3 -msse2 -pipe ..."


That's what I'm using and my system is faster for some tasks like encoding and so on...
Back to top
View user's profile Send private message
Hauser
l33t
l33t


Joined: 27 Dec 2003
Posts: 650
Location: 4-dimensional hyperplane

PostPosted: Sun Feb 13, 2005 2:01 pm    Post subject: Reply with quote

Jerem wrote:
I'm even not sure that -msse ans -msse2 are implied by pentium-m flag.

Therefore I would rather go for pentium3 flag like this:
Code:
"-march=pentium3 -msse2 -pipe ..."


The gcc man page defines pentium-m as follows:
Code:
pentium-m
        Low power version of Intel Pentium3 CPU with MMX, SSE and SSE2
        instruction set support.  Used by Centrino notebooks.

So I guess -msse and -msse2 are implied by the pentium-m flag.
_________________
AMD Athlon XP 2600+; 512M RAM;
nVidia FX5700LE; Hitachi 120Gb
2.6.9-nitro4, reiser4, linux26-headers+nptl

Do I like to compile everything?
Positive definite!
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Installing Gentoo All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum