All of lore.kernel.org
 help / color / mirror / Atom feed
From: Stefano Brivio <sbrivio@redhat.com>
To: Rebecca Mckeever <rebecca.mckeever@protonmail.com>
Cc: "outreachy@lists.linux.dev" <outreachy@lists.linux.dev>
Subject: Re: Help with Outreachy Setup
Date: Sun, 27 Mar 2022 10:54:38 +0200	[thread overview]
Message-ID: <20220327105438.26ec0e70@elisabeth> (raw)
In-Reply-To: <hIoORnc6IGx_3SqRrbAJGrJBMH4ZnHvpDMUrXAkvsbULD_5Ab9D-w_2na1gq1TlO7bX0JdMAx_CBriDDpoqStYKNXmqu4HZUugAX1HJ0ius=@protonmail.com>

Hi Rebecca,

First off, welcome to Outreachy and I'm glad you were able to build the
kernel and boot it! About the issues you hit.

On Sun, 27 Mar 2022 04:58:01 +0000
Rebecca Mckeever <rebecca.mckeever@protonmail.com> wrote:

> I was able to get it working on a different computer. It still shows
> the "CONFIG_X86_X32 enabled but no binutils support" message, but
> there was no error message and I was able to boot into it, so
> hopefully it's not a problem.

CONFIG_X86_X32 enables, I quote from the Kconfig help: "x32 native
32-bit ABI for 64-bit processors" -- which is a memory-saving feature
not commonly enabled.

On 64-bit processors (such as, probably, yours), pointers (that is,
references to data, or functions) use 64 bits. That's convenient, among
other reasons, because 4 GiB of memory nowadays isn't that much and,
using fewer bits, some (further) translation of memory addresses is
needed to address what programs and kernel might want to refer to.

It takes a bit more space, in both programs and kernel. So the kernel
offers, as a rather extreme measure of memory optimisation, the
possibility to keep the storage of pointers to 32 bits. That would be
used mostly by embedded systems, I guess.

To build the kernel with that option, you don't just need binutils, you
would also need binutils with this specific support, which is not
commonly available in distribution. I bet "elf32-86-64" is missing in
the list of supported "targets" when you issue:
	objcopy --help

Anyway, yes, it's just a warning. You can get rid of the warning by
disabling the CONFIG_X86_X32 in your kernel configuration. Maybe you
could make sure you disabled it with the correct syntax with this, from
your kernel tree:
	scripts/config -d CONFIG_X86_X32

...it can still be that it's selected by another option, so it would be
re-enabled automatically. Search for it from 'make menuconfig', typing
'/' (slash) and searching for X86_X32. Then you will see if that's the
case.

The actual build error you got on the other machine is probably a
dependency issue between options, which happens with your particular
configuration, but it really shouldn't happen no matter how your
configuration looks like.

The relevant configuration options are CONFIG_CRYPTO_AES_NI_INTEL and
CONFIG_64BIT -- you could start having a look at the state of those two.

I hope this helps,

-- 
Stefano


  reply	other threads:[~2022-03-27  8:54 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-03-27  2:54 Help with Outreachy Setup Rebecca Mckeever
2022-03-27  4:58 ` Rebecca Mckeever
2022-03-27  8:54   ` Stefano Brivio [this message]
2022-03-28 23:15     ` Rebecca Mckeever
2022-03-29  7:28       ` Stefano Brivio

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=20220327105438.26ec0e70@elisabeth \
    --to=sbrivio@redhat.com \
    --cc=outreachy@lists.linux.dev \
    --cc=rebecca.mckeever@protonmail.com \
    /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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.