Received: by 2002:a05:6a10:f347:0:0:0:0 with SMTP id d7csp5274623pxu; Tue, 22 Dec 2020 12:31:27 -0800 (PST) X-Google-Smtp-Source: ABdhPJy3AG0jUtDXqkjnrSxKOZxu3nyMKygjD5RvsXvFO9WjonJFJyy1kyHcUH2ClfBanAeUqkp3 X-Received: by 2002:a17:907:9627:: with SMTP id gb39mr21650985ejc.267.1608669087691; Tue, 22 Dec 2020 12:31:27 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1608669087; cv=none; d=google.com; s=arc-20160816; b=poYDLG/0W8QDbugP7I+1icJT3XIHKE2x+uOeLZdCX0xn3/h1XOUZRID8ie8Iwr9+wd fGs1hac26v0LORAujSeuVGoUQKNZvW0O4jHIPXRTiUEt5g74ekcEXV5GWpvN1ZOpU4A4 6pjTZdhgBnlZcKUpR8CDbaRRMUpQ8Oo+zwDrCuExy/y8umiCT2cTW1bUzkcv8RD0R6mG aIhsMm/41xkQGXIBxx5YNt1fWn79iRVYQxJV45ywmKVRaC8+pUX1R7BtzyRrGzjqDA8+ 8SN0jshnWghXKbMIjIUdCN01BH7wCBEhaV9dt5U7XaUdjpPNSyB93ePBUuCZ5wCcRtjo ZIcw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:mime-version :dkim-signature; bh=1uYO5gb8l22kkJBNYBKF4BpoBbkwVbyfFkGg5GIkRf8=; b=RPbsbi8f69cMvFvSqZgiF8/5aiMnmackn4mdZbuXvp2FVA+rGdhrhspw7InHFGi6UM Hnd0JEC0NfROnOK55bFAwR+1z7nZJLfO9mcLM0IBc+gJ1oKq14aPwmfE9q+QQ5+nYMKu 3wVLGu4ztNq5NnGHo+3eF3RNBnKs6VyEE+2jPBAklbrpPvIN6y07n0I8JMyf8fcjMLrK PSFYVIWuN/ahCFhY+dDLEAicSFGexHru0C/Wumx544PtAzihTr+0lEKcBohDLDz3Cns5 vJ7k8LA6T7B5yR3gzt95jNvSFMX22lhckNWHn416WMgzc1y14DeJlURwdO0ucs0S8kMa JhEA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@google.com header.s=20161025 header.b=tNmThOcE; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id n18si10657516ejk.69.2020.12.22.12.31.04; Tue, 22 Dec 2020 12:31:27 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@google.com header.s=20161025 header.b=tNmThOcE; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727656AbgLVUa3 (ORCPT + 99 others); Tue, 22 Dec 2020 15:30:29 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:38716 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726319AbgLVUa2 (ORCPT ); Tue, 22 Dec 2020 15:30:28 -0500 Received: from mail-pl1-x633.google.com (mail-pl1-x633.google.com [IPv6:2607:f8b0:4864:20::633]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id A2FFDC0613D6 for ; Tue, 22 Dec 2020 12:29:48 -0800 (PST) Received: by mail-pl1-x633.google.com with SMTP id v3so7984249plz.13 for ; Tue, 22 Dec 2020 12:29:48 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20161025; h=mime-version:from:date:message-id:subject:to:cc; bh=1uYO5gb8l22kkJBNYBKF4BpoBbkwVbyfFkGg5GIkRf8=; b=tNmThOcEL3wKkZ/mser/opC9H2K0uIdWblQmaWHo8rNKGuNVPu8tXaPsuRFzmdKCrF a+izjHmcd+U1nb/pimozzgs5HERTz7g6Wr/7SUbQeJyOkXfuSOb4sDDSbfQ9UcjoOqN0 7R+ohRlSK+d313ZwjIOUC2VIW8TPuzP2T57c3WSSs0VfoiZ6/U9dHiB5ok9SwAFQDsnM lJ31iul44tafXtXpPAZ8Hwo81i7r5EclBr4kOnRfCLeDQToIdU6uRFvLT5K+Rs6f6MC2 WIalUN5TLkuC+QGy998xOucT0sMwnTYOyyU1Y2lxVHZRlIWP5dzO5Z8xfL+TaLZ3O+YG fDqQ== 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:cc; bh=1uYO5gb8l22kkJBNYBKF4BpoBbkwVbyfFkGg5GIkRf8=; b=ZgDZpAsNJXhmv4neP2aemnMkpEsnMVi1YXjpmvFVw/4qXbsKjRFnxHPdMUTRDhIfRH MihFBjfiggz3TI+9bDa6lmNl5HcLph6Qf8eeeNegt3CplMNd7wkYChdyl9T8bLFdtym6 yKtmiFIKHCo90GQNStbZQIY6Pa1uYU5EfDNZQxGrgpnR9HdDeVydhpS8U3pt7Lfea0VN 6v1Qecs8mzwcZ19wZkGKJdtMOMCigeSu3yzxIeYAXN2XGEycpjdvpEclgD54lbmNi4Z3 V3Ync6UqqX0cHraUth5U2CoSH5GtQMn4tv69kzlm/pWXGU38AVqMLjKcXAd3j8VJC9ZD dWzg== X-Gm-Message-State: AOAM5300OB6oBcwhPfguERj/NhxaSi2OoCAevRznu7sIb51lZmv83gP8 3O7ClEGlR4+UzTGHf30rJ03embQe0cqezeiHNTFx2w== X-Received: by 2002:a17:902:26a:b029:da:af47:77c7 with SMTP id 97-20020a170902026ab02900daaf4777c7mr22812796plc.10.1608668988122; Tue, 22 Dec 2020 12:29:48 -0800 (PST) MIME-Version: 1.0 From: Nick Desaulniers Date: Tue, 22 Dec 2020 12:29:37 -0800 Message-ID: Subject: building csky with CC=clang To: Guo Ren Cc: linux-csky@vger.kernel.org, clang-built-linux , Arnd Bergmann , LKML Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hello! I was playing with some of LLVM's experimental backends (m68k) and saw there was a CSKY backend. I rebuilt LLVM to support CSKY, but I ran into trouble building the kernel before even getting to the compiler invocation: $ ARCH=csky CROSS_COMPILE=csky-linux-gnu- make CC=clang -j71 defconfig ... scripts/Kconfig.include:40: linker 'csky-linux-gnu-ld' not found My distro doesn't package binutils-csky-linux-gnu, is there documentation on how to build the kernel targeting CSKY, starting with building GNU binutils configured with CSKY emulation? -- Thanks, ~Nick Desaulniers