Buildroot Archive on lore.kernel.org
 help / color / mirror / Atom feed
From: Baruch Siach <baruch@tkos.co.il>
To: buildroot@busybox.net
Subject: [Buildroot] Build failure on acmesystems_acqua_a5_{256,512}mb
Date: Mon, 10 May 2021 16:06:09 +0300	[thread overview]
Message-ID: <87r1ieybzy.fsf@tarshish> (raw)
In-Reply-To: <6347f09d-5329-865a-f77d-92332050495d@grenoble.cnrs.fr>

Hi Edgar,

On Mon, May 10 2021, Edgar Bonet wrote:
> In the autobuild results from 2021-05-06, I noticed the following
> failures:
>
> -- 8< --
>                    defconfig |                        link to the job                        | orph?
> -----------------------------+---------------------------------------------------------------+------
>   acmesystems_acqua_a5_256mb | https://gitlab.com/buildroot.org/buildroot/-/jobs/1240157423  | ORPH 
>   acmesystems_acqua_a5_512mb | https://gitlab.com/buildroot.org/buildroot/-/jobs/1240157424  | ORPH
> -- 8< --
>
> Since I am the original submitter of these two defconfigs, I feel
> somewhat responsible for their fate. I then tried to troubleshoot the
> problem, but unfortunately I am at a loss, so I hope someone here will
> be able to provide some assistance.
>
> Below are the results of my (probably faulty) investigations.
>
> Following the link to the first failed job, I found what I believe is
> the relevant error message. While building linux 5.4.107:
>
> -- 8< --
>   HOSTCC  scripts/extract-cert
> scripts/extract-cert.c:21:25: fatal error: openssl/bio.h: No such file or directory
>  #include <openssl/bio.h>
>                          ^
> compilation terminated.
> -- 8< --
>
> What follows in the build log is mostly recursive make recursively
> complaining.
>
> My understanding is that this was compiling a helper program meant to
> run on the host. On my desktop, <openssl/bio.h> is provided by
> libssl-dev, which I have installed long ago, and that would explain why
> the build works for me. Apparently, the autobuilder did not have that
> package, and I failed to require it in the defconfig. So far so good.
>
> Now, my first problem is: I cannot find a host openssl package in
> buildroot. And the buildroot documentation does not list this within the
> system requirements. So my question is: where is <openssl/bio.h>
> supposed to come from?

There is host-openssl. You can't select it from menuconfig, but you can
add it to _DEPENDENCIES.

> Then, while browsing the kernel docs, I stumbled on this:
>
>     You will also need openssl development packages
>     to build kernels 4.3 and higher.
>
> But then, how come not every board defconfig using linux ? 4.3 is
> failing? I found a few other defconfigs that use linux-5.4, do not
> require any host package other than the ones I require here, and do not
> seem to fail.

These configs select BR2_LINUX_KERNEL_NEEDS_HOST_OPENSSL which adds
host-openssl to LINUX_DEPENDENCIES. See linux/linux.mk.

> Any help would be appreciated, as I am feeling completely clueless.

baruch

-- 
                                                     ~. .~   Tk Open Systems
=}------------------------------------------------ooO--U--Ooo------------{=
   - baruch at tkos.co.il - tel: +972.52.368.4656, http://www.tkos.co.il -

  reply	other threads:[~2021-05-10 13:06 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-05-10 12:56 [Buildroot] Build failure on acmesystems_acqua_a5_{256,512}mb Edgar Bonet
2021-05-10 13:06 ` Baruch Siach [this message]
2021-05-10 13:54   ` Edgar Bonet

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=87r1ieybzy.fsf@tarshish \
    --to=baruch@tkos.co.il \
    --cc=buildroot@busybox.net \
    /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