learn icon indicating copy to clipboard operation
learn copied to clipboard

Build failure due to weird cmake generated targets

Open gl-yziquel opened this issue 2 years ago • 0 comments

I've been building quite a few opencog projects lately. This is the first where the usual mkdir build && cd build && cmake .. && make doesn't work. Here is the output:

minime@virtucon ~/h/c/learn (master)> mkdir build
minime@virtucon ~/h/c/learn (master)> cd build/
minime@virtucon ~/h/c/l/build (master)> ls
minime@virtucon ~/h/c/l/build (master)> cmake ..
-- The C compiler identification is GNU 11.4.0
-- The CXX compiler identification is GNU 11.4.0
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working C compiler: /usr/bin/cc - skipped
-- Detecting C compile features
-- Detecting C compile features - done
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Check for working CXX compiler: /usr/bin/c++ - skipped
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- Guile (3.0.7 >= 2.2.2) was found.
-- Configuring done
-- Generating done
-- Build files have been written to: /home/minime/home/cellar/learn/build
minime@virtucon ~/h/c/l/build (master)> make
Built target COPY_TO_LOAD_PATH_IN_BUILD_DIR_FROM__home_minime_home_cellar_learn_fake
Built target COPY_TO_LOAD_PATH_IN_BUILD_DIR_FROM__home_minime_home_cellar_learn_scm

Weird things: 1. it skips finding the cc and c++ compilers. 2. the autogenerated target names are out of whack and not interpolated.

gl-yziquel avatar Sep 08 '23 14:09 gl-yziquel