Rosetta3.4 on Mac 10.6.8

Member Site Forums Rosetta 3 Rosetta 3 – Build/Install Rosetta3.4 on Mac 10.6.8

Viewing 6 reply threads
  • Author
    Posts
    • #1558
      Anonymous

        I tried to install rosetta on a Mac OS 10.6.8.

        I tried:
        scons bin mode=release

        And get following message:
        scons: Reading SConscript files …
        Running versioning script … fatal: Not a git repository (or any of the parent directories): .git
        Done. (0.5 seconds)
        scons: done reading SConscript files.
        scons: Building targets …
        g++-4.2 -o build/src/release/macos/10.6/64/x86/gcc/4.2/apps/public/AbinitioRelax.o -c -isystem external/boost_1_46_1/boost/ -isystem external/boost_1_46_1/boost/ -m64 -march=nocona -mtune=generic -O3 -ffast-math -funroll-loops -finline-functions -finline-limit=20000 -s -Wno-unused-variable -DNDEBUG -Isrc -Iexternal/include -Isrc/platform/macos/64/gcc/4.2 -Isrc/platform/macos/64/gcc -Isrc/platform/macos/64 -Isrc/platform/macos -Iexternal/boost_1_46_1 -Iexternal/dbio -I/usr/include -I/usr/local/include src/apps/public/AbinitioRelax.cc
        sh: g++-4.2: command not found
        scons: *** [build/src/release/macos/10.6/64/x86/gcc/4.2/apps/public/AbinitioRelax.o] Error 127
        scons: building terminated because of errors.

        But I do have g++4.2 by
        % which g++-4.2
        /Developer/usr/bin/g++-4.2

        Any suggestions? Thanks!

      • #8630
        Anonymous

          A) try “scons bin mode=release cxx=gcc cxx_ver=4.2”

          B) Look at the file tools/build/site.settings.topsail. Copy the program_path line to your own user.settings or site.settings file. (If you have no site.settings file, use user.settings).

          If neither of those works, post again and we’ll cobble together a tweak to user.settings that explicitly paths 4.2 for you.

        • #8631
          Anonymous

            Thanks for the reply!
            A) tried and still got:

            sh: g++-4.2: command not found

            B)should I just copy “”program_path” : os.environ[“PATH”].split(“:”),” line to user.settings file, and it likes:

            settings = {
            “user” : {
            “prepends” : {
            “program_path” : os.environ[“PATH”].split(“:”),
            },

            then I got:

            NameError: name ‘os’ is not defined

          • #8633
            Anonymous

              Sorry, I’m not a computer guy and I don’t understand python. Would you please tell me what exactly should I put in users.settings file?

            • #8635
              Anonymous

                Thanks so much for detailed reply. I unzip rosetta_source folder again to make sure nothing changes in users.setting file. Then I removed these two “#”. I got a lot of errors:

                scons: Reading SConscript files …
                Running versioning script … fatal: Not a git repository (or any of the parent directories): .git
                Done. (0.1 seconds)
                scons: done reading SConscript files.
                scons: Building targets …
                g++-4.2 -o build/src/release/macos/10.6/64/x86/gcc/4.2/apps/public/AbinitioRelax.o -c -isystem external/boost_1_46_1/boost/ -isystem external/boost_1_46_1/boost/ -m64 -march=nocona -mtune=generic -O3 -ffast-math -funroll-loops -finline-functions -finline-limit=20000 -s -Wno-unused-variable -DNDEBUG -Isrc -Iexternal/include -Isrc/platform/macos/64/gcc/4.2 -Isrc/platform/macos/64/gcc -Isrc/platform/macos/64 -Isrc/platform/macos -Iexternal/boost_1_46_1 -Iexternal/dbio -I/usr/include -I/usr/local/include src/apps/public/AbinitioRelax.cc
                In file included from src/utility/keys/AutoKey.hh:36,
                from src/utility/options/keys/OptionKey.hh:26,
                from src/utility/options/Option.hh:24,
                from src/utility/options/OptionCollection.hh:23,
                from src/basic/options/option.hh:15,
                from src/apps/public/AbinitioRelax.cc:20:
                src/utility/down_cast.hh:23:19: error: cassert: No such file or directory
                In file included from src/utility/keys/AutoKey.hh:37,
                from src/utility/options/keys/OptionKey.hh:26,
                from src/utility/options/Option.hh:24,
                from src/utility/options/OptionCollection.hh:23,
                from src/basic/options/option.hh:15,
                from src/apps/public/AbinitioRelax.cc:20:
                src/utility/keys/Key.hh:36:19: error: cstddef: No such file or directory
                src/utility/keys/Key.hh:37:18: error: string: No such file or directory
                In file included from src/utility/keys/AutoKey.hh:38,
                .
                .
                .

                src/apps/public/AbinitioRelax.cc:65: instantiated from here
                src/utility/down_cast.hh:46: error: ‘assert’ was not declared in this scope
                scons: *** [build/src/release/macos/10.6/64/x86/gcc/4.2/apps/public/AbinitioRelax.o] Error 1
                scons: building terminated because of errors.

              • #8638
                Anonymous

                  Thanks very much for the diagnostic reply! I have installed Rosetta after reinstalling gcc.

                • #8639
                  Anonymous

                    Hae you installed Xcode? Xcode includes all of the compilers and related build tools that you’ll need to build Rosetta. [EDIT: Simultaneous response with OP. Disregard this message]

                  • #8632
                    Anonymous

                      B) To fix the name error: make sure

                      import os

                      is somewhere in the top of the file. It may not look like it, but those settings files are python…

                    • #8634
                      Anonymous

                        I looked in my 3.4 install and there’s already a (commented-out) override present.

                        If your users.settings file is unmodified (“diff user.settings user.settings.template” returns no differences), then open up user.settings in your text editor of choice. You’ll see this block of text:

                        #import os
                        settings = {
                        “user” : {
                        “prepends” : {
                        },
                        “appends” : {
                        # Uncomment the line below and the “import os” line above
                        # to let SCons find ICC (assuming it’s on your PATH already)
                        # This is commented-out by default because it makes SCons
                        # sensitive to your entire path. This is necessary in
                        # some environments, but has the unfortunate consequence
                        # that any change whatsoever to the PATH variable (or its
                        # contents) will force a complete recompile.
                        #”program_path” : os.environ[“PATH”].split(“:”),

                        As the comment says, uncomment the line:

                        #import os

                        and

                        #”program_path” : os.environ[“PATH”].split(“:”),

                        and see if it works. “uncomment” means “remove the prepended # symbol”.

                      • #8636
                        Anonymous

                          These errors indicate that g++ is not able to find its own C++ standard library files – in other words, your gcc/g++ install is fluky.

                          You can try activating some other path lookup overrides. Look in topsail.site.settings and you’ll see:

                          “program_path” : os.environ[“PATH”].split(“:”),
                          “include_path” : os.environ[“INCLUDE”].split(“:”),
                          “library_path” : os.environ[“LD_LIBRARY_PATH”].split(“:”),

                          program_path is the line you already have. Copy the other two lines from site.settings.topsail into your user.settings under the program_path line you already have, and see if that works.

                          You can also verify your install of gcc.

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