On 12/25/22 18:50, Po Lu wrote:
Paul Eggert <egg...@cs.ucla.edu> writes:
What's the output of gcc -E?
Which of armv7a-unknown-linux-android19-clang -E or gcc -E on the host
do you mean?
I meant to use the compiler that is actually used to compile
lib/getrandom.c. You can deduce this with something like this:
rm lib/getrandom.o; cd lib; make V=1 getrandom.o
and replace '-c -o getrandom.o' with '-E' in the resulting command.
#if 1
/* Fill a buffer with random bytes. */
# if 0
# if !(defined __cplusplus && defined GNULIB_NAMESPACE)
# undef getrandom
# define getrandom rpl_getrandom
# endif
_GL_FUNCDECL_RPL (getrandom, ssize_t,
(void *buffer, size_t length, unsigned int flags)
_GL_ARG_NONNULL ((1)));
_GL_CXXALIAS_RPL (getrandom, ssize_t,
(void *buffer, size_t length, unsigned int flags));
# else
# if !0
_GL_FUNCDECL_SYS (getrandom, ssize_t,
(void *buffer, size_t length, unsigned int flags)
_GL_ARG_NONNULL ((1)));
That last decl should have been reached and should have declared
'getrandom', but evidently it didn't. This is where the -E output would
be helpful.