Skip to content
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

Merged
merged 4 commits into from
May 4, 2020

Conversation

Flamefire
Copy link
Contributor

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

Comment on lines 388 to 389
if build_and_host_options and build_and_host_options[0].startswith('--build='):
self.platform_lib = build_and_host_options[0].split('=', 1)[1]
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
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?

Copy link
Contributor Author

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

easybuild/easyblocks/g/gcc.py Outdated Show resolved Hide resolved
Flamefire and others added 2 commits April 17, 2020 16:23
Co-Authored-By: Sam Moors <smoors@users.noreply.github.com>
Copy link
Contributor

@akesandgren akesandgren left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@akesandgren
Copy link
Contributor

Going in, thanks @Flamefire!

@akesandgren akesandgren merged commit dded8d0 into easybuilders:develop May 4, 2020
@Flamefire Flamefire deleted the gcc_use_configguess branch May 4, 2020 11:06
@boegel boegel changed the title Use config.guess for GCC builds use updated config.guess in GCC easyblock May 17, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants