From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.org/gmane.linux.lib.musl.general/11968 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: Tue, 3 Oct 2017 10:11:24 +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> 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 1507018306 12554 195.159.176.226 (3 Oct 2017 08:11:46 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Tue, 3 Oct 2017 08:11:46 +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-11981-gllmg-musl=m.gmane.org@lists.openwall.com Tue Oct 03 10:11:43 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 1dzIIg-0002dc-44 for gllmg-musl@m.gmane.org; Tue, 03 Oct 2017 10:11:34 +0200 Original-Received: (qmail 16006 invoked by uid 550); 3 Oct 2017 08:11:37 -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 15974 invoked from network); 3 Oct 2017 08:11:37 -0000 X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.99.2 at cczrelay02 In-Reply-To: <20171002155744.GC1627@brightrain.aerifal.cx> Xref: news.gmane.org gmane.linux.lib.musl.general:11968 Archived-At: Le 02/10/2017 =C3=A0 17:57, Rich Felker a =C3=A9crit : >> 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. > I just ran 'make'; and, when it was finished, 'make install' Everything is configured in config.mak. Here it is (I've removed=20 the comments): # config.mak TARGET =3D x86_64-linux-musl OUTPUT =3D /usr/pkg DL_CMD =3D wget -c -O COMMON_CONFIG +=3D CC=3D"gcc -static --static" CXX=3D"g++ -static --stati= c" COMMON_CONFIG +=3D CFLAGS=3D"-O2" CXXFLAGS=3D"-O2" COMMON_CONFIG +=3D --disable-nls GCC_CONFIG +=3D --enable-languages=3Dc,c++ GCC_CONFIG +=3D --disable-multilib 'make install' creates /usr/pkg/x86_64-linux-musl, and the subdirs=20 bin, include and lib. The issue is that, in bin, only binutils'=20 executables are installed. Thanks. Didier