Comments (7)
Based on the warnings and error, I'm guessing you need to get a more modern compiler. Significant parts of opencog assume the c++11 standard from 2011, and parts of it might even be using the 2014 standard, not sure.
Since the compiler is clang, and clang is fairly up-to-date, I'm guessing that maybe you need to either specify some extra compiler flag to clang, or you simply have an old version of clang (llvm)
There some apple stuff here:
https://github.com/opencog/cogutils/blob/master/CMakeLists.txt#L64
but that assumes GCC:
https://github.com/opencog/cogutils/blob/master/CMakeLists.txt#L57
so I guess a IF(COMPILER is CLANG) stanzas are needed.
from cogutil.
So, perhaps ‘clang -3.7’?
David-Laxers-MacBook-Pro:~ davidlaxer$ clang --version
Apple LLVM version 6.1.0 (clang-602.0.53) (based on LLVM 3.6.0svn)
Target: x86_64-apple-darwin14.5.0
Thread model: posix
David-Laxers-MacBook-Pro:~ davidlaxer$ port search clang
Bear @2.0.3 (devel)
Bear is a tool to generate compilation database for clang tooling.
clang-2.9 @2.9_15 (lang)
this port is only a stub and has been made obsolete by clang-3.4
clang-3.0 @3.0_14 (lang)
this port is only a stub and has been made obsolete by clang-3.4
clang-3.1 @3.1_9 (lang)
this port is only a stub and has been made obsolete by clang-3.4
clang-3.2 @3.2_4 (lang)
this port is only a stub and has been made obsolete by clang-3.4
clang-3.3 @3.3_8 (lang)
C, C++, Objective C and Objective C++ compiler
clang-3.4 @3.4.2_9 (lang)
C, C++, Objective C and Objective C++ compiler
clang-3.5 @3.5.2_6 (lang)
C, C++, Objective C and Objective C++ compiler
clang-3.6 @3.6.1_2 (lang)
C, C++, Objective C and Objective C++ compiler
clang-3.7 @3.7-r245076_1 (lang)
C, C++, Objective C and Objective C++ compiler
clang-3.8 @3.8-r245076_1 (lang)
C, C++, Objective C and Objective C++ compiler
clang_select @1.0 (sysutils)
common files for selecting default clang version
mpich-clang @3.1.4_1 (science, parallel, net)
Message Passing Interface (MPI) Library
mpich-clang33 @3.1.4_1 (science, parallel, net)
Message Passing Interface (MPI) Library
mpich-clang34 @3.1.4_1 (science, parallel, net)
Message Passing Interface (MPI) Library
mpich-clang35 @3.1.4_1 (science, parallel, net)
Message Passing Interface (MPI) Library
mpich-clang36 @3.1.4_1 (science, parallel, net)
Message Passing Interface (MPI) Library
mpich-clang37 @3.1.4_1 (science, parallel, net)
Message Passing Interface (MPI) Library
mpich-devel-clang @3.2b3_1 (science, parallel, net)
Message Passing Interface (MPI) Library
mpich-devel-clang33 @3.2b3_1 (science, parallel, net)
Message Passing Interface (MPI) Library
mpich-devel-clang34 @3.2b3_1 (science, parallel, net)
Message Passing Interface (MPI) Library
mpich-devel-clang35 @3.2b3_1 (science, parallel, net)
Message Passing Interface (MPI) Library
mpich-devel-clang36 @3.2b3_1 (science, parallel, net)
Message Passing Interface (MPI) Library
mpich-devel-clang37 @3.2b3_1 (science, parallel, net)
Message Passing Interface (MPI) Library
openmpi-clang @1.7.5_5 (science, parallel, net)
A High Performance Message Passing Library
openmpi-clang33 @1.7.5_5 (science, parallel, net)
A High Performance Message Passing Library
openmpi-clang34 @1.7.5_5 (science, parallel, net)
A High Performance Message Passing Library
openmpi-clang35 @1.7.5_5 (science, parallel, net)
A High Performance Message Passing Library
openmpi-clang36 @1.7.5_5 (science, parallel, net)
A High Performance Message Passing Library
openmpi-clang37 @1.7.5_5 (science, parallel, net)
A High Performance Message Passing Library
openmpi-devel-clang @1.9a1_34660 (science, parallel, net)
A High Performance Message Passing Library
openmpi-devel-clang33 @1.9a1_34660 (science, parallel, net)
A High Performance Message Passing Library
openmpi-devel-clang34 @1.9a1_34660 (science, parallel, net)
A High Performance Message Passing Library
openmpi-devel-clang35 @1.9a1_34660 (science, parallel, net)
A High Performance Message Passing Library
openmpi-devel-clang36 @1.9a1_34660 (science, parallel, net)
A High Performance Message Passing Library
openmpi-devel-clang37 @1.9a1_34660 (science, parallel, net)
A High Performance Message Passing Library
Found 36 ports.
David-Laxers-MacBook-Pro:~ davidlaxer$
On Aug 31, 2015, at 12:09 PM, Linas Vepštas [email protected] wrote:
Based on the warnings and error, I'm guessing you need to get a more modern compiler. Significant parts of opencog assume the c++11 standard from 2011, and parts of it might even be used the 2014 standard, not sure.
Since the compiler is clang, and clang is fairly up-to-date, I'm guessing that maybe you need to either specify some extra compiler flag to clang, or you simply have an old version of clang (llvm)
There some apple stuff here:
https://github.com/opencog/cogutils/blob/master/CMakeLists.txt#L64 https://github.com/opencog/cogutils/blob/master/CMakeLists.txt#L64
but that assumes GCC:
https://github.com/opencog/cogutils/blob/master/CMakeLists.txt#L57 https://github.com/opencog/cogutils/blob/master/CMakeLists.txt#L57
so I guess a IF(COMPILER is CLANG) stanzas are needed.—
Reply to this email directly or view it on GitHub #18 (comment).
from cogutil.
Go to google, and type in: "clang c++11 support" you will get these links:
http://clang.llvm.org/cxx_status.html
http://stackoverflow.com/questions/10408849/how-can-i-use-c-11-features-in-clang
http://stackoverflow.com/questions/27748442/is-clangs-c11-support-reliable
http://stackoverflow.com/questions/17449933/clang-3-3-and-c14-support
read them. They probably contain the answers that you are looking for.
from cogutil.
Is this now resolved?
from cogutil.
If it is resolved, can you please supply an update to the docs/README.osx
file that explains all the magic incantations that are needed?
from cogutil.
This may be relevant: I am adding clang to the cmake file as I noticed that there is no such condition in cogutils. It will be part of the fix for #32
For now it appears that only gcc has been specified for cogutils.
Additionally the compiler flags were set to c++0x and not c++11, which will be included in the pull request
from cogutil.
Closing, I assume that this is fixed.
from cogutil.
Related Issues (20)
- MacOS: Some tests are failing HOT 9
- minimize/avoid using boost in cogutil HOT 6
- build failure HOT 1
- Build errors: `not declared in this scope` HOT 1
- Organise OpenCog .cmake files HOT 13
- Loggers pointing to the same file step on each other HOT 1
- Find* cmake files installation path variable HOT 4
- libcogutil.so installed in incorrect location.
- OSX build error: "/etc/os-release" does not exist HOT 17
- Refactor get_python_lib from AtomSpace/OpenCog into CMAKE macro
- Upgrade to C++17? HOT 16
- Wrong interaction between stdout flag of different loggers HOT 3
- OC_OMP support is incorrect. HOT 2
- Breakage with Binutils 2.34 HOT 3
- Breakage with Binutils 2.35 (or maybe 2.34?) HOT 3
- GCC version 6 is not enough to build Atomspace, at least 7 or later is required HOT 4
- Unknown CMake command "add_compile_definitions". HOT 4
- Crash in logger during shutdown. HOT 1
- Failed to opam install cogutil HOT 4
- OSX build CMake error HOT 8
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from cogutil.