From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.org/gmane.linux.lib.musl.general/10255 Path: news.gmane.org!not-for-mail From: Masanori Ogino Newsgroups: gmane.linux.lib.musl.general,gmane.comp.hardware.lowrisc.devel Subject: Weekly Report of Porting musl to RISC-V Project #5 Date: Sun, 3 Jul 2016 09:42:00 +0900 Message-ID: Reply-To: musl@lists.openwall.com NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 X-Trace: ger.gmane.org 1467506547 26191 80.91.229.3 (3 Jul 2016 00:42:27 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sun, 3 Jul 2016 00:42:27 +0000 (UTC) Cc: musl@lists.openwall.com To: lowrisc-dev@lists.lowrisc.org Original-X-From: musl-return-10268-gllmg-musl=m.gmane.org@lists.openwall.com Sun Jul 03 02:42:21 2016 Return-path: Envelope-to: gllmg-musl@m.gmane.org Original-Received: from mother.openwall.net ([195.42.179.200]) by plane.gmane.org with smtp (Exim 4.69) (envelope-from ) id 1bJVUL-0002cQ-D1 for gllmg-musl@m.gmane.org; Sun, 03 Jul 2016 02:42:21 +0200 Original-Received: (qmail 9871 invoked by uid 550); 3 Jul 2016 00:42:18 -0000 Mailing-List: contact musl-help@lists.openwall.com; run by ezmlm Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-ID: Original-Received: (qmail 9836 invoked from network); 3 Jul 2016 00:42:13 -0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:sender:from:date:message-id:subject:to:cc; bh=WEAq51two6gZs13zuq3cXCri90a1dQzLGzw3ECnMDek=; b=U+/SQBU5waGBHm2PzYCp+Mlf9tbIV9pn03vjjJiSfrW/Y5FUAFeUwz1hjLYR2cBDMT fORHJg5lMES3PNt01jNly44s4MTvhMhm6H3eQzj9p8lgMoHfKlzeGcrQxaTD1vl5fSik AvUgNc3pQ6yS13Ckw5MDIzvMiljGjHTA52ZM63nTGlQOwQw41dgld6kIe2viI8x+Al90 +K/Kg2l27UjY4rdd/ezBbBEzxI1F2C7+mEUI27kLb/WHGVU9V/b+tAY5FHulcvhGhhi4 UKlt25syEUM1msmXnMCTO4dbvNLBRmWfk4+ll2o59AJ0sSwMdf2PZzAPt20MX/YAqoJ2 yTNA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:sender:from:date:message-id:subject :to:cc; bh=WEAq51two6gZs13zuq3cXCri90a1dQzLGzw3ECnMDek=; b=j/zvEFKewHTMY0RfHKPN27Rke4fAPnrQAxovbnzfQRucxYEIaz7GF6Qu1Ozbok+F2R QcivsYsKoVwjb9xHDNCSCSXQnKHkOSLZNVQniu7y8QHCrjtBpIkEsLuqIsHHiwrUT5th 7vCG+8tt7NjIGCXN1PX//3e/29elnY9nLPN+nANC/1N4I7PO/pEiSk6ll82mXG/qfBzA yOxXnXUKtELBkZwshNmhHVoBkbH1y19KH+9lnLxY1P/RJr7nH/WQphSar9flxneZ84tC Nlaz2OShLo+aid3bJJ772pd+S4ypMCMxzt4kAPwAtXpMTd3RqPqgpzPYk9OIihE1+HNY EvdA== X-Gm-Message-State: ALyK8tKktDm7XZJ8dHbCXEqoJ4cZGzeFeUJ+omPIJXwjLSlaoOJkvuzvdRtDjMugrlzbsF1sr3TZDxLp/sGpUA== X-Received: by 10.202.230.204 with SMTP id d195mr3401351oih.9.1467506520701; Sat, 02 Jul 2016 17:42:00 -0700 (PDT) Original-Sender: masanoriogino@gmail.com X-Google-Sender-Auth: 4aho0asMYMlPzw4HWNSLnzJLdGc Xref: news.gmane.org gmane.linux.lib.musl.general:10255 gmane.comp.hardware.lowrisc.devel:426 Archived-At: Hello, Thanks to the folks, I passed the mid-term evaluation. Now it is about time to publish the fifth progress report on porting musl on RISC-V. Last week, the toolchain itself has been built for RISC-V and running on Spike, and libc-test [1] can be executed with it now. I posted the result of tests on [2]. The REPORT.txt file contains all error messages of failed tests, both run-time ones and compile-time ones. Some failures are expected since musl on x86_64 also does the same ones (e.g. errors in src/api/fcntl.c), but there are some unexpected errors too. I guess that the "warning: is shorter than expected" warning indicates bugs in arch-dependent part of I/O functions or system calls (or kernel?) and it causes syntax errors in the same compilation unit. Moreover, some tests triggers a "signal 11" error (segmentation fault) in libc. I added some logs to [2]. They are bugs in the port, obviously. I am working on them. The good news is, anyway, some results are *better than x86_64*, especially in math functions :-) (probably the cause is the difference in the floating-point precision, though. it is usual in float tests...) It takes long, long time to get but finally I have a (seems-to-be) working test suite for the port. I will continue to debug and fix the port using the result. Stay tuned! [1]: http://nsz.repo.hu/git/?p=libc-test [2]: https://gist.github.com/omasanori/ee828369aea844ac7fdfdc8362953299 -- Masanori Ogino