From: <ckim@etri.re.kr>
To: "'Alexander Kapshuk'" <alexander.kapshuk@gmail.com>
Cc: 'kernelnewbies' <kernelnewbies@kernelnewbies.org>
Subject: RE: kernel build error during ubuntu linux kernel build
Date: Thu, 1 Jul 2021 10:03:09 +0900 [thread overview]
Message-ID: <011401d76e14$dc1fecc0$945fc640$@etri.re.kr> (raw)
In-Reply-To: <CAJ1xhMW+qa73zTsx37-GkCjH0WbO21NhN3V-iH_bBXMLz2k2Bg@mail.gmail.com>
[-- Attachment #1.1: Type: text/plain, Size: 1563 bytes --]
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’ll 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=arm-linux-gnueabihf-
LANG=C fakeroot debian/rules ARCH=arm64 CROSS_COMPILE=aarch64-none-linux-gnu- clean
LANG=C fakeroot debian/rules ARCH=arm64 CROSS_COMPILE=aarch64-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/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).
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
_______________________________________________
Kernelnewbies mailing list
Kernelnewbies@kernelnewbies.org <mailto:Kernelnewbies@kernelnewbies.org>
https://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies
[-- Attachment #1.2: Type: text/html, Size: 9265 bytes --]
[-- Attachment #2: Type: text/plain, Size: 170 bytes --]
_______________________________________________
Kernelnewbies mailing list
Kernelnewbies@kernelnewbies.org
https://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies
next prev parent reply other threads:[~2021-07-01 1:03 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-06-29 1:04 kernel build error during ubuntu linux kernel build ckim
2021-06-29 4:07 ` ckim
2021-06-29 6:32 ` Alexander Kapshuk
2021-07-01 1:03 ` ckim [this message]
2021-07-01 8:02 ` Alexander Kapshuk
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to='011401d76e14$dc1fecc0$945fc640$@etri.re.kr' \
--to=ckim@etri.re.kr \
--cc=alexander.kapshuk@gmail.com \
--cc=kernelnewbies@kernelnewbies.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox