From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.org/gmane.linux.lib.musl.general/12492 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:15:24 +0100 Message-ID: <20180213141524.GZ4418@port70.net> References: <220501518528874@web47o.yandex.ru> Reply-To: musl@lists.openwall.com NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: blaine.gmane.org 1518531238 4929 195.159.176.226 (13 Feb 2018 14:13:58 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Tue, 13 Feb 2018 14:13:58 +0000 (UTC) User-Agent: Mutt/1.9.1 (2017-09-22) To: musl@lists.openwall.com Original-X-From: musl-return-12508-gllmg-musl=m.gmane.org@lists.openwall.com Tue Feb 13 15:13:54 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 1elbKu-00087A-Ry for gllmg-musl@m.gmane.org; Tue, 13 Feb 2018 15:13:32 +0100 Original-Received: (qmail 20446 invoked by uid 550); 13 Feb 2018 14:15:36 -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 20427 invoked from network); 13 Feb 2018 14:15:35 -0000 Mail-Followup-To: musl@lists.openwall.com Content-Disposition: inline In-Reply-To: <220501518528874@web47o.yandex.ru> Xref: news.gmane.org gmane.linux.lib.musl.general:12492 Archived-At: * 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 you mean 'real_ioctl'? > int res = 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