From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.org/gmane.linux.lib.musl.general/12276 Path: news.gmane.org!.POSTED!not-for-mail From: Nicholas Wilson Newsgroups: gmane.linux.lib.musl.general Subject: Re: Feature request: building musl in a portable way Date: Fri, 22 Dec 2017 18:01:35 +0000 Message-ID: References: <20171221213822.GY1627@brightrain.aerifal.cx> ,<20171222174922.GC1627@brightrain.aerifal.cx> Reply-To: musl@lists.openwall.com NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable X-Trace: blaine.gmane.org 1513965597 24755 195.159.176.226 (22 Dec 2017 17:59:57 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Fri, 22 Dec 2017 17:59:57 +0000 (UTC) To: "musl@lists.openwall.com" Original-X-From: musl-return-12292-gllmg-musl=m.gmane.org@lists.openwall.com Fri Dec 22 18:59:53 2017 Return-path: Envelope-to: gllmg-musl@m.gmane.org Original-Received: from mother.openwall.net ([195.42.179.200]) by blaine.gmane.org with smtp (Exim 4.84_2) (envelope-from ) id 1eSRbs-00061L-VR for gllmg-musl@m.gmane.org; Fri, 22 Dec 2017 18:59:53 +0100 Original-Received: (qmail 30622 invoked by uid 550); 22 Dec 2017 18:01:53 -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 30604 invoked from network); 22 Dec 2017 18:01:52 -0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=realvnc.onmicrosoft.com; s=selector1-realvnc-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version; bh=gaQfRiTLuI97hbcaGe2MM8IaJguit2BbBeICicvf/r0=; b=imTJ1xQ5cSPhq30WFb3IdLg0XQEAaEljXvnFyp7iW7eOPF7ZgxuKs/Z5TOIlac+7yFHQd/+pLKxlZmqliq7Skw4F9Db2SPeWUbRS2BBsZN4AUwkP7uSa3n7Oo5l/PPRdECq1tB0tkb6FqpIVad507sU4Z2H4ANYEEGhFZ4xn01w= Thread-Topic: [musl] Feature request: building musl in a portable way Thread-Index: AQHTenhf20VMeW9Ke0GWVLf9KN6PYaNOUxsAgAE2VgCAAAEnIYAAGtwAgAABHmo= In-Reply-To: <20171222174922.GC1627@brightrain.aerifal.cx> Accept-Language: en-GB, en-US Content-Language: en-GB X-MS-Has-Attach: X-MS-TNEF-Correlator: x-originating-ip: [2a00:23c3:744c:6800:a442:4eaa:3b8d:e648] x-ms-publictraffictype: Email x-microsoft-exchange-diagnostics: 1;VI1PR0502MB3888;6:do3Tpf6N+tADVL8llxz+UiaMvlBpIVhr48X2Mkn6Jv1o6+xvK1b9NffwqYuT1a384nCpNHdH9IY45bJwCsOJsloxTVaiq1IZctLR/Fi/pquQkwe1dAWhwSuzlaOD2yA+lLjhL6Gt/KnrdtFOJ2Bscc4vxVbpwtytrpmIUaNDBUxCQ7w+zJWPfoBecQlUgn6tT/uYjUg5bRvjReve1IbQrHSvr/l3EZj6eO1VgKpzmdmc3p4SShpt9zJ23Le5P4ApaDwWHg22c9/ByqgLak14uOXEidLHqCOkPyn3nP2XKDPXyHjiio6APWyWUwSf+WrijPqUoGv9iSuHQ3ADBhuk7AXfaj4j+5sLtn2dlLayukY=;5:IotABYau2xr1hl2KZ9mJhT8S8q4Iw05nt1b8FaP8qPEnF9Kdg+48qwLq3SEc+irb/3VLQeIWhZLzRReaF9mmBRlSWAp/rwIJZwX6w2X6B+OLLIrfjoyXhfpQj3wjXCrnuMis9UyKUxvfmVSC5TFNy2HWCWk2mU3viSO7eu9UUDU=;24:DKu3mLchlbMjBmzJ5bgEbqon0w1/NrmWNsJwJgqqdkbwqW08eNlOC0JksWQSaZbqq7ldJ5zVQy0PWd/fLPPtdUmbXx/5hHIqIM2VB4L1rJI=;7:ZDK5CW+xtJCKQqIjXrLg3492+A9fbs1MtjCpVtPK4aVZEre3MwLBPkw/gRBQT17t2X5JHwgBUqWEPyiw39BpJJO9oMV5 y9fpTfCNWcqomycDjpR71z14pwNQ57fY2YyNFiQJMCRAuy5TDvh9EUaNEbtxiE0ASc//OdpSw66HxWvF9LRumtxbX2eBPoeDLV x-ms-exchange-antispam-srfa-diagnostics: SSOS; x-ms-office365-filtering-correlation-id: 0667150c-5c69-40a4-ed17-08d549660ad0 x-microsoft-antispam: UriScan:;BCL:0;PCL:0;RULEID:(5600026)(4604075)(3008031)(4534020)(4602075)(4603075)(4627115)(201702281549075)(2017052603307)(7153060);SRVR:VI1PR0502MB3888; x-ms-traffictypediagnostic: VI1PR0502MB3888: x-microsoft-antispam-prvs: x-exchange-antispam-report-test: UriScan:; x-exchange-antispam-report-cfa-test: BCL:0;PCL:0;RULEID:(6040470)(2401047)(5005006)(8121501046)(3002001)(3231023)(944501046)(10201501046)(93006095)(93001095)(6041268)(2016111802025)(201703131423095)(201702281528075)(20161123555045)(201703061421075)(201703061406153)(20161123558120)(20161123564045)(20161123562045)(20161123560045)(6043046)(6072148)(201708071742011);SRVR:VI1PR0502MB3888;BCL:0;PCL:0;RULEID:(100000803101)(100110400095);SRVR:VI1PR0502MB3888; x-forefront-prvs: 05299D545B x-forefront-antispam-report: SFV:NSPM;SFS:(10009020)(376002)(39380400002)(366004)(396003)(39840400004)(346002)(189003)(199004)(24454002)(53936002)(5250100002)(14454004)(6246003)(25786009)(478600001)(3660700001)(7696005)(2900100001)(3280700002)(305945005)(2906002)(97736004)(2501003)(76176011)(7736002)(93886005)(86362001)(99286004)(74316002)(81156014)(105586002)(8936002)(1730700003)(55016002)(2351001)(81166006)(6116002)(8676002)(6506007)(229853002)(9686003)(316002)(5640700003)(6916009)(5660300001)(53546011)(6436002)(2950100002)(68736007)(33656002)(102836004)(106356001);DIR:OUT;SFP:1101;SCL:1;SRVR:VI1PR0502MB3888;H:VI1PR0502MB3885.eurprd05.prod.outlook.com;FPR:;SPF:None;PTR:InfoNoRecords;MX:1;A:1;LANG:en; received-spf: None (protection.outlook.com: realvnc.com does not designate permitted sender hosts) authentication-results: spf=none (sender IP is ) smtp.mailfrom=nicholas.wilson@realvnc.com; spamdiagnosticoutput: 1:99 spamdiagnosticmetadata: NSPM X-MS-Exchange-CrossTenant-Network-Message-Id: 0667150c-5c69-40a4-ed17-08d549660ad0 X-MS-Exchange-CrossTenant-originalarrivaltime: 22 Dec 2017 18:01:35.8186 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 9ad766d3-c6a5-4458-8c58-244e7c118728 X-MS-Exchange-Transport-CrossTenantHeadersStamped: VI1PR0502MB3888 X-OriginatorOrg: realvnc.com Xref: news.gmane.org gmane.linux.lib.musl.general:12276 Archived-At: On 22 December 2017 17:49, Rich Felker wrote: > A bit of a historical note on this: in the late 80s and 90s there was > an effort called "iBCS" to make a unified ABI for Intel-based unices. > I believe a common syscall layer was part of it. It was abandoned > after everybody realized that the Linux syscall ABI _was_, for all > practical purposes, the unified ABI they wanted. That's pretty much where WebAssembly is going too! At the moment, the WebAs= sembly "embedding environment" (the webpage) has to provide a JavaScript im= plementation of the external dependencies of the WebAssembly module. There is a desire to eventually standardise that a bit - at the moment it's= "whatever Musl wants". I think the conclusion will be "emulate Linux every= where". I'm expecting some small tweaks though. For example, traditionally = timezone information is stored in userland and not available via a syscall:= rather than special-case SYS_open for "/etc/localtime", we might add a Was= m-specific syscall for doing it. (Naturally, this would all be done in Wasm= via an override in a Wasm-specific directory.) So it will be "Linux syscalls" - but probably with a few tweaks (as indeed = Linux syscalls already differ very slightly between architectures). Nick=