mailing list of musl libc
 help / color / mirror / code / Atom feed
From: Rich Felker <dalias@libc.org>
To: u-igbb@aetey.se
Cc: musl@lists.openwall.com
Subject: Re: compiling musl on x86_64 linux with ppc
Date: Wed, 13 Aug 2014 10:23:32 -0400	[thread overview]
Message-ID: <20140813142332.GN12888@brightrain.aerifal.cx> (raw)
In-Reply-To: <20140813125607.GK5170@example.net>

On Wed, Aug 13, 2014 at 02:56:08PM +0200, u-igbb@aetey.se wrote:
> > > src/aio/aio_readwrite.c, line 23: compiler error: unsupported xasm constraint r11
> > > error: XXXXX/libexec/ccom terminated with status 1
> > > make: *** [src/aio/aio_readwrite.o] Error 1
> > > -----------
> > > 
> > > Is there any way around this, short of adding the register assignment
> > > functionality to the compiler?
> > 
> > Just use the #ifdef __clang__ branch of the code which handles the
> > same brokenness in clang. :-)
> 
> According to Anders Magnusson (he replied on pcc-list) it is sufficient
> to refer to r11 as %r11 to make it work. He thinks otherwise of adding
> the alias r11 for %r11 in pcc.
> 
> Indeed, with a change of all "r11" to "%r11" in
>  arch/x86_64/syscall_arch.h
> the compilation went through without disabling the separate __syscallN().

Just because it compiled doesn't mean it works. Those warnings about
register assignment definitely should be hard errors because the code
will do horribly wrong things if the requested constraints are not
met.

> My goal is a musl-based selfcontained pcc toolchain.
> I'd like to also have a tcc-based one but musl seems to be too hard
> a target for tcc yet :( sigh.

I think tcc has a long ways to go... But pcc was working in the past
(at least on 32-bit) and should work.

BTW about the mmap2 preprocessor issue, did you raise that with ppc
developers too? I think it's a bug on their side but I'm not 100%
sure. If the code in musl is not valid C I'll change it, but if it is,
I think we should just wait for pcc to get fixed.

Rich


  reply	other threads:[~2014-08-13 14:23 UTC|newest]

Thread overview: 41+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-08-13  9:18 u-igbb
2014-08-13  9:29 ` "pcc" of course ([musl] compiling musl on x86_64 linux with ppc) u-igbb
2014-08-13  9:49 ` compiling musl on x86_64 linux with ppc Szabolcs Nagy
2014-08-13 10:25   ` compiling musl on x86_64 linux with pcc u-igbb
2014-08-13 11:22     ` u-igbb
2014-08-13 11:53       ` summary: [musl] " u-igbb
2014-08-13 12:38 ` compiling musl on x86_64 linux with ppc Rich Felker
2014-08-13 12:56   ` u-igbb
2014-08-13 14:23     ` Rich Felker [this message]
2014-08-13 14:43       ` compiling musl on x86_64 linux with pcc u-igbb
2014-08-13 14:43       ` compiling musl on x86_64 linux with ppc Szabolcs Nagy
2014-08-14  7:10       ` compiling musl on x86_64 linux with pcc u-igbb
2014-08-14 14:20         ` Rich Felker
2014-08-14 14:38           ` u-igbb
2014-08-14 14:47             ` Rich Felker
2014-08-14 15:00               ` u-igbb
2014-08-15 10:49               ` va_list (was: [musl] compiling musl on x86_64 linux with pcc) u-igbb
2014-08-15 13:44                 ` Rich Felker
2014-08-15 15:07                   ` u-igbb
2014-08-15 15:56                     ` Rich Felker
2014-08-15 17:12                       ` u-igbb
2014-08-15  8:05       ` compiling musl on x86_64 linux with ppc u-igbb
2014-08-25  8:28       ` compiling musl on x86_64 linux with pcc u-igbb
2014-08-25  8:34         ` u-igbb
2014-08-25 15:46           ` Rich Felker
2014-08-26 19:34             ` u-igbb
2014-08-26 19:54               ` Rich Felker
2014-08-27  7:40                 ` u-igbb
2014-08-27  7:54                   ` Rich Felker
2014-08-27  8:52                     ` variadic args (was: [musl] compiling musl on x86_64 linux with pcc) u-igbb
2014-08-27 16:34                       ` Rich Felker
2014-08-28  8:13                         ` u-igbb
2014-08-28 14:40                           ` Rich Felker
2014-08-28 16:55                             ` u-igbb
2014-08-27 14:38             ` compiling musl with pcc (i486-pc-linux-gnu) " u-igbb
2014-08-27 16:36               ` Rich Felker
2014-09-23 19:05             ` compiling musl on x86_64 linux with pcc u-igbb
2014-09-23 19:31               ` Rich Felker
2014-09-24  8:26                 ` u-igbb
2014-08-13 23:39     ` compiling musl on x86_64 linux with ppc Isaac Dunham
2014-08-13 23:41       ` Rich Felker

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=20140813142332.GN12888@brightrain.aerifal.cx \
    --to=dalias@libc.org \
    --cc=musl@lists.openwall.com \
    --cc=u-igbb@aetey.se \
    /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).