generated atom types written within source tree, and failing to block later build steps
Bug #1063591 reported by
David Hart
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
OpenCog |
Fix Released
|
High
|
linas |
Bug Description
Apart from just being bad form (nothing in the build process should write to files in the source tree; writes should happen only in the build tree), something in the process is dependency-unaware, causing parallel make on virgin source trees to fail.
The problem can be easily replicated with these steps:
bzr branch lp:opencog
mkdir opencog/bin; cd opencog/bin
cmake ..
make -j8
FAILS
make
make clean
make -j8
WORKS
The problem can also be recreated where you have read access to but do not own the files in the source tree with these steps:
mkdir ~/build_opencog; cd ~/build_opencog
cmake /usr/local/
make
FAILS
Changed in opencog: | |
importance: | Undecided → High |
Changed in opencog: | |
status: | Fix Committed → Fix Released |
To post a comment you must log in.
FAIL 1
Scanning dependencies of target cogita nlp/chatbot/ CMakeFiles/ cogita. dir/CogitaConfi g.cc.o nlp/chatbot/ CMakeFiles/ cogita. dir/IRC. cc.o nlp/chatbot/ CMakeFiles/ cogita. dir/go- irc.cc. o nlp/chatbot/ CMakeFiles/ cogita. dir/whirr- sockets. cc.o src/opencog/ lib/OpenCogAtom Types.cmake: 28 (FILE): local/src/ opencog/ opencog/ nlp/types/ atom_types. h for writing.
[ 50%] Building CXX object opencog/
[ 50%] Building CXX object opencog/
[ 52%] Building CXX object opencog/
[ 52%] Building CXX object opencog/
Linking CXX executable cogita
[ 52%] Built target cogita
[ 52%] Generating opencog types
CMake Error at /usr/local/
file Internal CMake error when trying to open file:
/usr/
make[2]: *** [/usr/local/ src/opencog/ opencog/ nlp/types/ atom_types. h] Error 1 nlp/types/ CMakeFiles/ nlp-types. dir/all] Error 2
make[1]: *** [opencog/
make: *** [all] Error 2
FAIL 2
[ 54%] Generating opencog types src/opencog/ lib/OpenCogAtom Types.cmake: 28 (FILE): local/src/ opencog/ opencog/ embodiment/ AtomSpaceExtens ions/atom_ types.h
CMake Error at /usr/local/
file Internal CMake error when trying to open file:
/usr/
for writing.
[ 54%] make[2]: *** [/usr/local/ src/opencog/ opencog/ embodiment/ AtomSpaceExtens ions/atom_ types.h] Error 1 embodiment/ AtomSpaceExtens ions/CMakeFiles /embodiment_ atom_types. dir/all] Error 2
make[1]: *** [opencog/
make[1]: *** Waiting for unfinished jobs....
Built target Control
make: *** [all] Error 2