View previous topic :: View next topic |
Author |
Message |
QuantumFunk n00b
Joined: 06 Jan 2004 Posts: 18
|
Posted: Thu Jan 20, 2005 6:57 am Post subject: Centrino make.conf |
|
|
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 |
|
|
QuantumFunk n00b
Joined: 06 Jan 2004 Posts: 18
|
Posted: Thu Jan 20, 2005 7:26 am Post subject: |
|
|
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 |
|
|
kmj0377 Guru
Joined: 26 Sep 2003 Posts: 397
|
Posted: Thu Jan 20, 2005 8:07 am Post subject: |
|
|
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 |
|
|
unix l33t
Joined: 06 Jul 2003 Posts: 615 Location: Dürnten ZH Switzerland
|
|
Back to top |
|
|
QuantumFunk n00b
Joined: 06 Jan 2004 Posts: 18
|
Posted: Thu Jan 20, 2005 8:49 am Post subject: |
|
|
Yup, that was the problem... thanks boys. Its working now. |
|
Back to top |
|
|
kimchi_sg Advocate
Joined: 26 Nov 2004 Posts: 2969
|
Posted: Thu Jan 20, 2005 4:00 pm Post subject: |
|
|
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 |
|
|
Enlight Advocate
Joined: 28 Oct 2004 Posts: 3519 Location: Alsace (France)
|
Posted: Thu Jan 20, 2005 4:04 pm Post subject: |
|
|
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 |
|
|
Jerem Apprentice
Joined: 11 Jun 2004 Posts: 177
|
Posted: Sun Feb 13, 2005 12:53 pm Post subject: |
|
|
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 |
|
|
Hauser l33t
Joined: 27 Dec 2003 Posts: 650 Location: 4-dimensional hyperplane
|
Posted: Sun Feb 13, 2005 2:01 pm Post subject: |
|
|
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 |
|
|
|