opencog / moses

MOSES Machine Learning: Meta-Optimizing Semantic Evolutionary Search. See also AS-MOSES https://github.com/opencog/asmoses but kept to guaranty backward compatibility.
https://wiki.opencog.org/w/Meta-Optimizing_Semantic_Evolutionary_Search
Other
127 stars 83 forks source link

Build error on Debian sid #75

Closed mhatta closed 5 years ago

mhatta commented 5 years ago

The build of moses fails on Debian sid with several errors like:

In file included from /home/mhatta/work/OpenCog/moses/opencog-moses-3.6.10~git20180629.f8932cb/moses/comboreduct/table/table_io.cc:44:                                                                     
/home/mhatta/work/OpenCog/moses/opencog-moses-3.6.10~git20180629.f8932cb/moses/comboreduct/table/table
.h: In member function ‘unsigned int opencog::combo::ITable::sample_count(opencog::combo::arity_t)’: 
/home/mhatta/work/OpenCog/moses/opencog-moses-3.6.10~git20180629.f8932cb/moses/comboreduct/table/table.h:852:58: error: ‘EXPONENTIAL’ was not declared in this scope                                       
         else return COEF_SAMPLE_COUNT*log(contin_arity + EXPONENTIAL);                              
                                                          ^~~~~~~~~~~
/home/mhatta/work/OpenCog/moses/opencog-moses-3.6.10~git20180629.f8932cb/moses/comboreduct/table/table.h:852:58: note: suggested alternative: ‘EXPR_NEST_MAX’                                              
         else return COEF_SAMPLE_COUNT*log(contin_arity + EXPONENTIAL);                              
                                                          ^~~~~~~~~~~                                
                                                          EXPR_NEST_MAX                  

I'm not sure where EXPONENTIAL comes from.

linas commented 5 years ago

Please git checkout master; git pull I removed EXPONENTIAL just a few days ago and replaced it with M_E from #include <math>

mhatta commented 5 years ago

Mea culpa. Seems I forgot to git fetch upstream. Close now.

linas commented 5 years ago

Oh, and cogutils, too. I (and also atomspace, opencog, etc there wer a bunch of cleanups all rolling together