From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.org/gmane.linux.lib.musl.general/5383 Path: news.gmane.org!not-for-mail From: "Weiming Zhao" Newsgroups: gmane.linux.lib.musl.general Subject: AArch64 merge back Date: Mon, 30 Jun 2014 15:56:45 -0700 Message-ID: <004501cf94b6$9141c8c0$b3c55a40$@codeaurora.org> Reply-To: musl@lists.openwall.com NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_NextPart_000_0046_01CF947B.E4E365F0" X-Trace: ger.gmane.org 1404169026 13555 80.91.229.3 (30 Jun 2014 22:57:06 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 30 Jun 2014 22:57:06 +0000 (UTC) To: Original-X-From: musl-return-5388-gllmg-musl=m.gmane.org@lists.openwall.com Tue Jul 01 00:57:01 2014 Return-path: Envelope-to: gllmg-musl@plane.gmane.org Original-Received: from mother.openwall.net ([195.42.179.200]) by plane.gmane.org with smtp (Exim 4.69) (envelope-from ) id 1X1kVP-0004Z1-EY for gllmg-musl@plane.gmane.org; Tue, 01 Jul 2014 00:56:59 +0200 Original-Received: (qmail 10031 invoked by uid 550); 30 Jun 2014 22:56:58 -0000 Mailing-List: contact musl-help@lists.openwall.com; run by ezmlm Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: Original-Received: (qmail 10023 invoked from network); 30 Jun 2014 22:56:58 -0000 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-caf-smtp.dmz.codeaurora.org X-Spam-Level: * X-Spam-Status: No, score=1.9 required=2.0 tests=ALL_TRUSTED,BAYES_50, HTML_MESSAGE,TVD_RCVD_SINGLE autolearn=no version=3.3.1 X-Mailer: Microsoft Outlook 14.0 Thread-Index: Ac+Utjoejkni0lS5RC+cwnACqATX5Q== Content-Language: en-us X-Virus-Scanned: ClamAV using ClamSMTP Xref: news.gmane.org gmane.linux.lib.musl.general:5383 Archived-At: This is a multipart message in MIME format. ------=_NextPart_000_0046_01CF947B.E4E365F0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Hi, I'm wondering if there is any plan to merge back the changes for AArch64 from https://github.com/crxz0193/musl-aarch64 ? So we can stay on the main repository. Thanks, Weiming Qualcomm Innovation Center, Inc. is a member of Code Aurora Forum, hosted by The Linux Foundation ------=_NextPart_000_0046_01CF947B.E4E365F0 Content-Type: text/html; charset="us-ascii" Content-Transfer-Encoding: quoted-printable

Hi,

 

I’m = wondering if there is any plan to merge back the changes for AArch64 = from https://github.com/crxz= 0193/musl-aarch64 ?

So we can = stay on the main repository.

 

Thanks,

Weiming

 

Qualcomm = Innovation Center, Inc. is a member of Code Aurora Forum, hosted by The = Linux Foundation

 

 

------=_NextPart_000_0046_01CF947B.E4E365F0-- From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.org/gmane.linux.lib.musl.general/5384 Path: news.gmane.org!not-for-mail From: Isaac Dunham Newsgroups: gmane.linux.lib.musl.general Subject: Re: AArch64 merge back Date: Mon, 30 Jun 2014 17:06:55 -0700 Message-ID: <20140701000654.GA4197@newbook> References: <004501cf94b6$9141c8c0$b3c55a40$@codeaurora.org> 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 1404173248 23052 80.91.229.3 (1 Jul 2014 00:07:28 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 1 Jul 2014 00:07:28 +0000 (UTC) To: musl@lists.openwall.com Original-X-From: musl-return-5389-gllmg-musl=m.gmane.org@lists.openwall.com Tue Jul 01 02:07:19 2014 Return-path: Envelope-to: gllmg-musl@plane.gmane.org Original-Received: from mother.openwall.net ([195.42.179.200]) by plane.gmane.org with smtp (Exim 4.69) (envelope-from ) id 1X1lbT-0003pY-43 for gllmg-musl@plane.gmane.org; Tue, 01 Jul 2014 02:07:19 +0200 Original-Received: (qmail 5956 invoked by uid 550); 1 Jul 2014 00:07:15 -0000 Mailing-List: contact musl-help@lists.openwall.com; run by ezmlm Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: Original-Received: (qmail 5945 invoked from network); 1 Jul 2014 00:07:13 -0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=date:from:to:subject:message-id:references:mime-version :content-type:content-disposition:in-reply-to:user-agent; bh=6uxcYMup8P0UUAZllOUOjAa+8XzBPPtPR94DmDMovmY=; b=JnmEuQwGVVEBOD3dHWWuBzCnd6V86hxXCgnKcASnx1YUuXUrPu0bSgzU+De6OGRB4o ZajY8KsJUmbWueVLe9hH7aIsh/815T241f6uBtdSXACTSyfTVGypm3NX7JqcQXMXclQT u+5G799KDvn6gYZNtMRlwhW/Nxwknq+ltAIat3ooB6Zcb7s95e8yoXaYZUQU9RS9kGja 2Vtv8oBUUkF9QSC/CrNpMIVRUZ3tqN/x4sSO6Y3xPjN2ouQ+3wXxO765j8zr+eoOJxxj dzylH1ZMNaD2COcSXgAsLSd7r4Uw2hopKsBV1dqJx3GlRj9/6tL6ktuvpo6VqtRdeUuX kFlA== X-Received: by 10.66.123.36 with SMTP id lx4mr22694076pab.21.1404173221253; Mon, 30 Jun 2014 17:07:01 -0700 (PDT) Content-Disposition: inline In-Reply-To: <004501cf94b6$9141c8c0$b3c55a40$@codeaurora.org> User-Agent: Mutt/1.5.23 (2014-03-12) Xref: news.gmane.org gmane.linux.lib.musl.general:5384 Archived-At: On Mon, Jun 30, 2014 at 03:56:45PM -0700, Weiming Zhao wrote: > Hi, > I'm wondering if there is any plan to merge back the changes for AArch64 > from https://github.com/crxz0193/musl-aarch64 ? > > So we can stay on the main repository. What's the status of that? I see commits related to a few syscalls from the end of March/April 1, and nothing newer. The last news I heard, some of the work that would be needed was done, but I did not get the impression that it was possible to build working binaries, even static ones. (If this is incorrect, I'd like to hear the current status.) Some ports have been merged before all functionality worked (including the dynamic linker), but I don't recall seeing any ports get merged before it was possible to produce a working executable. Or are you referring to just the non-arch-specific changes? Thanks, Isaac Dunham From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.org/gmane.linux.lib.musl.general/5386 Path: news.gmane.org!not-for-mail From: "Weiming Zhao" Newsgroups: gmane.linux.lib.musl.general Subject: RE: AArch64 merge back Date: Mon, 30 Jun 2014 18:14:36 -0700 Message-ID: <005501cf94c9$d368ecc0$7a3ac640$@codeaurora.org> References: <004501cf94b6$9141c8c0$b3c55a40$@codeaurora.org> <20140701000654.GA4197@newbook> Reply-To: musl@lists.openwall.com NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1404177297 32741 80.91.229.3 (1 Jul 2014 01:14:57 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 1 Jul 2014 01:14:57 +0000 (UTC) To: Original-X-From: musl-return-5391-gllmg-musl=m.gmane.org@lists.openwall.com Tue Jul 01 03:14:50 2014 Return-path: Envelope-to: gllmg-musl@plane.gmane.org Original-Received: from mother.openwall.net ([195.42.179.200]) by plane.gmane.org with smtp (Exim 4.69) (envelope-from ) id 1X1meo-0001lY-E1 for gllmg-musl@plane.gmane.org; Tue, 01 Jul 2014 03:14:50 +0200 Original-Received: (qmail 32709 invoked by uid 550); 1 Jul 2014 01:14:49 -0000 Mailing-List: contact musl-help@lists.openwall.com; run by ezmlm Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: Original-Received: (qmail 32701 invoked from network); 1 Jul 2014 01:14:49 -0000 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-caf-smtp.dmz.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-0.7 required=2.0 tests=ALL_TRUSTED,BAYES_00, TVD_RCVD_SINGLE autolearn=no version=3.3.1 In-Reply-To: <20140701000654.GA4197@newbook> X-Mailer: Microsoft Outlook 14.0 Thread-Index: AQHw+40TnJ0SKfsBwX+HiRBmYvbNLAK5CH2vmzHNJeA= Content-Language: en-us X-Virus-Scanned: ClamAV using ClamSMTP Xref: news.gmane.org gmane.linux.lib.musl.general:5386 Archived-At: Hi Isaac, Do you mean those arch independent functions (e.g. abs, sprint, memcpy) have already been merged? Thanks, Weiming -----Original Message----- From: Isaac Dunham [mailto:ibid.ag@gmail.com] Sent: Monday, June 30, 2014 5:07 PM To: musl@lists.openwall.com Subject: Re: [musl] AArch64 merge back On Mon, Jun 30, 2014 at 03:56:45PM -0700, Weiming Zhao wrote: > Hi, > I'm wondering if there is any plan to merge back the changes for > AArch64 from https://github.com/crxz0193/musl-aarch64 ? > > So we can stay on the main repository. What's the status of that? I see commits related to a few syscalls from the end of March/April 1, and nothing newer. The last news I heard, some of the work that would be needed was done, but I did not get the impression that it was possible to build working binaries, even static ones. (If this is incorrect, I'd like to hear the current status.) Some ports have been merged before all functionality worked (including the dynamic linker), but I don't recall seeing any ports get merged before it was possible to produce a working executable. Or are you referring to just the non-arch-specific changes? Thanks, Isaac Dunham From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.org/gmane.linux.lib.musl.general/5388 Path: news.gmane.org!not-for-mail From: Isaac Dunham Newsgroups: gmane.linux.lib.musl.general Subject: Re: AArch64 merge back Date: Mon, 30 Jun 2014 18:45:00 -0700 Message-ID: <20140701014459.GA8304@newbook> References: <004501cf94b6$9141c8c0$b3c55a40$@codeaurora.org> <20140701000654.GA4197@newbook> <005501cf94c9$d368ecc0$7a3ac640$@codeaurora.org> 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 1404179122 18425 80.91.229.3 (1 Jul 2014 01:45:22 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 1 Jul 2014 01:45:22 +0000 (UTC) To: musl@lists.openwall.com Original-X-From: musl-return-5393-gllmg-musl=m.gmane.org@lists.openwall.com Tue Jul 01 03:45:17 2014 Return-path: Envelope-to: gllmg-musl@plane.gmane.org Original-Received: from mother.openwall.net ([195.42.179.200]) by plane.gmane.org with smtp (Exim 4.69) (envelope-from ) id 1X1n8H-0002f0-Bc for gllmg-musl@plane.gmane.org; Tue, 01 Jul 2014 03:45:17 +0200 Original-Received: (qmail 17411 invoked by uid 550); 1 Jul 2014 01:45:16 -0000 Mailing-List: contact musl-help@lists.openwall.com; run by ezmlm Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: Original-Received: (qmail 16379 invoked from network); 1 Jul 2014 01:45:16 -0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=date:from:to:subject:message-id:references:mime-version :content-type:content-disposition:in-reply-to:user-agent; bh=5xJriPTJg2TOHZ0Br+vcmHG0jlHq3BV6llOxPMJ+McU=; b=BJHYQkyugvv/BMETQv9WZLmuSqiZLMrafbbFV8w7jX/e73+7wyRA5OrvzYm1ntYO8u 7AyvYkj0mBsjdpReXUNqo2WnuJYevTRzZThm/o1wM44EAYqWm+aWHrnutz938k5iXdH8 gUIYDIWV3akRNn23A+uRbMW8Emt5xEGynJmGAgl1EAQ85fpDLc5BcrCR1GH3IsPqhBeg KQhKEC0BWOr+12ikpoIqbfmu8L66XJJVo5jthvKTbmIbcP7wEG78BJF5BItRS7XnS+h2 d/sgqbjsmOZvvOg+5lnjznLuddiB9fR2QVlKpJf4F/OqZZ5fAhpb+eCE9uq3Hr6P+SoF V2FQ== X-Received: by 10.66.169.136 with SMTP id ae8mr56607601pac.14.1404179103460; Mon, 30 Jun 2014 18:45:03 -0700 (PDT) Content-Disposition: inline In-Reply-To: <005501cf94c9$d368ecc0$7a3ac640$@codeaurora.org> User-Agent: Mutt/1.5.23 (2014-03-12) Xref: news.gmane.org gmane.linux.lib.musl.general:5388 Archived-At: On Mon, Jun 30, 2014 at 06:14:36PM -0700, Weiming Zhao wrote: > Hi Isaac, > > Do you mean those arch independent functions (e.g. abs, sprint, memcpy) have > already been merged? No, I was asking if you meant the whole port-in-progress or if you were only asking about said functions; at that point I had not checked. At present, I can tell you what the git log says: -memcpy.c was last touched in August last year implementing a portable optimized memcpy. -abs.c has not changed in the 3 years of git history -sprintf.c (I assume that's what you mean by 'sprint'?) has not been touched since 2012. ...all of which are before AArch64 porting. Is the relevant code in 'rebase-1.0'? Thanks, Isaac Dunham > -----Original Message----- > From: Isaac Dunham [mailto:ibid.ag@gmail.com] > Sent: Monday, June 30, 2014 5:07 PM > To: musl@lists.openwall.com > Subject: Re: [musl] AArch64 merge back > > On Mon, Jun 30, 2014 at 03:56:45PM -0700, Weiming Zhao wrote: > > Hi, > > I'm wondering if there is any plan to merge back the changes for > > AArch64 from https://github.com/crxz0193/musl-aarch64 ? > > > > So we can stay on the main repository. > > What's the status of that? I see commits related to a few syscalls from the > end of March/April 1, and nothing newer. > The last news I heard, some of the work that would be needed was done, but I > did not get the impression that it was possible to build working binaries, > even static ones. > (If this is incorrect, I'd like to hear the current status.) > > Some ports have been merged before all functionality worked (including the > dynamic linker), but I don't recall seeing any ports get merged before it > was possible to produce a working executable. > > Or are you referring to just the non-arch-specific changes? > > Thanks, > Isaac Dunham > > From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.org/gmane.linux.lib.musl.general/5389 Path: news.gmane.org!not-for-mail From: Szabolcs Nagy Newsgroups: gmane.linux.lib.musl.general Subject: Re: AArch64 merge back Date: Tue, 1 Jul 2014 08:53:37 +0200 Message-ID: <20140701065337.GB23102@port70.net> References: <004501cf94b6$9141c8c0$b3c55a40$@codeaurora.org> 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 1404197640 857 80.91.229.3 (1 Jul 2014 06:54:00 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 1 Jul 2014 06:54:00 +0000 (UTC) To: musl@lists.openwall.com Original-X-From: musl-return-5394-gllmg-musl=m.gmane.org@lists.openwall.com Tue Jul 01 08:53:54 2014 Return-path: Envelope-to: gllmg-musl@plane.gmane.org Original-Received: from mother.openwall.net ([195.42.179.200]) by plane.gmane.org with smtp (Exim 4.69) (envelope-from ) id 1X1rww-0003j7-30 for gllmg-musl@plane.gmane.org; Tue, 01 Jul 2014 08:53:54 +0200 Original-Received: (qmail 3637 invoked by uid 550); 1 Jul 2014 06:53:51 -0000 Mailing-List: contact musl-help@lists.openwall.com; run by ezmlm Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: Original-Received: (qmail 3629 invoked from network); 1 Jul 2014 06:53:49 -0000 Content-Disposition: inline In-Reply-To: <004501cf94b6$9141c8c0$b3c55a40$@codeaurora.org> User-Agent: Mutt/1.5.21 (2010-09-15) Xref: news.gmane.org gmane.linux.lib.musl.general:5389 Archived-At: * Weiming Zhao [2014-06-30 15:56:45 -0700]: > I'm wondering if there is any plan to merge back the changes for AArch64 > from https://github.com/crxz0193/musl-aarch64 ? > > So we can stay on the main repository. do you plan to use musl on aarch64? the porting was stopped because aarch64 uses the new syscall set of linux which needed significant changes in musl (and without working essential syscalls it was not possible to test the port) now the new syscalls are supported so porting can continue, so somebody with an emulator or hardware can pick it up that repo probably wont be merged directly but a squashed version of the changes will be committed once most things work reliably this is on the roadmap, but somebody has to do the work (should not be hard with an emulator and docs) http://wiki.musl-libc.org/wiki/Roadmap there were plans to refactor arch/*/bits to reduce the redundancy there, but it was postponed because of build system issues. if or1k and aarch64 gets merged then maybe this item should be picked up again.. From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.org/gmane.linux.lib.musl.general/5391 Path: news.gmane.org!not-for-mail From: "Weiming Zhao" Newsgroups: gmane.linux.lib.musl.general Subject: RE: AArch64 merge back Date: Tue, 1 Jul 2014 10:41:10 -0700 Message-ID: <005901cf9553$a5460f50$efd22df0$@codeaurora.org> References: <004501cf94b6$9141c8c0$b3c55a40$@codeaurora.org> <20140701000654.GA4197@newbook> <005501cf94c9$d368ecc0$7a3ac640$@codeaurora.org> <20140701014459.GA8304@newbook> Reply-To: musl@lists.openwall.com NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1404236489 5992 80.91.229.3 (1 Jul 2014 17:41:29 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 1 Jul 2014 17:41:29 +0000 (UTC) To: Original-X-From: musl-return-5396-gllmg-musl=m.gmane.org@lists.openwall.com Tue Jul 01 19:41:24 2014 Return-path: Envelope-to: gllmg-musl@plane.gmane.org Original-Received: from mother.openwall.net ([195.42.179.200]) by plane.gmane.org with smtp (Exim 4.69) (envelope-from ) id 1X223Y-0007R0-PP for gllmg-musl@plane.gmane.org; Tue, 01 Jul 2014 19:41:24 +0200 Original-Received: (qmail 16315 invoked by uid 550); 1 Jul 2014 17:41:23 -0000 Mailing-List: contact musl-help@lists.openwall.com; run by ezmlm Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: Original-Received: (qmail 16304 invoked from network); 1 Jul 2014 17:41:23 -0000 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-caf-smtp.dmz.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=0.7 required=2.0 tests=ALL_TRUSTED,BAYES_05, TVD_RCVD_SINGLE autolearn=no version=3.3.1 In-Reply-To: <20140701014459.GA8304@newbook> X-Mailer: Microsoft Outlook 14.0 Thread-Index: AQHw+40TnJ0SKfsBwX+HiRBmYvbNLAK5CH2vAP+ti9cChvCoJpsWspFA Content-Language: en-us X-Virus-Scanned: ClamAV using ClamSMTP Xref: news.gmane.org gmane.linux.lib.musl.general:5391 Archived-At: 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? Thanks, Weiming -----Original Message----- From: Isaac Dunham [mailto:ibid.ag@gmail.com] Sent: Monday, June 30, 2014 6:45 PM To: musl@lists.openwall.com Subject: Re: [musl] AArch64 merge back On Mon, Jun 30, 2014 at 06:14:36PM -0700, Weiming Zhao wrote: > Hi Isaac, > > Do you mean those arch independent functions (e.g. abs, sprint, > memcpy) have already been merged? No, I was asking if you meant the whole port-in-progress or if you were only asking about said functions; at that point I had not checked. At present, I can tell you what the git log says: -memcpy.c was last touched in August last year implementing a portable optimized memcpy. -abs.c has not changed in the 3 years of git history -sprintf.c (I assume that's what you mean by 'sprint'?) has not been touched since 2012. ...all of which are before AArch64 porting. Is the relevant code in 'rebase-1.0'? Thanks, Isaac Dunham > -----Original Message----- > From: Isaac Dunham [mailto:ibid.ag@gmail.com] > Sent: Monday, June 30, 2014 5:07 PM > To: musl@lists.openwall.com > Subject: Re: [musl] AArch64 merge back > > On Mon, Jun 30, 2014 at 03:56:45PM -0700, Weiming Zhao wrote: > > Hi, > > I'm wondering if there is any plan to merge back the changes for > > AArch64 from https://github.com/crxz0193/musl-aarch64 ? > > > > So we can stay on the main repository. > > What's the status of that? I see commits related to a few syscalls > from the end of March/April 1, and nothing newer. > The last news I heard, some of the work that would be needed was done, > but I did not get the impression that it was possible to build working > binaries, even static ones. > (If this is incorrect, I'd like to hear the current status.) > > Some ports have been merged before all functionality worked (including > the dynamic linker), but I don't recall seeing any ports get merged > before it was possible to produce a working executable. > > Or are you referring to just the non-arch-specific changes? > > Thanks, > Isaac Dunham > > From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.org/gmane.linux.lib.musl.general/5392 Path: news.gmane.org!not-for-mail From: Rich Felker Newsgroups: gmane.linux.lib.musl.general Subject: Re: AArch64 merge back Date: Tue, 1 Jul 2014 14:25:01 -0400 Message-ID: <20140701182501.GN179@brightrain.aerifal.cx> References: <004501cf94b6$9141c8c0$b3c55a40$@codeaurora.org> <20140701000654.GA4197@newbook> <005501cf94c9$d368ecc0$7a3ac640$@codeaurora.org> <20140701014459.GA8304@newbook> <005901cf9553$a5460f50$efd22df0$@codeaurora.org> 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 1404239124 7626 80.91.229.3 (1 Jul 2014 18:25:24 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 1 Jul 2014 18:25:24 +0000 (UTC) To: musl@lists.openwall.com Original-X-From: musl-return-5397-gllmg-musl=m.gmane.org@lists.openwall.com Tue Jul 01 20:25:16 2014 Return-path: Envelope-to: gllmg-musl@plane.gmane.org Original-Received: from mother.openwall.net ([195.42.179.200]) by plane.gmane.org with smtp (Exim 4.69) (envelope-from ) id 1X22jz-0000yx-OW for gllmg-musl@plane.gmane.org; Tue, 01 Jul 2014 20:25:15 +0200 Original-Received: (qmail 3748 invoked by uid 550); 1 Jul 2014 18:25:14 -0000 Mailing-List: contact musl-help@lists.openwall.com; run by ezmlm Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: Original-Received: (qmail 3740 invoked from network); 1 Jul 2014 18:25:14 -0000 Content-Disposition: inline In-Reply-To: <005901cf9553$a5460f50$efd22df0$@codeaurora.org> User-Agent: Mutt/1.5.21 (2010-09-15) Original-Sender: Rich Felker Xref: news.gmane.org gmane.linux.lib.musl.general:5392 Archived-At: 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 From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.org/gmane.linux.lib.musl.general/5492 Path: news.gmane.org!not-for-mail From: "Weiming Zhao" Newsgroups: gmane.linux.lib.musl.general Subject: RE: AArch64 merge back Date: Tue, 15 Jul 2014 11:58:59 -0700 Message-ID: <008d01cfa05e$d66f1d90$834d58b0$@codeaurora.org> References: <004501cf94b6$9141c8c0$b3c55a40$@codeaurora.org> <20140701000654.GA4197@newbook> <005501cf94c9$d368ecc0$7a3ac640$@codeaurora.org> <20140701014459.GA8304@newbook> <005901cf9553$a5460f50$efd22df0$@codeaurora.org> <20140701182501.GN179@brightrain.aerifal.cx> Reply-To: musl@lists.openwall.com NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1405450761 4787 80.91.229.3 (15 Jul 2014 18:59:21 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 15 Jul 2014 18:59:21 +0000 (UTC) To: Original-X-From: musl-return-5497-gllmg-musl=m.gmane.org@lists.openwall.com Tue Jul 15 20:59:14 2014 Return-path: Envelope-to: gllmg-musl@plane.gmane.org Original-Received: from mother.openwall.net ([195.42.179.200]) by plane.gmane.org with smtp (Exim 4.69) (envelope-from ) id 1X77wW-0006s5-Vg for gllmg-musl@plane.gmane.org; Tue, 15 Jul 2014 20:59:13 +0200 Original-Received: (qmail 31808 invoked by uid 550); 15 Jul 2014 18:59:12 -0000 Mailing-List: contact musl-help@lists.openwall.com; run by ezmlm Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: Original-Received: (qmail 31800 invoked from network); 15 Jul 2014 18:59:11 -0000 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-caf-smtp.dmz.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-0.7 required=2.0 tests=ALL_TRUSTED,BAYES_00, TVD_RCVD_SINGLE autolearn=no version=3.3.1 In-Reply-To: <20140701182501.GN179@brightrain.aerifal.cx> X-Mailer: Microsoft Outlook 14.0 Thread-Index: AQHw+40TnJ0SKfsBwX+HiRBmYvbNLAK5CH2vAP+ti9cChvCoJgJ1eap8AeguAZCbCdtfIA== Content-Language: en-us X-Virus-Scanned: ClamAV using ClamSMTP Xref: news.gmane.org gmane.linux.lib.musl.general:5492 Archived-At: 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 From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.org/gmane.linux.lib.musl.general/5494 Path: news.gmane.org!not-for-mail From: Rich Felker Newsgroups: gmane.linux.lib.musl.general Subject: Re: AArch64 merge back Date: Tue, 15 Jul 2014 15:07:15 -0400 Message-ID: <20140715190715.GH17402@brightrain.aerifal.cx> References: <004501cf94b6$9141c8c0$b3c55a40$@codeaurora.org> <20140701000654.GA4197@newbook> <005501cf94c9$d368ecc0$7a3ac640$@codeaurora.org> <20140701014459.GA8304@newbook> <005901cf9553$a5460f50$efd22df0$@codeaurora.org> <20140701182501.GN179@brightrain.aerifal.cx> <008d01cfa05e$d66f1d90$834d58b0$@codeaurora.org> 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 1405451255 10345 80.91.229.3 (15 Jul 2014 19:07:35 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 15 Jul 2014 19:07:35 +0000 (UTC) Cc: musl@lists.openwall.com To: Weiming Zhao Original-X-From: musl-return-5499-gllmg-musl=m.gmane.org@lists.openwall.com Tue Jul 15 21:07:30 2014 Return-path: Envelope-to: gllmg-musl@plane.gmane.org Original-Received: from mother.openwall.net ([195.42.179.200]) by plane.gmane.org with smtp (Exim 4.69) (envelope-from ) id 1X784X-0001Fs-Ob for gllmg-musl@plane.gmane.org; Tue, 15 Jul 2014 21:07:29 +0200 Original-Received: (qmail 5293 invoked by uid 550); 15 Jul 2014 19:07:29 -0000 Mailing-List: contact musl-help@lists.openwall.com; run by ezmlm Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: Original-Received: (qmail 5285 invoked from network); 15 Jul 2014 19:07:28 -0000 Content-Disposition: inline In-Reply-To: <008d01cfa05e$d66f1d90$834d58b0$@codeaurora.org> User-Agent: Mutt/1.5.21 (2010-09-15) Original-Sender: Rich Felker Xref: news.gmane.org gmane.linux.lib.musl.general:5494 Archived-At: On Tue, Jul 15, 2014 at 11:58:59AM -0700, Weiming Zhao wrote: > 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? It should match the definitions from the kernel, but definitions for any syscalls that do not actually exist on aarch64 need to be removed. If the kernel is using the asm-generic values for aarch64, you can get a matching bits/syscall.h from the or1k (openrisc) port that's in-progress, at: https://github.com/skristiansson/musl-or1k Rich From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.org/gmane.linux.lib.musl.general/5497 Path: news.gmane.org!not-for-mail From: "Weiming Zhao" Newsgroups: gmane.linux.lib.musl.general Subject: RE: AArch64 merge back Date: Tue, 15 Jul 2014 13:42:11 -0700 Message-ID: <009101cfa06d$40eae8d0$c2c0ba70$@codeaurora.org> References: <004501cf94b6$9141c8c0$b3c55a40$@codeaurora.org> <20140701000654.GA4197@newbook> <005501cf94c9$d368ecc0$7a3ac640$@codeaurora.org> <20140701014459.GA8304@newbook> <005901cf9553$a5460f50$efd22df0$@codeaurora.org> <20140701182501.GN179@brightrain.aerifal.cx> <008d01cfa05e$d66f1d90$834d58b0$@codeaurora.org> <20140715190715.GH17402@brightrain.aerifal.cx> Reply-To: musl@lists.openwall.com NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1405456953 19476 80.91.229.3 (15 Jul 2014 20:42:33 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 15 Jul 2014 20:42:33 +0000 (UTC) Cc: To: "'Rich Felker'" Original-X-From: musl-return-5502-gllmg-musl=m.gmane.org@lists.openwall.com Tue Jul 15 22:42:28 2014 Return-path: Envelope-to: gllmg-musl@plane.gmane.org Original-Received: from mother.openwall.net ([195.42.179.200]) by plane.gmane.org with smtp (Exim 4.69) (envelope-from ) id 1X79YN-0001kH-Ny for gllmg-musl@plane.gmane.org; Tue, 15 Jul 2014 22:42:23 +0200 Original-Received: (qmail 12197 invoked by uid 550); 15 Jul 2014 20:42:23 -0000 Mailing-List: contact musl-help@lists.openwall.com; run by ezmlm Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: Original-Received: (qmail 12188 invoked from network); 15 Jul 2014 20:42:22 -0000 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-caf-smtp.dmz.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-0.7 required=2.0 tests=ALL_TRUSTED,BAYES_00, TVD_RCVD_SINGLE autolearn=no version=3.3.1 In-Reply-To: <20140715190715.GH17402@brightrain.aerifal.cx> X-Mailer: Microsoft Outlook 14.0 Thread-Index: AQHw+40TnJ0SKfsBwX+HiRBmYvbNLAK5CH2vAP+ti9cChvCoJgJ1eap8AeguAZACWgWOXgH/QASJmucqKJA= Content-Language: en-us X-Virus-Scanned: ClamAV using ClamSMTP Xref: news.gmane.org gmane.linux.lib.musl.general:5497 Archived-At: Hi Rich, Thanks. Yes, those __NR_xxx values should match with kernel defs. But do you know where the current syscall.h originally come from? In the beginning of aarch64/bits/syscall.h, we can see comments like: /* * This file contains the system call numbers, based on the * layout of the x86-64 architecture, which embeds the * pointer to the syscall in the table. * * As a basic principle, no duplication of functionality * should be added, e.g. we don't use lseek when llseek * is present. New architectures should use this file * and implement the less feature-full calls in user space. */ It looks like it's coming from some other projects. Could you help to confirm its source? The reason is we plan to use MUSL for some internal projects but we need to make sure there is no legal/license issues. For musl-or1k, there is no aarch64 version of syscall. Are you suggesting that we can refer to its ARM version of syscall.h? Thanks a lot, Weiming -----Original Message----- From: Rich Felker [mailto:dalias@aerifal.cx] On Behalf Of Rich Felker Sent: Tuesday, July 15, 2014 12:07 PM To: Weiming Zhao Cc: musl@lists.openwall.com Subject: Re: [musl] AArch64 merge back On Tue, Jul 15, 2014 at 11:58:59AM -0700, Weiming Zhao wrote: > 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? It should match the definitions from the kernel, but definitions for any syscalls that do not actually exist on aarch64 need to be removed. If the kernel is using the asm-generic values for aarch64, you can get a matching bits/syscall.h from the or1k (openrisc) port that's in-progress, at: https://github.com/skristiansson/musl-or1k Rich From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.org/gmane.linux.lib.musl.general/5498 Path: news.gmane.org!not-for-mail From: Szabolcs Nagy Newsgroups: gmane.linux.lib.musl.general Subject: Re: AArch64 merge back Date: Wed, 16 Jul 2014 00:24:42 +0200 Message-ID: <20140715222442.GB9928@port70.net> References: <004501cf94b6$9141c8c0$b3c55a40$@codeaurora.org> <20140701000654.GA4197@newbook> <005501cf94c9$d368ecc0$7a3ac640$@codeaurora.org> <20140701014459.GA8304@newbook> <005901cf9553$a5460f50$efd22df0$@codeaurora.org> <20140701182501.GN179@brightrain.aerifal.cx> <008d01cfa05e$d66f1d90$834d58b0$@codeaurora.org> <20140715190715.GH17402@brightrain.aerifal.cx> <009101cfa06d$40eae8d0$c2c0ba70$@codeaurora.org> 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 1405463103 32360 80.91.229.3 (15 Jul 2014 22:25:03 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 15 Jul 2014 22:25:03 +0000 (UTC) Cc: 'Rich Felker' , musl@lists.openwall.com To: Weiming Zhao Original-X-From: musl-return-5503-gllmg-musl=m.gmane.org@lists.openwall.com Wed Jul 16 00:24:57 2014 Return-path: Envelope-to: gllmg-musl@plane.gmane.org Original-Received: from mother.openwall.net ([195.42.179.200]) by plane.gmane.org with smtp (Exim 4.69) (envelope-from ) id 1X7B9a-0005yG-RW for gllmg-musl@plane.gmane.org; Wed, 16 Jul 2014 00:24:54 +0200 Original-Received: (qmail 17504 invoked by uid 550); 15 Jul 2014 22:24:54 -0000 Mailing-List: contact musl-help@lists.openwall.com; run by ezmlm Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: Original-Received: (qmail 17493 invoked from network); 15 Jul 2014 22:24:53 -0000 Mail-Followup-To: Weiming Zhao , 'Rich Felker' , musl@lists.openwall.com Content-Disposition: inline In-Reply-To: <009101cfa06d$40eae8d0$c2c0ba70$@codeaurora.org> User-Agent: Mutt/1.5.21 (2010-09-15) Xref: news.gmane.org gmane.linux.lib.musl.general:5498 Archived-At: * Weiming Zhao [2014-07-15 13:42:11 -0700]: > In the beginning of aarch64/bits/syscall.h, we can see comments like: > > It looks like it's coming from some other projects. > Could you help to confirm its source? The reason is we plan to use MUSL for > some internal projects but we need to make sure there is no legal/license > issues. this is just include/uapi/asm-generic/unistd.h from the linux kernel and it should be cleaned up because it's full of noise (musl only needs the __NR_ and SYS_ macros) > For musl-or1k, there is no aarch64 version of syscall. Are you suggesting > that we can refer to its ARM version of syscall.h? all the new archs (like aarch64 and or1k) use the same asm-generic/unistd.h for the syscall numbers so they should have identical syscall.h in musl