From nobody Tue Jul 23 14:16:44 2024 X-Original-To: freebsd-ports@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4WSzjV637Jz5S1vv for ; Tue, 23 Jul 2024 14:16:46 +0000 (UTC) (envelope-from SRS0=ZlwR=OX=klop.ws=ronald-lists@realworks.nl) Received: from smtp-relay-int.realworks.nl (smtp-relay-int.realworks.nl [194.109.157.24]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 4WSzjV01wvz4R1S for ; Tue, 23 Jul 2024 14:16:46 +0000 (UTC) (envelope-from SRS0=ZlwR=OX=klop.ws=ronald-lists@realworks.nl) Authentication-Results: mx1.freebsd.org; dkim=pass header.d=klop.ws header.s=rw2 header.b=JJ2LBnYA; dmarc=pass (policy=quarantine) header.from=klop.ws; spf=pass (mx1.freebsd.org: domain of "SRS0=ZlwR=OX=klop.ws=ronald-lists@realworks.nl" designates 194.109.157.24 as permitted sender) smtp.mailfrom="SRS0=ZlwR=OX=klop.ws=ronald-lists@realworks.nl" Date: Tue, 23 Jul 2024 16:16:44 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=klop.ws; s=rw2; t=1721744205; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=/Syt1gb2rKFwMKA3icUEZggHuEgwAlFWwjk5p+c+v4E=; b=JJ2LBnYA7c8U77PZhJWSNU63soy6yVECwaF/YqODdHRx+Ge07f1kokHOZRJHPJK2rZTvk1 +er38+ZN9kyf000DSD1o1kFFbjIaj5e2hTiuHvQyfV5j/MW7DzmN4nHmndse9lbr5i5Mai psnoLOdaIv7G0zSg+E8gLJwsyETjOYpNscj16uj68O8JKORywFo+NW/WJsLyGyudCSC0Yg bdg3Oxx0JlKT9JEQzJCFVSOijhPbzRwHp5YHY+zS/Fp+KUe8O0tr47ZhrKwYtmwgIUHTFR 1C5Yj0zcQQS6WZVbVTJfOsg2rZ5VSh98BzEmxg9R9BQhBaZNxUE/dG7DxcaoJg== From: Ronald Klop To: freebsd-ports@freebsd.org Message-ID: <1711627700.7093.1721744204825@localhost> In-Reply-To: <1261580643.7072.1721744051635@localhost> References: <1261580643.7072.1721744051635@localhost> Subject: Re: advice for implementing an atomics wrapper List-Id: Porting software to FreeBSD List-Archive: https://lists.freebsd.org/archives/freebsd-ports List-Help: List-Post: List-Subscribe: List-Unsubscribe: X-BeenThere: freebsd-ports@freebsd.org Sender: owner-freebsd-ports@FreeBSD.org MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_Part_7092_1350781026.1721744204821" X-Mailer: Realworks (711.17) Importance: Normal X-Priority: 3 (Normal) X-Spamd-Bar: --- X-Spamd-Result: default: False [-3.19 / 15.00]; NEURAL_HAM_MEDIUM(-1.00)[-1.000]; NEURAL_HAM_LONG(-1.00)[-1.000]; NEURAL_HAM_SHORT(-0.99)[-0.994]; MID_RHS_NOT_FQDN(0.50)[]; DMARC_POLICY_ALLOW(-0.50)[klop.ws,quarantine]; FORGED_SENDER(0.30)[ronald-lists@klop.ws,SRS0=ZlwR=OX=klop.ws=ronald-lists@realworks.nl]; R_DKIM_ALLOW(-0.20)[klop.ws:s=rw2]; R_SPF_ALLOW(-0.20)[+ip4:194.109.157.0/24]; MIME_GOOD(-0.10)[multipart/alternative,text/plain]; ASN(0.00)[asn:3265, ipnet:194.109.0.0/16, country:NL]; RCPT_COUNT_ONE(0.00)[1]; MIME_TRACE(0.00)[0:+,1:+,2:~]; ARC_NA(0.00)[]; MLMMJ_DEST(0.00)[freebsd-ports@freebsd.org]; TO_MATCH_ENVRCPT_ALL(0.00)[]; FROM_HAS_DN(0.00)[]; RCVD_COUNT_ZERO(0.00)[0]; FROM_NEQ_ENVFROM(0.00)[ronald-lists@klop.ws,SRS0=ZlwR=OX=klop.ws=ronald-lists@realworks.nl]; TO_DN_NONE(0.00)[]; HAS_X_PRIO_THREE(0.00)[3]; DKIM_TRACE(0.00)[klop.ws:+] X-Rspamd-Queue-Id: 4WSzjV01wvz4R1S ------=_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 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 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--