mailing list of musl libc
 help / color / mirror / code / Atom feed
From: Rich Felker <dalias@libc.org>
To: musl@lists.openwall.com
Subject: Re: Bug on fstat()?
Date: Mon, 25 Aug 2014 11:48:11 -0400	[thread overview]
Message-ID: <20140825154811.GW12888@brightrain.aerifal.cx> (raw)
In-Reply-To: <20140825094902.GU22308@port70.net>

On Mon, Aug 25, 2014 at 11:49:03AM +0200, Szabolcs Nagy wrote:
> * piranna@gmail.com <piranna@gmail.com> [2014-08-25 11:31:28 +0200]:
> > > So, is g++ mandatory for compilation? Is there any solution? I'll try
> > > to set CXX to musl-gcc too, but didn't see anything about this and I'm
> > > not sure if it would work... If it doesn't work, would I need to
> > > create a musl-g++ wrapper?
> > 
> > Confirmed: doesn't work, it has failed just in the first C++ source
> > code file it has found:
> > 
> 
> musl-gcc is just a thin gcc wrapper (uses a custom spec file
> to locate the standard headers and other libc files)
> 
> eg. it does not have a libstdc++ linked against musl so it
> cannot build c++ code

In principle it should be possible to make it work. libstdc++.so
actually works fine with musl due to the ABI-compat; the problem is
the nasty precompiled header files that have already pulled in junk
from glibc's headers. If there's a way around that, it may be possible
to get musl-gcc working with C++. Nobody has tried it yet as far as I
know, though.

> use a musl cross compiler for your target with c++ support
> (eg http://musl.codu.org/ has prebuilt ones but you can build
> musl-cross yourself) or build on a musl based system (sabotage
> or alpinelinux, they probably already have node.js packaged)

Yes, this is the best option. You might need to tweak their builds to
get a static binary though.

Rich


  reply	other threads:[~2014-08-25 15:48 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-08-24 20:51 piranna
2014-08-24 21:05 ` Rich Felker
2014-08-24 21:23   ` piranna
2014-08-24 21:35     ` Luca Barbato
2014-08-25  9:18       ` piranna
2014-08-25  9:31         ` piranna
2014-08-25  9:49           ` Szabolcs Nagy
2014-08-25 15:48             ` Rich Felker [this message]
2014-08-26 19:05               ` piranna

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=20140825154811.GW12888@brightrain.aerifal.cx \
    --to=dalias@libc.org \
    --cc=musl@lists.openwall.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).