Member Site › Forums › Rosetta 3 › Rosetta 3 – Build/Install › Build Error on macOS Big Sur
- This topic has 4 replies, 2 voices, and was last updated 4 years, 1 month ago by Anonymous.
-
AuthorPosts
-
-
November 16, 2020 at 9:56 pm #3627Anonymous
Hi,
I am trying to build rosetta 3.12 on macOS Big Sur but I receive the following error:
In file included from src/apps/public/AbinitioRelax.cc:20:
In file included from src/basic/options/option.hh:17:
In file included from src/utility/options/OptionCollection.hh:21:
In file included from src/utility/options/OptionCollection.fwd.hh:18:
In file included from src/utility/pointer/owning_ptr.hh:15:
In file included from src/utility/pointer/std/owning_ptr.hh:20:
src/utility/pointer/std/owning_ptr.fwd.hh:20:10: fatal error: cannot open file
‘src/memory’: No such file or directory
#include <memory>
^
1 error generated.
scons: *** [build/src/release/macos/10.16/64/x86/clang/10.0/default/apps/public/AbinitioRelax.o] Error 1
scons: building terminated because of errors.
Would you please help me with this?
Thanks.
-
November 16, 2020 at 11:35 pm #15599Anonymous
The <memory> header is part of the basic C++ system headers. The fact that your compiler can’t find it (or is simply looking in the wrong location) indicates to me that it may be that your XCode compiler has issues.
My recommedation would be to make sure your XCode installation is properly updated.
If updating/reinstalling XCode doesn’t help, it may be helpful to see the full command line of the compilation command which is printed by scons before the error message. That will potentially help us track down if we have issues with the compilation configuration setup.
P.S. We provide pre-compiled binaries for MacOS. I believe that they should be functional with Big Sur. If you download the precompiled version, you won’t need to do compilation.
-
November 17, 2020 at 9:27 pm #15603Anonymous
Thanks for your response. I have checked the XCode and re-installed it. Again same error. Here is the command I run to build Rosetta: ./scons.py -j0 mode=release bin
Thanks for pre-compiled codes. I was aware of them. I just want to troubleshoot why this is not working for me I would appreciate if you can help me with that.
-
November 18, 2020 at 2:50 pm #15606Anonymous
Sorry, I should have been clearer. The command I was interested in is less the command that you used to launch the compliation, but rather the sub-command which Scons printed out slightly before the error message. It’s a rather long thing, probably wrapping over multiple lines, and probably starting with something like clang++ and probably ending with something like build/src/release/macos/10.16/64/x86/clang/10.0/default/apps/public/AbinitioRelax.o
The reason I asked for that is to see what include path directives (-I and -isystem) were added to the command line. I probably would have followed up by asking if there was a file called “memory” in any of certain paths (like /usr/include/ or /usr/local/include/ … but the exact directories would depend on what the command line showed.)
Another thing you may want to try is to see if this is a Rosetta-specific thing, or if there’s issues compiling other C++ programs.
-
-
November 20, 2020 at 2:57 am #15610Anonymous
Oh, I am sorry. Here it is:
scons: Reading SConscript files …
Running versioning script … Release package detected, using rosetta/main/.release.json to acquire version information…
Done. (0.0 seconds)
file ./options.dox being updated
file ./full-options-list.md being updated
Number of option files updated: 2
Total 4491 options.
Finished updating ResidueProperty code
— no changes needed
Finished updating VariantType code
— no changes needed
scons: done reading SConscript files.
scons: Building targets …
clang++ -o build/src/release/macos/10.16/64/x86/clang/10.0/default/apps/public/AbinitioRelax.o -c -std=c++11 -isystem external/boost_1_55_0/ -isystem external/ -isystem external/include/ -isystem external/dbio/ -isystem external/libxml2/include -isystem /usr/local/include -march=core2 -mtune=generic -pipe -Qunused-arguments -DUNUSUAL_ALLOCATOR_DECLARATION -ftemplate-depth-256 -stdlib=libstdc++ -W -Wall -Wextra -pedantic -Wno-long-long -Wno-strict-aliasing -march=native -mtune=native -stdlib=libc++ -Wno-unused-variable -O3 -Wno-unused-variable -Wno-unused-parameter -DBOOST_ERROR_CODE_HEADER_ONLY -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DPTR_STD -DNDEBUG -Isrc -Iexternal/include -Isrc/platform/macos/64/clang/10.0 -Isrc/platform/macos/64/clang -Isrc/platform/macos/64 -Isrc/platform/macos src/apps/public/AbinitioRelax.cc
In file included from src/apps/public/AbinitioRelax.cc:20:
In file included from src/basic/options/option.hh:17:
In file included from src/utility/options/OptionCollection.hh:21:
In file included from src/utility/options/OptionCollection.fwd.hh:18:
In file included from src/utility/pointer/owning_ptr.hh:15:
In file included from src/utility/pointer/std/owning_ptr.hh:20:
src/utility/pointer/std/owning_ptr.fwd.hh:20:10: fatal error: cannot open file
‘src/memory’: No such file or directory
#include <memory>
^
1 error generated.
scons: *** [build/src/release/macos/10.16/64/x86/clang/10.0/default/apps/public/AbinitioRelax.o] Error 1
scons: building terminated because of errors.
I have checked and I am able to compile other C++ codes.
Thanks for your help.
-
-
AuthorPosts
- You must be logged in to reply to this topic.