Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Core 2 duo - architecture, CHOST and CFLAGS
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
qubaaa
Tux's lil' helper
Tux's lil' helper


Joined: 23 Dec 2006
Posts: 148

PostPosted: Sat Dec 30, 2006 12:27 pm    Post subject: Core 2 duo - architecture, CHOST and CFLAGS Reply with quote

I have intel Core 2 Duo. I want to install Gentoo and i don't know exactly which architecture (x86, i686 or amd64) should i choose? I read many topics about that, but I haven't found a good answer.

Then how should I configure my cflags? Gentoo-wiki says:
Code:
CHOST="x86_64-pc-linux-gnu"
CFLAGS="-O2 -march=nocona -fomit-frame-pointer -pipe"
CXXFLAGS="${CFLAGS}"

is it good? :)
Back to top
View user's profile Send private message
markkuk
Guru
Guru


Joined: 29 Nov 2002
Posts: 446

PostPosted: Sat Dec 30, 2006 12:35 pm    Post subject: Reply with quote

If you want a 32-bit installation choose i686, for 64-bit choose amd64. The CFLAGS you quoted are right for 64-bit (amd64) installation.
Back to top
View user's profile Send private message
qubaaa
Tux's lil' helper
Tux's lil' helper


Joined: 23 Dec 2006
Posts: 148

PostPosted: Sat Dec 30, 2006 12:42 pm    Post subject: Reply with quote

What is better, 64 or 32? :) Are any problems with 64bt?
Back to top
View user's profile Send private message
sonicbhoc
Veteran
Veteran


Joined: 24 Oct 2005
Posts: 1805
Location: In front of the computer screen

PostPosted: Sat Dec 30, 2006 1:37 pm    Post subject: Reply with quote

mostly all of the packages in portage work with 64-bit. Set multilib in your useflags, and you can have both 32 and 64 bit libraries. I haven't tried this myself yet, as I have no 64 bit processors lying around my house, but lots of other people do it so whatever.
_________________
I'm too lazy to keep this stupid signature up to date, so here's something more interesting:
My friend Hetdegon can draw if you ask me.
Now using PClinuxOS on my laptop and Gentoo on my desktop and new laptop.
Back to top
View user's profile Send private message
qubaaa
Tux's lil' helper
Tux's lil' helper


Joined: 23 Dec 2006
Posts: 148

PostPosted: Sat Dec 30, 2006 2:27 pm    Post subject: Reply with quote

ok I take 64bit. Also amd64 and:
Code:
CHOST="x86_64-pc-linux-gnu"
CFLAGS="-O2 -march=nocona -fomit-frame-pointer -pipe"
CXXFLAGS="${CFLAGS}"

How should I add this multilib for 64 and 32-bit?

Hmm, and http://www.gentoo.org/doc/en/handbook/handbook-amd64.xml - this is handbook for me? ;-]
It was the last question - thanks for help.
Back to top
View user's profile Send private message
bubbl07
Apprentice
Apprentice


Joined: 06 Feb 2005
Posts: 237
Location: New York City

PostPosted: Sat Dec 30, 2006 3:26 pm    Post subject: Reply with quote

qubaaa wrote:
How should I add this multilib for 64 and 32-bit?

Hmm, and http://www.gentoo.org/doc/en/handbook/handbook-amd64.xml - this is handbook for me? ;-]
It was the last question - thanks for help.

multilib is enabled in the default profile (2006.1/amd64). You can change your profile by pointing the /etc/make.profile symlink elsewhere.

And yes, that is the correct guide to use.

Welcome to gentoo!
Back to top
View user's profile Send private message
streamkid
Tux's lil' helper
Tux's lil' helper


Joined: 17 Jul 2007
Posts: 82
Location: Greece

PostPosted: Thu Jul 26, 2007 3:37 pm    Post subject: 32bit vs 64bit and appropriate flags Reply with quote

Searched but didn't find anything equal..
I 'm getting a laptop with core2duo (7100) tomorrow and i 'm thinking of compiling a 64bit gentoo instead of 32bit...
Will be a big difference? Are there any compatibility issues?

Also, i found these flags, do you have any recommendations, etc.?
32bit:
CHOST="i686-pc-linux-gnu"
CFLAGS="-march=pentium-m -msse3 -O2 -pipe -fomit-frame-pointer"
-or-
CFLAGS="-march=prescott -O2 -pipe -fomit-frame-pointer"
CXXFLAGS="${CFLAGS}"

64bit:
CHOST="x86_64-pc-linux-gnu"
CFLAGS="-march=nocona -O2 -pipe"
CXXFLAGS="${CFLAGS}"

Thanks in advance :)
Back to top
View user's profile Send private message
mattsteven
Apprentice
Apprentice


Joined: 27 Oct 2003
Posts: 240
Location: Your Planet

PostPosted: Thu Jul 26, 2007 3:42 pm    Post subject: Reply with quote

You'll usually do best stability-wise to use the CFLAGS that come with your stage tarball.

64 bit will give you anywhere from fractional performance gains to 60% faster operation depending on what you do. You will be able to run most 32 bit apps using the compat layer, but some things like binaries, browser plugins and some codecs for multimedia may be problematic.

Overall I am content with having switched to 64 bit.
_________________
Matthew Steven
Linux-only desktop since 1998
Graying hair since 2006
Back to top
View user's profile Send private message
Clete2
Guru
Guru


Joined: 09 Aug 2003
Posts: 530
Location: Bloomington, Illinois

PostPosted: Thu Jul 26, 2007 4:03 pm    Post subject: Reply with quote

I just switched over to 64-bit and I have yet to have any 64-bit specific problems. It's running smoothly and it's quite 'zippy.'

I am using CFLAGS="-march=nocona -Os -pipe -fomit-frame-pointer'

I will be changing to -march=core2 when GCC 4.3 is out. I don't know what the difference will be, though.
_________________
My Blog


Last edited by Clete2 on Fri Jul 27, 2007 12:02 am; edited 1 time in total
Back to top
View user's profile Send private message
nixnut
Bodhisattva
Bodhisattva


Joined: 09 Apr 2004
Posts: 10974
Location: the dutch mountains

PostPosted: Thu Jul 26, 2007 4:04 pm    Post subject: Reply with quote

merged above three posts here.
_________________
Please add [solved] to the initial post's subject line if you feel your problem is resolved. Help answer the unanswered

talk is cheap. supply exceeds demand
Back to top
View user's profile Send private message
streamkid
Tux's lil' helper
Tux's lil' helper


Joined: 17 Jul 2007
Posts: 82
Location: Greece

PostPosted: Thu Jul 26, 2007 4:55 pm    Post subject: Reply with quote

I read something like flash isn't going to work, etc..
That doesn't happen, right?
It 's my first 64bit and i don't know what will happen.. :)
I 'll give it a try since you say i 'll have such performance..


btw, i mainly use firefox, gaim, gvim and gimp, and... beryl. Should not have problem with these, right? :)

Thanks all of you for your answers!!
Back to top
View user's profile Send private message
mattsteven
Apprentice
Apprentice


Joined: 27 Oct 2003
Posts: 240
Location: Your Planet

PostPosted: Thu Jul 26, 2007 5:55 pm    Post subject: Reply with quote

streamkid wrote:
I read something like flash isn't going to work, etc..
That doesn't happen, right?


It does.

The workaround is to install mozilla-firefox-bin which is a 32 bit browser.
_________________
Matthew Steven
Linux-only desktop since 1998
Graying hair since 2006
Back to top
View user's profile Send private message
streamkid
Tux's lil' helper
Tux's lil' helper


Joined: 17 Jul 2007
Posts: 82
Location: Greece

PostPosted: Thu Jul 26, 2007 6:06 pm    Post subject: Reply with quote

Eek.. I want a 64bit firefox..
I think i can still live without flash.. :D
Thanks for the help :)
Back to top
View user's profile Send private message
dayul
Apprentice
Apprentice


Joined: 02 Jun 2004
Posts: 180
Location: Blackpool, England

PostPosted: Thu Jul 26, 2007 7:41 pm    Post subject: Reply with quote

streamkid wrote:
Eek.. I want a 64bit firefox..
I think i can still live without flash.. :D
Thanks for the help :)


For 64-bit you have the option of installing gnash, it is still in active development, but will let you view at least some flash movies, and has a firefox plugin.
_________________
Mailtc- system tray mail checker.
Back to top
View user's profile Send private message
wyvern5
Apprentice
Apprentice


Joined: 11 Nov 2006
Posts: 161

PostPosted: Thu Jul 26, 2007 8:25 pm    Post subject: Reply with quote

I use nspluginwrapper with 64-bit firefox and real adobe flash and, with the latest flash version, it works great. (Previous flash versions had issues if you left a window with flash open and then switched desktops.)
Back to top
View user's profile Send private message
Paapaa
l33t
l33t


Joined: 14 Aug 2005
Posts: 955
Location: Finland

PostPosted: Thu Jul 26, 2007 9:51 pm    Post subject: Reply with quote

nspluginwrapper is the way to go. You get 64-bit firefox and the real Flash player.

It is unbelievable that Adobe can't finish a 64-bit version in any decent time.
_________________
Paludis, the way packages are meant to be managed.
Back to top
View user's profile Send private message
cyrillic
Watchman
Watchman


Joined: 19 Feb 2003
Posts: 7313
Location: Groton, Massachusetts USA

PostPosted: Fri Jul 27, 2007 1:38 am    Post subject: Reply with quote

Paapaa wrote:
It is unbelievable that Adobe can't finish a 64-bit version in any decent time.

That is because there isn't enough demand for it.

Hardly anybody runs 64bit Windows, and Linux is just an imitation of Windows, right ? 8O
Back to top
View user's profile Send private message
Paapaa
l33t
l33t


Joined: 14 Aug 2005
Posts: 955
Location: Finland

PostPosted: Fri Jul 27, 2007 9:13 am    Post subject: Reply with quote

cyrillic wrote:
Paapaa wrote:
It is unbelievable that Adobe can't finish a 64-bit version in any decent time.

That is because there isn't enough demand for it.

Hardly anybody runs 64bit Windows, and Linux is just an imitation of Windows, right ? 8O


Yes, but according to Adobe they have been "working on" 64-bit Flash now for over 6 months. More and more people use 64-bit systems now that Vista supports it too. But you are correct: most people use 32-bit version.
_________________
Paludis, the way packages are meant to be managed.
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