From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.org/gmane.linux.lib.musl.general/11966 Path: news.gmane.org!.POSTED!not-for-mail From: Rich Felker Newsgroups: gmane.linux.lib.musl.general Subject: Re: musl-cross-make doesn't install gcc binaries Date: Mon, 2 Oct 2017 11:57:44 -0400 Message-ID: <20171002155744.GC1627@brightrain.aerifal.cx> References: <626996737.38853.1506938734029@office.mailbox.org> <20171002105033.GK15263@port70.net> <971780b8-2021-a1f2-b6a8-f8765de055d9@in2p3.fr> 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 1506959878 2406 195.159.176.226 (2 Oct 2017 15:57:58 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Mon, 2 Oct 2017 15:57:58 +0000 (UTC) User-Agent: Mutt/1.5.21 (2010-09-15) To: musl@lists.openwall.com Original-X-From: musl-return-11979-gllmg-musl=m.gmane.org@lists.openwall.com Mon Oct 02 17:57:53 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 1dz36O-000057-LD for gllmg-musl@m.gmane.org; Mon, 02 Oct 2017 17:57:52 +0200 Original-Received: (qmail 19921 invoked by uid 550); 2 Oct 2017 15:57:58 -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 19903 invoked from network); 2 Oct 2017 15:57:57 -0000 Content-Disposition: inline In-Reply-To: <971780b8-2021-a1f2-b6a8-f8765de055d9@in2p3.fr> Original-Sender: Rich Felker Xref: news.gmane.org gmane.linux.lib.musl.general:11966 Archived-At: On Mon, Oct 02, 2017 at 04:57:16PM +0200, Didier Kryn wrote: > Hello musl fans. > > Since this is my first message to this list, let me introduce > myself. I'm a retired physicist and Linux hobyist. In 2014, I > started to build a gcc-musl toolchain to run on Debian Wheezy. It > took me about two years of try-and-fail learning because I had the > ambition that my gcc understands C, C++ *and* Ada. I started from a > combination of tools from Sabotage-Linux and Debian and finaly was > able to build a gcc-4.7 toolchain statically linked against > musl-1.1.5. I have now created a full-featured development platform > based on that toolchain, in a chroot. This platform can re-build > itself from sources and most applications are static binaries. > > I have recently discovered the existence of musl-cross-make and > thought it would be a great way to upgrade my toolchain (forgetting > temporarily Ada). I downloaded it in my musl chroot. It built > without error, which is a pretty new experience for me - > congratulations! But, after make install, only binutils' binaries > are installed: > > /# ls /usr/pkg/x86_64-linux-musl > bin include lib > /# ls /usr/pkg/x86_64-linux-musl/bin > ar as ld ld.bfd nm objcopy objdump ranlib readelf strip > > The gcc binaries seem to be in > musl-cross-make/build/local/x86_64-linux-musl/obj_toolchain/gcc > (cc1, cc1plus, gcc-ar, gcc-cross etc). Are these the final gcc > binaries or intermediate tools? What "make install" command line did you use, and what options (if any) in config.mak? You need to specify the output directory where the toolchain will be installed; it would not appear under /usr/pkg unless you configured it as such. Rich