From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.org/gmane.linux.lib.musl.general/12510 Path: news.gmane.org!.POSTED!not-for-mail From: Dmitry Golovin Newsgroups: gmane.linux.lib.musl.general Subject: Re: shmctl not found when compiling compiler-rt Date: Wed, 14 Feb 2018 17:29:08 +0200 Message-ID: <546361518622148@web56g.yandex.ru> 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: 8bit X-Trace: blaine.gmane.org 1518622053 11972 195.159.176.226 (14 Feb 2018 15:27:33 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Wed, 14 Feb 2018 15:27:33 +0000 (UTC) To: "musl@lists.openwall.com" Original-X-From: musl-return-12527-gllmg-musl=m.gmane.org@lists.openwall.com Wed Feb 14 16:27: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 1elyxq-0002Eh-8I for gllmg-musl@m.gmane.org; Wed, 14 Feb 2018 16:27:18 +0100 Original-Received: (qmail 22526 invoked by uid 550); 14 Feb 2018 15:29:20 -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 22506 invoked from network); 14 Feb 2018 15:29:20 -0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=golovin.in; s=mail; t=1518622148; bh=GCtSZQW13+BKDS0wP11bJt7Zswo333/f91uIQwPHLo0=; h=From:To:In-Reply-To:References:Subject:Message-Id:Date; b=0UTho8+L1rUN08fdfJJX4SDKMf4vfHHgrobAYLuEzccImADmb5avyCIgRyuqokJs4 VITs0ouQFgRgQeKft7FztkIFdv2wvj+IgX/lGwIVupIcanaEILLX1f1/3i2yXuKkkk yNISL5ZroLs3e5L8FSKBeudZj9BfppGoJZX8nwbQ= Authentication-Results: mxback12g.mail.yandex.net; dkim=pass header.i=@golovin.in In-Reply-To: <20180213141524.GZ4418@port70.net> X-Mailer: Yamail [ http://yandex.ru ] 5.0 Xref: news.gmane.org gmane.linux.lib.musl.general:12510 Archived-At: Thank you! DECLARE_REAL worked. It seems it was there, but was removed later: https://github.com/llvm-mirror/compiler-rt/commit/d4f4f7cd131af547f3d94219c1f486534fec2e60#diff-22e90027e43e7a82412a4f97c22b86e6L1137 But it seems that it is declared also here: https://github.com/llvm-mirror/compiler-rt/blob/master/lib/sanitizer_common/sanitizer_common_interceptors.inc#L4320 So, probably the problem is that SANITIZER_INTERCEPT_SHMCTL is not enabled for some reason. I will investigate it and change the patch accordingly. Thank you once again for your help! Regards, Dmitry 13.02.2018, 16:15, "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 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