From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.org/gmane.linux.lib.musl.general/12491 Path: news.gmane.org!.POSTED!not-for-mail From: Dmitry Golovin Newsgroups: gmane.linux.lib.musl.general Subject: shmctl not found when compiling compiler-rt Date: Tue, 13 Feb 2018 15:34:34 +0200 Message-ID: <220501518528874@web47o.yandex.ru> Reply-To: musl@lists.openwall.com NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain Content-Transfer-Encoding: 7bit X-Trace: blaine.gmane.org 1518528858 16788 195.159.176.226 (13 Feb 2018 13:34:18 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Tue, 13 Feb 2018 13:34:18 +0000 (UTC) To: musl Original-X-From: musl-return-12507-gllmg-musl=m.gmane.org@lists.openwall.com Tue Feb 13 14:34:14 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 1elaid-00037T-NG for gllmg-musl@m.gmane.org; Tue, 13 Feb 2018 14:34:00 +0100 Original-Received: (qmail 7848 invoked by uid 550); 13 Feb 2018 13:35:59 -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 7812 invoked from network); 13 Feb 2018 13:35:58 -0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=golovin.in; s=mail; t=1518528874; bh=vgvuUVCHSwjLdGN6Paa4MdrZj2iFIaTnpCmtvp4ITqQ=; h=From:To:Subject:Message-Id:Date; b=PML+/Am11i3FQxw2IWGVkdx4vTjwx+40rAF2oQSawagUpLJsjdCn7Zrp3HX1qQXRK QWs+9OMz8f7uGvuegO6zI64LfPfcSVoo9d+OLfAO/65edHm2mfleBvuY2Sj9841CeO cSBjvclKiaRIKb8J3X8g1ipt7ZLG/QRy050O+POk= Authentication-Results: mxback15g.mail.yandex.net; dkim=pass header.i=@golovin.in X-Mailer: Yamail [ http://yandex.ru ] 5.0 Xref: news.gmane.org gmane.linux.lib.musl.general:12491 Archived-At: Hi! 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); ^~~~~~~~~~~~ llvm/projects/compiler-rt/lib/msan/../interception/interception.h:162:34: note: expanded from macro 'REAL' # define REAL(x) __interception::PTR_TO_REAL(x) ~~~~~~~~~~~~~~~~^ llvm/projects/compiler-rt/lib/msan/../interception/interception.h:161:25: note: expanded from macro 'PTR_TO_REAL' # define PTR_TO_REAL(x) real_##x ^ :70:1: note: expanded from here real_shmctl ^ llvm/projects/compiler-rt/lib/msan/../sanitizer_common/sanitizer_common_interceptors.inc:1706:1: note: 'real_ioctl' declared here INTERCEPTOR(int, ioctl, int d, unsigned long request, ...) { ^ llvm/projects/compiler-rt/lib/msan/../interception/interception.h:213:3: note: expanded from macro 'INTERCEPTOR' DEFINE_REAL(ret_type, func, __VA_ARGS__) \ ^ llvm/projects/compiler-rt/lib/msan/../interception/interception.h:194:23: note: expanded from macro 'DEFINE_REAL' FUNC_TYPE(func) PTR_TO_REAL(func); \ ^ llvm/projects/compiler-rt/lib/msan/../interception/interception.h:161:25: note: expanded from macro 'PTR_TO_REAL' # define PTR_TO_REAL(x) real_##x ^ :108:1: note: expanded from here real_ioctl ^ Can you please help me to understand why is it not compiling and how to make it compile again? 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