From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.org/gmane.linux.lib.musl.general/12496 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: Tue, 13 Feb 2018 16:33:54 +0200 Message-ID: <203971518532434@web31o.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 1518532340 29689 195.159.176.226 (13 Feb 2018 14:32:20 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Tue, 13 Feb 2018 14:32:20 +0000 (UTC) To: "musl@lists.openwall.com" Original-X-From: musl-return-12512-gllmg-musl=m.gmane.org@lists.openwall.com Tue Feb 13 15:32:16 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 1elbcq-0006lW-CY for gllmg-musl@m.gmane.org; Tue, 13 Feb 2018 15:32:04 +0100 Original-Received: (qmail 12157 invoked by uid 550); 13 Feb 2018 14:34:08 -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 12133 invoked from network); 13 Feb 2018 14:34:07 -0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=golovin.in; s=mail; t=1518532434; bh=hhJuE47EKEkl4Oksb79stRHLm+DjZFw50ynDI7mEDAI=; h=From:To:In-Reply-To:References:Subject:Message-Id:Date; b=nM0Y0jPOTTXgaoCqMbiXCLol/4nC1OdQHnrJ8EiWJ6d7aAXGc3JEdHNBH7pXgK7rd YgjjDZCgVMKf6KbqJVFXZyE6c3QWGbPMvfI3tpRXCC9HDe0D5S9l8OpjoS8fmfIS6d oZUCr96heme/BMyl+5ZWH9s6uhlb43vryxmXXGPs= Authentication-Results: mxback15g.mail.yandex.net; dkim=pass header.i=@golovin.in In-Reply-To: X-Mailer: Yamail [ http://yandex.ru ] 5.0 Xref: news.gmane.org gmane.linux.lib.musl.general:12496 Archived-At: 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úš Olekšák" : > 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 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