Skip to content

use updated config.guess in GCC easyblock#2033

Merged
akesandgren merged 4 commits intoeasybuilders:developfrom
Flamefire:gcc_use_configguess
May 4, 2020
Merged

use updated config.guess in GCC easyblock#2033
akesandgren merged 4 commits intoeasybuilders:developfrom
Flamefire:gcc_use_configguess

Conversation

@Flamefire
Copy link
Copy Markdown
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 thread easybuild/easyblocks/g/gcc.py Outdated
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
Copy Markdown
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
Copy Markdown
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

Comment thread easybuild/easyblocks/g/gcc.py Outdated
Flamefire and others added 2 commits April 17, 2020 16:23
Co-Authored-By: Sam Moors <smoors@users.noreply.github.com>
Comment thread easybuild/easyblocks/g/gcc.py Outdated
Copy link
Copy Markdown
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
Copy Markdown
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