Code Monkey home page Code Monkey logo

Comments (8)

AnastasiaSulyagina avatar AnastasiaSulyagina commented on August 18, 2024 1

@linas thanks, it worked but failed on "make"
Fixed with

  1. "brew install gcc --without-multilib"
  2. "export CXX=/usr/local/Cellar/gcc/7.2.0/bin/g++-7"

It seemed to install normal gcc

from cogutil.

linas avatar linas commented on August 18, 2024

Short answer: comment out lines 47, 48, 49 of cmake and see how much farther you can get.

Clearly, on apple, clang is lying, trying to pretend its gcc, and cmake catches it in the lie. Is clang just as good as gcc? Maybe it is. Don't know, but if you comment out 47-49, you can find out.

from cogutil.

linas avatar linas commented on August 18, 2024

You'd also have to comment out line 82 and line 125. Or just SET(CMAKE_COMPILER_IS_GNUCXX 1) before-hand

from cogutil.

maparent avatar maparent commented on August 18, 2024

I tried with (latest) clang, to see how far I would get; and cmake refuses to build, because BFD and IBERTY are absent, though they are listed as optional in the README. (on master, cmake 3.14.3)
(The error message is -- Configuring incomplete, errors occurred!, and the only errors in CMakeErrors.log are the attempts to build with libiberty and bfd.)
I also tried with env CXX=/usr/local/bin/g++-8 CC=/usr/local/bin/gcc-8 cmake .., same behaviour.

from cogutil.

linas avatar linas commented on August 18, 2024

Configuring incomplete, errors occurred!

That has nothing to do with either iberty or bfd. There was some other error. If bfd is abesnt, you would see Binutils-dev missing: No pretty stack-trace printing. and if iberty is missing, you'd see Libiberty-dev missing: No pretty stack-trace printing. and cmake would complete, without errors. Something else is causing cmake to fail.

from cogutil.

maparent avatar maparent commented on August 18, 2024

I do indeed have those messages (sorry, I was trying to be terse.)
Full stdout log (gcc version): https://gist.github.com/maparent/137c2731137999947aad708403f536d4
error log: https://gist.github.com/maparent/23b64e13236c428b55a2bb3fa4f914bc
The last attempts in CMakeOutput.txt are all successes:
Detecting CXX [-std=c++98] compiler features compiled with the following output: ... Determining if the include file pthread.h exists passed with the following output: ... Determining if the pthread_create exist passed with the following output: ...
(I tried compiling and linking the code thereafter, using the commands, and it worked.)

from cogutil.

linas avatar linas commented on August 18, 2024

@maparent it would be kind-of better if we had this conversation in some other, new github issue. But in the meanwhile:

  • The Configuring incomplete message seems to be printed by cmake. I don't know why. In my version of cmake (version 3.7.2), I don't get that printout, even if I don't have bfd/iberty installed. So this seems to be a weird cmake bug, and I don't understand why...

  • For clang instead of gcc, things "should work"; we're not doing anything fancy in opencog that would require gcc. However, ther might be a need for tomfoolery and hacks in cmake/OpenCogGccOptions.cmake -- the section marked "APPLE" was created a decade ago, and has not been updated since then.

from cogutil.

linas avatar linas commented on August 18, 2024

To be clear, I get:

The following components will be built:
-----------------------------------------------
   Unit tests  - Unit tests.
   Util        - General utility library.

The following components WILL NOT be built:
-----------------------------------------------
   Doxygen     - Code documentation.
   StackPrint  - Pretty printing of stack traces.

-- Configuring done
-- Generating done
-- Build files have been written to: /home/linas/src/novamente/src/cogutils-git/build

which is the intended, expected output -- no errors, just some components are not built.

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.