Henrik Bach
2004-Jul-18 09:39 UTC
[LLVMdev] IsNAN.cpp:23:3: #error "Don't know how to get isnan()"
Hi Brian Here's the config.log (I'm not posting it on the dev-list). The automatic gcc macro for Interix is __INTERIX if this is to any help. /Henrik>From: "Brian R. Gaeke" <gaeke at uiuc.edu> >Reply-To: LLVM Developers Mailing List <llvmdev at cs.uiuc.edu> >To: LLVM Developers Mailing List <llvmdev at cs.uiuc.edu> >Subject: Re: [LLVMdev] IsNAN.cpp:23:3: #error "Don't know how to get >isnan()" >Date: Sat, 17 Jul 2004 03:55:00 -0500 > >Please send your 'config.log' file to me. > > > >From: Chris Lattner <sabre at nondot.org> > > >Date: Thu, 15 Jul 2004 17:43:27 -0500 (CDT) > > > > >Ah, suddenly everything makes sense. If you're interested in LLVM on >the > > >windows platform, *please* get CVS. > > > > Last night I've got the latest version of LLVM from CVS and now porting > > LLVM to Interix from this version on. > > > > I got this error: > > > > --------------------- > > gmake[1]: Entering directory `/usr/local/src/llvm/lib/Support' > > IsNAN.cpp:23:3: #error "Don't know how to get isnan()" > > --------------------- > > > > I can see that the .\configure script didn't find any version of >isnan(). > > However, I've manually found isnan() in >/opt/gcc.3.3/include/c++/3.3/cmath. > > > > Is this another configuration error from Interix or what? > > > > > > /Henrik > > > > _________________________________________________________________ > > F > >_______________________________________________ >LLVM Developers mailing list >LLVMdev at cs.uiuc.edu http://llvm.cs.uiuc.edu >http://mail.cs.uiuc.edu/mailman/listinfo/llvmdev_________________________________________________________________ F� alle de nye og sjove ikoner med MSN Messenger http://www.msn.dk/messenger -------------- next part -------------- A non-text attachment was scrubbed... Name: config.log Type: application/octet-stream Size: 89835 bytes Desc: not available URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20040718/73e4b2eb/attachment.obj>
Brian R. Gaeke
2004-Jul-18 22:32 UTC
[LLVMdev] IsNAN.cpp:23:3: #error "Don't know how to get isnan()"
Hi, I'm not exactly sure what's going on here. You mentioned in your earlier message that isnan() is declared in <cmath>, but from looking at your config.log, the check for isnan() in <cmath> that the configure script runs appears to be failing. Can you check whether either of the test programs actually compiles? /* first test program: is isnan() declared in <cmath>? */ #include <cmath> int foo(float f) {return isnan(f);} /* second test program: is std::isnan() declared in <cmath>? */ #include <cmath> using std::isnan; int foo(float f) {return isnan(f);} If not, perhaps there is a bug in the configure script's check. If you can play around with one of the above test programs and get make the int foo(float f) function to compile on Interix, let me know how you did it, and I can fix the test. -Brian
Apparently Analagous Threads
- [LLVMdev] IsNAN.cpp:23:3: #error "Don't know how to get isnan()"
- [LLVMdev] IsNAN.cpp:23:3: #error "Don't know how to get isnan()"
- Standalone Mathlib, C++ and ISNAN()
- [LLVMdev] Visual C Patches for IsNAN.cpp and IsInf.cpp
- [LLVMdev] Visual C Patches for IsNAN.cpp and IsInf.cpp