easybuild-easyblocks icon indicating copy to clipboard operation
easybuild-easyblocks copied to clipboard

Boost fails to build with CrayGNU

Open holstgr-kaust opened this issue 8 years ago • 3 comments
trafficstars

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?

holstgr-kaust avatar Nov 19 '17 11:11 holstgr-kaust

@gppezzi @victorusu Does this ring a bell for you?

boegel avatar Nov 21 '17 08:11 boegel

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 avatar Nov 21 '17 09:11 victorusu

@victorusu Should we fix this in the Boost easyconfig that uses the CrayGNU toolchain?

boegel avatar Feb 22 '18 21:02 boegel