From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.org/gmane.linux.lib.musl.general/12495 Path: news.gmane.org!.POSTED!not-for-mail From: Szabolcs Nagy Newsgroups: gmane.linux.lib.musl.general Subject: Re: shmctl not found when compiling compiler-rt Date: Tue, 13 Feb 2018 15:33:10 +0100 Message-ID: <20180213143310.GA4418@port70.net> 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 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Trace: blaine.gmane.org 1518532302 20869 195.159.176.226 (13 Feb 2018 14:31:42 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Tue, 13 Feb 2018 14:31:42 +0000 (UTC) User-Agent: Mutt/1.9.1 (2017-09-22) To: musl@lists.openwall.com Original-X-From: musl-return-12511-gllmg-musl=m.gmane.org@lists.openwall.com Tue Feb 13 15:31:38 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 1elbc7-00042J-1g for gllmg-musl@m.gmane.org; Tue, 13 Feb 2018 15:31:19 +0100 Original-Received: (qmail 11361 invoked by uid 550); 13 Feb 2018 14:33:22 -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 11338 invoked from network); 13 Feb 2018 14:33:22 -0000 Mail-Followup-To: musl@lists.openwall.com Content-Disposition: inline In-Reply-To: Xref: news.gmane.org gmane.linux.lib.musl.general:12495 Archived-At: * Mat=C3=BA=C5=A1 Olek=C5=A1=C3=A1k [2018-02-13 1= 5:30:45 +0100]: > Try this patch to correctly link compiler-rt. >=20 why would a linker flag change fix a compile time issue? > 2018-02-13 15:15 GMT+01:00 Szabolcs Nagy : >=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, b= ut > > 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); > > > ^~~~~~~~~~~~ > > > > 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 > >