* bug#42236: 28.0.50; 118c07e02e breaks linux uclibc build
@ 2020-07-06 20:36 akater
2020-08-13 0:28 ` Stefan Kangas
0 siblings, 1 reply; 8+ messages in thread
From: akater @ 2020-07-06 20:36 UTC (permalink / raw)
To: 42236
[-- Attachment #1: Type: text/plain, Size: 4351 bytes --]
Commit 118c07e02e939c9f52688091509d4bff2a897032 broke my
x86_64-pc-linux-uclibc build with the following error (gcc-9.3.0):
> x86_64-pc-linux-uclibc-gcc -c -MMD -MF deps/getrandom.d -MP -fno-common -W -Wabsolute-value -Waddress -Waddress-of-packed-member -Waggressive-loop-optimizations -Wall -Wattribute-warning -Wattributes -Wbool-compare -Wbool-operation -Wbuiltin-declaration-mismatch -Wbuiltin-macro-redefined -Wcannot-profile -Wcast-function-type -Wchar-subscripts -Wclobbered -Wcomment -Wcomments -Wcoverage-mismatch -Wcpp -Wdangling-else -Wdate-time -Wdeprecated -Wdeprecated-declarations -Wdesignated-init -Wdisabled-optimization -Wdiscarded-array-qualifiers -Wdiscarded-qualifiers -Wdiv-by-zero -Wdouble-promotion -Wduplicated-cond -Wduplicate-decl-specifier -Wempty-body -Wendif-labels -Wenum-compare -Wexpansion-to-defined -Wextra -Wformat-contains-nul -Wformat-extra-args -Wformat-security -Wformat-signedness -Wformat-y2k -Wformat-zero-length -Wframe-address -Wfree-nonheap-object -Whsa -Wif-not-aligned -Wignored-attributes -Wignored-qualifiers -Wimplicit -Wimplicit-function-declaration -Wimplicit-int -Wincompatible-pointer-types -Winit-self -Wint-conversion -Wint-in-bool-context -Wint-to-pointer-cast -Winvalid-memory-model -Winvalid-pch -Wlogical-not-parentheses -Wlogical-op -Wmain -Wmaybe-uninitialized -Wmemset-elt-size -Wmemset-transposed-args -Wmisleading-indentation -Wmissing-attributes -Wmissing-braces -Wmissing-declarations -Wmissing-include-dirs -Wmissing-parameter-type -Wmissing-profile -Wmissing-prototypes -Wmultichar -Wmultistatement-macros -Wnarrowing -Wnested-externs -Wnonnull -Wnonnull-compare -Wnull-dereference -Wodr -Wold-style-declaration -Wold-style-definition -Wopenmp-simd -Woverflow -Wpacked -Wpacked-bitfield-compat -Wpacked-not-aligned -Wparentheses -Wpointer-arith -Wpointer-compare -Wpointer-sign -Wpointer-to-int-cast -Wpragmas -Wpsabi -Wrestrict -Wreturn-local-addr -Wreturn-type -Wscalar-storage-order -Wsequence-point -Wshift-count-negative -Wshift-count-overflow -Wshift-negative-value -Wsizeof-array-argument -Wsizeof-pointer-div -Wsizeof-pointer-memaccess -Wstrict-aliasing -Wstrict-prototypes -Wstringop-truncation -Wsuggest-attribute=format -Wsuggest-attribute=malloc -Wsuggest-attribute=noreturn -Wsuggest-final-methods -Wsuggest-final-types -Wswitch-bool -Wswitch-unreachable -Wtautological-compare -Wtrampolines -Wtrigraphs -Wuninitialized -Wunknown-pragmas -Wunused -Wunused-but-set-parameter -Wunused-but-set-variable -Wunused-function -Wunused-label -Wunused-local-typedefs -Wunused-result -Wunused-value -Wunused-variable -Wvarargs -Wvariadic-macros -Wvector-operation-performance -Wvolatile-register-var -Wwrite-strings -Walloc-size-larger-than=9223372036854775807 -Warray-bounds=2 -Wattribute-alias=2 -Wformat-truncation=2 -Wimplicit-fallthrough=5 -Wnormalized=nfc -Wshift-overflow=2 -Wstringop-overflow=2 -Wvla-larger-than=4031 -Wredundant-decls -Wno-missing-field-initializers -Wno-override-init -Wno-sign-compare -Wno-type-limits -Wno-unused-parameter -Wno-format-nonliteral -march=native -O2 -pipe -I. -I../src -I. -I./../src getrandom.c
> In file included from ./sys/random.h:36,
> from getrandom.c:22:
> /usr/include/sys/random.h:27:35: error: unknown type name 'size_t'
> 27 | extern int getrandom(void *__buf, size_t count, unsigned int flags)
> | ^~~~~~
> /usr/include/sys/random.h:8:1: note: 'size_t' is defined in header '<stddef.h>'; did you forget to '#include <stddef.h>'?
> 7 | #include <features.h>
> +++ |+#include <stddef.h>
> 8 |
> getrandom.c: In function 'rpl_getrandom':
> getrandom.c:157:10: warning: implicit declaration of function 'getrandom'; did you mean 'rpl_getrandom'? [-Wimplicit-function-declaration]
> 157 | return getrandom (buffer, length, flags);
> | ^~~~~~~~~
> | rpl_getrandom
> getrandom.c:157:10: warning: nested extern declaration of 'getrandom' [-Wnested-externs]
> make[1]: *** [Makefile:95: getrandom.o] Error 1
> make[1]: Leaving directory '/var/tmp/portage/app-editors/emacs-28.0.9999/work/emacs/lib'
> make: *** [Makefile:411: lib] Error 2
I don't quite understand what I'm doing but including <stddef.h>
unconditionally in lib/getrandom.c made Emacs build without any
(relevant) warnings.
[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 800 bytes --]
^ permalink raw reply [flat|nested] 8+ messages in thread
* bug#42236: 28.0.50; 118c07e02e breaks linux uclibc build
2020-07-06 20:36 bug#42236: 28.0.50; 118c07e02e breaks linux uclibc build akater
@ 2020-08-13 0:28 ` Stefan Kangas
2020-08-13 6:48 ` akater
0 siblings, 1 reply; 8+ messages in thread
From: Stefan Kangas @ 2020-08-13 0:28 UTC (permalink / raw)
To: akater; +Cc: 42236
Are you still seeing this or has this been fixed? I see several more
Gnulib related commits in the time since this was reported.
akater <nuclearspace@gmail.com> writes:
> Commit 118c07e02e939c9f52688091509d4bff2a897032 broke my
> x86_64-pc-linux-uclibc build with the following error (gcc-9.3.0):
>
>
>> x86_64-pc-linux-uclibc-gcc -c -MMD -MF deps/getrandom.d -MP -fno-common -W -Wabsolute-value -Waddress -Waddress-of-packed-member -Waggressive-loop-optimizations -Wall -Wattribute-warning -Wattributes -Wbool-compare -Wbool-operation -Wbuiltin-declaration-mismatch -Wbuiltin-macro-redefined -Wcannot-profile -Wcast-function-type -Wchar-subscripts -Wclobbered -Wcomment -Wcomments -Wcoverage-mismatch -Wcpp -Wdangling-else -Wdate-time -Wdeprecated -Wdeprecated-declarations -Wdesignated-init -Wdisabled-optimization -Wdiscarded-array-qualifiers -Wdiscarded-qualifiers -Wdiv-by-zero -Wdouble-promotion -Wduplicated-cond -Wduplicate-decl-specifier -Wempty-body -Wendif-labels -Wenum-compare -Wexpansion-to-defined -Wextra -Wformat-contains-nul -Wformat-extra-args -Wformat-security -Wformat-signedness -Wformat-y2k -Wformat-zero-length -Wframe-address -Wfree-nonheap-object -Whsa -Wif-not-aligned -Wignored-attributes -Wignored-qualifiers -Wimplicit -Wimplicit-function-declaration -Wimplicit-int -Wincompatible-pointer-types -Winit-self -Wint-conversion -Wint-in-bool-context -Wint-to-pointer-cast -Winvalid-memory-model -Winvalid-pch -Wlogical-not-parentheses -Wlogical-op -Wmain -Wmaybe-uninitialized -Wmemset-elt-size -Wmemset-transposed-args -Wmisleading-indentation -Wmissing-attributes -Wmissing-braces -Wmissing-declarations -Wmissing-include-dirs -Wmissing-parameter-type -Wmissing-profile -Wmissing-prototypes -Wmultichar -Wmultistatement-macros -Wnarrowing -Wnested-externs -Wnonnull -Wnonnull-compare -Wnull-dereference -Wodr -Wold-style-declaration -Wold-style-definition -Wopenmp-simd -Woverflow -Wpacked -Wpacked-bitfield-compat -Wpacked-not-aligned -Wparentheses -Wpointer-arith -Wpointer-compare -Wpointer-sign -Wpointer-to-int-cast -Wpragmas -Wpsabi -Wrestrict -Wreturn-local-addr -Wreturn-type -Wscalar-storage-order -Wsequence-point -Wshift-count-negative -Wshift-count-overflow -Wshift-negative-value -Wsizeof-array-argument -Wsizeof-pointer-div -Wsizeof-pointer-memaccess -Wstrict-aliasing -Wstrict-prototypes -Wstringop-truncation -Wsuggest-attribute=format -Wsuggest-attribute=malloc -Wsuggest-attribute=noreturn -Wsuggest-final-methods -Wsuggest-final-types -Wswitch-bool -Wswitch-unreachable -Wtautological-compare -Wtrampolines -Wtrigraphs -Wuninitialized -Wunknown-pragmas -Wunused -Wunused-but-set-parameter -Wunused-but-set-variable -Wunused-function -Wunused-label -Wunused-local-typedefs -Wunused-result -Wunused-value -Wunused-variable -Wvarargs -Wvariadic-macros -Wvector-operation-performance -Wvolatile-register-var -Wwrite-strings -Walloc-size-larger-than=9223372036854775807 -Warray-bounds=2 -Wattribute-alias=2 -Wformat-truncation=2 -Wimplicit-fallthrough=5 -Wnormalized=nfc -Wshift-overflow=2 -Wstringop-overflow=2 -Wvla-larger-than=4031 -Wredundant-decls -Wno-missing-field-initializers -Wno-override-init -Wno-sign-compare -Wno-type-limits -Wno-unused-parameter -Wno-format-nonliteral -march=native -O2 -pipe -I. -I../src -I. -I./../src getrandom.c
>> In file included from ./sys/random.h:36,
>> from getrandom.c:22:
>> /usr/include/sys/random.h:27:35: error: unknown type name 'size_t'
>> 27 | extern int getrandom(void *__buf, size_t count, unsigned int flags)
>> | ^~~~~~
>> /usr/include/sys/random.h:8:1: note: 'size_t' is defined in header '<stddef.h>'; did you forget to '#include <stddef.h>'?
>> 7 | #include <features.h>
>> +++ |+#include <stddef.h>
>> 8 |
>> getrandom.c: In function 'rpl_getrandom':
>> getrandom.c:157:10: warning: implicit declaration of function 'getrandom'; did you mean 'rpl_getrandom'? [-Wimplicit-function-declaration]
>> 157 | return getrandom (buffer, length, flags);
>> | ^~~~~~~~~
>> | rpl_getrandom
>> getrandom.c:157:10: warning: nested extern declaration of 'getrandom' [-Wnested-externs]
>> make[1]: *** [Makefile:95: getrandom.o] Error 1
>> make[1]: Leaving directory '/var/tmp/portage/app-editors/emacs-28.0.9999/work/emacs/lib'
>> make: *** [Makefile:411: lib] Error 2
>
>
> I don't quite understand what I'm doing but including <stddef.h>
> unconditionally in lib/getrandom.c made Emacs build without any
> (relevant) warnings.
^ permalink raw reply [flat|nested] 8+ messages in thread
* bug#42236: 28.0.50; 118c07e02e breaks linux uclibc build
2020-08-13 0:28 ` Stefan Kangas
@ 2020-08-13 6:48 ` akater
2020-08-13 7:44 ` Stefan Kangas
2020-08-13 13:11 ` Eli Zaretskii
0 siblings, 2 replies; 8+ messages in thread
From: akater @ 2020-08-13 6:48 UTC (permalink / raw)
To: Stefan Kangas; +Cc: 42236
[-- Attachment #1: Type: text/plain, Size: 525 bytes --]
Stefan Kangas <stefan@marxist.se> writes:
> Are you still seeing this or has this been fixed? I see several more
> Gnulib related commits in the time since this was reported.
Today's master, namely 97896e68f9a8749381d023c75db5df352455f76a, fails
to build with the same error.
I've been using the following patch for uclibc builds since July 06:
--- a/lib/getrandom.c
+++ b/lib/getrandom.c
@@ -19,6 +19,7 @@
#include <config.h>
+#include <stddef.h>
#include <sys/random.h>
#include <errno.h>
[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 800 bytes --]
^ permalink raw reply [flat|nested] 8+ messages in thread
* bug#42236: 28.0.50; 118c07e02e breaks linux uclibc build
2020-08-13 6:48 ` akater
@ 2020-08-13 7:44 ` Stefan Kangas
2020-08-13 13:11 ` Eli Zaretskii
1 sibling, 0 replies; 8+ messages in thread
From: Stefan Kangas @ 2020-08-13 7:44 UTC (permalink / raw)
To: akater; +Cc: 42236, Paul Eggert
akater <nuclearspace@gmail.com> writes:
> Stefan Kangas <stefan@marxist.se> writes:
>
>> Are you still seeing this or has this been fixed? I see several more
>> Gnulib related commits in the time since this was reported.
>
> Today's master, namely 97896e68f9a8749381d023c75db5df352455f76a, fails
> to build with the same error.
>
> I've been using the following patch for uclibc builds since July 06:
>
> --- a/lib/getrandom.c
> +++ b/lib/getrandom.c
> @@ -19,6 +19,7 @@
>
> #include <config.h>
>
> +#include <stddef.h>
> #include <sys/random.h>
>
> #include <errno.h>
OK, thanks. Looks like there's a bug in Gnulib on uclibc.
Paul, what do you think?
Best regards,
Stefan Kangas
^ permalink raw reply [flat|nested] 8+ messages in thread
* bug#42236: 28.0.50; 118c07e02e breaks linux uclibc build
2020-08-13 6:48 ` akater
2020-08-13 7:44 ` Stefan Kangas
@ 2020-08-13 13:11 ` Eli Zaretskii
2020-08-13 15:34 ` Stefan Kangas
1 sibling, 1 reply; 8+ messages in thread
From: Eli Zaretskii @ 2020-08-13 13:11 UTC (permalink / raw)
To: akater; +Cc: 42236, stefan
> From: akater <nuclearspace@gmail.com>
> Date: Thu, 13 Aug 2020 06:48:27 +0000
> Cc: 42236@debbugs.gnu.org
>
> Today's master, namely 97896e68f9a8749381d023c75db5df352455f76a, fails
> to build with the same error.
>
> I've been using the following patch for uclibc builds since July 06:
>
> --- a/lib/getrandom.c
> +++ b/lib/getrandom.c
> @@ -19,6 +19,7 @@
>
> #include <config.h>
>
> +#include <stddef.h>
> #include <sys/random.h>
>
> #include <errno.h>
getrandom.c is a Gnulib module, so this should be reported to the
Gnulib folks, at bug-gnulib@gnu.org.
Thanks.
^ permalink raw reply [flat|nested] 8+ messages in thread
end of thread, other threads:[~2020-08-14 21:03 UTC | newest]
Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2020-07-06 20:36 bug#42236: 28.0.50; 118c07e02e breaks linux uclibc build akater
2020-08-13 0:28 ` Stefan Kangas
2020-08-13 6:48 ` akater
2020-08-13 7:44 ` Stefan Kangas
2020-08-13 13:11 ` Eli Zaretskii
2020-08-13 15:34 ` Stefan Kangas
2020-08-13 17:05 ` Stefan Kangas
2020-08-14 21:03 ` akater
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
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.