From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.org/gmane.linux.lib.musl.general/11969 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:18:58 +0200 Message-ID: <8b45f2fb-a4fa-eb07-7afe-1ffdbe78056b@in2p3.fr> 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 1507018763 27505 195.159.176.226 (3 Oct 2017 08:19:23 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Tue, 3 Oct 2017 08:19:23 +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-11982-gllmg-musl=m.gmane.org@lists.openwall.com Tue Oct 03 10:19:13 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 1dzIQ5-0005tz-2M for gllmg-musl@m.gmane.org; Tue, 03 Oct 2017 10:19:13 +0200 Original-Received: (qmail 25805 invoked by uid 550); 3 Oct 2017 08:19:12 -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 25784 invoked from network); 3 Oct 2017 08:19:11 -0000 X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.99.2 at cczrelay01 In-Reply-To: Xref: news.gmane.org gmane.linux.lib.musl.general:11969 Archived-At: Le 03/10/2017 =C3=A0 10:11, Didier Kryn a =C3=A9crit : > 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 --sta= tic" > 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 = > bin, include and lib. The issue is that, in bin, only binutils'=20 > executables are installed. > > Thanks. > Didier > I forgot to mention that everything looks fine in subdirs include=20 and lib. Only the gcc executables are missing.