From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.org/gmane.linux.lib.musl.general/7707 Path: news.gmane.org!not-for-mail From: Rich Felker Newsgroups: gmane.linux.lib.musl.general Subject: Re: musl xclock? Date: Tue, 19 May 2015 18:13:54 -0400 Message-ID: <20150519221354.GP17573@brightrain.aerifal.cx> References: 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 1432073651 28244 80.91.229.3 (19 May 2015 22:14:11 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 19 May 2015 22:14:11 +0000 (UTC) To: musl Original-X-From: musl-return-7719-gllmg-musl=m.gmane.org@lists.openwall.com Wed May 20 00:14:11 2015 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 1Yupm5-0002PV-2D for gllmg-musl@m.gmane.org; Wed, 20 May 2015 00:14:09 +0200 Original-Received: (qmail 24375 invoked by uid 550); 19 May 2015 22:14:07 -0000 Mailing-List: contact musl-help@lists.openwall.com; run by ezmlm Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: Original-Received: (qmail 24356 invoked from network); 19 May 2015 22:14:06 -0000 Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.21 (2010-09-15) Original-Sender: Rich Felker Xref: news.gmane.org gmane.linux.lib.musl.general:7707 Archived-At: 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