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=0.4 required=3.0 tests=BAYES_00,DKIM_INVALID, DKIM_SIGNED,HEADER_FROM_DIFFERENT_DOMAINS,HTML_MESSAGE,MAILING_LIST_MULTI, PDS_BAD_THREAD_QP_64,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 0F289C11F66 for ; Thu, 1 Jul 2021 01:03:44 +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 1EE2461425 for ; Thu, 1 Jul 2021 01:03:43 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 1EE2461425 Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=etri.re.kr 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 1lyl6y-00032k-CC; Wed, 30 Jun 2021 21:03:24 -0400 Received: from mscreen.etri.re.kr ([129.254.9.16]) by shelob.surriel.com with esmtps (TLS1.2) tls TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA (Exim 4.94.2) (envelope-from ) id 1lyl6t-000312-Nd for kernelnewbies@kernelnewbies.org; Wed, 30 Jun 2021 21:03:20 -0400 Received: from unknown (HELO send001-relay.gov-dooray.com) (211.180.235.152) by 129.254.9.16 with ESMTP; 1 Jul 2021 10:03:12 +0900 X-Original-SENDERIP: 211.180.235.152 X-Original-MAILFROM: ckim@etri.re.kr X-Original-RCPTTO: kernelnewbies@kernelnewbies.org Received: from [10.162.225.112] (HELO smtp002-imp.gov-dooray.com) ([10.162.225.112]) by send001-relay.gov-dooray.com with SMTP id d0c2c00960dd1450; Thu, 01 Jul 2021 10:03:12 +0900 DKIM-Signature: a=rsa-sha256; b=DG7ut/OO6CMlWLR5kg+BITHXLqJ9atxDur9oootT7FlO6b3sD6sa+SZ0L4yhstDC9Tgqt2kS8S rT+CNRwpmgFv0fqWQjf+EPIXpizlqVfC5VHpD9/f+MpxKVLxM3oI7prUXoHFA3Vi1DTyGOhBzPnz lY5wsLj9TarbzSa3f/+/gipUEHlkGt5x3bj6HEnM+qMiOpC8NW54OFNMq9RRv7K9WlYmDS8gIHgj qRITEgahM/n7pjg8c4Ca+Uo4Dwi5cI0Qd8LCaU9nfjGu8dKqDRMxAMTehg9OeZVjsA2zxqcgT/H6 jvqIdWz32GXxbw2HJstmKoEuleW+dxMHYwBdpp7A==; c=relaxed/relaxed; s=selector; d=dooray.com; v=1; bh=DF7+xFhXTc+eQAvOJB8CsrjTDedJUVilKVN5lICotvQ=; h=From:To:Subject:Message-ID; Received: from [129.254.132.39] (HELO CHANKIMPC) ([129.254.132.39]) by smtp002-imp.gov-dooray.com with SMTP id eb378fb960dd1450; Thu, 01 Jul 2021 10:03:12 +0900 From: To: "'Alexander Kapshuk'" References: <002901d76c82$b0fb3380$12f19a80$@etri.re.kr> <005e01d76c9c$42091b30$c61b5190$@etri.re.kr> In-Reply-To: Subject: RE: kernel build error during ubuntu linux kernel build Date: Thu, 1 Jul 2021 10:03:09 +0900 Message-ID: <011401d76e14$dc1fecc0$945fc640$@etri.re.kr> MIME-Version: 1.0 X-Mailer: Microsoft Outlook 16.0 Thread-Index: AQGPzw/k7aY6lG8HH6z86XB7TXwLBwEtoej0AI1gl3yrrR2K0A== Content-Language: ko 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="===============3371578127158072543==" Errors-To: kernelnewbies-bounces@kernelnewbies.org This is a multipart message in MIME format. --===============3371578127158072543== Content-Type: multipart/alternative; boundary="----=_NextPart_000_0115_01D76E60.4C087F20" Content-Language: ko This is a multipart message in MIME format. ------=_NextPart_000_0115_01D76E60.4C087F20 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable =20 Hello Alexander Kapshuk, Thanks for the reply. Following your 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 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. =20 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 =20 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/develop= er-tools/gnu-toolchain/gnu-a/downloads because I saw some compiler error = related to STACKPROTECTOR compile option when I used gcc tool from = linaro which was based on gcc 7.5 (I remember, the new toolchain is gcc = 10.2 based).=20 With these, I could finally compile ubuntu 20.04!=20 (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) =20 Thank you! Chan Kim _______________________________________________ Kernelnewbies mailing list Kernelnewbies@kernelnewbies.org = https://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies ------=_NextPart_000_0115_01D76E60.4C087F20 Content-Type: text/html; charset="utf-8" Content-Transfer-Encoding: quoted-printable

 

Hello Alexander Kapshuk,

Thanks for the reply. Following your 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 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-linux-gnu from https://developer.arm.com= /tools-and-software/open-source-software/developer-tools/gnu-toolchain/gn= u-a/downloads because I saw some compiler error related to = STACKPROTECTOR compile option 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!

(For those = interested, please see https://unix= .stackexchange.com/questions/656263/how-to-build-ubuntu-for-arm64-how-to-= give-arch-and-cross-compile-variable-to)

 

Thank you!

Chan Kim

_______________________________________________
Kernelnew= bies mailing list
Kernelnewbies@kernelnewbies.org
https://lists.kernelnewbies.org/mailman/listinfo/kernel= newbies

------=_NextPart_000_0115_01D76E60.4C087F20-- --===============3371578127158072543== 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 --===============3371578127158072543==--