i cleaned out -Werror wherever possible with command:
sed -i 's/-Werror//g' $(find . -type f -exec egrep -l _no_Werror {} \;)
and elfutils is builded
вт, 31 авг. 2021 г. в 09:41, Ivan Riabtsov via lists.yoctoproject.org
<[email protected]>:
>
> Hello, I have the following error:
>
> ../../elfutils-0.166/libelf/libelfP.h:53:30: error: ‘__elf64_msize’
> specifies less restrictive attribute than its target ‘elf64_fsize’:
> ‘const’ [-Werror=missing-attributes]
>
> i try to solve this by patch:
>
> diff -Naur elfutils-0.166_orig/libelf/libelfP.h
> elfutils-0.166/libelf/libelfP.h
> --- elfutils-0.166_orig/libelf/libelfP.h 2016-01-12 15:49:19.000000000 +0300
> +++ elfutils-0.166/libelf/libelfP.h 2021-08-30 19:38:44.866175082 +0300
> @@ -48,6 +48,8 @@
>
>
> /* Helper Macros to write 32 bit and 64 bit functions. */
> +#pragma GCC diagnostic push
> +#pragma GCC diagnostic ignored "-Wmissing-attributes"
> #define __elfw2_(Bits, Name) __elf##Bits##_##Name
> #define elfw2_(Bits, Name) elf##Bits##_##Name
> #define ElfW2_(Bits, Name) Elf##Bits##_##Name
> @@ -632,4 +634,5 @@
> #define INVALID_NDX(ndx, type, data) \
> unlikely ((data)->d_size / sizeof (type) <= (unsigned int) (ndx))
>
> +#pragma GCC diagnostic pop
> #endif /* libelfP.h */
>
>
> But the patch does not work, error appears again.
>
>
> i try to add --disable-werror to configure flags, but i have follows warning:
>
> configure: WARNING: unrecognized options: --disable-werror.
>
>
> The only solution to the problem I could think of is editing the
> Makefile after configuration, please tell me how this can be done?
>
>
>
-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#54616): https://lists.yoctoproject.org/g/yocto/message/54616
Mute This Topic: https://lists.yoctoproject.org/mt/85270906/21656
Group Owner: [email protected]
Unsubscribe: https://lists.yoctoproject.org/g/yocto/unsub
[[email protected]]
-=-=-=-=-=-=-=-=-=-=-=-