mailing list of musl libc
 help / color / mirror / code / Atom feed
From: Rich Felker <dalias@libc.org>
To: musl@lists.openwall.com
Subject: Re: musl 1.1.14 and x86_64
Date: Tue, 23 Feb 2016 12:29:44 -0500	[thread overview]
Message-ID: <20160223172944.GO9349@brightrain.aerifal.cx> (raw)
In-Reply-To: <alpine.LNX.2.11.1602231257590.563@jelaas.eu>

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


      reply	other threads:[~2016-02-23 17:29 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-02-23 12:03 Jens
2016-02-23 17:29 ` Rich Felker [this message]

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=20160223172944.GO9349@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).