mailing list of musl libc
 help / color / mirror / code / Atom feed
From: Rich Felker <dalias@libc.org>
To: Khem Raj <raj.khem@gmail.com>
Cc: musl@lists.openwall.com
Subject: Re: the definition of (u)int64_t with gcc -m32 in stdint.h
Date: Thu, 21 Aug 2014 12:47:42 -0400	[thread overview]
Message-ID: <20140821164742.GL12888@brightrain.aerifal.cx> (raw)
In-Reply-To: <CAMKF1srHx6v8Ns-DhS3zMzP7neaFqA0JMhn7QVoP-wMbP-r9xw@mail.gmail.com>

On Thu, Aug 21, 2014 at 08:25:40AM -0700, Khem Raj wrote:
> > so on musl it is 'long' but on uclibc its 'long long int'.
> >
> > That explains why it works on uclibc but not on musl.
> >
> > Now, what is the proper way to fix it? Preferible without replacing
> > all (u)int*_t all places in xen code. I doubt upstream will accept that.
> >
> 
> Do we support multilib with musl yes ?

With separate include dirs for each, yes. But not using the same
includes. glibc treats i386 and x86_64 (and x32) basically as a common
arch, at least as far as headers are concerned, with a lot of the
header content being determined at compile time via __WORDSIZE or
similar. musl treats them all as separate.

Presumably gcc can be configured, at least via the spec file if
nothing else, to use a different include dir when -m32 is passed.

Rich


      reply	other threads:[~2014-08-21 16:47 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-08-21 15:15 Natanael Copa
2014-08-21 15:25 ` Khem Raj
2014-08-21 16:47   ` 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=20140821164742.GL12888@brightrain.aerifal.cx \
    --to=dalias@libc.org \
    --cc=musl@lists.openwall.com \
    --cc=raj.khem@gmail.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).