[gambit-list] Fwd: OSX and --enable-multiple-vms

Mikael mikael.rcv at gmail.com
Thu Oct 16 13:15:51 EDT 2014


Just for completeness, can you paste first section of the configure output
too & tell "--version" for the C compiler in use?

2014-10-16 18:56 GMT+02:00 Adam King <akingcoder at gmail.com>:

> I didn't realize my reply to Mikael was off the list - here's a possible
> fix.  I'm still not sure if it's OSX10.10 specific or not:
>
> ---------- Forwarded message ----------
>
> Thanks - you only need to change the value in 'configure' (and '
> configure.ac' for a full autotool rebuild), and it does now work - not
> sure if this is an error in the configure script or OS X 10.10 specific.
>
> checking for struct stat64... yes
> checking for posix threads with CFLAGS=' ' and LIBS=' '... yes
> checking for thread local storage class... __thread
>
>  Adam
>
>
> On Thu, Oct 16, 2014 at 12:36 PM, Mikael wrote:
>
>> Adam, can you replace all occurrences in your Gambit sources of "pthread_join
>> (&thread, NULL);" with "pthread_join (thread, NULL);" and check again?
>>
>> 2014-10-16 17:54 GMT+02:00 Adam King <akingcoder at gmail.com>:
>>
>>> I'd like to try out the multiple vm option as I want to have 2 separate
>>> OS threads, each running their own copy of gambit - neither of which need
>>> to communicate with the other, so I tried to rebuild Gambit using the
>>> --enable-multiple-vms option (this is under OS X 10.10 - Yosemite with
>>> Xcode6 - 6A313):
>>>
>>> quorra:gambit aking$ ./configure --enable-multiple-vms --enable-cplusplus
>>>
>>> It ends up showing the following warning:
>>>
>>> checking for struct stat64... yes
>>> checking for posix threads with CFLAGS=' ' and LIBS=' '... no
>>> checking for posix threads with CFLAGS=' -mt' and LIBS=' '... no
>>> checking for posix threads with CFLAGS=' -pthread' and LIBS=' '... no
>>> checking for posix threads with CFLAGS=' ' and LIBS=' -lpthread'... no
>>> checking for win32 threads... no
>>> configure:
>>> *********************************************************************
>>> ***                                                               ***
>>> *** A thread system is required for this configuration but none   ***
>>> *** of the supported thread systems (posix threads and win32      ***
>>> *** threads) are available on this platform. The configuration    ***
>>> *** will proceed as though --disable-thread-system,               ***
>>> *** --disable-multiple-vms, and --disable-multiple-threaded-vms   ***
>>> *** were specified.                                               ***
>>> ***                                                               ***
>>> *********************************************************************
>>>
>>> Checking config.log, I see:
>>>
>>> configure:8106: checking for posix threads with CFLAGS=' ' and LIBS='
>>> -lpthread'
>>> configure:8133: g++ -o conftest    conftest.cpp  -lpthread >&5
>>> conftest.cpp:136:14: error: no matching function for call to
>>> 'pthread_join'
>>>              pthread_join (&thread, NULL);
>>>              ^~~~~~~~~~~~
>>> /usr/include/pthread.h:336:5: note: candidate function not viable: no
>>> known conversion from 'pthread_t *' (aka '_opaque_pthread_t **') to
>>> 'pthread_t' (aka '_opaque_pthread_t *') for 1st argument; remove &
>>> int pthread_join(pthread_t , void **) __DARWIN_ALIAS_C(pthread_join);
>>>     ^
>>> 1 error generated.
>>> configure:8133: $? = 1
>>>
>>> I *know* I have pthreads installed and working as I have 3 different
>>> apps all using pthreads on this system.  Not sure what's going wrong here -
>>> pthread's API change?
>>>
>>>   Adam
>>>
>>> _______________________________________________
>>> Gambit-list mailing list
>>> Gambit-list at iro.umontreal.ca
>>> https://webmail.iro.umontreal.ca/mailman/listinfo/gambit-list
>>>
>>>
>>
>
>
> _______________________________________________
> Gambit-list mailing list
> Gambit-list at iro.umontreal.ca
> https://webmail.iro.umontreal.ca/mailman/listinfo/gambit-list
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.iro.umontreal.ca/pipermail/gambit-list/attachments/20141016/f36ab94e/attachment.htm>


More information about the Gambit-list mailing list