Skip to content

Make error 'insan' for Ubuntu #35

@sgalla32

Description

@sgalla32

Kia ora,

I am trying to install mapgd on my linux/Ubuntu 16.04 xenial platform. I am able to run ./configure just fine (see config.log, attached). But when I use the make command, I get the following error:

data_types/sample_gof.cc: In member function ‘virtual void Sample_gof::write(std::ostream&) const’:
data_types/sample_gof.cc:73:20: error: ‘isnan’ was not declared in this scope
  if (!isnan(number_) )
                    ^
data_types/sample_gof.cc:73:20: note: suggested alternative:
In file included from /usr/include/c++/5/random:38:0,
                 from /usr/include/c++/5/bits/stl_algo.h:66,
                 from /usr/include/c++/5/algorithm:62,
                 from ./stream_tools/stream_tools.h:8,
                 from data_types/sample_gof.h:14,
                 from data_types/sample_gof.cc:1:
/usr/include/c++/5/cmath:641:5: note:   ‘std::isnan’
     isnan(_Tp __x)
     ^
Makefile:238: recipe for target 'objs/sample_gof.o' failed
make[2]: *** [objs/sample_gof.o] Error 1
make[2]: Leaving directory '/home/stephanie/MAPGD-master/src/mapgd_0.4'
Makefile:10: recipe for target 'mapgd_0.4' failed
make[1]: *** [mapgd_0.4] Error 2
make[1]: Leaving directory '/home/stephanie/MAPGD-master/src'
Makefile:62: recipe for target 'src' failed
make: *** [src] Error 2

And when I run sudo make install:

data_types/sample_gof.cc: In member function ‘virtual void Sample_gof::write(std::ostream&) const’:
data_types/sample_gof.cc:73:20: error: ‘isnan’ was not declared in this scope
  if (!isnan(number_) )
                    ^
data_types/sample_gof.cc:73:20: note: suggested alternative:
In file included from /usr/include/c++/5/random:38:0,
                 from /usr/include/c++/5/bits/stl_algo.h:66,
                 from /usr/include/c++/5/algorithm:62,
                 from ./stream_tools/stream_tools.h:8,
                 from data_types/sample_gof.h:14,
                 from data_types/sample_gof.cc:1:
/usr/include/c++/5/cmath:641:5: note:   ‘std::isnan’
     isnan(_Tp __x)
     ^
Makefile:238: recipe for target 'objs/sample_gof.o' failed
make[2]: *** [objs/sample_gof.o] Error 1
make[2]: Leaving directory '/home/stephanie/MAPGD-master/src/mapgd_0.4'
Makefile:10: recipe for target 'mapgd_0.4' failed
make[1]: *** [mapgd_0.4] Error 2
make[1]: Leaving directory '/home/stephanie/MAPGD-master/src'
Makefile:62: recipe for target 'src' failed
make: *** [src] Error 2

Is there an easy way to get around this error with the install? Thank you very much for your time and help.

config.log

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions