mailing list of musl libc
 help / color / mirror / code / Atom feed
From: "piranna@gmail.com" <piranna@gmail.com>
To: musl@lists.openwall.com
Subject: Re: Bug on fstat()?
Date: Mon, 25 Aug 2014 11:18:08 +0200	[thread overview]
Message-ID: <CAKfGGh3AE0rHRzHsR5sc-azRHCv3euQawEKTLHWxaRH68fbHiQ@mail.gmail.com> (raw)
In-Reply-To: <53FA5A8A.3040503@gentoo.org>

> Make sure everything picks up the correct compiler and include paths.

I've review the compilation output and in the last command, I have
seen it's using g++ for linking and in fact is throwing the same
errors about "Using 'dlopen' in statically linked applications
requires at runtime the shared libraries from the glibc version used
for linking" (I've missed them because since all the compilation was
being done by musl-gcc and exit status was ok, I though everything was
compiled correctly. My fault).

I have reviewed the generated makefiles and found this paragraph
regarding th g++ linking:


# C++ apps need to be linked with g++.
#
# Note: flock is used to seralize linking. Linking is a memory-intensive
# process so running parallel links can often lead to thrashing.  To disable
# the serialization, override LINK via an envrionment variable as follows:
#
#   export LINK=g++
#
# This will allow make to invoke N linker processes as specified in -jN.
LINK ?= flock $(builddir)/linker.lock $(CXX.target)

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?



-- 
"Si quieres viajar alrededor del mundo y ser invitado a hablar en un
monton de sitios diferentes, simplemente escribe un sistema operativo
Unix."
– Linus Tordvals, creador del sistema operativo Linux


  reply	other threads:[~2014-08-25  9:18 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 [this message]
2014-08-25  9:31         ` piranna
2014-08-25  9:49           ` Szabolcs Nagy
2014-08-25 15:48             ` Rich Felker
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=CAKfGGh3AE0rHRzHsR5sc-azRHCv3euQawEKTLHWxaRH68fbHiQ@mail.gmail.com \
    --to=piranna@gmail.com \
    --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).