Code Monkey home page Code Monkey logo

Comments (7)

linas avatar linas commented on September 21, 2024

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.

dbl001 avatar dbl001 commented on September 21, 2024

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.

linas avatar linas commented on September 21, 2024

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.

linas avatar linas commented on September 21, 2024

Is this now resolved?

from cogutil.

linas avatar linas commented on September 21, 2024

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.

marknuzz avatar marknuzz commented on September 21, 2024

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.

linas avatar linas commented on September 21, 2024

Closing, I assume that this is fixed.

from cogutil.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.