Buildroot Archive on lore.kernel.org
 help / color / mirror / Atom feed
From: Thomas Petazzoni via buildroot <buildroot@buildroot.org>
To: Fabio Estevam <festevam@gmail.com>
Cc: Christian Stewart <christian@aperture.us>,
	buildroot <buildroot@buildroot.org>
Subject: Re: [Buildroot] crucible: Build failure on riscv64/mips64el
Date: Wed, 24 Jul 2024 22:10:01 +0200	[thread overview]
Message-ID: <20240724221001.7ec77c1b@windsurf> (raw)
In-Reply-To: <CAOMZO5D3LL=gCQt-k5e3350tQ+XULrzhV233q1GZbGFDD5f3Cg@mail.gmail.com>

Hello,

+Christian in the loop, as there is some go stuff involved.

On Wed, 24 Jul 2024 08:20:50 -0300
Fabio Estevam <festevam@gmail.com> wrote:

> Hi,
> 
> I get some reports that crucible fails to build on some architectures, such as:
> 
> riscv64:
> http://autobuild.buildroot.net/results/77e7ee7c478c1f4a65acc3d29d4562d1cafae3fd/build-end.log
> 
> mips64el:
> http://autobuild.buildroot.net/results/77e7ee7c478c1f4a65acc3d29d4562d1cafae3fd/build-end.log

The two links are the same. Here is instead a link to a crucible
failure on mips64el:

http://autobuild.buildroot.net/results/771/771600c539e28301f408067b95e92b6af4c03598/build-end.log

> 
> The crucible tool is used to read and write fuses of i.MX SoCs.
> 
> Should crucible be restricted to build only for arm and aarch64?

I agree that we don't really care about crucible on RISC-V 64-bit and
mips64el. However, the build failures you're pointing to don't seem to
be caused by anything ARM-specific in the crucible code base. Instead
they look like relatively generic issues with our Go integration.

Christian, do you think you could have a look at the above two
failures, which really don't seem to be related to the crucible code,
but more general Go issues.

The first one:

$WORK/b071/_pkg_.a(_x001.o): unknown relocation type 17; compiled without -fpic?
$WORK/b078/_pkg_.a(_x005.o): unknown relocation type 17; compiled without -fpic?

is really mysterious to me.

The second one:

/home/autobuild/autobuild/instance-9/output-1/host/lib/gcc/mips64el-buildroot-linux-gnu/13.3.0/../../../../mips64el-buildroot-linux-gnu/bin/ld: /tmp/go-link-2044248803/go.o: linking -mnan=legacy module with previous -mnan=2008 modules

is related to the fact that different object files/libraries have been
built with diffent -mnan arguments, and we try to link them together,
which isn't correct. The configuration has BR2_MIPS_NAN_2008=y, so
we're supposed to be building everything with -mnan=2008, but it seems
like some Go stuff tries to use -mnan=legacy instead.

If you could help with those weird Go issues, it would be much, much
appreciated.

Thanks a lot!

Thomas
-- 
Thomas Petazzoni, CTO, Bootlin
Embedded Linux and Kernel engineering
https://bootlin.com
_______________________________________________
buildroot mailing list
buildroot@buildroot.org
https://lists.buildroot.org/mailman/listinfo/buildroot

  reply	other threads:[~2024-07-24 20:10 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-07-24 11:20 [Buildroot] crucible: Build failure on riscv64/mips64el Fabio Estevam
2024-07-24 20:10 ` Thomas Petazzoni via buildroot [this message]
2024-09-19  3:21   ` Fabio Estevam
2024-09-19 11:55     ` Arnout Vandecappelle via buildroot
2024-09-19 21:19       ` Christian Stewart via buildroot
2024-09-19 21:35         ` Fabio Estevam

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=20240724221001.7ec77c1b@windsurf \
    --to=buildroot@buildroot.org \
    --cc=christian@aperture.us \
    --cc=festevam@gmail.com \
    --cc=thomas.petazzoni@bootlin.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox