From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.org/gmane.linux.lib.musl.general/11970 Path: news.gmane.org!.POSTED!not-for-mail From: Szabolcs Nagy Newsgroups: gmane.linux.lib.musl.general Subject: Re: musl-cross-make doesn't install gcc binaries Date: Tue, 3 Oct 2017 11:37:30 +0200 Message-ID: <20171003093730.GL15263@port70.net> 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> 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 1507023483 21309 195.159.176.226 (3 Oct 2017 09:38:03 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Tue, 3 Oct 2017 09:38:03 +0000 (UTC) User-Agent: Mutt/1.6.0 (2016-04-01) To: musl@lists.openwall.com Original-X-From: musl-return-11983-gllmg-musl=m.gmane.org@lists.openwall.com Tue Oct 03 11:37:45 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 1dzJe1-00047P-AK for gllmg-musl@m.gmane.org; Tue, 03 Oct 2017 11:37:41 +0200 Original-Received: (qmail 1491 invoked by uid 550); 3 Oct 2017 09:37:42 -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 1463 invoked from network); 3 Oct 2017 09:37:41 -0000 Mail-Followup-To: musl@lists.openwall.com Content-Disposition: inline In-Reply-To: <8b45f2fb-a4fa-eb07-7afe-1ffdbe78056b@in2p3.fr> Xref: news.gmane.org gmane.linux.lib.musl.general:11970 Archived-At: * Didier Kryn [2017-10-03 10:18:58 +0200]: > Le 03/10/2017 =E0 10:11, Didier Kryn a =E9crit : > > Le 02/10/2017 =E0 17:57, Rich Felker a =E9crit : > > > > I have recently discovered the existence of musl-cross-make a= nd > > > > 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: > > > >=20 > > > > /# 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 > > > >=20 > > > > 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. > > >=20 > > I just ran 'make'; and, when it was finished, 'make install' > >=20 > > Everything is configured in config.mak. Here it is (I've removed the > > comments): > >=20 > > # config.mak > > TARGET =3D x86_64-linux-musl > > OUTPUT =3D /usr/pkg > > DL_CMD =3D wget -c -O > >=20 > > 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 > >=20 > > 'make install' creates /usr/pkg/x86_64-linux-musl, and the subdirs > > bin, include and lib. The issue is that, in bin, only binutils' > > executables are installed. > >=20 > > Thanks. > > Didier > >=20 > I forgot to mention that everything looks fine in subdirs include and > lib. Only the gcc executables are missing. >=20 it's a cross compiler, so you won't have gcc, but x86_64-linux-musl-gcc