Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Compilation: ../sferes/phen/parameters.hpp:57:26: error: the value of ‘Params1::parameters::max’ is not usable in a constant expression #65

Closed
ducha-aiki opened this issue Jul 8, 2017 · 15 comments

Comments

@ducha-aiki
Copy link

System: Ubuntu 16.04

Configure output:

`old-ufo@oldufo-UX303UB:~/dev/fooling/sferes$ ./waf configure --no-mpi --cpp11 false --boost-libs 
 /usr/lib/x86_64-linux-gnu/
    module : [modules/nn2]
module : [modules/map_elite]
Check for program g++ or c++             : /usr/bin/g++ 
Check for program cpp                    : /usr/bin/cpp 
Check for program ar                     : /usr/bin/ar 
Check for program ranlib                 : /usr/bin/ranlib 
Checking for g++                         : ok  
boost headers                            : Version 1_58 (/usr/include) 
library boost_serialization              : ok 
library boost_filesystem                 : ok 
library boost_system                     : ok 
library boost_unit_test_framework        : ok 
library boost_program_options            : ok 
library boost_graph                      : ok 
library boost_mpi                        : ok 
library boost_python                     : ok 
library boost_thread                     : ok 
Checking for header tbb/parallel_for.h   : ok /usr/include 
Checking for library libtbb              : not found 
Checking for header tbb/parallel_for.h   : ok /usr/include 
Checking for library libtbb              : not found 
Checking for SDL (optional)              : not found 
Checking for header Eigen/Core           : ok /usr/include/eigen3 
Check for program ode-config             : not found 
Checking for ODE (optional)              : not found 
Checking for GSL (optional)              : ok 

--- configuration ---
compiler:
 * CXX: gcc
boost version: 1_58
mpi: False
Compilation flags :
 * default:
   CXXFLAGS : -D_REENTRANT -Wall -fPIC -ftemplate-depth-1024 -Wno-sign-compare -Wno-deprecated  -Wno-unused -DNO_PARALLEL -DEIGEN3_ENABLED -DSFERES_ROOT="/home/old-ufo/dev/fooling/sferes"  -DNDEBUG -O3 -ffast-math 
   LINKFLAGS: 
 * debug:
   CXXFLAGS : -D_REENTRANT -Wall -fPIC -ftemplate-depth-1024 -Wno-sign-compare -Wno-deprecated  -Wno-unused -DNO_PARALLEL -DEIGEN3_ENABLED -DSFERES_ROOT="/home/old-ufo/dev/fooling/sferes" -O1 -ggdb3 -DDBG_ENABLED 
   LINKFLAGS: 
 
--- license ---
Sferes2 is distributed under the CECILL license (GPL-compatible)
Please check the accompagnying COPYING file or http://www.cecill.info/
'configure' finished successfully (0.240s)`

Compilation output:

`	old-ufo@oldufo-UX303UB:~/dev/fooling/sferes$ ./waf build
module : [modules/nn2]
module : [modules/map_elite]
Waf: Entering directory `/home/old-ufo/dev/fooling/sferes/build'
Entering directory `/home/old-ufo/dev/fooling/sferes'
Entering directory `/home/old-ufo/dev/fooling/sferes/modules/'
Entering directory `/home/old-ufo/dev/fooling/sferes/modules/'
[18/90] cxx: modules/nn2/test_hyper_nn.cpp -> build/default/modules/nn2/test_hyper_nn_4.o
[19/90] cxx: modules/nn2/test_dnn_ff.cpp -> build/default/modules/nn2/test_dnn_ff_5.o
[22/90] cxx: modules/nn2/test_hyper_nn_anh.cpp -> build/default/modules/nn2/test_hyper_nn_anh_8.o
[27/90] cxx: tests/gen/bit_string.cpp -> build/debug/tests/gen/bit_string_2.o
In file included from ../modules/nn2/test_hyper_nn_anh.cpp:41:0:
../sferes/phen/parameters.hpp: In instantiation of ‘const float sferes::phen::Parameters<sferes::gen::EvoFloat<1, Params1>, sferes::fit::FitDummy<>, Params1>::max_p’:
../sferes/phen/parameters.hpp:61:52:   required from ‘void sferes::phen::Parameters<Gen, Fit, Params, Exact>::develop() [with Gen = sferes::gen::EvoFloat<1, Params1>; Fit = sferes::fit::FitDummy<>; Params = Params1; Exact = stc::Itself]’
../modules/nn2/gen_hyper_nn.hpp:68:11:   required from ‘void sferes::gen::HyperNn<W, Params>::init() [with W = sferes::phen::Parameters<sferes::gen::EvoFloat<1, Params1>, sferes::fit::FitDummy<>, Params1>; Params = Params1]’
../modules/nn2/test_hyper_nn_anh.cpp:209:15:   required from here
../sferes/phen/parameters.hpp:57:26: error: the value of ‘Params1::parameters::max’ is not usable in a constant expression
       SFERES_CONST float max_p = Params::parameters::max;
	                  ^
../modules/nn2/test_hyper_nn_anh.cpp:81:24: note: ‘Params1::parameters::max’ does not have integral or enumeration type
     SFERES_CONST float max = 2.0f;
	                ^
In file included from ../modules/nn2/test_dnn_ff.cpp:52:0:
../sferes/phen/parameters.hpp: In instantiation of ‘const float sferes::phen::Parameters<sferes::gen::EvoFloat<1, Params>, sferes::fit::FitDummy<>, Params>::max_p’:
../sferes/phen/parameters.hpp:61:52:   required from ‘void sferes::phen::Parameters<Gen, Fit, Params, Exact>::develop() [with Gen = sferes::gen::EvoFloat<1, Params>; Fit = sferes::fit::FitDummy<>; Params = Params; Exact = stc::Itself]’
../modules/nn2/phen_dnn.hpp:58:8:   required from ‘void sferes::phen::Dnn<Gen, Fit, Params, Exact>::develop() [with Gen = sferes::gen::DnnFF<nn::Neuron<nn::PfWSum<sferes::phen::Parameters<sferes::gen::EvoFloat<1, Params>, sferes::fit::FitDummy<>, Params> >, nn::AfTanh<sferes::phen::Parameters<sferes::gen::EvoFloat<1, Params>, sferes::fit::FitDummy<>, Params> > >, nn::Connection<sferes::phen::Parameters<sferes::gen::EvoFloat<1, Params>, sferes::fit::FitDummy<>, Params> >, Params>; Fit = sferes::fit::FitDummy<Params>; Params = Params; Exact = stc::Itself]’
../modules/nn2/test_dnn_ff.cpp:123:13:   required from here
../sferes/phen/parameters.hpp:57:26: error: the value of ‘Params::parameters::max’ is not usable in a constant expression
       SFERES_CONST float max_p = Params::parameters::max;
	                  ^
../modules/nn2/test_dnn_ff.cpp:75:24: note: ‘Params::parameters::max’ does not have integral or enumeration type
     SFERES_CONST float max = 5.0f;
	                ^
In file included from ../modules/nn2/test_hyper_nn.cpp:41:0:
../sferes/phen/parameters.hpp: In instantiation of ‘const float sferes::phen::Parameters<sferes::gen::EvoFloat<1, Params1>, sferes::fit::FitDummy<>, Params1>::max_p’:
../sferes/phen/parameters.hpp:61:52:   required from ‘void sferes::phen::Parameters<Gen, Fit, Params, Exact>::develop() [with Gen = sferes::gen::EvoFloat<1, Params1>; Fit = sferes::fit::FitDummy<>; Params = Params1; Exact = stc::Itself]’
../modules/nn2/gen_hyper_nn.hpp:68:11:   required from ‘void sferes::gen::HyperNn<W, Params>::init() [with W = sferes::phen::Parameters<sferes::gen::EvoFloat<1, Params1>, sferes::fit::FitDummy<>, Params1>; Params = Params1]’
../modules/nn2/test_hyper_nn.cpp:196:13:   required from here
../sferes/phen/parameters.hpp:57:26: error: the value of ‘Params1::parameters::max’ is not usable in a constant expression
       SFERES_CONST float max_p = Params::parameters::max;
	                  ^
../modules/nn2/test_hyper_nn.cpp:78:24: note: ‘Params1::parameters::max’ does not have integral or enumeration type
     SFERES_CONST float max = 2.0f;
	                ^
In file included from ../modules/nn2/test_hyper_nn.cpp:41:0:
../sferes/phen/parameters.hpp: In instantiation of ‘const float sferes::phen::Parameters<sferes::gen::EvoFloat<1, Params2>, sferes::fit::FitDummy<>, Params2>::max_p’:
../sferes/phen/parameters.hpp:61:52:   required from ‘void sferes::phen::Parameters<Gen, Fit, Params, Exact>::develop() [with Gen = sferes::gen::EvoFloat<1, Params2>; Fit = sferes::fit::FitDummy<>; Params = Params2; Exact = stc::Itself]’
../modules/nn2/phen_hyper_nn.hpp:121:11:   required from ‘void sferes::phen::HyperNn<Gen, Fit, Params, Exact>::develop() [with Gen = sferes::gen::HyperNn<sferes::phen::Parameters<sferes::gen::EvoFloat<1, Params2>, sferes::fit::FitDummy<>, Params2>, Params2>; Fit = sferes::fit::FitDummy<>; Params = Params2; Exact = stc::Itself]’
../modules/nn2/test_hyper_nn.cpp:235:17:   required from here
../sferes/phen/parameters.hpp:57:26: error: the value of ‘Params2::parameters::max’ is not usable in a constant expression
       SFERES_CONST float max_p = Params::parameters::max;
	                  ^
../modules/nn2/test_hyper_nn.cpp:135:24: note: ‘Params2::parameters::max’ does not have integral or enumeration type
     SFERES_CONST float max = 2.0f;
	                ^
Waf: Leaving directory `/home/old-ufo/dev/fooling/sferes/build'
Build failed:
 -> task failed (err #1): 
	{task: cxx test_hyper_nn_anh.cpp -> test_hyper_nn_anh_8.o}
 -> task failed (err #1): 
	{task: cxx test_dnn_ff.cpp -> test_dnn_ff_5.o}
 -> task failed (err #1): 
	{task: cxx test_hyper_nn.cpp -> test_hyper_nn_4.o}

`

@marla729
Copy link

marla729 commented Aug 6, 2017

Hi,
I have the same issue here. Did you eventually figure out how to fix it?
Thanks!

@ducha-aiki
Copy link
Author

@marla729 unfortunately, no. But since I need sferes for adversarial attack library, I just have found another one, called foolbox.

@jbmouret
Copy link
Member

Sorry for answering this only now... but can you tell me which version of sferes you were using (the master?) and on which OS/compiler?

Thanks.

@ghost
Copy link

ghost commented Sep 13, 2018

@jbmouret
Hi,I have the same issue here. can you tell me how to fix it?
Thanks!

@jbmouret
Copy link
Member

Can you tell me which version of sferes and which OS/Compiler ?

@ghost
Copy link

ghost commented Sep 13, 2018

@jbmouret g++ and steres2 in ubuntu16.4

@jbmouret
Copy link
Member

jbmouret commented Sep 13, 2018 via email

@ghost
Copy link

ghost commented Sep 13, 2018

5.4.0

@jbmouret
Copy link
Member

Thanks. It should work with 5.4.0 (I just checked). Can you copy/paste the output of ./waf configure ?

@ghost
Copy link

ghost commented Sep 14, 2018

Thanks. It should work with 5.4.0 (I just checked). Can you copy/paste the output of ./waf configure ?

sure.Thanks!

`module : [modules/nn2]
module : [modules/map_elite]
Check for program g++ or c++ : /usr/bin/g++
Check for program cpp : /usr/bin/cpp
Check for program ar : /usr/bin/ar
Check for program ranlib : /usr/bin/ranlib
Checking for g++ : ok
boost headers : Version 1_58 (/usr/include)
library boost_serialization : not found
library boost_filesystem : not found
library boost_system : not found
library boost_unit_test_framework : not found
library boost_program_options : not found
library boost_graph : not found
library boost_mpi : not found
library boost_python : not found
library boost_thread : not found
Checking for header tbb/parallel_for.h : ok /usr/include
Checking for library libtbb : not found
Checking for header tbb/parallel_for.h : ok /usr/include
Checking for library libtbb : not found
Checking for header mpi.h : ok /usr/include/mpi
Checking for SDL (optional) : not found
Checking for header Eigen/Core : ok /usr/include/eigen3
Check for program ode-config : not found
Checking for ODE (optional) : not found
Checking for GSL (optional) : not found

--- configuration ---
compiler:

  • CXX: gcc
    boost version: 1_58
    mpi: False
    Compilation flags :
  • default:
    CXXFLAGS : -D_REENTRANT -Wall -fPIC -ftemplate-depth-1024 -Wno-sign-compare -Wno-deprecated -Wno-unused -DNO_PARALLEL -DEIGEN3_ENABLED -DSFERES_ROOT="/home/rosey/Documents/ML/DNN/sferes" -DNDEBUG -O3 -ffast-math
    LINKFLAGS:
  • debug:
    CXXFLAGS : -D_REENTRANT -Wall -fPIC -ftemplate-depth-1024 -Wno-sign-compare -Wno-deprecated -Wno-unused -DNO_PARALLEL -DEIGEN3_ENABLED -DSFERES_ROOT="/home/rosey/Documents/ML/DNN/sferes" -O1 -ggdb3 -DDBG_ENABLED
    LINKFLAGS:

--- license ---
Sferes2 is distributed under the CECILL license (GPL-compatible)
Please check the accompagnying COPYING file or http://www.cecill.info/
'configure' finished successfully (0.248s)
`

@jbmouret
Copy link
Member

OK. So the issue is that you are not in C++11 (it should have been detected automatically). I will check what could be wrong in the detection.

Also, your boost libraries are not found (--boost-libs=/path/to/boost/libs).

The waf configure should look like this (see the compilation options):

Command-line options for module [modules/nn2] :  -> no option found 
Command-line options for exp [exp/coco_elite] :  -> OK 
Command-line options for exp [exp/map_elites_hexapod] :  -> OK 
Command-line options for exp [exp/example]            :  -> OK 
Command-line options for exp [exp/map_elites_softbots_orig] :  -> OK 
Setting top to                           : /home/jmouret/git/sferes2 
Setting out to                           : /home/jmouret/git/sferes2/build 
Checking for 'g++' (C++ compiler)        : /usr/bin/g++ 
Checking boost includes                  : 1_58 
Checking boost libs                      : ok 
Checking Intel TBB includes (optional)   : /usr/include 
Checking Intel TBB libs (optional)       : /usr/lib/x86_64-linux-gnu 
Checking for MPI include (optional)      : ok 
Checking for MPI libs (optional)         : ok 
Checking for Eigen                       : ok 
Configuring for module: [modules/nn2]
 modules/nn2 -> no configuration found

--- configuration ---
compiler(s):
 * CXX: gcc
boost version: 1_58
mpi: True
Compilation flags :
   CXXFLAGS : -D_REENTRANT -Wall -fPIC -ftemplate-depth-1024 -Wno-sign-compare -Wno-deprecated  -Wno-unused -DSFERES_ROOT="/home/jmouret/git/sferes2"  -std=c++11 -DMPI_ENABLED -DEIGEN3_ENABLED 
   LINKFLAGS: 

@ghost
Copy link

ghost commented Sep 14, 2018

@jbmouret Thanks.But I don't know why my boost libraries and c++11 are not found ,my boost libraries was installed successfully.I don't know how to fix it, thank you for your help.

@ghost
Copy link

ghost commented Sep 17, 2018

@jbmouret Hi,Can you help me solve this problem? my output of waf configure and waf build are below.thanks!
waf configure
`module : [modules/nn2]
module : [modules/map_elite]
Check for program g++ or c++ : /usr/bin/g++
Check for program cpp : /usr/bin/cpp
Check for program ar : /usr/bin/ar
Check for program ranlib : /usr/bin/ranlib
Checking for g++ : ok
boost headers : Version 1_58 (/usr/include)
library boost_serialization : ok
library boost_filesystem : ok
library boost_system : ok
library boost_unit_test_framework : ok
library boost_program_options : ok
library boost_graph : ok
library boost_mpi : ok
library boost_python : ok
library boost_thread : ok
Checking for header tbb/parallel_for.h : ok /usr/include
Checking for library libtbb : not found
Checking for header tbb/parallel_for.h : ok /usr/include
Checking for library libtbb : not found
Checking for header mpi.h : ok /usr/include/mpi
Checking for SDL (optional) : not found
Checking for header Eigen/Core : ok /usr/include/eigen3
Check for program ode-config : not found
Checking for ODE (optional) : not found
Checking for GSL (optional) : not found

--- configuration ---
compiler:

  • CXX: gcc
    boost version: 1_58
    mpi: True
    Compilation flags :
  • default:
    CXXFLAGS : -D_REENTRANT -Wall -fPIC -ftemplate-depth-1024 -Wno-sign-compare -Wno-deprecated -Wno-unused -DMPI_ENABLED -DNO_PARALLEL -DEIGEN3_ENABLED -DSFERES_ROOT="/home/rosey/Documents/ML/DNN/sferes" -DNDEBUG -O3 -ffast-math
    LINKFLAGS:
  • debug:
    CXXFLAGS : -D_REENTRANT -Wall -fPIC -ftemplate-depth-1024 -Wno-sign-compare -Wno-deprecated -Wno-unused -DMPI_ENABLED -DNO_PARALLEL -DEIGEN3_ENABLED -DSFERES_ROOT="/home/rosey/Documents/ML/DNN/sferes" -O1 -ggdb3 -DDBG_ENABLED
    LINKFLAGS:

--- license ---
Sferes2 is distributed under the CECILL license (GPL-compatible)
Please check the accompagnying COPYING file or http://www.cecill.info/
'configure' finished successfully (0.311s)`

waf build
module : [modules/nn2] module : [modules/map_elite] Waf: Entering directory /home/rosey/Documents/ML/DNN/sferes/build'
Entering directory /home/rosey/Documents/ML/DNN/sferes' Entering directory /home/rosey/Documents/ML/DNN/sferes/modules/'
Entering directory /home/rosey/Documents/ML/DNN/sferes/modules/' [18/90] cxx: modules/nn2/test_hyper_nn.cpp -> build/default/modules/nn2/test_hyper_nn_4.o [19/90] cxx: modules/nn2/test_dnn_ff.cpp -> build/default/modules/nn2/test_dnn_ff_5.o [21/90] cxx: modules/nn2/bench_nn.cpp -> build/default/modules/nn2/bench_nn_7.o [22/90] cxx: modules/nn2/test_hyper_nn_anh.cpp -> build/default/modules/nn2/test_hyper_nn_anh_8.o In file included from ../modules/nn2/test_dnn_ff.cpp:52:0: ../sferes/phen/parameters.hpp: In instantiation of ‘const float sferes::phen::Parameters<sferes::gen::EvoFloat<1, Params>, sferes::fit::FitDummy<>, Params>::max_p’: ../sferes/phen/parameters.hpp:61:52: required from ‘void sferes::phen::Parameters<Gen, Fit, Params, Exact>::develop() [with Gen = sferes::gen::EvoFloat<1, Params>; Fit = sferes::fit::FitDummy<>; Params = Params; Exact = stc::Itself]’ ../modules/nn2/phen_dnn.hpp:58:8: required from ‘void sferes::phen::Dnn<Gen, Fit, Params, Exact>::develop() [with Gen = sferes::gen::DnnFF<nn::Neuron<nn::PfWSum<sferes::phen::Parameters<sferes::gen::EvoFloat<1, Params>, sferes::fit::FitDummy<>, Params> >, nn::AfTanh<sferes::phen::Parameters<sferes::gen::EvoFloat<1, Params>, sferes::fit::FitDummy<>, Params> > >, nn::Connection<sferes::phen::Parameters<sferes::gen::EvoFloat<1, Params>, sferes::fit::FitDummy<>, Params> >, Params>; Fit = sferes::fit::FitDummy<Params>; Params = Params; Exact = stc::Itself]’ ../modules/nn2/test_dnn_ff.cpp:123:13: required from here ../sferes/phen/parameters.hpp:57:26: error: the value of ‘Params::parameters::max’ is not usable in a constant expression SFERES_CONST float max_p = Params::parameters::max; ^ ../modules/nn2/test_dnn_ff.cpp:75:24: note: ‘Params::parameters::max’ does not have integral or enumeration type SFERES_CONST float max = 5.0f; ^ In file included from ../modules/nn2/test_hyper_nn.cpp:41:0: ../sferes/phen/parameters.hpp: In instantiation of ‘const float sferes::phen::Parameters<sferes::gen::EvoFloat<1, Params1>, sferes::fit::FitDummy<>, Params1>::max_p’: ../sferes/phen/parameters.hpp:61:52: required from ‘void sferes::phen::Parameters<Gen, Fit, Params, Exact>::develop() [with Gen = sferes::gen::EvoFloat<1, Params1>; Fit = sferes::fit::FitDummy<>; Params = Params1; Exact = stc::Itself]’ ../modules/nn2/gen_hyper_nn.hpp:68:11: required from ‘void sferes::gen::HyperNn<W, Params>::init() [with W = sferes::phen::Parameters<sferes::gen::EvoFloat<1, Params1>, sferes::fit::FitDummy<>, Params1>; Params = Params1]’ ../modules/nn2/test_hyper_nn.cpp:196:13: required from here ../sferes/phen/parameters.hpp:57:26: error: the value of ‘Params1::parameters::max’ is not usable in a constant expression SFERES_CONST float max_p = Params::parameters::max; ^ ../modules/nn2/test_hyper_nn.cpp:78:24: note: ‘Params1::parameters::max’ does not have integral or enumeration type SFERES_CONST float max = 2.0f; ^ In file included from ../modules/nn2/test_hyper_nn.cpp:41:0: ../sferes/phen/parameters.hpp: In instantiation of ‘const float sferes::phen::Parameters<sferes::gen::EvoFloat<1, Params2>, sferes::fit::FitDummy<>, Params2>::max_p’: ../sferes/phen/parameters.hpp:61:52: required from ‘void sferes::phen::Parameters<Gen, Fit, Params, Exact>::develop() [with Gen = sferes::gen::EvoFloat<1, Params2>; Fit = sferes::fit::FitDummy<>; Params = Params2; Exact = stc::Itself]’ ../modules/nn2/phen_hyper_nn.hpp:121:11: required from ‘void sferes::phen::HyperNn<Gen, Fit, Params, Exact>::develop() [with Gen = sferes::gen::HyperNn<sferes::phen::Parameters<sferes::gen::EvoFloat<1, Params2>, sferes::fit::FitDummy<>, Params2>, Params2>; Fit = sferes::fit::FitDummy<>; Params = Params2; Exact = stc::Itself]’ ../modules/nn2/test_hyper_nn.cpp:235:17: required from here ../sferes/phen/parameters.hpp:57:26: error: the value of ‘Params2::parameters::max’ is not usable in a constant expression SFERES_CONST float max_p = Params::parameters::max; ^ ../modules/nn2/test_hyper_nn.cpp:135:24: note: ‘Params2::parameters::max’ does not have integral or enumeration type SFERES_CONST float max = 2.0f; ^ In file included from ../modules/nn2/test_hyper_nn_anh.cpp:41:0: ../sferes/phen/parameters.hpp: In instantiation of ‘const float sferes::phen::Parameters<sferes::gen::EvoFloat<1, Params1>, sferes::fit::FitDummy<>, Params1>::max_p’: ../sferes/phen/parameters.hpp:61:52: required from ‘void sferes::phen::Parameters<Gen, Fit, Params, Exact>::develop() [with Gen = sferes::gen::EvoFloat<1, Params1>; Fit = sferes::fit::FitDummy<>; Params = Params1; Exact = stc::Itself]’ ../modules/nn2/gen_hyper_nn.hpp:68:11: required from ‘void sferes::gen::HyperNn<W, Params>::init() [with W = sferes::phen::Parameters<sferes::gen::EvoFloat<1, Params1>, sferes::fit::FitDummy<>, Params1>; Params = Params1]’ ../modules/nn2/test_hyper_nn_anh.cpp:209:15: required from here ../sferes/phen/parameters.hpp:57:26: error: the value of ‘Params1::parameters::max’ is not usable in a constant expression SFERES_CONST float max_p = Params::parameters::max; ^ ../modules/nn2/test_hyper_nn_anh.cpp:81:24: note: ‘Params1::parameters::max’ does not have integral or enumeration type SFERES_CONST float max = 2.0f; ^ Waf: Leaving directory /home/rosey/Documents/ML/DNN/sferes/build'
Build failed:
-> task failed (err #1):
{task: cxx test_dnn_ff.cpp -> test_dnn_ff_5.o}
-> task failed (err #1):
{task: cxx test_hyper_nn.cpp -> test_hyper_nn_4.o}
-> task failed (err #1):
{task: cxx test_hyper_nn_anh.cpp -> test_hyper_nn_anh_8.o}
`

@jbmouret
Copy link
Member

Can you try to configure with the cpp14 option? like this:

./waf configure --cpp14=yes

(and copy-paste the output).

@ghost
Copy link

ghost commented Sep 17, 2018

@jbmouret ok,thanks
`./waf configure --boost-libs=/usr/lib64 cpp14=yes
module : [modules/nn2]
module : [modules/map_elite]
Check for program g++ or c++ : /usr/bin/g++
Check for program cpp : /usr/bin/cpp
Check for program ar : /usr/bin/ar
Check for program ranlib : /usr/bin/ranlib
Checking for g++ : ok
boost headers : Version 1_58 (/usr/include)
library boost_serialization : ok
library boost_filesystem : ok
library boost_system : ok
library boost_unit_test_framework : ok
library boost_program_options : ok
library boost_graph : ok
library boost_mpi : ok
library boost_python : ok
library boost_thread : ok
Checking for header tbb/parallel_for.h : ok /usr/include
Checking for library libtbb : not found
Checking for header tbb/parallel_for.h : ok /usr/include
Checking for library libtbb : not found
Checking for header mpi.h : ok /usr/include/mpi
Checking for SDL (optional) : not found
Checking for header Eigen/Core : ok /usr/include/eigen3
Check for program ode-config : not found
Checking for ODE (optional) : not found
Checking for GSL (optional) : not found

--- configuration ---
compiler:

  • CXX: gcc
    boost version: 1_58
    mpi: True
    Compilation flags :
  • default:
    CXXFLAGS : -D_REENTRANT -Wall -fPIC -ftemplate-depth-1024 -Wno-sign-compare -Wno-deprecated -Wno-unused -DMPI_ENABLED -DNO_PARALLEL -DEIGEN3_ENABLED -DSFERES_ROOT="/home/rosey/Documents/ML/DNN/sferes" -DNDEBUG -O3 -ffast-math
    LINKFLAGS:
  • debug:
    CXXFLAGS : -D_REENTRANT -Wall -fPIC -ftemplate-depth-1024 -Wno-sign-compare -Wno-deprecated -Wno-unused -DMPI_ENABLED -DNO_PARALLEL -DEIGEN3_ENABLED -DSFERES_ROOT="/home/rosey/Documents/ML/DNN/sferes" -O1 -ggdb3 -DDBG_ENABLED
    LINKFLAGS:

--- license ---
Sferes2 is distributed under the CECILL license (GPL-compatible)
Please check the accompagnying COPYING file or http://www.cecill.info/
'configure' finished successfully (0.238s)
error: No such command 'cpp14=yes'
`

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants