From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.org/gmane.linux.lib.musl.general/11810 Path: news.gmane.org!.POSTED!not-for-mail From: Denys Vlasenko Newsgroups: gmane.linux.busybox,gmane.linux.lib.musl.general Subject: bbox: musl versus uclibc Date: Mon, 14 Aug 2017 19:43:39 +0200 Message-ID: NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Trace: blaine.gmane.org 1502732659 16595 195.159.176.226 (14 Aug 2017 17:44:19 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Mon, 14 Aug 2017 17:44:19 +0000 (UTC) To: Rich Felker , busybox , Felix Fietkau , musl Original-X-From: busybox-bounces@busybox.net Mon Aug 14 19:44:14 2017 Return-path: Envelope-to: glb-busybox-78@gmane.org Original-Received: from mxfilter-048034.atla03.us.yomura.com ([107.189.48.34]) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dhJPJ-0003Zf-0M for glb-busybox-78@gmane.org; Mon, 14 Aug 2017 19:44:05 +0200 X-Yomura-MXScrub: 1.0 Original-Received: from silver.osuosl.org (unknown [140.211.166.136]) by mxfilter-048034.atla03.us.yomura.com (Halon) with ESMTPS id 2ce88dce-8118-11e7-9d96-b499baa2b07a; Mon, 14 Aug 2017 17:44:09 +0000 (UTC) Original-Received: from localhost (localhost [127.0.0.1]) by silver.osuosl.org (Postfix) with ESMTP id E9D8A245F5; Mon, 14 Aug 2017 17:44:06 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Original-Received: from silver.osuosl.org ([127.0.0.1]) by localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id zcNXpLsRazIC; Mon, 14 Aug 2017 17:44:05 +0000 (UTC) Original-Received: from ash.osuosl.org (ash.osuosl.org [140.211.166.34]) by silver.osuosl.org (Postfix) with ESMTP id 426DD2D2F3; Mon, 14 Aug 2017 17:44:05 +0000 (UTC) Original-Received: from whitealder.osuosl.org (smtp1.osuosl.org [140.211.166.138]) by ash.osuosl.org (Postfix) with ESMTP id 45D731BFC55 for ; Mon, 14 Aug 2017 17:44:03 +0000 (UTC) Original-Received: from localhost (localhost [127.0.0.1]) by whitealder.osuosl.org (Postfix) with ESMTP id 3F31486E1C for ; Mon, 14 Aug 2017 17:44:03 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Original-Received: from whitealder.osuosl.org ([127.0.0.1]) by localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id bJoMmHBjeMAN for ; Mon, 14 Aug 2017 17:44:01 +0000 (UTC) X-Greylist: domain auto-whitelisted by SQLgrey-1.7.6 Original-Received: from mail-wm0-f49.google.com (mail-wm0-f49.google.com [74.125.82.49]) by whitealder.osuosl.org (Postfix) with ESMTPS id 801E586954 for ; Mon, 14 Aug 2017 17:44:01 +0000 (UTC) Original-Received: by mail-wm0-f49.google.com with SMTP id m85so42701521wma.0 for ; Mon, 14 Aug 2017 10:44:01 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlemail.com; s=20161025; h=mime-version:from:date:message-id:subject:to; bh=YJHoPwh4db9xw9WqUPzACp5WQ+SwkiMeSjRU+rzUDn4=; b=ClzB1oNE05nfbvuvMi6BBpoy48j6hvJh1VY0KQTPPg5Jz2UrBcWDZ6YB3SCDei038+ sMV6E5hy2arYvYquW5VH3+Ze7atu378auSxVtdNGqvpF8mRgGhiMOIDwa+pnJkCm4p07 G/EygWQDhHRxRV8HOUeXfOzcLNPU1eT59IGmra4P1Drx+Iw25j+3YywHX4O5JT7a8scd kzzG+vu0qShVsBdNjT3PS4DBM5DQK6uUGCJGzCk6DWw+sEWnDgN/n1dDWsJCN0/1dpP5 Yq6fdVmmYW6tWeeIMGVwPpkDV+lQ4nMnx5YzdP4W/CFhzCv4vcExLs8bL1bhVRKdUfk+ xAeg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:from:date:message-id:subject:to; bh=YJHoPwh4db9xw9WqUPzACp5WQ+SwkiMeSjRU+rzUDn4=; b=ilz6YMBEcaFQDBRnN7biWGwNNNMKNfmH6UHHOsaDr/7PUzkrbxOtj9wb0Hg08OFD0U fLRTNhAfT+BD58xUMTuv1n6+2uweN+jHsNHJRfcp/vh1OdHHLJc1SPA4xfNIL7b40Esl 7IUCCWm1IRI7ek149snUbJ63HPoaup1nvnFOXA2osklGA9JVnDJRUk+WihlJWq0rPFOF Qi+wzgbvbevrdYdJxhI13+G/vd4F9PfR8NF39GJy7hFhlYYsPH0mHgnMcJcJwKapTk6R rPaJ6uVAkewB/j/zg1zCOH1qZsYu93TBCvSliqGbHTRBKE4lzvk6SXX0JjuH5ec1CW58 LBFw== X-Gm-Message-State: AHYfb5gOX+CO0bhcv1qk8Xl6DCPQw9B5Fk+xuc5UClq3HpHZ4DojgJrG mLVgdBZXrsY5IpQaPpkwfzUzWoUtGFVN X-Received: by 10.80.146.5 with SMTP id i5mr24534396eda.48.1502732639917; Mon, 14 Aug 2017 10:43:59 -0700 (PDT) Original-Received: by 10.80.174.102 with HTTP; Mon, 14 Aug 2017 10:43:39 -0700 (PDT) X-BeenThere: busybox@busybox.net X-Mailman-Version: 2.1.18-1 Precedence: list List-Id: Discussion and development of BusyBox List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: busybox-bounces@busybox.net Original-Sender: "busybox" Xref: news.gmane.org gmane.linux.busybox:44149 gmane.linux.lib.musl.general:11810 Archived-At: As uclibc is increasingly aging, I am finally forced to switch to musl: I'm bitten by a nasty bug in getopt() - hush is using it in a slightly unusual way, which uclibc does not expect. I built a toolchain using https://github.com/richfelker/musl-cross-make (Rich, is this the thing I should be using?) and it worked with no issues at all. (I can probably only wish for the README to also mention how to make this a _static_ toolchain... I have a box with 32-bit userspace, would be awesome to be able to copy this fresh 64-bit toolchain to it and have it working). Then I built busybox. Impressions: Only a few options did not build: EXTRA_COMPAT and FEATURE_VI_REGEX_SEARCH failed because they need GNU regexp extensions. FEATURE_MOUNT_NFS and FEATURE_INETD_RPC do not build because they need rpc/rpc.h. Not complaining, since them being in libc was a mistake in the first place. Now, the good news - musl has smaller data! 6695 bytes versus 7129 bytes for uclibc: text data bss dec hex filename 894902 465 6664 902031 dc38f busybox.uclibc 912538 563 6132 919233 e06c1 busybox.musl Whee!