mailing list of musl libc
 help / color / mirror / code / Atom feed
From: "Weiming Zhao" <weimingz@codeaurora.org>
To: <musl@lists.openwall.com>
Subject: RE: AArch64 merge back
Date: Tue, 15 Jul 2014 11:58:59 -0700	[thread overview]
Message-ID: <008d01cfa05e$d66f1d90$834d58b0$@codeaurora.org> (raw)
In-Reply-To: <20140701182501.GN179@brightrain.aerifal.cx>

Hi Rich,

Thanks a lot for your response.

We're trying static linking of AArch64 with some simple tests.
Some simple tests are working, but we do see some syscall issue as you
mentioned.
We suspect it's related with arch/aarch64/bits/syscall.h.
Is the file written from scratch or based on some existing open source
projects?

Thanks,
Weiming

-----Original Message-----
From: Rich Felker [mailto:dalias@aerifal.cx] On Behalf Of Rich Felker
Sent: Tuesday, July 01, 2014 11:25 AM
To: musl@lists.openwall.com
Subject: Re: [musl] AArch64 merge back

On Tue, Jul 01, 2014 at 10:41:10AM -0700, Weiming Zhao wrote:
> Hi Isaac,
> 
> So if I just want to use some arch-independent functions, then I just 
> need to build the main musl repo with aarch64 compiler. Is my 
> understanding correct?

No. I didn't really understand what you were asking before, but it might be
more clear if you read the porting documents on the wiki.
Rather than trying to answer point by point I'll try to explain a few
things:

It's not possible to use musl on a new arch simply by compiling the
arch-independent C. This is partly because there are a number of components
of libc that fundamentally cannot be expressed in C, and partly because the
kernel (gratuitously) has a different set of constants, struct definitions,
etc. for each architecture.

Generally ports are not merged (in the "git merge" sense) because most of
the early work on them is a mess of incompleteness, trial-and-error, etc.
Also merging would be a lot of work since we normally rebase all merges,
whereas master has often diverged quite a bit before a port is ready to
merge. Instead, once the port is working, we usually just add it as a single
commit, followed by any fixes for issues that weren't found before commit.

I'm not clear on the status of the aarch64 port right now. It was stalled
for a while because of changes needed in many of the arch-independent files
to accomodate the way the kernel does things on newer archs (omitting lots
of simple syscalls that can be emulated using more complex ones). That work
is done in mainline musl now though, so it's no longer blocking ports.
Further progress is up to the people working on those ports (or anyone else
who wants to build on their work). I'm really hoping it will be finished
during this release cycle so we can have aarch64 support in 1.1.4.

If you or anyone else wants to play around with trying to get it to work
based on the in-progress ports, the best approach would be to simply copy
over the new files added in the aarch64 musl git tree into a more recent
musl (1.1.2 or later).

Rich



  reply	other threads:[~2014-07-15 18:58 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-06-30 22:56 Weiming Zhao
2014-07-01  0:06 ` Isaac Dunham
2014-07-01  1:14   ` Weiming Zhao
2014-07-01  1:45     ` Isaac Dunham
2014-07-01 17:41       ` Weiming Zhao
2014-07-01 18:25         ` Rich Felker
2014-07-15 18:58           ` Weiming Zhao [this message]
2014-07-15 19:07             ` Rich Felker
2014-07-15 20:42               ` Weiming Zhao
2014-07-15 22:24                 ` Szabolcs Nagy
2014-07-01  6:53 ` Szabolcs Nagy

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='008d01cfa05e$d66f1d90$834d58b0$@codeaurora.org' \
    --to=weimingz@codeaurora.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).