public inbox for libc-alpha@sourceware.org
 help / color / mirror / Atom feed
* [PATCH] Fix x86 build with --enable-tunable=no
@ 2021-01-14 14:19 Adhemerval Zanella
  2021-01-14 14:48 ` H.J. Lu
  0 siblings, 1 reply; 3+ messages in thread
From: Adhemerval Zanella @ 2021-01-14 14:19 UTC (permalink / raw)
  To: libc-alpha, H . J . Lu

Checked on x86_64-linux-gnu.
---
 sysdeps/x86/get-isa-level.h | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/sysdeps/x86/get-isa-level.h b/sysdeps/x86/get-isa-level.h
index a86e1e8941..cd9e6945a7 100644
--- a/sysdeps/x86/get-isa-level.h
+++ b/sysdeps/x86/get-isa-level.h
@@ -16,6 +16,8 @@
    License along with the GNU C Library; if not, see
    <https://www.gnu.org/licenses/>.  */
 
+#include <elf.h>
+#include <ldsodefs.h>
 #include <sys/platform/x86.h>
 
 /* Get GNU_PROPERTY_X86_ISA_1_BASELINE and GNU_PROPERTY_X86_ISA_1_V[234]
-- 
2.25.1


^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [PATCH] Fix x86 build with --enable-tunable=no
  2021-01-14 14:19 [PATCH] Fix x86 build with --enable-tunable=no Adhemerval Zanella
@ 2021-01-14 14:48 ` H.J. Lu
  2021-01-14 16:55   ` Adhemerval Zanella
  0 siblings, 1 reply; 3+ messages in thread
From: H.J. Lu @ 2021-01-14 14:48 UTC (permalink / raw)
  To: Adhemerval Zanella; +Cc: GNU C Library

On Thu, Jan 14, 2021 at 6:20 AM Adhemerval Zanella
<adhemerval.zanella@linaro.org> wrote:
>
> Checked on x86_64-linux-gnu.
> ---
>  sysdeps/x86/get-isa-level.h | 2 ++
>  1 file changed, 2 insertions(+)
>
> diff --git a/sysdeps/x86/get-isa-level.h b/sysdeps/x86/get-isa-level.h
> index a86e1e8941..cd9e6945a7 100644
> --- a/sysdeps/x86/get-isa-level.h
> +++ b/sysdeps/x86/get-isa-level.h
> @@ -16,6 +16,8 @@
>     License along with the GNU C Library; if not, see
>     <https://www.gnu.org/licenses/>.  */
>
> +#include <elf.h>
> +#include <ldsodefs.h>
>  #include <sys/platform/x86.h>
>
>  /* Get GNU_PROPERTY_X86_ISA_1_BASELINE and GNU_PROPERTY_X86_ISA_1_V[234]
> --
> 2.25.1
>

LGTM.

Thanks.

-- 
H.J.

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [PATCH] Fix x86 build with --enable-tunable=no
  2021-01-14 14:48 ` H.J. Lu
@ 2021-01-14 16:55   ` Adhemerval Zanella
  0 siblings, 0 replies; 3+ messages in thread
From: Adhemerval Zanella @ 2021-01-14 16:55 UTC (permalink / raw)
  To: H.J. Lu; +Cc: GNU C Library



On 14/01/2021 11:48, H.J. Lu wrote:
> On Thu, Jan 14, 2021 at 6:20 AM Adhemerval Zanella
> <adhemerval.zanella@linaro.org> wrote:
>>
>> Checked on x86_64-linux-gnu.
>> ---
>>  sysdeps/x86/get-isa-level.h | 2 ++
>>  1 file changed, 2 insertions(+)
>>
>> diff --git a/sysdeps/x86/get-isa-level.h b/sysdeps/x86/get-isa-level.h
>> index a86e1e8941..cd9e6945a7 100644
>> --- a/sysdeps/x86/get-isa-level.h
>> +++ b/sysdeps/x86/get-isa-level.h
>> @@ -16,6 +16,8 @@
>>     License along with the GNU C Library; if not, see
>>     <https://www.gnu.org/licenses/>.  */
>>
>> +#include <elf.h>
>> +#include <ldsodefs.h>
>>  #include <sys/platform/x86.h>
>>
>>  /* Get GNU_PROPERTY_X86_ISA_1_BASELINE and GNU_PROPERTY_X86_ISA_1_V[234]
>> --
>> 2.25.1

In fact the correct fix is the below, by including 'ldsodefs.h' on 
get-isa-level.h makes sysdeps/x86_64/tst-glibc-hwcaps.c tests build
fail.

diff --git a/sysdeps/x86/get-isa-level.h b/sysdeps/x86/get-isa-level.h
index a86e1e8941..3f0e27ee59 100644
--- a/sysdeps/x86/get-isa-level.h
+++ b/sysdeps/x86/get-isa-level.h
@@ -16,6 +16,7 @@
    License along with the GNU C Library; if not, see
    <https://www.gnu.org/licenses/>.  */
 
+#include <elf.h>
 #include <sys/platform/x86.h>
 
 /* Get GNU_PROPERTY_X86_ISA_1_BASELINE and GNU_PROPERTY_X86_ISA_1_V[234]
diff --git a/sysdeps/x86_64/dl-hwcaps-subdirs.c b/sysdeps/x86_64/dl-hwcaps-subdirs.c
index e030534f1b..4acd343183 100644
--- a/sysdeps/x86_64/dl-hwcaps-subdirs.c
+++ b/sysdeps/x86_64/dl-hwcaps-subdirs.c
@@ -18,6 +18,7 @@
 
 #include <dl-hwcaps.h>
 #include <cpu-features.h>
+#include <ldsodefs.h>
 #include <get-isa-level.h>
 
 const char _dl_hwcaps_subdirs[] = "x86-64-v4:x86-64-v3:x86-64-v2";


^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2021-01-14 16:55 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-01-14 14:19 [PATCH] Fix x86 build with --enable-tunable=no Adhemerval Zanella
2021-01-14 14:48 ` H.J. Lu
2021-01-14 16:55   ` Adhemerval Zanella

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).