All of lore.kernel.org
 help / color / mirror / Atom feed
From: Peter Seiderer <ps.report@gmx.net>
To: buildroot@busybox.net
Subject: [Buildroot] [autobuild.buildroot.net] Daily results for 2019-09-17
Date: Thu, 19 Sep 2019 21:35:13 +0200	[thread overview]
Message-ID: <20190919213513.25780de0@gmx.net> (raw)
In-Reply-To: <20190918061626.A01A88614D@whitealder.osuosl.org>

Hello,

On Wed, 18 Sep 2019 06:16:20 -0000, Thomas Petazzoni <thomas.petazzoni@bootlin.com> wrote:

> Hello,
> 
> Autobuild statistics for 2019-09-17
> ===============================
[...]
>   powerpc    |           flac-1.3.3           | NOK | http://autobuild.buildroot.net/results/eb3a59a78dbb0c83cff78aac2384edea890af830 |     
>   powerpc    |           flac-1.3.3           | NOK | http://autobuild.buildroot.net/results/f1360435f0a198ac35bcfd965650da1e204576bf |     

Fails with:

  cpu.c:57:10: fatal error: sys/auxv.h: No such file or directory
   #include <sys/auxv.h>
            ^~~~~~~~~~~~
  compilation terminated.

From build/flac-1.3.3/src/libFLAC/cpu.c:

 56 #if defined FLAC__CPU_PPC
 57 #include <sys/auxv.h>
 58 #endif

236 static void
237 ppc_cpu_info (FLAC__CPUInfo *info)
238 {
239 #if defined FLAC__CPU_PPC
240 #ifndef PPC_FEATURE2_ARCH_3_00
241 #define PPC_FEATURE2_ARCH_3_00          0x00800000
242 #endif
243 
244 #ifndef PPC_FEATURE2_ARCH_2_07
245 #define PPC_FEATURE2_ARCH_2_07          0x80000000
246 #endif
247 
248         if (getauxval(AT_HWCAP2) & PPC_FEATURE2_ARCH_3_00) {
249                 info->ppc.arch_3_00 = true;
250         } else if (getauxval(AT_HWCAP2) & PPC_FEATURE2_ARCH_2_07) {
251                 info->ppc.arch_2_07 = true;
252         }
253 #else
254         info->ppc.arch_2_07 = false;
255         info->ppc.arch_3_00 = false;
256 #endif
257 }

Could be fixed by the following flac configure.ac patch (check for sys/auxv.h before
defining FLAC__CPU_PPC):

diff --git a/configure.ac b/configure.ac
index 0228a12..64cb3f2 100644
--- a/configure.ac
+++ b/configure.ac
@@ -144,7 +144,7 @@ case "$host_cpu" in
        powerpc64|powerpc64le)
                cpu_ppc64=true
                cpu_ppc=true
-               AC_DEFINE(FLAC__CPU_PPC)
+               AC_CHECK_HEADER(sys/auxv.h, AC_DEFINE(FLAC__CPU_PPC))
                AH_TEMPLATE(FLAC__CPU_PPC, [define if building for PowerPC])
                AC_DEFINE(FLAC__CPU_PPC64)
                AH_TEMPLATE(FLAC__CPU_PPC64, [define if building for PowerPC64])
@@ -152,7 +152,7 @@ case "$host_cpu" in
                ;;
        powerpc|powerpcle)
                cpu_ppc=true
-               AC_DEFINE(FLAC__CPU_PPC)
+               AC_CHECK_HEADER(sys/auxv.h, AC_DEFINE(FLAC__CPU_PPC))
                AH_TEMPLATE(FLAC__CPU_PPC, [define if building for PowerPC])
                asm_optimisation=$asm_opt
                ;;

Regards,
Peter

      parent reply	other threads:[~2019-09-19 19:35 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2019-09-18  6:16 [Buildroot] [autobuild.buildroot.net] Daily results for 2019-09-17 Thomas Petazzoni
2019-09-18 20:56 ` Peter Seiderer
2019-09-21 11:26   ` Arnout Vandecappelle
2019-09-23 19:02     ` Peter Seiderer
2019-09-19 18:35 ` Peter Seiderer
2019-09-21  9:33   ` Arnout Vandecappelle
2019-09-19 19:35 ` Peter Seiderer [this message]

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=20190919213513.25780de0@gmx.net \
    --to=ps.report@gmx.net \
    --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 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.