From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.org/gmane.linux.lib.musl.general/9369 Path: news.gmane.org!not-for-mail From: Rich Felker Newsgroups: gmane.linux.lib.musl.general Subject: Re: musl 1.1.14 and x86_64 Date: Tue, 23 Feb 2016 12:29:44 -0500 Message-ID: <20160223172944.GO9349@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 1456248607 25769 80.91.229.3 (23 Feb 2016 17:30:07 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 23 Feb 2016 17:30:07 +0000 (UTC) To: musl@lists.openwall.com Original-X-From: musl-return-9382-gllmg-musl=m.gmane.org@lists.openwall.com Tue Feb 23 18:30:07 2016 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 1aYGmh-0004pL-8F for gllmg-musl@m.gmane.org; Tue, 23 Feb 2016 18:30:03 +0100 Original-Received: (qmail 19669 invoked by uid 550); 23 Feb 2016 17:29:59 -0000 Mailing-List: contact musl-help@lists.openwall.com; run by ezmlm Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-ID: Original-Received: (qmail 19647 invoked from network); 23 Feb 2016 17:29:58 -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:9369 Archived-At: On Tue, Feb 23, 2016 at 01:03:55PM +0100, Jens wrote: > > Hello! > > Since 1.1.14 I am seeing the following when compiling musl for > x86_64 (32 bit is fine). 1.1.12 was Ok. > > ../include/unistd.h:125: warning: redeclaration of 'optarg' with > different visibility (old visibility preserved) > ../src/internal/vis.h:23: warning: previous declaration of 'optarg' > was here > ../include/unistd.h:126: warning: redeclaration of 'optind' with > different visibility (old visibility preserved) > ../src/internal/vis.h:17: warning: previous declaration of 'optind' > was here > ../include/unistd.h:126: warning: redeclaration of 'opterr' with > different visibility (old visibility preserved) > ../src/internal/vis.h:17: warning: previous declaration of 'opterr' > was here > ../include/unistd.h:126: warning: redeclaration of 'optopt' with > different visibility (old visibility preserved) > ../src/internal/vis.h:17: warning: previous declaration of 'optopt' > was here > > Can I ignore these warnings or are they likely to break something? > > I'm still building things from a pretty old environment, so that may > be the cause of the warnings. (The base is an old uclibc buildroot). > > gcc 4.1.2 and binutils-2.20.1-1. > > configured with --prefix=/opt/musl --bindir=/usr/bin --disable-shared I don't think anything will break, but this sounds like a pretty broken toolchain, and could have other "interesting" bugs. Gregor's musl-cross or my musl-cross-make build system should make it easy to build a musl-targeting cross compiler, but for building musl itself it's fine to just use a host compiler targeting glibc (except on weird archs like powerpc where ABI issues preclude this from working). Rich