Error arises when installing rosetta_src_2021.16.61629_bundle with scon

Member Site Forums Rosetta 3 Rosetta 3 – Build/Install Error arises when installing rosetta_src_2021.16.61629_bundle with scon

Viewing 2 reply threads
  • Author
    Posts
    • #3845
      Anonymous

        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.

      • #16024
        Anonymous

          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.

        • #16025
          Anonymous

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

            • #16027
              Anonymous

                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",
                },

          Viewing 2 reply threads
          • You must be logged in to reply to this topic.