[cfe-dev] ExceptionDemo build failed

Dawie Joubert djjoubert at csir.co.za
Sun Apr 10 23:06:06 PDT 2011


Chris,

That fixed the "overloaded error" ... but now I have the following error
(from a clean build environment):

/home/dawiejoubert/Source/SVN/Clang/llvm/examples/ExceptionDemo/ExceptionDemo.cpp: In function ‘void print32Int(int, const char*)’:
/home/dawiejoubert/Source/SVN/Clang/llvm/examples/ExceptionDemo/ExceptionDemo.cpp:271: error: ‘stderr’ was not declared in this scope
/home/dawiejoubert/Source/SVN/Clang/llvm/examples/ExceptionDemo/ExceptionDemo.cpp:271: error: ‘fprintf’ was not declared in this scope
/home/dawiejoubert/Source/SVN/Clang/llvm/examples/ExceptionDemo/ExceptionDemo.cpp:275: error: ‘stderr’ was not declared in this scope
/home/dawiejoubert/Source/SVN/Clang/llvm/examples/ExceptionDemo/ExceptionDemo.cpp:275: error: ‘fprintf’ was not declared in this scope
/home/dawiejoubert/Source/SVN/Clang/llvm/examples/ExceptionDemo/ExceptionDemo.cpp: In function ‘void print64Int(long int, const char*)’:
/home/dawiejoubert/Source/SVN/Clang/llvm/examples/ExceptionDemo/ExceptionDemo.cpp:288: error: ‘stderr’ was not declared in this scope
/home/dawiejoubert/Source/SVN/Clang/llvm/examples/ExceptionDemo/ExceptionDemo.cpp:288: error: ‘fprintf’ was not declared in this scope
/home/dawiejoubert/Source/SVN/Clang/llvm/examples/ExceptionDemo/ExceptionDemo.cpp:292: error: ‘stderr’ was not declared in this scope
/home/dawiejoubert/Source/SVN/Clang/llvm/examples/ExceptionDemo/ExceptionDemo.cpp:292: error: ‘fprintf’ was not declared in this scope
/home/dawiejoubert/Source/SVN/Clang/llvm/examples/ExceptionDemo/ExceptionDemo.cpp: In function ‘void printStr(char*)’:
/home/dawiejoubert/Source/SVN/Clang/llvm/examples/ExceptionDemo/ExceptionDemo.cpp:301: error: ‘stderr’ was not declared in this scope
/home/dawiejoubert/Source/SVN/Clang/llvm/examples/ExceptionDemo/ExceptionDemo.cpp:301: error: ‘fprintf’ was not declared in this scope
/home/dawiejoubert/Source/SVN/Clang/llvm/examples/ExceptionDemo/ExceptionDemo.cpp:304: error: ‘stderr’ was not declared in this scope
/home/dawiejoubert/Source/SVN/Clang/llvm/examples/ExceptionDemo/ExceptionDemo.cpp:304: error: ‘fprintf’ was not declared in this scope
/home/dawiejoubert/Source/SVN/Clang/llvm/examples/ExceptionDemo/ExceptionDemo.cpp: In function ‘void runExceptionThrow(llvm::ExecutionEngine*, llvm::Function*, int32_t)’:
/home/dawiejoubert/Source/SVN/Clang/llvm/examples/ExceptionDemo/ExceptionDemo.cpp:1594: error: ‘stderr’ was not declared in this scope
/home/dawiejoubert/Source/SVN/Clang/llvm/examples/ExceptionDemo/ExceptionDemo.cpp:1597: error: ‘fprintf’ was not declared in this scope
/home/dawiejoubert/Source/SVN/Clang/llvm/examples/ExceptionDemo/ExceptionDemo.cpp:1606: error: ‘stderr’ was not declared in this scope
/home/dawiejoubert/Source/SVN/Clang/llvm/examples/ExceptionDemo/ExceptionDemo.cpp:1607: error: ‘fprintf’ was not declared in this scope
/home/dawiejoubert/Source/SVN/Clang/llvm/examples/ExceptionDemo/ExceptionDemo.cpp: In function ‘int main(int, char**)’:
/home/dawiejoubert/Source/SVN/Clang/llvm/examples/ExceptionDemo/ExceptionDemo.cpp:1912: error: ‘stderr’ was not declared in this scope
/home/dawiejoubert/Source/SVN/Clang/llvm/examples/ExceptionDemo/ExceptionDemo.cpp:1921: error: ‘fprintf’ was not declared in this scope
/home/dawiejoubert/Source/SVN/Clang/llvm/examples/ExceptionDemo/ExceptionDemo.cpp:1982: error: ‘stderr’ was not declared in this scope
/home/dawiejoubert/Source/SVN/Clang/llvm/examples/ExceptionDemo/ExceptionDemo.cpp:1982: error: ‘fprintf’ was not declared in this scope
make[2]: ***
[examples/ExceptionDemo/CMakeFiles/ExceptionDemo.dir/ExceptionDemo.cpp.o] Error 1
make[1]: *** [examples/ExceptionDemo/CMakeFiles/ExceptionDemo.dir/all]
Error 2
make[1]: *** Waiting for unfinished jobs....


Best regards,

Dawie Joubert
Senior Researcher: Information Security, Modelling and Digital Science,
CSIR

Tel: +27 12 841 3379
Fax: +27 12 841 2456
Mobile: +27 84 589 2078
E-Mail: djjoubert at csir.co.za



-----Original Message-----
From: Chris Lattner <clattner at apple.com>
To: djjoubert at csir.co.za
Cc: cfe-dev <cfe-dev at cs.uiuc.edu>
Subject: Re: [cfe-dev] ExceptionDemo build failed
Date: Fri, 08 Apr 2011 11:01:25 -0700

On Apr 8, 2011, at 12:12 AM, Dawie Joubert wrote:

> Dear LLVM Devs,
> 
> Recently when doing even a clean build the following error occurs:
> 
> /home/dawiejoubert/Source/SVN/Clang/llvm/examples/ExceptionDemo/ExceptionDemo.cpp: In function ‘void createStandardUtilityFunctions(unsigned int, llvm::Module&, llvm::IRBuilder<true, llvm::ConstantFolder, llvm::IRBuilderDefaultInserter<true> >&)’:
> /home/dawiejoubert/Source/SVN/Clang/llvm/examples/ExceptionDemo/ExceptionDemo.cpp:1666: error: call of overloaded ‘get(llvm::LLVMContext&, const llvm::IntegerType*, NULL)’ is ambiguous

Fixed in r129139, thanks.

-Chris
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 490 bytes
Desc: This is a digitally signed message part
URL: <http://lists.llvm.org/pipermail/cfe-dev/attachments/20110411/a67e1246/attachment.sig>


More information about the cfe-dev mailing list