View Single Post

   
  #1 (permalink)  
Old 02-16-2008, 08:11 AM
Viatly
 
Posts: n/a
Default No way to get multithreaded gcc on OpenBSD?

Hi all. I am writing multithreaded C++ app which on my POV requires
gcc configured with Threading model: posix.
The one I have on my OpenBSD 4.2 is single-threaded:
#g++ -v
Reading specs from /usr/lib/gcc-lib/i386-unknown-openbsd4.2/3.3.5/
specs
Configured with:
Thread model: single
gcc version 3.3.5 (propolice)

OpenBSD ports does not provide multithreaded gcc, so I tried to build
it myself from gcc sources. I downloaded src for gcc 3.3.5 and for gcc
4.2.2 frok gcc site but failed to compile either of them! (I compiled
with --enable-threads=posix --enable-languages=c,c++). Trying to make
gcc 3.3.5 resulted in yacc error, for gcc 4.2.2 it was $< macro error.
I am wondering is it a way to get multithreaded gcc on OpenBSD 4.2?
Thanx.
Reply With Quote