Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 152306 - Portage needs to check and make sure compiler flags are valid
Summary: Portage needs to check and make sure compiler flags are valid
Status: RESOLVED INVALID
Alias: None
Product: Portage Development
Classification: Unclassified
Component: Enhancement/Feature Requests (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Portage team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-10-21 17:06 UTC by Reuben Martin
Modified: 2006-10-22 03:37 UTC (History)
0 users

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 Reuben Martin 2006-10-21 17:06:21 UTC
I ran into a nastly little problem the other day because I had a type in one of my CXXFLAGS within /etc/make.conf

This caused a configuration script to fail when testing strings.h and conclude that I did not have a functional C++ compiler since it had no way to tell the difference between an error given from an invalid C++ flag, and a regualr build error.

Needless to say, I was pulling my hair out for several hours thinking the problem had something to do with either the seach path, the compiler, or glibc.

If others are as bad at spelling as I am, this could lead to "red herring bugs" being filed in the bug tracker that shouldn't be there.

There should probably be a means for portage to check the build settings to make sure everything is valid.
Comment 1 Alec Warner (RETIRED) archtester gentoo-dev Security 2006-10-21 17:08:26 UTC
Portage is not a spell checker.
Comment 2 Zac Medico gentoo-dev 2006-10-21 17:21:44 UTC
(In reply to comment #0)
> There should probably be a means for portage to check the build settings to
> make sure everything is valid.

Portage already checks lots of things, but CFLAGS validation would be out of it's scope.  Lower level things that affect the build system belong in the ebuild and/or eclasses.
Comment 3 Simon Stelling (RETIRED) gentoo-dev 2006-10-22 03:37:57 UTC
The AMD64 profiles already do this. If you want the checks on your system, copy /usr/portage/profiles/default-linux/amd64/profile.bashrc to /etc/portage/bashrc. It also checks for a bunch of other known-to-be-harmful flags.