Error arises when installing rosetta_src_2021.16.61629_bundle with scon

4 posts / 0 new
Error arises when installing rosetta_src_2021.16.61629_bundle with scon
#1

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: 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:
Tue, 2021-09-28 08:08
Sunyp_IM

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.

Tue, 2021-09-28 08:53
rmoretti

@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?

Tue, 2021-09-28 20:00
Sunyp_IM

It would seem that the 'value' part of the key-value pair under 'flags' should be a list:

   "flags" : {
}
   "overrides" : {
},`