From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.org/gmane.linux.lib.musl.general/11977 Path: news.gmane.org!.POSTED!not-for-mail From: Didier Kryn Newsgroups: gmane.linux.lib.musl.general Subject: Re: musl-cross-make doesn't install gcc binaries Date: Wed, 4 Oct 2017 21:27:04 +0200 Message-ID: References: <626996737.38853.1506938734029@office.mailbox.org> <20171002105033.GK15263@port70.net> <971780b8-2021-a1f2-b6a8-f8765de055d9@in2p3.fr> <20171002155744.GC1627@brightrain.aerifal.cx> <8b45f2fb-a4fa-eb07-7afe-1ffdbe78056b@in2p3.fr> <20171003093730.GL15263@port70.net> <718adcbe-322a-22cf-1459-81ec78e677d4@in2p3.fr> <20171003105951.GM15263@port70.net> <20171004103502.GN15263@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; format=flowed Content-Transfer-Encoding: quoted-printable X-Trace: blaine.gmane.org 1507145244 9158 195.159.176.226 (4 Oct 2017 19:27:24 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Wed, 4 Oct 2017 19:27:24 +0000 (UTC) User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101 Thunderbird/45.8.0 To: musl@lists.openwall.com Original-X-From: musl-return-11990-gllmg-musl=m.gmane.org@lists.openwall.com Wed Oct 04 21:27:20 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 1dzpKC-0001vT-1B for gllmg-musl@m.gmane.org; Wed, 04 Oct 2017 21:27:20 +0200 Original-Received: (qmail 32041 invoked by uid 550); 4 Oct 2017 19:27:24 -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 32017 invoked from network); 4 Oct 2017 19:27:24 -0000 X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.99.2 at cczrelay02 In-Reply-To: <20171004103502.GN15263@port70.net> Xref: news.gmane.org gmane.linux.lib.musl.general:11977 Archived-At: Le 04/10/2017 =C3=A0 12:35, Szabolcs Nagy a =C3=A9crit : > * Didier Kryn [2017-10-03 14:55:08 +0200]: >> Le 03/10/2017 =C3=A0 12:59, Szabolcs Nagy a =C3=A9crit : >>> i use custom OUTPUT dir and never had a problem >>> >>> (although i pass it as a make argument like >>> >>> make install TARGET=3Dx86_64-linux-musl OUTPUT=3D/path >>> >>> and then i have >>> /usr/bin/install -c xgcc /path/bin/x86_64-linux-musl-gcc >>> in my build log) >> OK, got it. I understood the install path as an install *prefix*.= I >> should have specified >> >> 'OUTPUT=3D/usr/pkg/x86_64-linux-musl' >> >> instead of >> >> 'OUTPUT=3D/usr/pkg' >> > no, it should be just /usr/pkg > >> And I didn't notice it created bin, include, lib, libexec and sha= re and, >> since it also created x86_64-linux-musl, which has the name I expected= and >> also contains bin, include and lib, I concentrated on this one which = wasn't >> as expected. >> > the x86_64-linux-musl directory is the sysroot for the target, > it does not contain host binaries (executables for the cross > toolchain) > >> Maybe worth mentionning the path is the base of the sysroot, not = a >> prefix. There must be other idiots like me. >> > no, it's not > >> Thanks for your patience. >> >> Didier >> >> Now it works. Thanks for your patience >> > you are probably still doing something wrong. I have built the cross compiler with TARGET =3D x86_64-linux-musl OUTPUT=3D /usr/pkg/x86_64-linux-musl After installation I have the following subdirs at the top of the tr= ee: /usr/pkg/x86_64-linux-musl/bin /usr/pkg/x86_64-linux-musl/include /usr/pkg/x86_64-linux-musl/lib /usr/pkg/x86_64-linux-musl/libexec /usr/pkg/x86_64-linux-musl/share /usr/pkg/x86_64-linux-musl/x86_64-linux-musl The first of these subdirs contains all the necessary executables=20 properly prefixed. And the last contains subdirs with the non-prefixed=20 executables, the libraries, including libc and the *crt*.o object files. I have symlinked the prefixed binaries in /usr/bin and I am now=20 re-building all packages with my new gcc-6.3/musl-1.1.16 toolchain :-) Didier