Dear all,
I am trying to install rosetta_src_2021.16.61629_bundle in CentOS system (Python 3.8.8) using:
./scons.py -j8 mode=release bin
However, it produces the following error:
AssertionError: Parameters of BuildFlags must be lists
scons: done reading SConscript files.
scons: Building targets ...
scons: `bin' is up to date.
scons: done building targets.
I cannot figure out what causes the error. Could you give me some hint? I will appreciate any help.
Best regards.
Category:
Post Situation:
I'm guessing the issue is with the format of your source/tools/build/site.settings or source/tools/build/user.settings files.
In particular, it looks like there may be a setting (a sub-setting of `flags`) which should be a list, but which you have provided in some other format.
@rmorett
Thank you.
Yes, in order to compile rosetta with higer version of gcc, I add two lines in the brace after the 'flags' in the source/tools/build/user.settings. Now it looks like:
"flags" : {
"cc" : "/opt/rh/devtoolset-7/root/usr/bin/gcc",
"cxx" : "/opt/rh/devtoolset-7/root/usr/bin/g++",
},
It the format wrong?
Looking at this page in the user guide:
https://new.rosettacommons.org/docs/latest/build_documentation/Cxx11Support
It would seem that the 'value' part of the key-value pair under 'flags' should be a list:
That being said, I'm pretty sure that's not the correct way to change the compiler.
From the same page you can see that non-default compiler paths are added in the "overrides" section: