Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Mesa trouble compiling 10.2.8
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
ballsystemlord
Tux's lil' helper
Tux's lil' helper


Joined: 26 Feb 2013
Posts: 82

PostPosted: Wed Jan 14, 2015 7:21 pm    Post subject: Mesa trouble compiling 10.2.8 Reply with quote

I'm having trouble compiling mesa 10.2.8.
emerge info bpaste.net/show/7fb42e9e1e07
Build log bpaste.net/show/b36faa07f2ec
Enviroment bpaste.net/show/b6ea6ef18554
emerge -pqv mesa bpaste.org/show/274f9cdedfc7

Thanks
Back to top
View user's profile Send private message
Jaglover
Watchman
Watchman


Joined: 29 May 2005
Posts: 7089
Location: Saint Amant, Acadiana

PostPosted: Thu Jan 15, 2015 12:01 am    Post subject: Reply with quote

Quote:
CFLAGS="-O2 -march=native -mmmx -msse -mssse3 -msse4.1 -msse4.2 -mfsgsbase -mxsave -mxsaveopt -mpopcnt -mfxsr -msahf -mrecip=all -minline-stringops-dynamically -mcmodel=medium "


Try again with plain -march=native ?
_________________
Please learn how to denote units correctly!
Back to top
View user's profile Send private message
ballsystemlord
Tux's lil' helper
Tux's lil' helper


Joined: 26 Feb 2013
Posts: 82

PostPosted: Fri Jan 16, 2015 2:58 pm    Post subject: Reply with quote

I'm assuming that when you said to use only -march=native that you ment _only_ use that flag. I did so and it did compile, so, what breaks when using the others? I mean, a program normally compiles, no matter what flags you use.
Back to top
View user's profile Send private message
mv
Watchman
Watchman


Joined: 20 Apr 2005
Posts: 6281

PostPosted: Fri Jan 16, 2015 6:10 pm    Post subject: Reply with quote

ballsystemlord wrote:
a program normally compiles, no matter what flags you use.

Why do you think so? There are a lot of flags which break a lot of things. There is a reason why all serious gentoo FAQs recommend to set not more than -march=.... and -O2.
You can try to use other flags (there are even some flags which make sense for security reasons), but if you do this, you do it on your own risk: When things break you keep the pieces. Bug reports are usually closed if you use more than the "supported" flags -march=... and -O2.
Back to top
View user's profile Send private message
Ant P.
Watchman
Watchman


Joined: 18 Apr 2009
Posts: 5761

PostPosted: Fri Jan 16, 2015 6:20 pm    Post subject: Reply with quote

Have you considered filing a bug?
Back to top
View user's profile Send private message
ballsystemlord
Tux's lil' helper
Tux's lil' helper


Joined: 26 Feb 2013
Posts: 82

PostPosted: Fri Jan 16, 2015 6:27 pm    Post subject: Reply with quote

Of course I understand that using gcc's -O3 can produce unexpected results, even gcc's docs admit that. But a program should not beak because of a gcc.
Anyways, I figured out, by conquer and divde method, that it's the flag responisible for the failure to compile is -mcmodel=medium. I don't know what would happen if I changed it to something else.
I'd like to report this as a bug to either the mesa or gcc folks, but I'm not certain which I shopuld report it to, do you know? If you don't you may say so and close the thread and I'll try them both and see if I can get a solution,
Thanks, again.
Back to top
View user's profile Send private message
mv
Watchman
Watchman


Joined: 20 Apr 2005
Posts: 6281

PostPosted: Fri Jan 16, 2015 6:34 pm    Post subject: Reply with quote

ballsystemlord wrote:
see if I can get a solution

The solution is not to use unsupported flags. If a project needs them for some architecture, it will add them.
Back to top
View user's profile Send private message
Ant P.
Watchman
Watchman


Joined: 18 Apr 2009
Posts: 5761

PostPosted: Fri Jan 16, 2015 6:53 pm    Post subject: Reply with quote

sigh. You clearly aren't getting the hint in either of these threads.

The code's malfunctioning because YOU TOLD IT TO. Wipe your system completely and reinstall from scratch, this time without using a gazillion ricer ABI-breaking CFLAGS you obviously don't understand. Consider this your first lesson.

And absolutely DO NOT waste either the Mesa or GCC developers' time with such PEBKAC bugs.
Back to top
View user's profile Send private message
ballsystemlord
Tux's lil' helper
Tux's lil' helper


Joined: 26 Feb 2013
Posts: 82

PostPosted: Fri Jan 16, 2015 8:04 pm    Post subject: Reply with quote

Ok, I understand. Just explain one thing:
Why gcc's optimizations can cause problems, they are optimizantions (they might not work, but then again,) they are not intended to break "Correctly" written code. For example: gcc assumes that your program does not expect signed ints to over flow, should that be the case then you can wind up with "Undefined behavoir". So why does it fail? There must be a (good) reason.
Back to top
View user's profile Send private message
mv
Watchman
Watchman


Joined: 20 Apr 2005
Posts: 6281

PostPosted: Fri Jan 16, 2015 9:02 pm    Post subject: Reply with quote

ballsystemlord wrote:
they are not intended to break "Correctly" written code

They are (not "intended to" but "expected to"). Code must be written to satisfy certain additional conditions (not contained in the language standard) that they will compile correctly and that the generated code will behave as intended.
Back to top
View user's profile Send private message
ballsystemlord
Tux's lil' helper
Tux's lil' helper


Joined: 26 Feb 2013
Posts: 82

PostPosted: Fri Jan 16, 2015 9:46 pm    Post subject: Reply with quote

Ok, that explains it, thanks.
You might try this explanation on other users, it is much more sensible then "It's not supported" or "Your doing this in an insane way" :)
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