From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on inbox.vuxu.org X-Spam-Level: X-Spam-Status: No, score=-3.4 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, MAILING_LIST_MULTI,NICE_REPLY_A,RCVD_IN_DNSWL_MED,RCVD_IN_MSPIKE_H3, RCVD_IN_MSPIKE_WL autolearn=ham autolearn_force=no version=3.4.4 Received: (qmail 17124 invoked from network); 26 Jul 2021 00:31:31 -0000 Received: from mother.openwall.net (195.42.179.200) by inbox.vuxu.org with ESMTPUTF8; 26 Jul 2021 00:31:31 -0000 Received: (qmail 15943 invoked by uid 550); 26 Jul 2021 00:31:29 -0000 Mailing-List: contact musl-help@lists.openwall.com; run by ezmlm Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-ID: Reply-To: musl@lists.openwall.com Received: (qmail 15919 invoked from network); 26 Jul 2021 00:31:28 -0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=landley-net.20150623.gappssmtp.com; s=20150623; h=subject:to:cc:references:from:message-id:date:user-agent :mime-version:in-reply-to:content-language:content-transfer-encoding; bh=dkgtlWdZCgGlMT5UG8tXx+TYgOywxQNN3IVRy0EacEE=; b=IpDX/J9yQLxrb5aQvFAsIf9FDuMHkiAP3CIdQ4NSCtlgiPADpCMcRszc3xK/0i7OBe lql6vxBWqwklwQFVUosB+oFzXAdOHAr8TD4UyUSbwhuqs7K/QpeiVwnnuk84Qf8YwNvf icwgnFr+HYLbexX51gruI1vqs5WiFe1U6yrRFdZHk2TYjT2MyWUfMKZ/YkPW4Bdnwx5p LS7BEhYUs4DPfWrUgx7C33SxFUz5xbDQF1fcxmhhvXhWo8b7/CHWu1Ud9V95BV/bTfcc MvkHSHa5Hwsylea+tUxEu5QlW7hQfMAGflIpTYhIKzFUTWk45JLjasA+KK1zlHvY/WAZ 1Tnw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:to:cc:references:from:message-id:date :user-agent:mime-version:in-reply-to:content-language :content-transfer-encoding; bh=dkgtlWdZCgGlMT5UG8tXx+TYgOywxQNN3IVRy0EacEE=; b=uJ8RIbRo89xkStqcvpMqQzyckFBDq8OC2xksQo+OcULZrRXiODezAx9b46vZ/Vlhhe 9H8Tdxay20bgmOvQh56AFenqKqmMGuo4i1phV6tzq3t1YwKpzSLm94OwH54APEpkEJKO nMzKtOtQ7fiPunBfv2Yo7pxUp75KWYarXOoHBk8PfEYrxmbUWP4Ftaj/aKmduMJTli/U qnyu2p2qTHNBp4ldUzCdThBQPwtcawgP6RhmIR5Or254wZsu8URdAXJrDXRMlbzerqb9 NECtG3kjSlomtH5p9AjAF/ESD77zgZqockRpyTIOaKd/itW69UZRorWaVQ9w590RL+oV yEig== X-Gm-Message-State: AOAM530nvY/ldQBN3+MwOHiKl2VHTlYT94NCl8zhlAbPW2fSzJqZfuYy A3hgsxh1FLzlG722pM0P4Jy2CA== X-Google-Smtp-Source: ABdhPJzzinFeITp6zizZ68qNIdexZXUzFp090LWutPrAzeqZGESdKt1IhOqSL5a/oS1pbKuF2XXrqQ== X-Received: by 2002:aca:43c6:: with SMTP id q189mr14595484oia.81.1627259476142; Sun, 25 Jul 2021 17:31:16 -0700 (PDT) To: Rich Felker Cc: musl@lists.openwall.com, Taylor Simpson References: <20210726001440.GO13220@brightrain.aerifal.cx> From: Rob Landley Message-ID: Date: Sun, 25 Jul 2021 19:49:07 -0500 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.11.0 MIME-Version: 1.0 In-Reply-To: <20210726001440.GO13220@brightrain.aerifal.cx> Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit Subject: Re: [musl] FYI: llvm-musl-hexagon toolchain build script v1 On 7/25/21 7:14 PM, Rich Felker wrote: > On Sun, Jul 25, 2021 at 07:11:43PM -0500, Rob Landley wrote: >> Note the first three lines are the 3 git archives to clone into the current >> directory. (llvm, linux, and qualcomm's musl-hexagon fork) >> >> Loosely based on the >> https://github.com/qemu/qemu/blob/master/tests/docker/dockerfiles/debian-hexagon-cross.docker.d/build-toolchain.sh >> with a _LOT_ of simplification. Yes, it can still be slimmed down further, >> working on it ala >> https://lists.nongnu.org/archive/html/qemu-devel/2021-07/msg04610.html >> >> I built a toybox binary which qemu-hexagon could run, and I built a >> comet_defconfig vlinux which... doesn't seem to have a qemu-system-hexagon board >> emulation yet? Hmmm... >> >> Their musl hexagon branch is a couple dozen patches on top of a commit from >> January of this year. Should rebase reasonnably to current without too much effort. > > Yes, it was proposed here a while back after a long time of being > something done independently that we hadn't seen. I need to look back > at the thread to determine where things are with getting it > upstreamable. My lack of tooling to build and test it is partly a > blocker, so if you're willing to help with that side of things it'd be > great. Happy to. The toolchain that built Worked For Me with stock-ish devuan. (Using the cmake/ninja from the repo, nothing special.) According to the discussion thread I SHOULD be able to remove most of the compiler flags and micromanaging options, it's just slow to iterate builds taking a thing or two out at a time and retesting. QEMU hexagon application emulation is there and working now in vanilla (git cloned qemu, did the "populate your darn subrepos" invocation, and then ./configure and make.) I haven't found qemu system emulation yet but presumably there's something in the works. (Their kernel header build copied their full kernel build context, and they're using comet_defconfig which is at least the same _name_ as those test boards from 2010. So not exactly a rapidly moving target on that side of things. :) Rob