[cfe-dev] error while making the clang

Wei Li weili747 at gmail.com
Tue Sep 21 06:52:01 PDT 2010


Dear all:

I just updated the files  and trying to build it again. I am getting
the following errors:


RegAllocPBQP.cpp: In member function ‘virtual
std::auto_ptr<llvm::PBQPRAProblem>
llvm::PBQPBuilderWithCoalescing::build(llvm::MachineFunction*, const
llvm::LiveIntervals*, const llvm::MachineLoopInfo*, const
std::set<unsigned int, std::less<unsigned int>,
std::allocator<unsigned int> >&)’:
RegAllocPBQP.cpp:296: error: call of overloaded ‘pow(float, unsigned
int)’ is ambiguous
/usr/include/bits/mathcalls.h:154: note: candidates are: double
pow(double, double)
/usr/lib/gcc/x86_64-redhat-linux/4.1.2/../../../../include/c++/4.1.2/cmath:345:
note:                 float std::pow(float, float)
/usr/lib/gcc/x86_64-redhat-linux/4.1.2/../../../../include/c++/4.1.2/cmath:349:
note:                 long double std::pow(long double, long double)
/usr/lib/gcc/x86_64-redhat-linux/4.1.2/../../../../include/c++/4.1.2/cmath:353:
note:                 double std::pow(double, int)
/usr/lib/gcc/x86_64-redhat-linux/4.1.2/../../../../include/c++/4.1.2/cmath:357:
note:                 float std::pow(float, int)
/usr/lib/gcc/x86_64-redhat-linux/4.1.2/../../../../include/c++/4.1.2/cmath:361:
note:                 long double std::pow(long double, int)
make[2]: *** [/home/weili/DPCpp/llvm/lib/CodeGen/Debug+Asserts/RegAllocPBQP.o]
Error 1
make[2]: Leaving directory `/home/weili/DPCpp/llvm/lib/CodeGen'
make[1]: *** [CodeGen/.makeall] Error 2
make[1]: Leaving directory `/home/vadve/ammalik/DPCpp/llvm/lib'
make: *** [all] Error 1

Any comments?

-- 
Regards,

Wei Li




More information about the cfe-dev mailing list