From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.org/gmane.linux.lib.musl.general/11032 Path: news.gmane.org!.POSTED!not-for-mail From: "Romain" Newsgroups: gmane.linux.lib.musl.general Subject: ld-musl-i386.so.1 disappear after gcc install Date: Mon, 13 Feb 2017 03:26:07 +0100 Message-ID: <000301d285a0$885689c0$99039d40$@binbones.com> Reply-To: musl@lists.openwall.com NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable X-Trace: blaine.gmane.org 1486952796 26132 195.159.176.226 (13 Feb 2017 02:26:36 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Mon, 13 Feb 2017 02:26:36 +0000 (UTC) To: Original-X-From: musl-return-11047-gllmg-musl=m.gmane.org@lists.openwall.com Mon Feb 13 03:26:31 2017 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 1cd6LV-0006Kj-LL for gllmg-musl@m.gmane.org; Mon, 13 Feb 2017 03:26:29 +0100 Original-Received: (qmail 20268 invoked by uid 550); 13 Feb 2017 02:26:32 -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 20206 invoked from network); 13 Feb 2017 02:26:27 -0000 X-ME-Helo: SUPADESKTOP X-ME-Date: Mon, 13 Feb 2017 03:26:15 +0100 X-ME-IP: 109.209.110.16 X-Mailer: Microsoft Outlook 14.0 Thread-Index: AdKFm9KikkciG68zS4Swe88TgpS2TA== Content-Language: fr X-Antivirus: avast! (VPS 170212-0, 12/02/2017), Outbound message X-Antivirus-Status: Clean Xref: news.gmane.org gmane.linux.lib.musl.general:11032 Archived-At: Hello, I try to create a script to cross-build a small linux based on musl. (https://github.com/rom1nux/zydux-forge) Basically I first create my cross toolchain in 3 steps 1 =96 Build static gcc (first pass) 2 =96 Build musl 3 =96 Build dynamic gcc (second pass) When I build musl, I can find the loader ld-musl-i386.so.1 this is a = link to /lib/libc.so But when I do the second pass of gcc the ld-musl-i386.so.1 is removed at = the gcc =93make install=94 I create a watch with =93audit=94 to see what process remove the file, = and it seem that /sbin/ldconfig.real remove the loader, I don=92t understand = why. (I fix this by creating my own link, and I can start my target, but I = don=92t understand what append) My host : Ubuntu 16.04 Arch : x86_64 Kernel=A0: 4.4.0 Gcc : 5.4 (x86_64-linux-gnu-gcc) My Cross/Target : Arch : x86 Kernel : 4.9.7 Gcc : 6.3.0 (i486-linux-musl-gcc) Musl : 1.1.16 Can you help me to understand why the linker ld-musl-i386.so.1 is = removed by /sbin/ldconfig.real, and how to avoid this ? Thanks in advance Rom1nux PS : Sorry for my bad English language