From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.org/gmane.linux.lib.musl.general/12497 Path: news.gmane.org!.POSTED!not-for-mail From: =?UTF-8?B?TWF0w7rFoSBPbGVrxaHDoWs=?= Newsgroups: gmane.linux.lib.musl.general Subject: Re: shmctl not found when compiling compiler-rt Date: Tue, 13 Feb 2018 15:36:34 +0100 Message-ID: References: <220501518528874@web47o.yandex.ru> <20180213141524.GZ4418@port70.net> <203971518532434@web31o.yandex.ru> Reply-To: musl@lists.openwall.com NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="94eb2c1c1be6ea8e9a056518eb65" X-Trace: blaine.gmane.org 1518532489 30186 195.159.176.226 (13 Feb 2018 14:34:49 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Tue, 13 Feb 2018 14:34:49 +0000 (UTC) To: musl@lists.openwall.com Original-X-From: musl-return-12513-gllmg-musl=m.gmane.org@lists.openwall.com Tue Feb 13 15:34:45 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 1elbfQ-0007XJ-5k for gllmg-musl@m.gmane.org; Tue, 13 Feb 2018 15:34:44 +0100 Original-Received: (qmail 16023 invoked by uid 550); 13 Feb 2018 14:36:47 -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 16000 invoked from network); 13 Feb 2018 14:36:46 -0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:in-reply-to:references:from:date:message-id:subject:to; bh=YHKO+dhuyeImil6fCH0+AKOSD7fMm1I9aeQZMvIfcjE=; b=Eu8wo3ezK5Ib1AOpHqT9EbvPnEEt+syFhOKPr7nPb7cME1fvadHbt8Bba3CU46WqoA OPlWqha/BTAZSuJATH1Q0DGm/BeEDWOqEIV08v38DwgUZ6lIH+MFPTb0N4zBm3IduCSz 18ymoT+Co/iv1gRNkydKZeTVTZWAHzX0bXpOXK218N24Nit9VTvLWDCsmMl0WScptslo dZPb/tzrei5WAFYl1n//JJJc/dhzLSJayqIN5GTNPZjz3xXcvEJvrD+6D4aQVGl2oyEC 6G6KOFv3nT3pYgUXh3qljkVoHTRotaIJxtuzQbh9jZ/FNzEd0/SIuN3f/UybHpgEVRyq 25vw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to; bh=YHKO+dhuyeImil6fCH0+AKOSD7fMm1I9aeQZMvIfcjE=; b=HsojMSrAc5e23KZmeLmvEj/k/2nD0qJsrd/z9l7pey9XYstgXzQxUaRn9aFwLULLNO cE4HyVgtNUKdUefBv+DPx+iEN1UQvT0PrKRBb5exV3tJxqLrYmNqSdcg6CN+OG64sDwV wTSLYo33nt+Le7e/gq0Yqr5lqfCOQMURF8NSAToM4qP2hfolyLR+7H4A+Ina/3VQRoSK C3j50KDjldSwwhYyhyvl1YUrUlMLN6ttERxOWMxgVJprTLAZn0LctQT1NZCy2q0kbf8L H/7QCvCCk1gVmTcuwzbvn3KPqkDhoLn30nd9FrUVE76FmiqnnFB66i7sH2xTdNjdm5l/ axOA== X-Gm-Message-State: APf1xPAyWYsv89A71mhfdMFrKIAbE9xOYkaPYm7sz25ROukvPWVswaKD UfXN5HMgi5uxdsUTBmi8kaGv8g5so4d+YUC5MIU= X-Google-Smtp-Source: AH8x225WW0adH/M23BR1NC2aaqEN6Ny7C/TS5x+/wu2+cGDlHP5Ywi2Xhi3mhSCCAd6pHKLLD7ooKr4C0zQ3GXSVsQY= X-Received: by 10.157.67.69 with SMTP id y5mr1077588oti.174.1518532595179; Tue, 13 Feb 2018 06:36:35 -0800 (PST) In-Reply-To: <203971518532434@web31o.yandex.ru> Xref: news.gmane.org gmane.linux.lib.musl.general:12497 Archived-At: --94eb2c1c1be6ea8e9a056518eb65 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable I assumed it's the same problem a had last week on pure llvm environment and I discovered bug in compiler-rt detection which solves my patch. 2018-02-13 15:33 GMT+01:00 Dmitry Golovin : > Thank you for the patch, but I don't think it is relevant to this problem= . > > If you take a look at my build script, you'll see that I don't need it: > https://github.com/tpimh/ngtc/blob/alpine/build.sh#L73 > > Regards, > Dmitry > > 13.02.2018, 16:31, "Mat=C3=BA=C5=A1 Olek=C5=A1=C3=A1k" : > > Try this patch to correctly link compiler-rt. > > > > 2018-02-13 15:15 GMT+01:00 Szabolcs Nagy : > >> * 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. > >>> > >>> 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 y= ou > mean 'real_ioctl'? > >>> int res =3D REAL(shmctl)(shmid, shmctl_ipc_stat, &ds); > >>> ^~~~~~~~~~~~ > >> > >> there should be a > >> > >> DECLARE_REAL(int, shmctl, int shmid, int cmd, void *buf) > >> > >> in that file which defines __interception::real_shmctl. > >> > >>> To compile without glibc on linux using this patch: > >>> https://github.com/tpimh/ngtc/blob/alpine/patch/compiler-rt- > 01-sanitizer-nongnu.patch > >>> > >>> Regards, > >>> Dmitry > --94eb2c1c1be6ea8e9a056518eb65 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
I assumed it's the same problem a had last week on pur= e llvm environment and I discovered bug in compiler-rt detection which solv= es my patch.

2018-02-13 15:33 GMT+01:00 Dmitry Golovin <dima@golovin.in>:<= br>
Thank you for the patch, but I don't = think it is relevant to this problem.

If you take a look at my build script, you'll see that I don't need= it: https://github.com/tpimh/ngtc/blob/a= lpine/build.sh#L73

Regards,
Dmitry

13.02.2018, 16:31, "Mat=C3=BA=C5=A1 Olek=C5=A1=C3=A1k" <oleksak.matus@gmail.com>:
> Try this patch to correctly li= nk compiler-rt.
>
> 2018-02-13 15:15 GMT+01:00 Szabolcs Nagy <nsz@port70.net>:
>> * Dmitry Golovin <dima@golov= in.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-li= bc.org/cgit/musl/tree/src/ipc/shmctl.c
>>>
>>> Here is the complete output:
>>>
>>>=C2=A0 =C2=A0 =C2=A0llvm/projects/compiler-rt/lib/msan/msa= n_interceptors.cc:1446:15: error: no member named 'real_shmctl'= ; in namespace '__interception'; did you mean 'real_ioctl'?=
>>>=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0int res =3D REAL(shmctl)(shmi= d, shmctl_ipc_stat, &ds);
>>>=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 = =C2=A0^~~~~~~~~~~~
>>
>> there should be a
>>
>> DECLARE_REAL(int, shmctl, int shmid, int cmd, void *buf)
>>
>> in that file which defines __interception::real_shmctl.
>>
>>> To compile without glibc on linux using this patch:
>>> ht= tps://github.com/tpimh/ngtc/blob/alpine/patch/compiler-rt-01-sani= tizer-nongnu.patch
>>>
>>> Regards,
>>> Dmitry

--94eb2c1c1be6ea8e9a056518eb65--