Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Emerge compile confusion
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Portage & Programming
View previous topic :: View next topic  
Author Message
cazze
Apprentice
Apprentice


Joined: 26 Mar 2003
Posts: 155
Location: Brussels - Belgium

PostPosted: Wed Mar 26, 2003 10:41 pm    Post subject: Emerge compile confusion Reply with quote

hi,

i did an emerge of Xfree86. In my USE flags i specified -march=i586

If i look to what Xfree86 tells me, i got

...
Build Operating System : Linux 2.4.20 i686
...

In the mean time i changed from kernel too.

Do i have to recompile XFree86 on my new kernel?
Why does it tells me i686?

If i have to recompile XFree86, how can i do this with emerge?

Thx

A gentoo newbie :roll:
Back to top
View user's profile Send private message
aja
l33t
l33t


Joined: 26 Aug 2002
Posts: 705
Location: Edmonton, Canada

PostPosted: Wed Mar 26, 2003 10:45 pm    Post subject: Reply with quote

I will be corrected if I am wrong, but the USE flags specify the processor that you are compiling for, whereas XFree is reporting the processor that you have. As i586 code will run on an i686 (but not necessarily vice-versa), you should have no problems, but your code may not be quite as optimised as it could be.

You may want to consider modifying your flags to more closely align with your actual processor to take advantage of optimisations available to you. I probably wouldn't personally recompile XFree until the next upgrade.
Back to top
View user's profile Send private message
ebrostig
Bodhisattva
Bodhisattva


Joined: 20 Jul 2002
Posts: 3152
Location: Orlando, Fl

PostPosted: Wed Mar 26, 2003 10:46 pm    Post subject: Reply with quote

I guess you meant that your CFLAGS include the -march entry, not the USE flag?

Some ebuilds, XFree86 is one of them, changes the flags themselves. The reason for this is that there are bugs popping up if some specific flags are used. The flags may differ from ebuild to ebuild.

The best thing to do when you see such athing is to read the ebuild file. In this case, /usr/portage/x11-base/xfree/xfree-4.3.0-r1.ebuild
There are lots of comments in this file that explains why they filter certain flags.

Hope this helps to clearify the issue :)

Erik
_________________
'Yes, Firefox is indeed greater than women. Can women block pops up for you? No. Can Firefox show you naked women? Yes.'
Back to top
View user's profile Send private message
aja
l33t
l33t


Joined: 26 Aug 2002
Posts: 705
Location: Edmonton, Canada

PostPosted: Wed Mar 26, 2003 10:48 pm    Post subject: Reply with quote

Hmmm... Maybe I'm wrong.... I tend to trust Erik.....:-)
Back to top
View user's profile Send private message
cazze
Apprentice
Apprentice


Joined: 26 Mar 2003
Posts: 155
Location: Brussels - Belgium

PostPosted: Wed Mar 26, 2003 11:15 pm    Post subject: Reply with quote

thx for the quick reply!

And yes it was in the CFLAGS and nat in the USE :oops:


As i see it is better that i don't touch on the CFLAGS for Xfree86 (especialy me who am a newbie in linux :? )
i got an other little question now that i looked in the portage tree,

i have xfree 4.2.1-r2 installed but i see that xfree 4.3.0-r1 is available, why do i don't see it if i do an emerge search xfree?
it says that the latest version available is 4.2.1-r2

kammicazze
Back to top
View user's profile Send private message
aja
l33t
l33t


Joined: 26 Aug 2002
Posts: 705
Location: Edmonton, Canada

PostPosted: Wed Mar 26, 2003 11:25 pm    Post subject: Reply with quote

4.3.0-r1 is in portage, but currently masked.

Try

Code:

ACCEPT_KEYWORDS="~x86" emerge -s xfree


To see it. Lose the -s to install it (warning - probably masked for a reason, if only testing, YMMV).
Back to top
View user's profile Send private message
cazze
Apprentice
Apprentice


Joined: 26 Mar 2003
Posts: 155
Location: Brussels - Belgium

PostPosted: Thu Mar 27, 2003 10:29 am    Post subject: Reply with quote

thx,

i feel a bit less stupid now :wink:

kammicazze
_________________
Required: Windows 95 or better, so i installed Linux!!!
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Portage & Programming 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