Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Make.conf problem!
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Unsupported Software
View previous topic :: View next topic  
Author Message
yellowhat
Guru
Guru


Joined: 10 Sep 2008
Posts: 500

PostPosted: Mon Oct 06, 2008 6:31 pm    Post subject: Make.conf problem! Reply with quote

Hi.
Since I installed Gentoo for the first time on my pc I am searching for the right configurationn for the make.conf file. Now I am using this:
Code:

CHOST="i686-pc-linux-gnu"
CFLAGS="-march=athlon-xp -O2 -pipe -fomit-frame-pointer"
CXXFLAGS="${CFLAGS}"
MAKEOPTS="-j3"

ACCEPT_KEYWORDS="x86"
AUTOCLEAN="yes"

# Directory
PORTDIR_OVERLAY="/usr/local/portage"
PORTAGE_TMPFS="/dev/shm"

FEATURES="sandbox ccache"
CCACHE_SIZE="2G"
CCACHE_DIR="/var/tmp/ccache"

# Mirror
GENTOO_MIRRORS="http://gentoo.osuosl.org/ "
SYNC="rsync://rsync.gentoo.org/gentoo-portage"

# USE
#------------------------
USE="X -qt3 -qt4 -arts -kde dbus dvd alsa cdr gtk gnome hal branding hddtemp cairo jpeg tiff png svg gif a52 avi mpeg xv xine win32codecs"
#-------------------------

INPUT_DEVICES="keyboard mouse"

VIDEO_CARDS="fglrx vesa"

LINGUAS="it"


The problems are about the cflags and use options.
- I read on the gentoo wiki that the safe cflags for my CPU (See the signature) is this "-march=athlon-xp -O2 -pipe -fomit-frame-pointer", but I am not sure, so I begin to search on internet but I did not find something for my CPU. May I have some advice?
I am running GCC 4.3.2.
What about the "-march=native" option?
- For the USE option this that I am using I think it is good but I would have some advice.
_________________
Gentoo Linux ~amd64, Kernel 4.5.3, Enermax 400W, Intel i7-3770, DDR3 8GB, Sapphire HD6870
Back to top
View user's profile Send private message
ianw1974
Guru
Guru


Joined: 18 Oct 2006
Posts: 387
Location: UK and Poland

PostPosted: Mon Oct 06, 2008 6:42 pm    Post subject: Reply with quote

Are you using the Gentoo x86 install? Or the x86_64?

If x86 (32bit), then you'll want as you posted. Otherwise you'll want:

Code:
-march=athlon64 -O2 -pipe


for 64 bit. In all honesty, you don't need to add the -fomit-frame-pointer as it is automatically added now anyway.
_________________
Ian Walker

Light travels faster than sound. This is why some people appear bright until you hear them speak.........

Linux Systems Limited | Masternode Monitoring
Back to top
View user's profile Send private message
NeddySeagoon
Administrator
Administrator


Joined: 05 Jul 2003
Posts: 43012
Location: 56N 3W

PostPosted: Mon Oct 06, 2008 6:44 pm    Post subject: Reply with quote

yellowhat,

Thats a 64 bit CPU and you have a 32 bit install.

Your make.conf does not tell the whole story. It only adds or subtracts things from your profile.
To see all your settings, please post
Code:
emerge --info


march=native is new for gcc-4.3 it asks gcc to work out your march.

My view is that its a setting to be avoided as it cannot be used if you use distcc or icecream to spread your compiles over several systems.
_________________
Regards,

NeddySeagoon

Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail.
Back to top
View user's profile Send private message
yellowhat
Guru
Guru


Joined: 10 Sep 2008
Posts: 500

PostPosted: Mon Oct 06, 2008 6:44 pm    Post subject: Reply with quote

I am running Gentoo x86.

What about -march=native?
_________________
Gentoo Linux ~amd64, Kernel 4.5.3, Enermax 400W, Intel i7-3770, DDR3 8GB, Sapphire HD6870
Back to top
View user's profile Send private message
a.b.
Apprentice
Apprentice


Joined: 23 Mar 2008
Posts: 218
Location: Anus Mundi, Germany

PostPosted: Mon Oct 06, 2008 6:46 pm    Post subject: Reply with quote

yellowhat wrote:
I am running Gentoo x86.

What about -march=native?

Use it, it always fits.
Back to top
View user's profile Send private message
yellowhat
Guru
Guru


Joined: 10 Sep 2008
Posts: 500

PostPosted: Mon Oct 06, 2008 6:47 pm    Post subject: Reply with quote

But native is better or worst than athlon-xp?
Is native compatible with all packages? Or may I have some error?
Especially on GCC 4.3.x

Thanks
_________________
Gentoo Linux ~amd64, Kernel 4.5.3, Enermax 400W, Intel i7-3770, DDR3 8GB, Sapphire HD6870
Back to top
View user's profile Send private message
NeddySeagoon
Administrator
Administrator


Joined: 05 Jul 2003
Posts: 43012
Location: 56N 3W

PostPosted: Mon Oct 06, 2008 6:58 pm    Post subject: Reply with quote

yellowhat,

march=native is no worse than march=athlon-xp
It will allow gcc to use any new 32 bit instructions in your CPU that the athlon-xp does not have. It makes the code produced less portable than otherwise. If you only run the code compiled on that system on that system and do not use distcc and friends, march=naitve works.
Its new to gcc 4.3, so it will fail if you need to use an older gcc for anything.
_________________
Regards,

NeddySeagoon

Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail.
Back to top
View user's profile Send private message
yellowhat
Guru
Guru


Joined: 10 Sep 2008
Posts: 500

PostPosted: Mon Oct 06, 2008 7:08 pm    Post subject: Reply with quote

Ok, thanks. Now I know something more.

And about the USE. Can you post your USE flags?
_________________
Gentoo Linux ~amd64, Kernel 4.5.3, Enermax 400W, Intel i7-3770, DDR3 8GB, Sapphire HD6870
Back to top
View user's profile Send private message
NeddySeagoon
Administrator
Administrator


Joined: 05 Jul 2003
Posts: 43012
Location: 56N 3W

PostPosted: Mon Oct 06, 2008 7:13 pm    Post subject: Reply with quote

yellowhat,

My USE flags won't help you as they are tuned to what I want to do.
If you really want to see them, there is an image of my laptop here but they are different to my main system.

Code:
emerge ufed
and use it to see and change your USE flags
_________________
Regards,

NeddySeagoon

Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Unsupported Software 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