[LLVMdev] LLVM on OpenBSD

Gordon Henriksen gordonhenriksen at mac.com
Wed Jun 11 03:49:04 PDT 2008

On 2008-06-10, at 09:19, Edd Barrett wrote:

> I am a student considering a compiler design based dissertation with  
> llvm. I am having problems building llvm on OpenBSD-current. I hope  
> to make a port of llvm for OpenBSD once I have figured out how to  
> build it.

Hi Edd,

Could you please update to r52213 or later in svn and check whether  
this error is resolved with your gcc?


If not, I'll just write a configure test for this as the related FIXME  

> llvm[3]: Compiling Deserialize.cpp for Release build
> BitWriter.cpp: In function `int  
> LLVMWriteBitcodeToFileHandle(LLVMOpaqueModule*,
>   int)':
> BitWriter.cpp:40: error: no matching function for call to `
>   __gnu_cxx::stdio_filebuf<char, std::char_traits<char>  
> >::stdio_filebuf(int&,
>   std::_Ios_Openmode)'
> /usr/include/g++/ext/stdio_filebuf.h:53: error: candidates are:
>   __gnu_cxx::stdio_filebuf<char, std::char_traits<char>  
> >::stdio_filebuf(const
>   __gnu_cxx::stdio_filebuf<char, std::char_traits<char> >&)
> /usr/include/g++/ext/stdio_filebuf.h:147: error:
>   __gnu_cxx::stdio_filebuf<_CharT,  
> _Traits>::stdio_filebuf(std::__c_file*,
>   std::_Ios_Openmode, long unsigned int) [with _CharT = char,  
> _Traits =
>   std::char_traits<char>] <near match>
> /usr/include/g++/ext/stdio_filebuf.h:122: error:
>   __gnu_cxx::stdio_filebuf<_CharT, _Traits>::stdio_filebuf(int,
>   std::_Ios_Openmode, bool, long unsigned int) [with _CharT = char,  
> _Traits =
>   std::char_traits<char>]

— Gordon

More information about the llvm-dev mailing list