[LLVMbugs] Compile error on 64-bit x86 Solaris

Dale Johannesen dalej at apple.com
Wed Oct 24 09:32:32 PDT 2007


On Oct 24, 2007, at 4:09 AM, Zeljko Vrba wrote:

> I'm using gcc-4.2.2 and while compiling, I get the following error:
>
> In file included from /home/zvrba/llvm-2.1/lib/VMCore/AsmWriter.cpp: 
> 18:
> /home/zvrba/llvm-2.1/include/llvm/Assembly/PrintModulePass.h:34:  
> error: expected ',' or '...' before numeric constant
> /home/zvrba/llvm-2.1/include/llvm/Assembly/PrintModulePass.h:60:  
> error: expected ',' or '...' before numeric constant
> /home/zvrba/llvm-2.1/include/llvm/Assembly/PrintModulePass.h:60:  
> error: default argument missing for parameter 3 of  
> 'llvm::PrintFunctionPass::PrintFunctionPass(const std::string&,  
> llvm::OStream*, bool)'
> /home/zvrba/llvm-2.1/lib/VMCore/AsmWriter.cpp: In function 'void  
> WriteConstantInt(std::ostream&, const llvm::Constant*,  
> std::map<const llvm::Type*, std::basic_string<char,  
> std::char_traits<char>, std::allocator<char> >, std::less<const  
> llvm::Type*>, std::allocator<std::pair<const llvm::Type* const,  
> std::basic_string<char, std::char_traits<char>,  
> std::allocator<char> > > > >&, llvm::SlotMachine*)':
> /home/zvrba/llvm-2.1/lib/VMCore/AsmWriter.cpp:569: error: expected  
> primary-expression before 'const'
> /home/zvrba/llvm-2.1/lib/VMCore/AsmWriter.cpp:569: error: expected  
> `)' before 'const'
>
> PrintModulePass.h:34 is
>
> PrintModulePass(OStream *o, bool DS = false) ..
>
> Now, the problem is that the system header <sys/regset.h> gets
> included which contains the following #defines:
>
> #define CS              15
> #define DS              3
>
> (among others).  The LLVM code uses very much both of those names
> which results in a buch of compiler errors similar to the above.

Those names are in the user namespace; it is incorrect for <signal.h>
to be defining them.  Any chance of getting your headers fixed?






More information about the llvm-bugs mailing list