easybuild-easyblocks
easybuild-easyblocks copied to clipboard
Boost fails to build with CrayGNU
Building boost with Cray GNU toolchain produces the error:
g++: error: unrecognized command line option '-craype-verbose'; did you mean '--verbose'?
The issue appears to be that --user-config is not set to the appropriate user-config.jam file (which mentions the CC compiler to use) for all build passes in build_step.
A local workaround was to change:
175: bjamoptions = " --prefix=%s" % self.objdir
to:
175: bjamoptions = " --prefix=%s --user-config=user-config.jam" % self.objdir
Is there a better solutions?
@gppezzi @victorusu Does this ring a bell for you?
We have seen this before. What we do at CSCS is to add verbose false to the toolchain.
toolchainopts = {'pic': True, 'usempi': True, 'verbose': False}.
As far as I can remember, this issue only happens when one adds python to the build.
Without python, there is no need to add the verbose: False.
@victorusu Should we fix this in the Boost easyconfig that uses the CrayGNU toolchain?