[LLVMdev] LLVM on OpenBSD
Edd Barrett
vext01 at gmail.com
Tue Jun 10 06:19:48 PDT 2008
Hi there,
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.
Observe:
llvm[3]: Compiling Deserialize.cpp for Release build
In file included from /home/edd/llvm/llvm-2.3/include/llvm/Bitcode/BitstreamRead
er.h:18,
from /home/edd/llvm/llvm-2.3/include/llvm/Bitcode/Deserialize.h
:18,
from Deserialize.cpp:14:
/home/edd/llvm/llvm-2.3/include/llvm/Bitcode/BitCodes.h:158: warning: `class
llvm::BitCodeAbbrev' only defines a private destructor and has no friends
llvm[3]: Compiling DeserializeAPFloat.cpp for Release build
In file included from /home/edd/llvm/llvm-2.3/include/llvm/Bitcode/BitstreamRead
er.h:18,
from /home/edd/llvm/llvm-2.3/include/llvm/Bitcode/Deserialize.h
:18,
from DeserializeAPFloat.cpp:15:
/home/edd/llvm/llvm-2.3/include/llvm/Bitcode/BitCodes.h:158: warning: `class
llvm::BitCodeAbbrev' only defines a private destructor and has no friends
llvm[3]: Compiling DeserializeAPInt.cpp for Release build
In file included from /home/edd/llvm/llvm-2.3/include/llvm/Bitcode/BitstreamRead
er.h:18,
from /home/edd/llvm/llvm-2.3/include/llvm/Bitcode/Deserialize.h
:18,
from DeserializeAPInt.cpp:15:
/home/edd/llvm/llvm-2.3/include/llvm/Bitcode/BitCodes.h:158: warning: `class
llvm::BitCodeAbbrev' only defines a private destructor and has no friends
llvm[3]: Building Release Archive Library libLLVMBitReader.a
gmake[3]: Leaving directory `/home/edd/llvm/llvm-2.3/lib/Bitcode/Reader'
gmake[3]: Entering directory `/home/edd/llvm/llvm-2.3/lib/Bitcode/Writer'
llvm[3]: Compiling BitWriter.cpp for Release build
In file included from /home/edd/llvm/llvm-2.3/include/llvm/Argument.h:18,
from /home/edd/llvm/llvm-2.3/include/llvm/Function.h:23,
from /home/edd/llvm/llvm-2.3/include/llvm/Module.h:17,
from /home/edd/llvm/llvm-2.3/include/llvm-c/Core.h:40,
from /home/edd/llvm/llvm-2.3/include/llvm-c/BitWriter.h:22,
from BitWriter.cpp:10:
/home/edd/llvm/llvm-2.3/include/llvm/ParameterAttributes.h:71: warning: `inline
' is not at beginning of declaration
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>]
gmake[3]: *** [/home/edd/llvm/llvm-2.3/lib/Bitcode/Writer/Release/BitWriter.o] E
rror 1
gmake[3]: Leaving directory `/home/edd/llvm/llvm-2.3/lib/Bitcode/Writer'
gmake[2]: *** [Writer/.makeall] Error 2
gmake[2]: Leaving directory `/home/edd/llvm/llvm-2.3/lib/Bitcode'
gmake[1]: *** [Bitcode/.makeall] Error 2
gmake[1]: Leaving directory `/home/edd/llvm/llvm-2.3/lib'
gmake: *** [all] Error 1
I wonder if anyone can suggest a workaround or fix.
Thanks
--
Best Regards
Edd
http://students.dec.bournemouth.ac.uk/ebarrett
More information about the llvm-dev
mailing list