-
Notifications
You must be signed in to change notification settings - Fork 283
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
use updated config.guess in GCC easyblock #2033
use updated config.guess in GCC easyblock #2033
Conversation
easybuild/easyblocks/g/gcc.py
Outdated
if build_and_host_options and build_and_host_options[0].startswith('--build='): | ||
self.platform_lib = build_and_host_options[0].split('=', 1)[1] |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
if build_and_host_options and build_and_host_options[0].startswith('--build='): | |
self.platform_lib = build_and_host_options[0].split('=', 1)[1] | |
build_type_option = [x for x in build_and_host_options if x.startswith('--build=')] | |
if len(build_type_option) == 1: | |
self.platform_lib = build_type_option[0].split('=', 0) |
make this a bit more robust? or alternatively, let determine_build_and_host_options() return both build and host type options as separate variables?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Good point, it was meant to be implicit as suggested by the name but explicit is better: 7dc3d2c
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
Going in, thanks @Flamefire! |
Building of some older GCCs (tried 4.4) fails on e.g. Power due to config.guess being to old.
This is a solved problem in ConfigureMake by using an up-to-date one but GCC EB didn't use it yet as it doesn't call the super-configure method.
Additonally it ignores the build_type and host_type EC variables.
This is fixed with this PR by factoring out a method from ConfigureMake which can then be called by GCC