Skip to content

Clang toolchains#593

Merged
boegel merged 34 commits intoeasybuilders:developfrom
gribozavr:clang-toolchains
Apr 13, 2013
Merged

Clang toolchains#593
boegel merged 34 commits intoeasybuilders:developfrom
gribozavr:clang-toolchains

Conversation

@gribozavr
Copy link
Contributor

This pull request adds ClangGCC + {OpenMPI, MPICH} toolchains. Please review!

This change is required for pull request easybuilders/easybuild-easyconfigs#213

Copy link
Member

Choose a reason for hiding this comment

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

class name should be Cgmpich

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Thanks. Fix pushed.

Copy link
Member

Choose a reason for hiding this comment

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

Same here, I don't think you should set COMPILER_MODULE_NAME here, although it's less obvious than in Cgompi.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Removing COMPILER_MODULE_NAME does not work. When building anything with ClangGCC (for example, hwloc-1.6.2-ClangGCC-1.1.2.eb) I get:

EasyBuildError: "EasyBuild crashed with an error (at easybuild/eb-install/lib/python2.6/site-packages/easybuild_framework-1.4.0dev-py2.6.egg/easybuild/tools/toolchain/toolchain.py:314 in prepare): List of toolchain dependency modules and toolchain definition do not match (set(['GCC', 'Clang']) vs set(['GCC']))"

Copy link
Member

Choose a reason for hiding this comment

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

OK, that makes sense, it should indeed be there, my bad.

Copy link
Member

Choose a reason for hiding this comment

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

No need to still set COMPILER_MODULE_NAME if you derive from ClangGCC?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

As discussed on IRC, it is required. ClangGcc has 'Clang' and 'GCC' in this list.

Copy link
Member

Choose a reason for hiding this comment

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

Yes, sorry.

@gribozavr
Copy link
Contributor Author

@boegel I have addressed all your comments except the one about FP precision flags.

Copy link
Member

Choose a reason for hiding this comment

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

This should be super(ClangGCC, self)

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Fixed.

Copy link
Member

Choose a reason for hiding this comment

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

COMPILER_MODULE_NAME is set correctly in ClangGCC, so no need to set it here?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

As discussed before on IRC, it will not work. ClangGCC defines it as 'Clang', 'GCC'.

Copy link
Member

Choose a reason for hiding this comment

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

OK, I was confused here as you can also derive Cgmpolf on top of Cgmpich.
Actually, that's probably better...

Copy link
Contributor Author

Choose a reason for hiding this comment

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

OK, I'm changing the inheritance hierarchies and retesting.

@gribozavr
Copy link
Contributor Author

@boegel Fixed all comments except for precision flags.

@gribozavr
Copy link
Contributor Author

@boegel Changed inheritance hierarchy.

@gribozavr
Copy link
Contributor Author

@boegel Added floating point flags as suggested.

boegel added a commit that referenced this pull request Apr 13, 2013
@boegel boegel merged commit 1aa957f into easybuilders:develop Apr 13, 2013
@gribozavr gribozavr deleted the clang-toolchains branch April 13, 2013 19:40
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.

2 participants