Comments (8)
@linas thanks, it worked but failed on "make"
Fixed with
- "brew install gcc --without-multilib"
- "export CXX=/usr/local/Cellar/gcc/7.2.0/bin/g++-7"
It seemed to install normal gcc
from cogutil.
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.
You'd also have to comment out line 82 and line 125. Or just SET(CMAKE_COMPILER_IS_GNUCXX 1)
before-hand
from cogutil.
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.
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.
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.
@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.
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)
- 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
- Rename cogutils repository to cogutil HOT 3
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.