View previous topic :: View next topic |
Author |
Message |
qubaaa Tux's lil' helper
Joined: 23 Dec 2006 Posts: 148
|
Posted: Sat Dec 30, 2006 12:27 pm Post subject: Core 2 duo - architecture, CHOST and CFLAGS |
|
|
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 |
|
|
markkuk Guru
Joined: 29 Nov 2002 Posts: 446
|
Posted: Sat Dec 30, 2006 12:35 pm Post subject: |
|
|
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 |
|
|
qubaaa Tux's lil' helper
Joined: 23 Dec 2006 Posts: 148
|
Posted: Sat Dec 30, 2006 12:42 pm Post subject: |
|
|
What is better, 64 or 32? Are any problems with 64bt? |
|
Back to top |
|
|
sonicbhoc Veteran
Joined: 24 Oct 2005 Posts: 1805 Location: In front of the computer screen
|
Posted: Sat Dec 30, 2006 1:37 pm Post subject: |
|
|
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 |
|
|
qubaaa Tux's lil' helper
Joined: 23 Dec 2006 Posts: 148
|
Posted: Sat Dec 30, 2006 2:27 pm Post subject: |
|
|
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 |
|
|
bubbl07 Apprentice
Joined: 06 Feb 2005 Posts: 237 Location: New York City
|
Posted: Sat Dec 30, 2006 3:26 pm Post subject: |
|
|
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 |
|
|
streamkid Tux's lil' helper
Joined: 17 Jul 2007 Posts: 82 Location: Greece
|
Posted: Thu Jul 26, 2007 3:37 pm Post subject: 32bit vs 64bit and appropriate flags |
|
|
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 |
|
|
mattsteven Apprentice
Joined: 27 Oct 2003 Posts: 240 Location: Your Planet
|
Posted: Thu Jul 26, 2007 3:42 pm Post subject: |
|
|
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 |
|
|
Clete2 Guru
Joined: 09 Aug 2003 Posts: 530 Location: Bloomington, Illinois
|
Posted: Thu Jul 26, 2007 4:03 pm Post subject: |
|
|
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 |
|
|
nixnut Bodhisattva
Joined: 09 Apr 2004 Posts: 10974 Location: the dutch mountains
|
Posted: Thu Jul 26, 2007 4:04 pm Post subject: |
|
|
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 |
|
|
streamkid Tux's lil' helper
Joined: 17 Jul 2007 Posts: 82 Location: Greece
|
Posted: Thu Jul 26, 2007 4:55 pm Post subject: |
|
|
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 |
|
|
mattsteven Apprentice
Joined: 27 Oct 2003 Posts: 240 Location: Your Planet
|
Posted: Thu Jul 26, 2007 5:55 pm Post subject: |
|
|
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 |
|
|
streamkid Tux's lil' helper
Joined: 17 Jul 2007 Posts: 82 Location: Greece
|
Posted: Thu Jul 26, 2007 6:06 pm Post subject: |
|
|
Eek.. I want a 64bit firefox..
I think i can still live without flash..
Thanks for the help |
|
Back to top |
|
|
dayul Apprentice
Joined: 02 Jun 2004 Posts: 180 Location: Blackpool, England
|
Posted: Thu Jul 26, 2007 7:41 pm Post subject: |
|
|
streamkid wrote: | Eek.. I want a 64bit firefox..
I think i can still live without flash..
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 |
|
|
wyvern5 Apprentice
Joined: 11 Nov 2006 Posts: 161
|
Posted: Thu Jul 26, 2007 8:25 pm Post subject: |
|
|
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 |
|
|
Paapaa l33t
Joined: 14 Aug 2005 Posts: 955 Location: Finland
|
Posted: Thu Jul 26, 2007 9:51 pm Post subject: |
|
|
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 |
|
|
cyrillic Watchman
Joined: 19 Feb 2003 Posts: 7313 Location: Groton, Massachusetts USA
|
Posted: Fri Jul 27, 2007 1:38 am Post subject: |
|
|
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 ? |
|
Back to top |
|
|
Paapaa l33t
Joined: 14 Aug 2005 Posts: 955 Location: Finland
|
Posted: Fri Jul 27, 2007 9:13 am Post subject: |
|
|
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 ? |
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 |
|
|
|