mailing list of musl libc
 help / color / mirror / code / Atom feed
From: Rich Felker <dalias@libc.org>
To: musl <musl@lists.openwall.com>
Subject: Re: musl xclock?
Date: Tue, 19 May 2015 18:13:54 -0400	[thread overview]
Message-ID: <20150519221354.GP17573@brightrain.aerifal.cx> (raw)
In-Reply-To: <CAGDMk9H+9af2LqN_O4UBrezYu9+-HsoG8kbWyM6uPabpXJoDpg@mail.gmail.com>

On Tue, May 19, 2015 at 05:51:24PM -0400, John Mudd wrote:
> I'm trying to build a musl version of xclock. If I can build xclock then I
> hope to be able to build my app which is more complicated. I'm getting the
> following error.
> 
> /usr/bin/ld: h_errno: TLS definition in //lib/i386-linux-gnu/libc.so.6
> section .tbss mismatches non-TLS definition in
> /home/mudd/musl/musl-1.1.8.install/lib/libc.so section .bss
> 
> Here's what the make was trying to execute. It looks good to me. Do you see
> a problem?

Yes, you're linking to glibc, or to something that was linked with
glibc. You should look though the X11 .so files you've built using
readelf and see if any of them have dependencies on libc.so.6. It
looks like you're using the host system's gcc and passing the
musl-gcc.specs file to it manually rather than using the musl-gcc
script or a real musl-targetted compiler toolchain, so it might be
something to do with that too. Adding -v to the command line and
seeing what gets passed to the linker command could be helpful.

Rich


  reply	other threads:[~2015-05-19 22:13 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-05-19 21:51 John Mudd
2015-05-19 22:13 ` Rich Felker [this message]
2015-05-20 15:28 ` John Mudd
2015-05-20 16:05   ` Rich Felker
2015-05-20 17:00     ` Szabolcs Nagy
2015-05-20 17:02       ` Szabolcs Nagy
2015-05-20 17:43       ` Rich Felker
2015-05-20 20:26   ` John Mudd
2015-05-20 20:47     ` John Mudd
2015-05-20 21:08       ` Szabolcs Nagy
2015-05-20 21:48         ` Szabolcs Nagy
2015-05-21 21:36           ` John Mudd

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=20150519221354.GP17573@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).