From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.org/gmane.linux.lib.musl.general/10007 Path: news.gmane.org!not-for-mail From: Rich Felker Newsgroups: gmane.linux.lib.musl.general Subject: Re: musl-cross-make / litecross improvements Date: Thu, 5 May 2016 22:44:54 -0400 Message-ID: <20160506024454.GX21636@brightrain.aerifal.cx> References: <20160503044835.GA5517@brightrain.aerifal.cx> <572BCCAE.8000202@gmail.com> Reply-To: musl@lists.openwall.com NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1462502714 24924 80.91.229.3 (6 May 2016 02:45:14 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 6 May 2016 02:45:14 +0000 (UTC) Cc: musl@lists.openwall.com To: Patrick Oppenlander Original-X-From: musl-return-10020-gllmg-musl=m.gmane.org@lists.openwall.com Fri May 06 04:45:14 2016 Return-path: Envelope-to: gllmg-musl@m.gmane.org Original-Received: from mother.openwall.net ([195.42.179.200]) by plane.gmane.org with smtp (Exim 4.69) (envelope-from ) id 1ayVlP-0007RA-Rk for gllmg-musl@m.gmane.org; Fri, 06 May 2016 04:45:11 +0200 Original-Received: (qmail 22130 invoked by uid 550); 6 May 2016 02:45:09 -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 22112 invoked from network); 6 May 2016 02:45:08 -0000 Content-Disposition: inline In-Reply-To: <572BCCAE.8000202@gmail.com> User-Agent: Mutt/1.5.21 (2010-09-15) Original-Sender: Rich Felker Xref: news.gmane.org gmane.linux.lib.musl.general:10007 Archived-At: On Fri, May 06, 2016 at 08:43:58AM +1000, Patrick Oppenlander wrote: > On 03/05/16 14:48, Rich Felker wrote: > >Let me know if any major bugs/inconveniences remain that I should > >prioritize fixing. > > Hi Rich, > > used this for the first time today (commit 4afd97a). Ran into a > build failure using this config.mak: > > TARGET = arm-linux-musleabi > OUTPUT = /opt/cross > GCC_CONFIG += --with-cpu=cortex-a8 > > I can send a full build log to your personal mail (~600KiB) if it helps. > > libtool: compile: /home/patrick/src/patrick/musl-cross-make/build-arm-linux-musleabi/obj_toolchain/./gcc/xgcc -B/home/patrick/src/patrick/musl-cross-make/build-arm-linux-musleabi/obj_toolchain/./gcc/ > -B/arm-linux-musleabi/bin/ -B/arm-linux-musleabi/lib/ -isystem > /arm-linux-musleabi/include -isystem /arm-linux-musleabi/sys-include -L/home/patrick/src/patrick/musl-cross-make/build-arm-linux-musleabi/obj_toolchain/./ld --sysroot=/home/patrick/src/patrick/musl-cross-make/build-arm-linux-musleabi/obj_sysroot > -DHAVE_CONFIG_H -I. -I../../../src_toolchain/boehm-gc -I./include -I/home/patrick/src/patrick/musl-cross-make/build-arm-linux-musleabi/src_toolchain/boehm-gc/include > -fexceptions -Iinclude -I././targ-include -I.//libc/include -g -O2 > -MT os_dep.lo -MD -MP -MF .deps/os_dep.Tpo -c > .../../../src_toolchain/boehm-gc/os_dep.c -fPIC -DPIC -o > .libs/os_dep.o > .../../../src_toolchain/boehm-gc/os_dep.c:20:30: fatal error: > linux/version.h: No such file or directory > compilation terminated. It looks like there's a useless dependency on kernel headers in stuff for the target libs. I suspect you might have omitted the recommended --enable-languages=c,c++ and let it build all langs; IIRC boehm-gc is not built at all for a c/c++ only build. Other langs are completely untested and probably don't work, but it would be nice to find out why and fix the ones that are practical to fix. I should probably also add COMMON_CONFIG += --enable-languages=c,c++ _before_ config.mak inclusion so that, by default, you get the working configuration. Having this before config.mak should make it so any --enable-languages option you manually add with += takes precedence. > Are you planning on supporting GCC 5.3? I may be able to contribute > some patches. I suspect the same patches for 5.2 apply just fine, but I haven't taken the time to test yet. If you can confirm they work or tweak them so they work I'd be happy to add 5.3 support. Other versions I'd like to support are 4.7.4 (last C-only, also last before some sketchy optimizations were added) and 6.1.0, but in order to add a version it should have proper support (at least the main musl patch with dynamic linker names, include paths, etc. fully ported) rather than just being enough to compile. Rich