-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
Build fails with "'isnan' was not declared in this scope" on Ubuntu #52
Comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
See below for extract. I'm building on Ubuntu 16.04, 64-bit, and have got the following when building either the release, or the tip of trunk.
[ 25%] Building CXX object pxr/base/lib/gf/CMakeFiles/gf.dir/bbox3d.cpp.o
[ 25%] Building CXX object pxr/base/lib/gf/CMakeFiles/gf.dir/camera.cpp.o
[ 25%] Building CXX object pxr/base/lib/gf/CMakeFiles/gf.dir/colorRamp.cpp.o
In file included from /root/parts/usd/build/include/pxr/base/gf/colorRamp.h:28:0,
from /root/parts/usd/src/pxr/base/lib/gf/colorRamp.cpp:24:
/root/parts/usd/build/include/pxr/base/gf/rgb.h: In member function 'bool GfRGB::IsValid() const':
/root/parts/usd/build/include/pxr/base/gf/rgb.h:80:49: error: 'isnan' was not declared in this scope
bool IsValid() const { return !isnan(_rgb[0]); }
^
/root/parts/usd/build/include/pxr/base/gf/rgb.h:80:49: note: suggested alternative:
In file included from /root/parts/usd/build/include/pxr/base/arch/math.h:36:0,
from /root/parts/usd/build/include/pxr/base/gf/math.h:27,
from /root/parts/usd/build/include/pxr/base/gf/colorRamp.h:27,
from /root/parts/usd/src/pxr/base/lib/gf/colorRamp.cpp:24:
/usr/include/c++/5/cmath:641:5: note: 'std::isnan'
isnan(_Tp __x)
^
pxr/base/lib/gf/CMakeFiles/gf.dir/build.make:386: recipe for target 'pxr/base/lib/gf/CMakeFiles/gf.dir/colorRamp.cpp.o' failed
make[2]: *** [pxr/base/lib/gf/CMakeFiles/gf.dir/colorRamp.cpp.o] Error 1
CMakeFiles/Makefile2:1345: recipe for target 'pxr/base/lib/gf/CMakeFiles/gf.dir/all' failed
make[1]: *** [pxr/base/lib/gf/CMakeFiles/gf.dir/all] Error 2
Makefile:138: recipe for target 'all' failed
make: *** [all] Error 2
The text was updated successfully, but these errors were encountered: