From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.org/gmane.linux.lib.musl.general/11971 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 12:38:49 +0200 Message-ID: <718adcbe-322a-22cf-1459-81ec78e677d4@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> <8b45f2fb-a4fa-eb07-7afe-1ffdbe78056b@in2p3.fr> <20171003093730.GL15263@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 1507027557 19454 195.159.176.226 (3 Oct 2017 10:45:57 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Tue, 3 Oct 2017 10:45:57 +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-11984-gllmg-musl=m.gmane.org@lists.openwall.com Tue Oct 03 12:45:38 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 1dzKhk-0003rM-F2 for gllmg-musl@m.gmane.org; Tue, 03 Oct 2017 12:45:36 +0200 Original-Received: (qmail 19877 invoked by uid 550); 3 Oct 2017 10:39:03 -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 19852 invoked from network); 3 Oct 2017 10:39:02 -0000 X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.99.2 at cczrelay01 In-Reply-To: <20171003093730.GL15263@port70.net> Xref: news.gmane.org gmane.linux.lib.musl.general:11971 Archived-At: Le 03/10/2017 =C3=A0 11:37, Szabolcs Nagy a =C3=A9crit : > * Didier Kryn [2017-10-03 10:18:58 +0200]: > >> 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 t= he >>>> toolchain will be installed; it would not appear under /usr/pkg unle= ss >>>> 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= 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 --s= tatic" >>> 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 subdi= rs >>> bin, include and lib. The issue is that, in bin, only binutils' >>> executables are installed. >>> >>> Thanks. >>> Didier >>> >> I forgot to mention that everything looks fine in subdirs include= and >> lib. Only the gcc executables are missing. >> > it's a cross compiler, so you won't have gcc, but x86_64-linux-musl-gcc= But it isn't installed and, BTW, the installed binutils executables = aren't prefixed with x86_64-linux-musl- When I remove the line 'OUTPUT =3D /usr/pkg' in config.mak, to leav= e=20 it use the default, then the installation occurs in subdir 'output' of=20 the source tree, and it seems much more familiar to me, with more=20 subdirs, such as libexec, share and x86_64-linux-musl, which are not=20 present otherwise. And all the executables are correctly prefixed. Therefore the problem is restricted to the processing of the custom = install dir. Given the cross-compiler is sysrooted, this isn't a big=20 deal, but better to know. Didier