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

Error during make in slistartup.cc #401

Closed
BiaDarkia opened this issue Jun 16, 2016 · 3 comments
Closed

Error during make in slistartup.cc #401

BiaDarkia opened this issue Jun 16, 2016 · 3 comments

Comments

@BiaDarkia
Copy link

BiaDarkia commented Jun 16, 2016

I am trying to install NEST on arch linux, but keep receiving an error message when running make. I run the following commands for configure and make:

../nest-2.10.0/configure --prefix=/usr/local --without-openmp
make

I receive the following error message:

libtool: compile:  g++ -DHAVE_CONFIG_H -I. -I../../nest-2.10.0/sli -I../libnestutil -I../../nest-2.10.0/libnestutil -I../../nest-2.10.0/librandom -I../../nest-2.10.0/nestkernel -DPKGDATADIR=\"/usr/local/share/nest\" -DPKGDOCDIR=\"/usr/local/share/doc/nest\" -DPKGSOURCEDIR=\"/home/bianca/Downloads/nest-2.10.0\" -W -Wall -pedantic -Wno-long-long -O2 -MT slistartup.lo -MD -MP -MF .deps/slistartup.Tpo -c ../../nest-2.10.0/sli/slistartup.cc  -fPIC -DPIC -o .libs/slistartup.o
../../nest-2.10.0/sli/slistartup.cc: In member function 'bool SLIStartup::checkpath(const string&, std::__cxx11::string&) const':
../../nest-2.10.0/sli/slistartup.cc:75:15: error: cannot convert 'std::ifstream {aka std::basic_ifstream<char>}' to 'bool' in return
   return ( in );
               ^
Makefile:709: recipe for target 'slistartup.lo' failed
make[1]: *** [slistartup.lo] Error 1
make[1]: Leaving directory '/home/bianca/Downloads/nest-2.10.0-build/sli'
Makefile:539: recipe for target 'all-recursive' failed
make: *** [all-recursive] Error 1

Does anyone have any idea what may cause the issue?

@heplesser
Copy link
Contributor

@BiaDarkia You are probably using GCC 6 as compiler, which by default follows the C++11 standard, breaking some code. This is a duplicate of #220, which has been fixed by #389, but this was after the 2.10.0 release.

You have three options:

  • Run configure adding CXXFLAGS="-std=c++98" to the configure line to enforce use of C++98 standard
  • Pull the newest NEST sources from Github (note: they use CMake, so the configuration process is different; see the INSTALL file)
  • Manually patch slistartup.cc as shown here

@BiaDarkia
Copy link
Author

Thank you for the help. I tried searching for similar issues first, but didn't find the ones you are referencing. I managed to get NEST up and running by pulling the newest source code from GitHub and building with cmake.

@heplesser
Copy link
Contributor

@BiaDarkia Great! I will close the issue then.

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

2 participants