gkichaev / PAINTOR_V3.0

Fast, integrative fine mapping with functional data
55 stars 21 forks source link

Error installing (call of overloaded isinf is ambiguous) #24

Open billgreenwald opened 6 years ago

billgreenwald commented 6 years ago

Hello,

I am trying to install PAINTOR on a node running centos 7.2 with gcc version 4.9.4. I get the following errors while trying to install:

Functions_model.cpp:245:73: error: call of overloaded âisinf(double&)â is ambiguous
     if(isnan(log_bayes_factor_current) || isinf(log_bayes_factor_current)){
                                      ^
Functions_model.cpp:143:34: error: call of overloaded âisnan(double&)â is ambiguous
         if(isnan(log_bayes_factor) || isinf(log_bayes_factor)){
                                  ^

The output ends with

make: *** [PAINTOR] Error 1

any help is appreciated. thanks!

gkichaev commented 6 years ago

Hi Bill,

I need to update the installation wiki. You need to have a more recent version of gcc installed (I think 7.2 worked for the last person who encountered this problem).

--Gleb

On Thu, May 17, 2018 at 3:40 PM, Bill Greenwald notifications@github.com wrote:

Hello,

I am trying to install PAINTOR on a node running centos 7.2 with gcc version 4.9.4. I get the following errors while trying to install:

Functions_model.cpp:245:73: error: call of overloaded âisinf(double&)â is ambiguous if(isnan(log_bayes_factor_current) || isinf(log_bayes_factor_current)){ ^

Functions_model.cpp:143:34: error: call of overloaded âisnan(double&)â is ambiguous if(isnan(log_bayes_factor) || isinf(log_bayes_factor)){ ^

The output ends with

make: *** [PAINTOR] Error 1

any help is appreciated. thanks!

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/gkichaev/PAINTOR_V3.0/issues/24, or mute the thread https://github.com/notifications/unsubscribe-auth/AE-bO0RtIDwCus7TtSKClaE67LIjPEjxks5tzfxfgaJpZM4UD4Gf .

billgreenwald commented 6 years ago

That worked, thanks for the help.

A quick update to the README to change gcc version 4.9 required to gcc version 7.2.0 required would be a quick fix without editing the wiki