From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.org/gmane.linux.lib.musl.general/12323 Path: news.gmane.org!.POSTED!not-for-mail From: Jens Gustedt Newsgroups: gmane.linux.lib.musl.general Subject: Re: pthread_attr_[g|s]etaffinity_np Date: Wed, 3 Jan 2018 20:51:45 +0100 Organization: inria.fr Message-ID: <20180103205145.5f239635@inria.fr> References: <20180103160822.7a48bcdc@inria.fr> <20180103174118.GF4871@port70.net> Reply-To: musl@lists.openwall.com NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; boundary="Sig_/+.fT7Zd3mVIW.5n9aRbcrIn"; protocol="application/pgp-signature" X-Trace: blaine.gmane.org 1515009007 32654 195.159.176.226 (3 Jan 2018 19:50:07 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Wed, 3 Jan 2018 19:50:07 +0000 (UTC) Cc: musl@lists.openwall.com Original-X-From: musl-return-12339-gllmg-musl=m.gmane.org@lists.openwall.com Wed Jan 03 20:50:03 2018 Return-path: Envelope-to: gllmg-musl@m.gmane.org Original-Received: from mother.openwall.net ([195.42.179.200]) by blaine.gmane.org with smtp (Exim 4.84_2) (envelope-from ) id 1eWp2y-0007mG-Tp for gllmg-musl@m.gmane.org; Wed, 03 Jan 2018 20:49:56 +0100 Original-Received: (qmail 11821 invoked by uid 550); 3 Jan 2018 19:51:57 -0000 Mailing-List: contact musl-help@lists.openwall.com; run by ezmlm Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-ID: Original-Received: (qmail 11802 invoked from network); 3 Jan 2018 19:51:57 -0000 X-IronPort-AV: E=Sophos;i="5.45,503,1508796000"; d="scan'208";a="307564268" In-Reply-To: <20180103174118.GF4871@port70.net> X-Mailer: Claws Mail 3.16.0 (GTK+ 2.24.31; x86_64-pc-linux-gnu) X-Face: iVBORw0KGgoAAAANSUhEUgAAADAAAAAwBAMAAAClLOS0AAAAAXNSR0IArs4c6QAAACRQTFRFERslNjAsLTE9Ok9wUk9TaUs8iWhSrYZkj42Rz6aD3sGZ Xref: news.gmane.org gmane.linux.lib.musl.general:12323 Archived-At: --Sig_/+.fT7Zd3mVIW.5n9aRbcrIn Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: quoted-printable Hello Szabolcs, On Wed, 3 Jan 2018 18:41:18 +0100 Szabolcs Nagy wrote: > * Jens Gustedt [2018-01-03 16:08:22 +0100]: > > when trying to link against OpenMP (gomp to be more precise) I ran > > into undefined-symbol errors for these functions. For the moment I > > am avoiding this problem by adding some weak aliases that do > > nothing and return ENOSYS. =20 >=20 > i think libgomp detects support at configure time > so if you build gcc against musl you should get a > dummy implementation of the affinity stuff but at > least it links. (and then all libgomp tests pass > with gcc-6 and gcc-7) Ok, that explains why it hasn't yet hurt people. I am testing on a mixed environment, debian with musl in /usr/local. For all other things static linking gcc stuff (libatomic e.g) works fine, I just ran into that one. The downside of these interfaces is that the state for these calls is kept in the cpu_set_t argument. This would have to be copied / allocated to the pthread_attr_t. That in turn would drag in malloc etc. and thereby complicate things for the type (need for a pointer "field") and pthread_attr_destroy (avoid memory leak). So probably I'll keep the trivial wrappers with weak symbols inside my own interface to OpenMP. Thanks Jens --=20 :: INRIA Nancy Grand Est ::: Camus ::::::: ICube/ICPS ::: :: ::::::::::::::: office Strasbourg : +33 368854536 :: :: :::::::::::::::::::::: gsm France : +33 651400183 :: :: ::::::::::::::: gsm international : +49 15737185122 :: :: http://icube-icps.unistra.fr/index.php/Jens_Gustedt :: --Sig_/+.fT7Zd3mVIW.5n9aRbcrIn Content-Type: application/pgp-signature Content-Description: OpenPGP digital signature -----BEGIN PGP SIGNATURE----- iF0EARECAB0WIQSN9stI2OFN1pLljN0P0+hp2tU34gUCWk00UQAKCRAP0+hp2tU3 4myOAJ0ZDJJAN7+ASso9U6eLbSVnjLBcMACggRtFpkIBrpEE03l2sne1TTF+AvQ= =oPXS -----END PGP SIGNATURE----- --Sig_/+.fT7Zd3mVIW.5n9aRbcrIn--