Skip to content
This repository has been archived by the owner on May 24, 2018. It is now read-only.

OSX compile error2: 'isnan' was not declared in this scope #225

Open
alzmcr opened this issue Aug 14, 2015 · 1 comment
Open

OSX compile error2: 'isnan' was not declared in this scope #225

alzmcr opened this issue Aug 14, 2015 · 1 comment

Comments

@alzmcr
Copy link

alzmcr commented Aug 14, 2015

Hi guys - I'm trying this again :)

screen shot 2015-08-14 at 17 40 24

I'm getting this _sgd_updater-inl.hpp:19:16: error: 'isnan' was not declared in this scope_ error, which fails the rest of the build. Any idea why this is generated? Below is my config.mk for your reference:

# choice of compiler
export CC = gcc-4.8
export CXX = g++-4.8
export NVCC = nvcc

# whether use CUDA during compile
USE_CUDA = 0

# add the path to CUDA libary to link and compile flag
# if you have already add them to enviroment variable, leave it as NONE
USE_CUDA_PATH = NONE

# whether use opencv during compilation
# you can disable it, however, you will not able to use
# imbin iterator
USE_OPENCV = 0
USE_OPENCV_DECODER = 0
# whether use CUDNN R3 library
USE_CUDNN = 0
# add the path to CUDNN libary to link and compile flag
# if you do not need that, or do not have that, leave it as NONE
USE_CUDNN_PATH = NONE
# whether to build caffe converter
USE_CAFFE_CONVERTER = 0
CAFFE_ROOT =
CAFFE_INCLUDE =
CAFFE_LIB =
#
# choose the version of blas you want to use
# can be: mkl, blas, atlas, openblas
USE_STATIC_MKL = NONE
USE_BLAS = atlas
#
# add path to intel libary, you may need it
# for MKL, if you did not add the path to enviroment variable
#
USE_INTEL_PATH = NONE

# whether compile with parameter server
USE_DIST_PS = 0
PS_PATH = NONE
PS_THIRD_PATH = NONE

# whether compile with rabit
USE_RABIT_PS = 0
RABIT_PATH = rabit

# use openmp iterator
USE_OPENMP_ITER = 1
# the additional link flags you want to add
ADD_LDFLAGS = -ljpeg

# the additional compile flags you want to add
ADD_CFLAGS =
#
# If use MKL, choose static link automaticly to fix python wrapper
#
ifeq ($(USE_BLAS), mkl)
    USE_STATIC_MKL = 1
endif

#------------------------
# configuration for DMLC
#------------------------
# whether use HDFS support during compile
# this will allow cxxnet to directly save/load model from hdfs
USE_HDFS = 0

# whether use AWS S3 support during compile
# this will allow cxxnet to directly save/load model from s3
USE_S3 = 0

# path to libjvm.so
LIBJVM=$(JAVA_HOME)/jre/lib/amd64/server ```
@thirdwing
Copy link
Member

Hi, @alzmcr

This is a somewhat "classical" problem.

Can you try to replace isnan with std::isnan in https://github.com/dmlc/cxxnet/blob/master/src/updater/sgd_updater-inl.hpp#L19 ?

Let me know if it works.

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

No branches or pull requests

2 participants