mailing list of musl libc
 help / color / mirror / code / Atom feed
From: Rich Felker <dalias@libc.org>
To: Patrick Oppenlander <pattyo.lists@gmail.com>
Cc: musl@lists.openwall.com
Subject: Re: musl-cross-make / litecross improvements
Date: Thu, 5 May 2016 22:44:54 -0400	[thread overview]
Message-ID: <20160506024454.GX21636@brightrain.aerifal.cx> (raw)
In-Reply-To: <572BCCAE.8000202@gmail.com>

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


  reply	other threads:[~2016-05-06  2:44 UTC|newest]

Thread overview: 23+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-05-03  4:48 Rich Felker
2016-05-03 11:39 ` Szabolcs Nagy
2016-05-03 18:02   ` Rich Felker
2016-05-03 20:16     ` Szabolcs Nagy
2016-05-03 21:57       ` Szabolcs Nagy
2016-05-04  0:16         ` Rich Felker
2016-05-04  3:53         ` Rich Felker
2016-05-04  8:15           ` Szabolcs Nagy
2016-05-06  5:14         ` Rich Felker
2016-05-04  9:28 ` [J-core] " Rob Landley
2016-05-04 11:10   ` Szabolcs Nagy
2016-05-04 11:27     ` Laurent Bercot
2016-05-04 11:52       ` Szabolcs Nagy
2016-05-04 16:33   ` Rich Felker
2016-05-04 16:48     ` Daniel Cegiełka
2016-05-04 17:16     ` Szabolcs Nagy
2016-05-04 18:09       ` Rich Felker
2016-05-04 17:54     ` Rich Felker
2016-05-05 22:43 ` Patrick Oppenlander
2016-05-06  2:44   ` Rich Felker [this message]
2016-05-06  6:03     ` Patrick Oppenlander
2016-05-06 20:49     ` Szabolcs Nagy
2016-05-08 23:04       ` Patrick Oppenlander

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20160506024454.GX21636@brightrain.aerifal.cx \
    --to=dalias@libc.org \
    --cc=musl@lists.openwall.com \
    --cc=pattyo.lists@gmail.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.vuxu.org/mirror/musl/

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).