On Thu, Jul 18, 2013 at 01:33:30AM -0400, Brad Smith wrote:
> On 18/07/13 1:11 AM, Anthony J. Bentley wrote:
> >Matthew Dempsky writes:
> >>On Sun, Jul 7, 2013 at 8:36 PM, Anthony J. Bentley <anth...@cathet.us>wrote:
> >>
> >>>Upstream released another graphics plugin, video-glide64mk2, but I haven't
> >>>made a port for it because it #includes <thread>, which doesn't seem to
> >>>appear with either GCC 4.6 or clang.
> >>>
> >>
> >>Is the source file C or C++?
> >
> >C++. Below is the error message. I've attached a port for the plugin, which
> >currently does not build; of course, I could have missed something really
> >obvious. Extract from within /usr/ports/emulators/mupen64plus to try it.
> >
> >c++ -fvisibility-inlines-hidden -std=gnu++0x -O2 -pipe -g  -Wall -ffast-math 
> >-fno-strict-aliasing -fvisibility=hidden -I../../src 
> >-I../../src/Glitch64/inc -DGCC -mmmx -msse -fno-PIC -I/usr/include 
> >-I/usr/local/include/libpng16 -I/usr/X11R6/include 
> >-I/usr/include/dev/pci/drm -I/usr/local/include -I/usr/local/include/SDL 
> >-D_GNU_SOURCE=1 -D_REENTRANT -I/usr/X11R6/include -DXTHREADS 
> >"-I/usr/local/include/mupen64plus" -MD -D__unix__ -DTEXTURE_FILTER   -c -o 
> >_obj/GlideHQ/TxFilter.o ../../src/GlideHQ/TxFilter.cpp
> >../../src/GlideHQ/TxFilter.cpp:32:10: fatal error: 'thread' file not found
> >#include <thread>
> >          ^
> >1 error generated.
> >gmake: *** [_obj/GlideHQ/TxFilter.o] Error 1
> 
> That header does exist with GCC 4.6 / 4.8 and is new with C++11.
> 
> include/c++/${V}/thread
> 

Anthony, the plugin compiles with gcc 4.6 on my computer. GCC uses
emutls on systems without TLS. Clang requires TLS support, so it doesn't
work on OpenBSD yet.

-- 
Juan Francisco Cantero Hurtado http://juanfra.info

Reply via email to