Anton Vayvod
2006-Sep-02 14:46 UTC
[LLVMdev] error in /lib/CodeGen/MachOWriter.cpp: line 200
Hi! I updated LLVM from CVS today and run into the following error: /lib/CodeGen/MachOWriter.cpp: line 200: no match for function max(unsigned_int_32, unsigned int) the line is Sec.align = std::max(Sec.align, Align); where Sec.align is of type "unsigned_int_32" and Align is of "unsigned int". I use gcc-3.4.4 under cygwin. Сasting of the first parameter to simple unsigned type solved the problem (though casting of the second to unsigned_int_32 may be more correct solution). Thanks. I can put together a patch if necessary. Though, may be, it's the problem of my gcc only. Tony. -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20060902/dc793f44/attachment.html>
Chris Lattner
2006-Sep-02 18:34 UTC
[LLVMdev] error in /lib/CodeGen/MachOWriter.cpp: line 200
On Sat, 2 Sep 2006, Anton Vayvod wrote:> Hi! > I updated LLVM from CVS today and run into the following error: > > /lib/CodeGen/MachOWriter.cpp: line 200: no match for function > max(unsigned_int_32, unsigned int) > > the line is > > Sec.align = std::max(Sec.align, Align); > > where Sec.align is of type "unsigned_int_32" and Align is of "unsigned int". > > I use gcc-3.4.4 under cygwin. asting of the first parameter to simple > unsigned type solved the problem (though casting of the second to > unsigned_int_32 may be more correct solution). > Thanks. I can put together a patch if necessary. Though, may be, it's the > problem of my gcc only.Intresting, I guess your gcc is treating uint32_t as different from unsigned. I applied the patch you suggested, thanks! -Chris -- http://nondot.org/sabre/ http://llvm.org/
Seemingly Similar Threads
- [LLVMdev] Removal of GVStub methods from MachineCodeEmitter, ELFWriter, and MachOWriter
- [LLVMdev] Removal of GVStub methods from MachineCodeEmitter, ELFWriter, and MachOWriter
- [LLVMdev] error in /lib/CodeGen/MachOWriter.cpp: line 200
- [LLVMdev] Win32 COFF Support
- [LLVMdev] Adding register allocator to LLVM