Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 23 Jul 2024 16:16:44 +0200 (CEST)
From:      Ronald Klop <ronald-lists@klop.ws>
To:        freebsd-ports@freebsd.org
Subject:   Re: advice for implementing an atomics wrapper
Message-ID:  <1711627700.7093.1721744204825@localhost>
In-Reply-To: <1261580643.7072.1721744051635@localhost>
References:  <1261580643.7072.1721744051635@localhost>

next in thread | previous in thread | raw e-mail | index | archive | help
------=_Part_7092_1350781026.1721744204821
Content-Type: text/plain; charset=us-ascii; format=flowed
Content-Transfer-Encoding: 7bit

Sorry,

Something broke the pasted URL.
https://github.com/mongodb/mongo/blob/master/src/mongo/platform/waitable_atomic.cpp

Another attempt.

Ronald.
 
Van: Ronald Klop <ronald-lists@klop.ws>
Datum: dinsdag, 23 juli 2024 16:14
Aan: freebsd-ports@freebsd.org
Onderwerp: advice for implementing an atomics wrapper
> 
> Hi,
> 
> For mongodb 8.0 I need to give a FreeBSD implementation of this file.
> 
> https://github.com/mongodb/mongo/blob/master/src/mongo/platform/waitable_atomic.cpp
> 
> Using the __Apple__ definition gives:
> ld.lld: error: undefined symbol: __ulock_wake
> ld.lld: error: undefined symbol: __ulock_wait
> 
> And the __linux__ definition uses futex which FreeBSD does not have AFAIK.
> 
> What is an easy way to port this file?
> 
> Regards,
> Ronald.
>  

 
------=_Part_7092_1350781026.1721744204821
Content-Type: text/html; charset=us-ascii
Content-Transfer-Encoding: 7bit

<html><head></head><body>Sorry,<br>
<br>
Something broke the pasted URL.<br>
<a href="https://github.com/mongodb/mongo/blob/master/src/mongo/platform/waitable_atomic.cpp">https://github.com/mongodb/mongo/blob/master/src/mongo/platform/waitable_atomic.cpp</a><br>;
<br>
Another attempt.<br>
<br>
Ronald.<br>
&nbsp;
<p><strong>Van:</strong> Ronald Klop &lt;ronald-lists@klop.ws&gt;<br>
<strong>Datum:</strong> dinsdag, 23 juli 2024 16:14<br>
<strong>Aan:</strong> freebsd-ports@freebsd.org<br>
<strong>Onderwerp:</strong> advice for implementing an atomics wrapper</p>

<blockquote style="padding-right: 0px; padding-left: 5px; margin-left: 5px; border-left: #000000 2px solid; margin-right: 0px">
<div class="MessageRFC822Viewer" id="P">
<div class="MultipartAlternativeViewer">
<div class="TextHTMLViewer" id="P.P.P">Hi,<br>
<br>
For mongodb 8.0 I need to give a FreeBSD implementation of this file.<br>
<br>
<a href="https://github.com/mongodb/mongo/blob/master/src/mongo/platform/waitable_atomic.cpp">https://github.com/mongodb/mongo/blob/master/src/mongo/platform/waitable_atomic.cpp</a><br>;
<br>
Using the __Apple__ definition gives:<br>
ld.lld: error: undefined symbol: __ulock_wake<br>
ld.lld: error: undefined symbol: __ulock_wait<br>
<br>
And the __linux__ definition uses futex which FreeBSD does not have AFAIK.<br>
<br>
What is an easy way to port this file?<br>
<br>
Regards,<br>
Ronald.<br>
&nbsp;</div>
</div>
</div>
</blockquote>
<br>
&nbsp;</body></html>
------=_Part_7092_1350781026.1721744204821--



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?1711627700.7093.1721744204825>