Received: by 2002:a05:6359:c8b:b0:c7:702f:21d4 with SMTP id go11csp514812rwb; Mon, 26 Sep 2022 02:03:50 -0700 (PDT) X-Google-Smtp-Source: AMsMyM4S31wnC4i5hkAcLjuBVoVsk1FT8PRp9vrgnAb8vcyaLfEFhpnSEGWIFT0NHi7VUtqsSq24 X-Received: by 2002:a05:6402:c95:b0:457:37d4:c4c5 with SMTP id cm21-20020a0564020c9500b0045737d4c4c5mr5464455edb.267.1664183030738; Mon, 26 Sep 2022 02:03:50 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1664183030; cv=none; d=google.com; s=arc-20160816; b=0W778ck/fv3SjuiOzW/7+8Duu+h2poC1oOYnfmAWCPKxVsoZCZZgR6yL57SpGcbm8w yfRkV7/mTsAs47XGspo9+WCzJuzotds5MOy5KuI/jbCW3eNwX3xcEpPNxpfF6E6uW1Xv UIh2u05Qf8gFQBeJJw0joPN0JRnCg/e9X02M2jLspNyRs7fboPZiAv8c4UMEk7hlzwfI O7RegjX20twzEidBd0q4sGQYBwX6CNZdzv9jouw9Q6UAtGzezNmeSzXVGRAi7NwFxH1/ yOO8hIh+qSmwt0pOHQKVi/SlEWw2F/spvgKycg66+Hm/o0dqWigtK+/xFHicF47U7Sje ppzg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:cc:to:subject :message-id:date:from:in-reply-to:references:mime-version :dkim-signature:dkim-filter; bh=vlkbVUYC6luO+m9Ikti3NG43M3VtHm2puQBFVEFsQrY=; b=ZMxmCwdXOlTurtTf9hm9MccjY2ThL8fSkSud3IYNrzeypbDWCnjjbyt/1yUK9MUY2K o4vF0brEborsqGTbBYkzSyWymDn1hv4i231ePziY/cUr7xiOnsU8OBqOX3eTvuRLrGKV csJ4Hmwp9IImGlHl+zhElaFeFQNfbuGakc1weuhZdmwyIwTwefG1WIWmTqYSh28T+S9B +H/Zrv8KHExUhnwaBS+Y//qwHjUt5A6PYcP10b8uKbIO7dCekmBu0tpd0QAy8DoN+P7p 2+jQGQGmawtruAEMcrd7bIZJ+P5yma8CPrRNNojEEdoS3kelY9KErnxdwx+PnCC0OHwq gkoQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@nifty.com header.s=dec2015msa header.b=KY7QXY1d; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id i9-20020a1709061e4900b0073da0ce043csi13250685ejj.619.2022.09.26.02.03.13; Mon, 26 Sep 2022 02:03:50 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@nifty.com header.s=dec2015msa header.b=KY7QXY1d; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234574AbiIZI5n (ORCPT + 99 others); Mon, 26 Sep 2022 04:57:43 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:50508 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234563AbiIZI5j (ORCPT ); Mon, 26 Sep 2022 04:57:39 -0400 Received: from conssluserg-04.nifty.com (conssluserg-04.nifty.com [210.131.2.83]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id B85B73DBD4; Mon, 26 Sep 2022 01:57:37 -0700 (PDT) Received: from mail-oi1-f178.google.com (mail-oi1-f178.google.com [209.85.167.178]) (authenticated) by conssluserg-04.nifty.com with ESMTP id 28Q8vHsj010624; Mon, 26 Sep 2022 17:57:17 +0900 DKIM-Filter: OpenDKIM Filter v2.10.3 conssluserg-04.nifty.com 28Q8vHsj010624 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nifty.com; s=dec2015msa; t=1664182637; bh=vlkbVUYC6luO+m9Ikti3NG43M3VtHm2puQBFVEFsQrY=; h=References:In-Reply-To:From:Date:Subject:To:Cc:From; b=KY7QXY1dq9zl60QZkjgo2j9B17vAiVIW7LuJ9oTkHb2YImiFCF3pUsOaFC5NNc0YU rIBfQqtacpcxFCU2AihjOyIpNClPgY0ixCMdL4JV1r2gIc18T/zxhdckbLfZwFZmVD dPNpZ/rRZLu4oMo1/oxJxo0yeOqowKjAJZpvrTizOex74idCZZpEYrHOxl6j/2x2dU iiieZbX50Ca58ivODWDy8rU9iRsHXb4OzJX7QSkZTEaGTq5RUdFxe/9o2d6O0a1zyz QP9yMVerbJWlQfT60eRsCf65o4wcc43oXSeFQ+tLGVdRFJJ69OQaZool3qV+t08Yuk Uj7klbYVvXR6g== X-Nifty-SrcIP: [209.85.167.178] Received: by mail-oi1-f178.google.com with SMTP id v130so7462738oie.2; Mon, 26 Sep 2022 01:57:17 -0700 (PDT) X-Gm-Message-State: ACrzQf3gPOlO6xCNuUMHNxNLPNyeuFjAbdCfpTlrAs+lYAHbCwBrabMM mmnwZDWg7kpn/dZqGoAWvSzLRwKzoPH8D0CAAyQ= X-Received: by 2002:a54:400c:0:b0:34f:9913:262 with SMTP id x12-20020a54400c000000b0034f99130262mr9358774oie.287.1664182636355; Mon, 26 Sep 2022 01:57:16 -0700 (PDT) MIME-Version: 1.0 References: In-Reply-To: From: Masahiro Yamada Date: Mon, 26 Sep 2022 17:56:40 +0900 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: Any interest in building the Linux kernel from a MacOS host? To: Nick Desaulniers Cc: Linus Torvalds , "marcan@marcan.st" , Nick Desaulniers , clang-built-linux , Linux Kbuild mailing list , Linux Kernel Mailing List , asahi@lists.linux.dev, linux-arm-kernel Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Spam-Status: No, score=-1.2 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_SOFTFAIL autolearn=no autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, Sep 26, 2022 at 4:51 PM Nick Desaulniers wrote: > > Not sure if this is potentially interesting to anyone but I was able > to get the kernel building from MacOS my M2 Air with a small amount of > effort (read: duct tape and bailing wire). If this might seem helpful > to anyone's workflow, I wouldn't mind pursuing this (with some > cleanup, sending a more formal patch set). Maybe this helps us > bootstrap or get Linux up and running sooner on these machines? > > Take a look at the commit message linked below for the trials & tribulati= ons: > https://github.com/ClangBuiltLinux/linux/commit/f06333e29addbc3d714adb340= 355f471c1dfe95a > > Thanks, > ~Nick Desaulniers I see some efforts in this direction, for example, commit dd2a3acaecd7abb2d43b09a823cf2e4c967fa2ac Author: Andreas Bie=C3=9Fmann Date: Fri Feb 24 08:23:53 2012 +0100 mod/file2alias: make modpost compile on darwin again I do not mind a small amount of code addition. It may be broken from time to time because there are less number of developers testing kernel builds on macOS. --=20 Best Regards Masahiro Yamada