From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: ** X-Spam-Status: No, score=2.5 required=3.0 tests=BAYES_00,DKIM_ADSP_CUSTOM_MED, DKIM_INVALID,DKIM_SIGNED,FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM, HEADER_FROM_DIFFERENT_DOMAINS,HTML_MESSAGE,MAILING_LIST_MULTI,SPF_HELO_NONE, SPF_PASS autolearn=no autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id DAB3BC11F64 for ; Thu, 1 Jul 2021 08:03:28 +0000 (UTC) Received: from shelob.surriel.com (shelob.surriel.com [96.67.55.147]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 5FF5161480 for ; Thu, 1 Jul 2021 08:03:28 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 5FF5161480 Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=gmail.com Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=kernelnewbies-bounces@kernelnewbies.org Received: from localhost ([::1] helo=shelob.surriel.com) by shelob.surriel.com with esmtp (Exim 4.94.2) (envelope-from ) id 1lyrf4-0002qB-2p; Thu, 01 Jul 2021 04:03:02 -0400 Received: from mail-yb1-xb29.google.com ([2607:f8b0:4864:20::b29]) by shelob.surriel.com with esmtps (TLS1.2) tls TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 (Exim 4.94.2) (envelope-from ) id 1lyrex-0002oA-D0 for kernelnewbies@kernelnewbies.org; Thu, 01 Jul 2021 04:02:56 -0400 Received: by mail-yb1-xb29.google.com with SMTP id b13so9479990ybk.4 for ; Thu, 01 Jul 2021 01:02:54 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=UKxTGC1vqY4dSsOLZxcqnsl0g9JctcFMk4TF+QqRPbo=; b=Vr4xlukmsAM5CvdxZ+gsF8NPpGZ5DEPaZu75taV/ypbbk46Vvd96rQmfpqnw14/jlZ jPb1a6qXd2TbvDdGR/nsGDDdthpBaPbmctgf0R/Gi9RZk+ZxI+rWh9lX63HZu232ISk/ mGtrRd6vSAKV70e1BjjnCjlNr22QZ+hS1H7stjibYVskjOOR0fGV013iPP6sW4+Yn0Nu IjhTmy4UxIyE8UjUyzeKRGuz5YgTlKI4RglkcLRm9G7ztNcf/ln/8qmZ+MAbkkva7MYC mRzHNMRr/2LUemZcNB79zAo8y5zYfZsdMkMoTCCx6wPrpYf57RbfNBLIYLhAwzcLrmgX LuLQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=UKxTGC1vqY4dSsOLZxcqnsl0g9JctcFMk4TF+QqRPbo=; b=rh+tdlayhT/a33Il0RTz+k/Q4yNkvMyGTFQsYokVBoMGDoViaMzOg8qcnu8eOI/6uT U6m0Xrav/rN8dCIJeGnY/7vWOB2bHEGCspGX/Upsyad7RaAdXCBsTHEAjLgO37ZlTeRj E7zvpxkwlxNJSgQFsgCdR27L7216RIeIh+x6QHq9tmC+QwvXcTLzrA/fYIHnBnLRyRQ9 UqmmrJXF4wORHjjq9Iez+jw05DeoBsO4PQHH72e6+czg9fFFtUSFycP1MegtroJc6esV xjNMP+aJC89T3KK6d2ta7HPdpnu2q1LZ9L6uwmoT2IQ8bL8tBQwH6Pj5hGo6HsG+7cnC U42Q== X-Gm-Message-State: AOAM531GI4nLNF+iCGhowdov78mbX9Uy80/poCcZR5A7SMAQQvHWuum+ Az7QMFs9kbnlBC9QezJ+S5NzfFJ4sqIYN7qMpP6aZgFkeqc= X-Google-Smtp-Source: ABdhPJwBF5f+jf4gWNxPbogIA60kT7mGXLUDMo1EHTyyoN5pF3y+mi1SShrywkWVjzqZdjHwDtQAv42J82hum9AjHxc= X-Received: by 2002:a25:3d01:: with SMTP id k1mr40430994yba.401.1625126573604; Thu, 01 Jul 2021 01:02:53 -0700 (PDT) MIME-Version: 1.0 References: <002901d76c82$b0fb3380$12f19a80$@etri.re.kr> <005e01d76c9c$42091b30$c61b5190$@etri.re.kr> <011401d76e14$dc1fecc0$945fc640$@etri.re.kr> In-Reply-To: <011401d76e14$dc1fecc0$945fc640$@etri.re.kr> From: Alexander Kapshuk Date: Thu, 1 Jul 2021 11:02:17 +0300 Message-ID: Subject: Re: kernel build error during ubuntu linux kernel build To: ckim@etri.re.kr Cc: kernelnewbies X-BeenThere: kernelnewbies@kernelnewbies.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: Learn about the Linux kernel List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: multipart/mixed; boundary="===============8926585062519959084==" Errors-To: kernelnewbies-bounces@kernelnewbies.org --===============8926585062519959084== Content-Type: multipart/alternative; boundary="00000000000022829305c60b4453" --00000000000022829305c60b4453 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable On Thu, Jul 1, 2021 at 4:03 AM wrote: > > > Hello Alexander Kapshuk, > > Thanks for the reply. Following your advice, I installed `sudo apt instal= l > zfs-dkms` ( it gave me this scary-looking warning below I just installed > it, because I=E2=80=99ll not distribute anything) > > It installs sources for zfs-dkms and I understand it contains bash script > to automatically compile it when the kernel changes. > > I later found I had to do these commands. > > > > export $(dpkg-architecture -aarm64); export > CROSS_COMPILE=3Darm-linux-gnueabihf- > > LANG=3DC fakeroot debian/rules ARCH=3Darm64 > CROSS_COMPILE=3Daarch64-none-linux-gnu- clean > > LANG=3DC fakeroot debian/rules ARCH=3Darm64 > CROSS_COMPILE=3Daarch64-none-linux-gnu- binary-headers binary-generic > binary-perarch > > > > Before this, I had to download gcc-arm-10.2-2020.11-x86_64-aarch64-none-l= inux-gnu > from > https://developer.arm.com/tools-and-software/open-source-software/develop= er-tools/gnu-toolchain/gnu-a/downloads > because I saw some compiler error related to STACKPROTECTOR compile optio= n > when I used gcc tool from linaro which was based on gcc 7.5 (I remember, > the new toolchain is gcc 10.2 based). > > With these, I could finally compile ubuntu 20.04! > Great to hear. Thanks for letting us know. > (For those interested, please see > https://unix.stackexchange.com/questions/656263/how-to-build-ubuntu-for-a= rm64-how-to-give-arch-and-cross-compile-variable-to > ) > > > > Thank you! > > Chan Kim > > _______________________________________________ > Kernelnewbies mailing list > Kernelnewbies@kernelnewbies.org > https://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies > > --00000000000022829305c60b4453 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
On Thu, Jul 1, 2021 at 4:03 AM <ckim@etri.re.kr> wrote:

=C2=A0

Hello Alexander Kapshuk,

Thanks for the reply. Following yo= ur advice, I installed `sudo apt install zfs-dkms` ( it gave me this scary-= looking warning below I just installed it, because I=E2=80=99ll not distrib= ute anything)

It installs sources for zfs-dkms and I understand it contains b= ash script to automatically compile it when the kernel changes.

I later found= I had to do these commands.

=C2=A0

export $(dpkg-architecture -aarm64); export= CROSS_COMPILE=3Darm-linux-gnueabihf-

LANG=3DC fakeroot debian/rules ARCH=3Da= rm64 CROSS_COMPILE=3Daarch64-none-linux-gnu- clean

=

LANG=3DC fakeroot debian/r= ules ARCH=3Darm64 CROSS_COMPILE=3Daarch64-none-linux-gnu- binary-headers bi= nary-generic binary-perarch

= =C2=A0

Before this, I had to download gcc-= arm-10.2-2020.11-x86_64-aarch64-none-linux-gnu from https://developer.arm.com/tools= -and-software/open-source-software/developer-tools/gnu-toolchain/gnu-a/down= loads because I saw some compiler error related to STACKPROTECTOR compi= le option when I used gcc tool from linaro which was based on gcc 7.5 (I re= member, the new toolchain is gcc 10.2 based).

With these, I could finally compile ubuntu 20.04!


Great to hear.
Thanks for letting us know.
=C2=A0

(For th= ose interested, please see https://unix.stackexchange.com/questions/65= 6263/how-to-build-ubuntu-for-arm64-how-to-give-arch-and-cross-compile-varia= ble-to)

=C2=A0

Thank you!

<= span lang=3D"EN-US" style=3D"font-size:10pt;font-family:"\00b9d1\00c74= 0 \00ace0\00b515"">Chan Kim

______________________________________________= _
Kernelnewbies mailing list
Kernelnewbies@kernelnewbies.org
https://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies<= /a>

--00000000000022829305c60b4453-- --===============8926585062519959084== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ Kernelnewbies mailing list Kernelnewbies@kernelnewbies.org https://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies --===============8926585062519959084==--