You are here

Error arises when installing rosetta_src_2021.16.61629_bundle with scon

4 posts / 0 new
Last post
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: 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: 
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

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:

   "flags" : {
                      "link" : ["Wl,-rpath=/home/user/downloaded_clang/lib/"]
              }

 

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:

   "overrides" : {
              "cxx" : "/home/user/downloaded_clang/bin/clang++",
              "cc" : "/home/user/downloaded_clang/bin/clang",
      },
Wed, 2021-09-29 04:22
zivben