Buildroot Archive on lore.kernel.org
 help / color / mirror / Atom feed
From: Bernd Kuhls <bernd.kuhls@t-online.de>
To: buildroot@busybox.net
Subject: [Buildroot] [PATCH v4 1/2] arch: add BR2_READELF_ARCH_NAME hidden config option
Date: Sun, 02 Apr 2017 12:38:24 +0200	[thread overview]
Message-ID: <0u07rdxu5j.ln2@ID-313208.user.individual.net> (raw)
In-Reply-To: 20170320222656.38163a70@free-electrons.com

Am Mon, 20 Mar 2017 22:26:56 +0100 schrieb Thomas Petazzoni:

> Hello,
> 
> On Sun, 19 Mar 2017 14:07:51 +0100, Thomas Petazzoni wrote:
>> This config option corresponds to the string returned by readelf for
>> the "Machine" field of the ELF header. It will be used to check if the
>> architecture of binaries built by Buildroot match the target
>> architecture.
>> 
>> Signed-off-by: Thomas Petazzoni
>> <thomas.petazzoni@free-electrons.com>
>> ---
>> Changes since v3:
>>  - None
> 
> I've applied both patches to master. Let's see if the autobuilders blow
> up now :)
> 
> Best regards,
> 
> Thomas

Hi Thomas,

Sparc v8 sees some build errors:

http://autobuild.buildroot.net/results/de7/
de7079b89fda1dd47e52619a644f23c4f4986b2c//

ERROR: architecture for "/usr/lib/libmpeg2convert.so.0.0.0" is "Sparc v8
+", should be "Sparc"
ERROR: architecture for "/usr/lib/libmpeg2.so.0.1.0" is "Sparc v8+", 
should be "Sparc"

http://autobuild.buildroot.net/results/f96/
f96c30c5c398db1ba561740ae64e922cd4f8a524//

ERROR: architecture for "/usr/lib/libopenblas_sparcp-r0.2.19.dev.so" is 
"Sparc v8+", should be "Sparc"

Patching arch/Config.in.sparc like this

@@ -30,5 +30,6 @@ config BR2_GCC_TARGET_CPU
        default "ultrasparc"    if BR2_sparc_v9
 
 config BR2_READELF_ARCH_NAME
+       default "Sparc v8+"     if BR2_sparc_v8
        default "Sparc"         if BR2_sparc
        default "Sparc v9"      if BR2_sparc64

does not fix the problem however:

>>> toolchain-external-custom  Copying external toolchain libraries to 
target...
ERROR: architecture for "/lib/libgcc_s.so.1" is "Sparc", should be "Sparc 
v8+"
ERROR: architecture for "/lib/libuClibc-1.0.22.so" is "Sparc", should be 
"Sparc v8+"
ERROR: architecture for "/lib/ld-uClibc-1.0.22.so" is "Sparc", should be 
"Sparc v8+"
ERROR: architecture for "/usr/lib/libstdc++.so.6.0.21" is "Sparc", should 
be "Sparc v8+"
ERROR: architecture for "/lib/libatomic.so.1.1.0" is "Sparc", should be 
"Sparc v8+"

Tested with http://autobuild.buildroot.net/results/de7/
de7079b89fda1dd47e52619a644f23c4f4986b2c/defconfig

Regards, Bernd

  reply	other threads:[~2017-04-02 10:38 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-03-19 13:07 [Buildroot] [PATCH v4 1/2] arch: add BR2_READELF_ARCH_NAME hidden config option Thomas Petazzoni
2017-03-19 13:07 ` [Buildroot] [PATCH v4 2/2] Makefile: add check of binaries architecture Thomas Petazzoni
2017-03-20 21:26 ` [Buildroot] [PATCH v4 1/2] arch: add BR2_READELF_ARCH_NAME hidden config option Thomas Petazzoni
2017-04-02 10:38   ` Bernd Kuhls [this message]
2017-04-02 12:30     ` Thomas Petazzoni
2017-04-03 14:24       ` Arnout Vandecappelle
2017-04-03 15:08         ` Thomas Petazzoni
2017-04-10 15:49           ` Arnout Vandecappelle
  -- strict thread matches above, loose matches on Subject: below --
2017-03-12 22:17 Thomas Petazzoni
2017-03-13 22:15 ` Arnout Vandecappelle

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=0u07rdxu5j.ln2@ID-313208.user.individual.net \
    --to=bernd.kuhls@t-online.de \
    --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