From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.org/gmane.linux.lib.musl.general/12502 Path: news.gmane.org!.POSTED!not-for-mail From: Julien Ramseier Newsgroups: gmane.linux.lib.musl.general Subject: Re: shmctl not found when compiling compiler-rt Date: Tue, 13 Feb 2018 17:32:15 +0100 Message-ID: References: <220501518528874@web47o.yandex.ru> <20180213141524.GZ4418@port70.net> Reply-To: musl@lists.openwall.com NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 (Mac OS X Mail 11.2 \(3445.5.20\)) Content-Type: multipart/alternative; boundary="Apple-Mail=_816E55CA-867A-4763-85E5-98EA93AAD886" X-Trace: blaine.gmane.org 1518539434 11971 195.159.176.226 (13 Feb 2018 16:30:34 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Tue, 13 Feb 2018 16:30:34 +0000 (UTC) To: musl@lists.openwall.com Original-X-From: musl-return-12518-gllmg-musl=m.gmane.org@lists.openwall.com Tue Feb 13 17:30:29 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 1eldTO-0002lU-Ps for gllmg-musl@m.gmane.org; Tue, 13 Feb 2018 17:30:26 +0100 Original-Received: (qmail 12259 invoked by uid 550); 13 Feb 2018 16:32:30 -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 12230 invoked from network); 13 Feb 2018 16:32:29 -0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:mime-version:subject:date:references:to:in-reply-to:message-id; bh=seuENAXdUHq48s6Wu8wBbaV1mpPiim0r4wM0mcAzxIg=; b=J7XnpHD0g6zmm1gLw5eZdrDWvkCakCkpnI7Z1D9lbykaDzsuqa5N5qh0srLoqj+a/Q bitFZUvX5p/ySOlslJZWr/1ErxHmTSVGNHL497XTCAD4sCVYenVO/V4nTg/TDSN9lwcS 7fT4MkC1BUrR3EoQkx5DE2CeKGBik9pJiEHh3yyfjhrmGJc9wcULlViOkHCkjdvGBclT G3gP5DMLtCUoR7Zc+Pcmnjysgb7RrCnhirqfW3YPwWdKRxNI5p2ViIeg2WdlZKctNb8O uMxt9kYnRDDLn/WG8lGLC8pwB5ZeU5VIYpJGiymHJvasLvCvEtjYMLTlJhj00VTyLHzE zJJg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:mime-version:subject:date:references:to :in-reply-to:message-id; bh=seuENAXdUHq48s6Wu8wBbaV1mpPiim0r4wM0mcAzxIg=; b=EQTxpIx2EruxbaVNncLShbAWxDkR9kO9hB0wGg63nzgkHKnwbfsLCcEzjFLaRqtoc2 hJNCOMiFLkSlM3Uon+zqV74F9ad7EkbP6L2p3mdnhcp/+N8+Gc4o/8CDjOkrTi3zcEcA BYJXZWcUsiWG8ETWS5VaWAR632SnqMPBd6ZicEKNscomy3VPgL825QLUTexfKfu49DTp P+KPQtvqM+z9MaGtangGeIYkCgAbypBvXUqEHwpMF6w4C6330muyXzoHu32gVGzhfJBk Cg0FVaw8LeJDBBs9hBXmA7udw9VNzYdQ3Qd9+kYvRVZdbRXMHhsQgdiRJhyqGOg2cCVp 5BiA== X-Gm-Message-State: APf1xPAVjfxEVGlOuHQTSX2jOmLFxjO3mPySwn9Z0vbHWjxg7kqim4qU Izy/a4IteasoHIsedKS9dEpky4ir X-Google-Smtp-Source: AH8x225CtYDnUUCG33qWntN4HO5dovgzteiRu785kCGtkViBWs+keJLxGuE630kqKcg/EWifNj/lIQ== X-Received: by 10.80.155.7 with SMTP id o7mr2897943edi.105.1518539537716; Tue, 13 Feb 2018 08:32:17 -0800 (PST) In-Reply-To: <20180213141524.GZ4418@port70.net> X-Mailer: Apple Mail (2.3445.5.20) Xref: news.gmane.org gmane.linux.lib.musl.general:12502 Archived-At: --Apple-Mail=_816E55CA-867A-4763-85E5-98EA93AAD886 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=utf-8 > Le 13 f=C3=A9vr. 2018 =C3=A0 15:15, Szabolcs Nagy a = =C3=A9crit : >=20 > * Dmitry Golovin [2018-02-13 15:34:34 +0200]: >> I'm trying to compile compiler-rt with musl and it used to be fine, = but I can't succeed with recent versions of compiler-rt. >>=20 >> The compilation fails because of the lack of real_shmctl while musl = clearly has shmctl: = http://git.musl-libc.org/cgit/musl/tree/src/ipc/shmctl.c >>=20 >> Here is the complete output: >>=20 >> llvm/projects/compiler-rt/lib/msan/msan_interceptors.cc:1446:15: = error: no member named 'real_shmctl' in namespace '__interception'; did = you mean 'real_ioctl'? >> int res =3D REAL(shmctl)(shmid, shmctl_ipc_stat, &ds); >> ^~~~~~~~~~~~ >=20 > there should be a >=20 > DECLARE_REAL(int, shmctl, int shmid, int cmd, void *buf) >=20 > in that file which defines __interception::real_shmctl. >=20 The DECLARE_REAL was removed in https://reviews.llvm.org/D40766 = . Though I didn't understand why. --Apple-Mail=_816E55CA-867A-4763-85E5-98EA93AAD886 Content-Transfer-Encoding: quoted-printable Content-Type: text/html; charset=utf-8

Le 13 f=C3=A9vr. 2018 =C3=A0 15:15, Szabolcs Nagy <nsz@port70.net> a = =C3=A9crit :

* Dmitry Golovin <dima@golovin.in> = [2018-02-13 15:34:34 +0200]:
I'm trying to compile compiler-rt with musl and it used to be = fine, but I can't succeed with recent versions of compiler-rt.

The compilation fails because of the lack of = real_shmctl while musl clearly has shmctl: http://git.musl-libc.org/cgit/musl/tree/src/ipc/shmctl.c
Here is the complete output:

   llvm/projects/compiler-rt/lib/msan/msan_interceptors.cc:1446:15: error: no member named = 'real_shmctl' in namespace '__interception'; did you mean = 'real_ioctl'?
=        int res =3D = REAL(shmctl)(shmid, shmctl_ipc_stat, &ds);
=             &n= bsp;    ^~~~~~~~~~~~

there should be a

DECLARE_REAL(int, shmctl, int shmid, int cmd, void *buf)

in that file which defines = __interception::real_shmctl.


The = DECLARE_REAL was removed in https://reviews.llvm.org/D40766.
Though I = didn't understand why.

= --Apple-Mail=_816E55CA-867A-4763-85E5-98EA93AAD886--