From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.org/gmane.linux.lib.musl.general/2328 Path: news.gmane.org!not-for-mail From: Florian Fainelli Newsgroups: gmane.comp.embedded.openwrt.devel,gmane.linux.lib.musl.general Subject: Support for musl libc in OpenWrt Date: Fri, 23 Nov 2012 21:10:33 +0100 Organization: OpenWrt Message-ID: <50AFD839.9010408@openwrt.org> Reply-To: OpenWrt Development List NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii"; Format="flowed" Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1353701437 14875 80.91.229.3 (23 Nov 2012 20:10:37 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 23 Nov 2012 20:10:37 +0000 (UTC) To: openwrt-devel@lists.openwrt.org, musl@lists.openwall.com Original-X-From: openwrt-devel-bounces@lists.openwrt.org Fri Nov 23 21:10:47 2012 Return-path: Envelope-to: gceod-openwrt-devel@m.gmane.org Original-Received: from arrakis.dune.hu ([78.24.191.176]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1TbzaH-0000Xx-BL for gceod-openwrt-devel@m.gmane.org; Fri, 23 Nov 2012 21:10:45 +0100 Original-Received: from arrakis.dune.hu ([127.0.0.1]) by localhost (arrakis.dune.hu [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 2Vv2l4LUguOW; Fri, 23 Nov 2012 21:10:00 +0100 (CET) Original-Received: from arrakis.dune.hu (localhost [127.0.0.1]) by arrakis.dune.hu (Postfix) with ESMTP id 442EF2807C9; Fri, 23 Nov 2012 21:10:00 +0100 (CET) Original-Received: from arrakis.dune.hu ([127.0.0.1]) by localhost (arrakis.dune.hu [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id RWUAVapkDzrW for ; Fri, 23 Nov 2012 21:09:59 +0100 (CET) Original-Received: from mail-wi0-f178.google.com (mail-wi0-f178.google.com [209.85.212.178]) by arrakis.dune.hu (Postfix) with ESMTPS id 41FEA2807A5 for ; Fri, 23 Nov 2012 21:09:59 +0100 (CET) Original-Received: by mail-wi0-f178.google.com with SMTP id hm6so1303755wib.7 for ; Fri, 23 Nov 2012 12:10:30 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=sender:message-id:date:from:organization:user-agent:mime-version:to :subject:content-type:content-transfer-encoding; bh=iSOy0M8pJLa9gFhRj0j7ypcHbpOApBDa/uupDN2mLDc=; b=YyT7mBz6K6C8NZo8ddQW+cIUZJo2gPvYTzAO2TJDQKdP++ULidbqAB93vpl+SSXEJn /V0ZpqTsw3XqyLY6S6qaLq0NVDtjETJa5W5P7BhEVfybzjgIt9wBO3PaDZK8K+qHlPzY kgPF19inOg0mHl8Vw3mjP2PqAwXWYeZlnX8dpHFqCXv2xr/F+dmudMBQTdE0CL0YYbgo CBnuwoTzCCmWofrgJJV/aDzHXS1UWHPFtd0Wr9hblPK6OnGd/mb8ZFtqSISjt5DQjW/V K2E0T/fXSoMSxqFkmliAaj6ybjIhWqVEevqWJlo4YrNqWkV3JagxZQWjmP/1yEiXTYq0 dX/Q== Original-Received: by 10.180.109.198 with SMTP id hu6mr7927579wib.7.1353701430194; Fri, 23 Nov 2012 12:10:30 -0800 (PST) Original-Received: from ?IPv6:2a01:e35:2f70:4010:f4fb:4342:3adf:a717? ([2a01:e35:2f70:4010:f4fb:4342:3adf:a717]) by mx.google.com with ESMTPS id s12sm9948150wik.11.2012.11.23.12.10.28 (version=SSLv3 cipher=OTHER); Fri, 23 Nov 2012 12:10:29 -0800 (PST) X-BeenThere: openwrt-devel@lists.openwrt.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: OpenWrt Development List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: openwrt-devel-bounces@lists.openwrt.org Original-Sender: "openwrt-devel" Xref: news.gmane.org gmane.comp.embedded.openwrt.devel:16401 gmane.linux.lib.musl.general:2328 Archived-At: Hi All, Support for musl libc in OpenWrt has been added in revision r34314, this was tested against: - X86 in VirtualBox - X86_64 with UML - ARM with the realview target Note that the following issues are known: - unable to complete libstdc++ build due to some missing declarations (WIP) - MIPS and MIPSel ports are not functionnal (details below) - PowerPC has not been tested at all due to lack of hardware/emulation target I did not try yet to compile our entire set of packages besides the one pre-selected in trunk, so you will certainly encounter some breakage due to musl being more strict about header inclusions and declarations than uClibc and (e)glibc. Have fun! -- MIPS and MIPSel specific issues: using qemu's binary emulation (qemu-mips[el]) against a statically linked binary works, a dynamic binary makes my host qemu segv. Using qemu-system-mips[el], the binary segfaults while being executed by the kernel. So far I have not had the time to debug this further. -- Florian