Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 183557 - handbook section 5.d references -mcpu instead -mtune
Summary: handbook section 5.d references -mcpu instead -mtune
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: x86 Linux
: High major (vote)
Assignee: nm (RETIRED)
URL: http://www.gentoo.org/doc/en/handbook...
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-06-28 17:36 UTC by Dullin Panuru
Modified: 2007-06-29 04:37 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Dullin Panuru 2007-06-28 17:36:51 UTC
The freeglut ebuild doesn't seem to like the -mcpu option telling that is is deprecated and then a little latter fails to build the package. 

Removing it from my CFLAGS solved the problem.

Would it be better to remove it's reference in the Gentoo handbook?

Reproducible: Always

Steps to Reproduce:
1.Build minimal system (no big DE)
2.emerge -avt xfce4 xscreensaver
3.Wait and it fails at freeglut

Actual Results:  
The ebuild of freeglut failed

Expected Results:  
Remove the -mcpu flag in CFLAG of /etc/make.conf

I don't have the build.log since I didn't back it up before trying my solution.
Comment 1 Jakub Moc (RETIRED) gentoo-dev 2007-06-28 18:01:01 UTC
You should use mtune, not mcpu. See man gcc.
Comment 2 Dullin Panuru 2007-06-28 18:14:41 UTC
(In reply to comment #1)
> You should use mtune, not mcpu. See man gcc.
> 

I know that now, the problem is that it is referenced in the gentoo handbook.
Comment 3 Carsten Lohrke (RETIRED) gentoo-dev 2007-06-28 19:42:33 UTC
indeed
Comment 4 Carsten Lohrke (RETIRED) gentoo-dev 2007-06-28 19:45:41 UTC
And it would probably better only to advise -march. Anyone who wants to support multile cpu's can find out about -mtune himself.
Comment 5 Jan Kundrát (RETIRED) gentoo-dev 2007-06-28 19:50:02 UTC
Are you sure that quite innocent gcc varning about deprecated option made the
whole process fail?
Comment 6 nm (RETIRED) gentoo-dev 2007-06-29 04:37:17 UTC
Using -mcpu will not make the compile fail. However, I did fix it in the handbook.
Comment 7 nm (RETIRED) gentoo-dev 2007-06-29 04:37:31 UTC
Fixed in CVS as said earlier.