android / ndk

The Android Native Development Kit
2k stars 257 forks source link

[BUG] clang issue with: unistd.h:107:20: error: expected ')' #1362

Closed Trogious closed 4 years ago

Trogious commented 4 years ago

Description

Issue when compiling openssh-8.1p1 (same problem with other versions). The clang doesn't seem to handle the __sentinel__ or __attribute__ macros.

armv7a-linux-androideabi29-clang -march=armv7-a -mfpu=vfpv3-d16 -mfloat-abi=softfp -Wno-unused-function -fno-integrated-as -fstrict-aliasing -fPIC -DANDROID -D__ANDROID_API__=29 -Os -ffunction-sections -fdata-sections -I/root/android-ndk-r21d/toolchains/llvm/prebuilt/linux-x86_64/sysroot/usr/include -I/root/android-ndk-r21d/toolchains/llvm/prebuilt/linux-x86_64/sysroot/usr/local/include -I/root/workspace/2openssl_for_ios_and_android/tools/../output/android/openssl-armeabi-v7a/include -pipe -Wunknown-warning-option -Qunused-arguments -Wall -Wpointer-arith -Wuninitialized -Wsign-compare -Wformat-security -Wsizeof-pointer-memaccess -Wno-pointer-sign -Wno-unused-result -fno-strict-aliasing -mretpoline -D_FORTIFY_SOURCE=2 -ftrapv -fno-builtin-memset -fstack-protector-strong   -I. -I. -march=armv7-a -mfpu=vfpv3-d16 -mfloat-abi=softfp -Wno-unused-function -fno-integrated-as -fstrict-aliasing -fPIC -DANDROID -D__ANDROID_API__=29 -Os -ffunction-sections -fdata-sections -I/root/android-ndk-r21d/toolchains/llvm/prebuilt/linux-x86_64/sysroot/usr/include -I/root/android-ndk-r21d/toolchains/llvm/prebuilt/linux-x86_64/sysroot/usr/local/include -DSSHDIR=\"/root/workspace/2openssl_for_ios_and_android/tools/../output/android/openssh-armeabi-v7a/etc\" -D_PATH_SSH_PROGRAM=\"/root/workspace/2openssl_for_ios_and_android/tools/../output/android/openssh-armeabi-v7a/bin/ssh\" -D_PATH_SSH_ASKPASS_DEFAULT=\"/root/workspace/2openssl_for_ios_and_android/tools/../output/android/openssh-armeabi-v7a/libexec/ssh-askpass\" -D_PATH_SFTP_SERVER=\"/root/workspace/2openssl_for_ios_and_android/tools/../output/android/openssh-armeabi-v7a/libexec/sftp-server\" -D_PATH_SSH_KEY_SIGN=\"/root/workspace/2openssl_for_ios_and_android/tools/../output/android/openssh-armeabi-v7a/libexec/ssh-keysign\" -D_PATH_SSH_PKCS11_HELPER=\"/root/workspace/2openssl_for_ios_and_android/tools/../output/android/openssh-armeabi-v7a/libexec/ssh-pkcs11-helper\" -D_PATH_SSH_PIDDIR=\"/var/run\" -D_PATH_PRIVSEP_CHROOT_DIR=\"/var/empty\" -DHAVE_CONFIG_H -c authfd.c -o authfd.o
make[1]: Leaving directory '/root/workspace/2openssl_for_ios_and_android/tools/openssh-8.1p1/openbsd-compat'
make: *** [Makefile:170: openbsd-compat/libopenbsd-compat.a] Error 2
make: *** Waiting for unfinished jobs....
1 error generated.
make: *** [Makefile:166: krl.o] Error 1
In file included from authfd.c:49:
/root/android-ndk-r21d/toolchains/llvm/prebuilt/linux-x86_64/sysroot/usr/include/unistd.h:107:20: error: expected ')'
    __attribute__((__sentinel__(1)));
                   ^
1 error generated.
make: *** [Makefile:166: authfd.o] Error 1

This happens same way both on my darwin-x86_64 and linux-x86_64. Really seems to be clang issue. Happens for all 4 ABIs the script builds for.

How to reproduce

  1. Download latest android SDK and NDK.
  2. Set ANDROID_HOME and ANDROID_NDK_ROOT to the SDK and NDK installed, respectively.
  3. clone https://github.com/Trogious/openssl_for_ios_and_android
  4. Build openssl first tools/build-android-openssl.sh
  5. Run tools/build-android-ssh.sh

Environment Details

Trogious commented 4 years ago

Full output of tools/build-android-ssh.sh:

checking for arm-linux-androideabi-cc... armv7a-linux-androideabi29-clang
checking whether the C compiler works... yes
checking for C compiler default output file name... a.out
checking for suffix of executables...
checking whether we are cross compiling... yes
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether armv7a-linux-androideabi29-clang accepts -g... yes
checking for armv7a-linux-androideabi29-clang option to accept ISO C89... none needed
checking build system type... x86_64-pc-linux-gnu
checking host system type... arm-unknown-linux-androideabi
checking how to run the C preprocessor... armv7a-linux-androideabi29-clang -E
checking for grep that handles long lines and -e... /bin/grep
checking for egrep... /bin/grep -E
checking for ANSI C header files... yes
checking for sys/types.h... yes
checking for sys/stat.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for memory.h... yes
checking for strings.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for unistd.h... yes
checking whether byte ordering is bigendian... no
checking for gawk... gawk
checking how to run the C preprocessor... armv7a-linux-androideabi29-clang -E
checking for arm-linux-androideabi-ranlib... arm-linux-androideabi-ranlib
checking for a BSD-compatible install... /usr/bin/install -c
checking for egrep... (cached) /bin/grep -E
checking for a thread-safe mkdir -p... /bin/mkdir -p
checking for arm-linux-androideabi-ar... arm-linux-androideabi-ar
checking for cat... /bin/cat
checking for kill... /bin/kill
checking for sed... /bin/sed
checking for ent... no
checking for bash... /bin/bash
checking for ksh... (cached) /bin/bash
checking for sh... (cached) /bin/bash
checking for sh... /bin/sh
checking for groff... /usr/bin/groff
checking for nroff... /usr/bin/nroff
checking for mandoc... no
checking for groupadd... /usr/sbin/groupadd
checking for useradd... /usr/sbin/useradd
checking for pkgmk... no
checking for special C compiler options needed for large files... no
checking for _FILE_OFFSET_BITS value needed for large files... 64
checking for passwd... /bin/passwd
checking for inline... inline
checking whether LLONG_MAX is declared... yes
checking whether SYSTR_POLICY_KILL is declared... no
checking whether RLIMIT_NPROC is declared... yes
checking whether PR_SET_NO_NEW_PRIVS is declared... yes
checking whether OpenSSL will be used for cryptography... yes
checking if armv7a-linux-androideabi29-clang supports -Werror... yes
checking if armv7a-linux-androideabi29-clang supports compile flag -pipe... yes
checking if armv7a-linux-androideabi29-clang supports compile flag -Wunknown-warning-option... yes
checking if armv7a-linux-androideabi29-clang supports compile flag -Wno-error=format-truncation... no
checking if armv7a-linux-androideabi29-clang supports compile flag -Qunused-arguments... yes
checking if armv7a-linux-androideabi29-clang supports compile flag -Wall... yes
checking if armv7a-linux-androideabi29-clang supports compile flag -Wextra... no
checking if armv7a-linux-androideabi29-clang supports compile flag -Wpointer-arith... yes
checking if armv7a-linux-androideabi29-clang supports compile flag -Wuninitialized... yes
checking if armv7a-linux-androideabi29-clang supports compile flag -Wsign-compare... yes
checking if armv7a-linux-androideabi29-clang supports compile flag -Wformat-security... yes
checking if armv7a-linux-androideabi29-clang supports compile flag -Wsizeof-pointer-memaccess... yes
checking if armv7a-linux-androideabi29-clang supports compile flag -Wpointer-sign... yes
checking if armv7a-linux-androideabi29-clang supports compile flag -Wunused-result... yes
checking if armv7a-linux-androideabi29-clang supports compile flag -fno-strict-aliasing... yes
checking if armv7a-linux-androideabi29-clang supports compile flag -mretpoline... yes
checking if armv7a-linux-androideabi29-clang supports link flag -Wl,-z,retpolineplt... no
checking if armv7a-linux-androideabi29-clang supports compile flag -D_FORTIFY_SOURCE=2... yes
checking if armv7a-linux-androideabi29-clang supports link flag -Wl,-z,relro... yes
checking if armv7a-linux-androideabi29-clang supports link flag -Wl,-z,now... yes
checking if armv7a-linux-androideabi29-clang supports link flag -Wl,-z,noexecstack... yes
checking if armv7a-linux-androideabi29-clang supports compile flag -ftrapv and linking succeeds... yes
checking gcc version...
checking if armv7a-linux-androideabi29-clang accepts -fno-builtin-memset... yes
checking if armv7a-linux-androideabi29-clang supports -fstack-protector-strong... yes
checking if -fstack-protector-strong works... configure: WARNING: cross compiling: cannot test
checking if compiler allows __attribute__ on return types... yes
checking if compiler allows __attribute__ prototype args... yes
checking blf.h usability... no
checking blf.h presence... no
checking for blf.h... no
checking bstring.h usability... no
checking bstring.h presence... no
checking for bstring.h... no
checking crypt.h usability... no
checking crypt.h presence... no
checking for crypt.h... no
checking crypto/sha2.h usability... no
checking crypto/sha2.h presence... no
checking for crypto/sha2.h... no
checking dirent.h usability... yes
checking dirent.h presence... yes
checking for dirent.h... yes
checking endian.h usability... yes
checking endian.h presence... yes
checking for endian.h... yes
checking elf.h usability... yes
checking elf.h presence... yes
checking for elf.h... yes
checking err.h usability... yes
checking err.h presence... yes
checking for err.h... yes
checking features.h usability... yes
checking features.h presence... yes
checking for features.h... yes
checking fcntl.h usability... yes
checking fcntl.h presence... yes
checking for fcntl.h... yes
checking floatingpoint.h usability... no
checking floatingpoint.h presence... no
checking for floatingpoint.h... no
checking getopt.h usability... yes
checking getopt.h presence... yes
checking for getopt.h... yes
checking glob.h usability... yes
checking glob.h presence... yes
checking for glob.h... yes
checking ia.h usability... no
checking ia.h presence... no
checking for ia.h... no
checking iaf.h usability... no
checking iaf.h presence... no
checking for iaf.h... no
checking ifaddrs.h usability... yes
checking ifaddrs.h presence... yes
checking for ifaddrs.h... yes
checking for inttypes.h... (cached) yes
checking langinfo.h usability... yes
checking langinfo.h presence... yes
checking for langinfo.h... yes
checking limits.h usability... yes
checking limits.h presence... yes
checking for limits.h... yes
checking locale.h usability... yes
checking locale.h presence... yes
checking for locale.h... yes
checking login.h usability... no
checking login.h presence... no
checking for login.h... no
checking maillock.h usability... no
checking maillock.h presence... no
checking for maillock.h... no
checking ndir.h usability... no
checking ndir.h presence... no
checking for ndir.h... no
checking net/if_tun.h usability... no
checking net/if_tun.h presence... no
checking for net/if_tun.h... no
checking netdb.h usability... yes
checking netdb.h presence... yes
checking for netdb.h... yes
checking netgroup.h usability... no
checking netgroup.h presence... no
checking for netgroup.h... no
checking pam/pam_appl.h usability... no
checking pam/pam_appl.h presence... no
checking for pam/pam_appl.h... no
checking paths.h usability... yes
checking paths.h presence... yes
checking for paths.h... yes
checking poll.h usability... yes
checking poll.h presence... yes
checking for poll.h... yes
checking pty.h usability... yes
checking pty.h presence... yes
checking for pty.h... yes
checking readpassphrase.h usability... no
checking readpassphrase.h presence... no
checking for readpassphrase.h... no
checking rpc/types.h usability... no
checking rpc/types.h presence... no
checking for rpc/types.h... no
checking security/pam_appl.h usability... no
checking security/pam_appl.h presence... no
checking for security/pam_appl.h... no
checking sha2.h usability... no
checking sha2.h presence... no
checking for sha2.h... no
checking shadow.h usability... no
checking shadow.h presence... no
checking for shadow.h... no
checking stddef.h usability... yes
checking stddef.h presence... yes
checking for stddef.h... yes
checking for stdint.h... (cached) yes
checking for string.h... (cached) yes
checking for strings.h... (cached) yes
checking sys/bitypes.h usability... no
checking sys/bitypes.h presence... no
checking for sys/bitypes.h... no
checking sys/bsdtty.h usability... no
checking sys/bsdtty.h presence... no
checking for sys/bsdtty.h... no
checking sys/cdefs.h usability... yes
checking sys/cdefs.h presence... yes
checking for sys/cdefs.h... yes
checking sys/dir.h usability... no
checking sys/dir.h presence... no
checking for sys/dir.h... no
checking sys/file.h usability... yes
checking sys/file.h presence... yes
checking for sys/file.h... yes
checking sys/mman.h usability... yes
checking sys/mman.h presence... yes
checking for sys/mman.h... yes
checking sys/label.h usability... no
checking sys/label.h presence... no
checking for sys/label.h... no
checking sys/ndir.h usability... no
checking sys/ndir.h presence... no
checking for sys/ndir.h... no
checking sys/poll.h usability... yes
checking sys/poll.h presence... yes
checking for sys/poll.h... yes
checking sys/prctl.h usability... yes
checking sys/prctl.h presence... yes
checking for sys/prctl.h... yes
checking sys/pstat.h usability... no
checking sys/pstat.h presence... no
checking for sys/pstat.h... no
checking sys/ptrace.h usability... yes
checking sys/ptrace.h presence... yes
checking for sys/ptrace.h... yes
checking sys/random.h usability... yes
checking sys/random.h presence... yes
checking for sys/random.h... yes
checking sys/select.h usability... yes
checking sys/select.h presence... yes
checking for sys/select.h... yes
checking for sys/stat.h... (cached) yes
checking sys/stream.h usability... no
checking sys/stream.h presence... no
checking for sys/stream.h... no
checking sys/stropts.h usability... no
checking sys/stropts.h presence... no
checking for sys/stropts.h... no
checking sys/strtio.h usability... no
checking sys/strtio.h presence... no
checking for sys/strtio.h... no
checking sys/statvfs.h usability... yes
checking sys/statvfs.h presence... yes
checking for sys/statvfs.h... yes
checking sys/sysmacros.h usability... yes
checking sys/sysmacros.h presence... yes
checking for sys/sysmacros.h... yes
checking sys/time.h usability... yes
checking sys/time.h presence... yes
checking for sys/time.h... yes
checking sys/timers.h usability... no
checking sys/timers.h presence... no
checking for sys/timers.h... no
checking sys/vfs.h usability... yes
checking sys/vfs.h presence... yes
checking for sys/vfs.h... yes
checking time.h usability... yes
checking time.h presence... yes
checking for time.h... yes
checking tmpdir.h usability... no
checking tmpdir.h presence... no
checking for tmpdir.h... no
checking ttyent.h usability... no
checking ttyent.h presence... no
checking for ttyent.h... no
checking ucred.h usability... no
checking ucred.h presence... no
checking for ucred.h... no
checking for unistd.h... (cached) yes
checking usersec.h usability... no
checking usersec.h presence... no
checking for usersec.h... no
checking util.h usability... no
checking util.h presence... no
checking for util.h... no
checking utime.h usability... yes
checking utime.h presence... yes
checking for utime.h... yes
checking utmp.h usability... yes
checking utmp.h presence... yes
checking for utmp.h... yes
checking utmpx.h usability... no
checking utmpx.h presence... no
checking for utmpx.h... no
checking vis.h usability... no
checking vis.h presence... no
checking for vis.h... no
checking wchar.h usability... yes
checking wchar.h presence... yes
checking for wchar.h... yes
checking for sys/audit.h... no
checking for sys/capsicum.h... no
checking for net/route.h... yes
checking for sys/sysctl.h... no
checking for lastlog.h... yes
checking for sys/ptms.h... no
checking for login_cap.h... no
checking for sys/mount.h... yes
checking for sys/un.h... yes
checking compiler and flags for sanity... configure: WARNING: cross compiling: not checking compiler sanity
checking for setsockopt... yes
checking for dirname... yes
checking libgen.h usability... yes
checking libgen.h presence... yes
checking for libgen.h... yes
checking for getspnam... no
checking for getspnam in -lgen... no
checking for library containing basename... none required
checking zlib.h usability... yes
checking zlib.h presence... yes
checking for zlib.h... yes
checking for deflate in -lz... yes
checking for possibly buggy zlib... configure: WARNING: cross compiling: not checking zlib version
checking for strcasecmp... yes
checking for utimes... yes
checking bsd/libutil.h usability... no
checking bsd/libutil.h presence... no
checking for bsd/libutil.h... no
checking libutil.h usability... no
checking libutil.h presence... no
checking for libutil.h... no
checking for library containing fmt_scaled... no
checking for library containing scan_scaled... no
checking for library containing login... no
checking for library containing logout... no
checking for library containing logwtmp... no
checking for library containing openpty... none required
checking for library containing updwtmp... no
checking for fmt_scaled... no
checking for scan_scaled... no
checking for login... no
checking for logout... no
checking for openpty... yes
checking for updwtmp... no
checking for logwtmp... no
checking for library containing inet_ntop... none required
checking for library containing gethostbyname... none required
checking for strftime... yes
checking for stdlib.h... (cached) yes
checking for GNU libc compatible malloc... no
checking for stdlib.h... (cached) yes
checking for GNU libc compatible realloc... no
checking if calloc(0, N) returns non-null... configure: WARNING: cross compiling: assuming same as malloc
no
checking for GLOB_ALTDIRFUNC support... no
checking for gl_matchc field in glob_t... yes
checking for gl_statv and GLOB_KEEPSTAT extensions for glob... no
checking whether GLOB_NOMATCH is declared... yes
checking whether VIS_ALL is declared... no
checking whether struct dirent allocates space for d_name... configure: WARNING: cross compiling: assuming BROKEN_ONE_BYTE_DIRENT_D_NAME
checking for /proc/pid/fd directory... yes
checking for Blowfish_initstate... no
checking for Blowfish_expandstate... no
checking for Blowfish_expand0state... no
checking for Blowfish_stream2word... no
checking for SHA256Update... no
checking for SHA384Update... no
checking for SHA512Update... no
checking for asprintf... yes
checking for b64_ntop... no
checking for __b64_ntop... yes
checking for b64_pton... no
checking for __b64_pton... yes
checking for bcopy... no
checking for bcrypt_pbkdf... no
checking for bindresvport_sa... no
checking for blf_enc... no
checking for bzero... no
checking for cap_rights_limit... no
checking for clock... yes
checking for closefrom... no
checking for dirfd... yes
checking for endgrent... yes
checking for err... yes
checking for errx... yes
checking for explicit_bzero... no
checking for fchmod... yes
checking for fchmodat... yes
checking for fchown... yes
checking for fchownat... yes
checking for flock... yes
checking for freeaddrinfo... yes
checking for freezero... no
checking for fstatfs... yes
checking for fstatvfs... yes
checking for futimes... yes
checking for getaddrinfo... yes
checking for getcwd... yes
checking for getgrouplist... yes
checking for getline... yes
checking for getnameinfo... yes
checking for getopt... yes
checking for getpagesize... yes
checking for getpeereid... no
checking for getpeerucred... no
checking for getpgid... yes
checking for _getpty... no
checking for getrlimit... yes
checking for getrandom... yes
checking for getsid... yes
checking for getttyent... no
checking for glob... yes
checking for group_from_gid... no
checking for inet_aton... yes
checking for inet_ntoa... yes
checking for inet_ntop... yes
checking for innetgr... no
checking for llabs... yes
checking for login_getcapbool... no
checking for md5_crypt... no
checking for memmem... yes
checking for memmove... yes
checking for memset_s... no
checking for mkdtemp... yes
checking for ngetaddrinfo... no
checking for nsleep... no
checking for ogetaddrinfo... no
checking for openlog_r... no
checking for pledge... no
checking for poll... yes
checking for prctl... yes
checking for pstat... no
checking for raise... yes
checking for readpassphrase... no
checking for reallocarray... yes
checking for recvmsg... yes
checking for recallocarray... no
checking for rresvport_af... no
checking for sendmsg... yes
checking for setdtablesize... no
checking for setegid... yes
checking for setenv... yes
checking for seteuid... yes
checking for setgroupent... no
checking for setgroups... yes
checking for setlinebuf... yes
checking for setlogin... no
checking for setpassent... no
checking for setpcred... no
checking for setproctitle... no
checking for setregid... yes
checking for setreuid... yes
checking for setrlimit... yes
checking for setsid... yes
checking for setvbuf... yes
checking for sigaction... yes
checking for sigvec... no
checking for snprintf... yes
checking for socketpair... yes
checking for statfs... yes
checking for statvfs... yes
checking for strcasestr... yes
checking for strdup... yes
checking for strerror... yes
checking for strlcat... yes
checking for strlcpy... yes
checking for strmode... no
checking for strndup... yes
checking for strnlen... yes
checking for strnvis... no
checking for strptime... yes
checking for strsignal... yes
checking for strtonum... no
checking for strtoll... yes
checking for strtoul... yes
checking for strtoull... yes
checking for swap32... no
checking for sysconf... yes
checking for tcgetpgrp... yes
checking for timingsafe_bcmp... no
checking for truncate... yes
checking for unsetenv... yes
checking for updwtmpx... no
checking for utimensat... yes
checking for user_from_uid... no
checking for usleep... yes
checking for vasprintf... yes
checking for vsnprintf... yes
checking for waitpid... yes
checking for warn... yes
checking whether bzero is declared... yes
checking for mblen... yes
checking for mbtowc... yes
checking for nl_langinfo... yes
checking for wcwidth... yes
checking for utf8 locale support... configure: WARNING: cross compiling: assuming yes
checking for library containing dlopen... none required
checking whether RTLD_NOW is declared... yes
checking for gai_strerror... yes
checking for library containing nanosleep... none required
checking for library containing clock_gettime... none required
checking whether strsep is declared... yes
checking for strsep... yes
checking whether tcsendbreak is declared... yes
checking whether h_errno is declared... yes
checking whether SHUT_RD is declared... yes
checking whether O_NONBLOCK is declared... yes
checking whether readv is declared... yes
checking whether writev is declared... yes
checking whether MAXSYMLINKS is declared... yes
checking whether offsetof is declared... yes
checking whether howmany is declared... yes
checking whether NFDBITS is declared... yes
checking for fd_mask... yes
checking for setresuid... yes
checking if setresuid seems to work... configure: WARNING: cross compiling: not checking setresuid
checking for setresgid... yes
checking if setresgid seems to work... configure: WARNING: cross compiling: not checking setresuid
checking for working fflush(NULL)... configure: WARNING: cross compiling: assuming working
checking for gettimeofday... yes
checking for time... yes
checking for endutent... yes
checking for getutent... yes
checking for getutid... no
checking for getutline... no
checking for pututline... yes
checking for setutent... yes
checking for utmpname... yes
checking for endutxent... no
checking for getutxent... no
checking for getutxid... no
checking for getutxline... no
checking for getutxuser... no
checking for pututxline... no
checking for setutxdb... no
checking for setutxent... no
checking for utmpxname... no
checking for getlastlogxbyname... no
checking for daemon... yes
checking for getpagesize... (cached) yes
checking whether snprintf correctly terminates long strings... configure: WARNING: cross compiling: Assuming working snprintf()
checking whether snprintf understands %zu... configure: WARNING: cross compiling: Assuming working snprintf()
checking whether vsnprintf returns correct values on overflow... configure: WARNING: cross compiling: Assuming working vsnprintf()
checking whether snprintf can declare const char *fmt... yes
checking whether system supports SO_PEERCRED getsockopt... yes
checking for (overly) strict mkstemp... yes
checking whether AI_NUMERICSERV is declared... yes
checking for getpgrp... yes
checking if getpgrp accepts zero args... yes
checking openssl/opensslv.h usability... yes
checking openssl/opensslv.h presence... no
configure: WARNING: openssl/opensslv.h: accepted by the compiler, rejected by the preprocessor!
configure: WARNING: openssl/opensslv.h: proceeding with the compiler's result
checking for openssl/opensslv.h... yes
checking OpenSSL header version... configure: WARNING: cross compiling: not checking
checking for OpenSSL_version... yes
checking for OpenSSL_version_num... yes
checking OpenSSL library version... configure: WARNING: cross compiling: not checking
checking whether OpenSSL's headers match the library... configure: WARNING: cross compiling: not checking
checking if programs using OpenSSL functions will link... yes
checking for BN_is_prime_ex... yes
checking for DSA_generate_parameters_ex... yes
checking for EVP_CIPHER_CTX_ctrl... yes
checking for EVP_DigestFinal_ex... yes
checking for EVP_DigestInit_ex... yes
checking for EVP_MD_CTX_cleanup... no
checking for EVP_MD_CTX_copy_ex... yes
checking for EVP_MD_CTX_init... no
checking for HMAC_CTX_init... no
checking for RSA_generate_key_ex... yes
checking for RSA_get_default_method... yes
checking for OpenSSL_add_all_algorithms... no
checking whether OpenSSL_add_all_algorithms is declared... yes
checking for OPENSSL_init_crypto... yes
checking for DH_get0_key... yes
checking for DH_get0_pqg... yes
checking for DH_set0_key... yes
checking for DH_set_length... yes
checking for DH_set0_pqg... yes
checking for DSA_get0_key... yes
checking for DSA_get0_pqg... yes
checking for DSA_set0_key... yes
checking for DSA_set0_pqg... yes
checking for DSA_SIG_get0... yes
checking for DSA_SIG_set0... yes
checking for ECDSA_SIG_get0... yes
checking for ECDSA_SIG_set0... yes
checking for EVP_CIPHER_CTX_iv... yes
checking for EVP_CIPHER_CTX_iv_noconst... yes
checking for EVP_CIPHER_CTX_get_iv... no
checking for EVP_CIPHER_CTX_set_iv... no
checking for RSA_get0_crt_params... yes
checking for RSA_get0_factors... yes
checking for RSA_get0_key... yes
checking for RSA_set0_crt_params... yes
checking for RSA_set0_factors... yes
checking for RSA_set0_key... yes
checking for RSA_meth_free... yes
checking for RSA_meth_dup... yes
checking for RSA_meth_set1_name... yes
checking for RSA_meth_get_finish... yes
checking for RSA_meth_set_priv_enc... yes
checking for RSA_meth_set_priv_dec... yes
checking for RSA_meth_set_finish... yes
checking for EVP_PKEY_get0_RSA... yes
checking for EVP_MD_CTX_new... yes
checking for EVP_MD_CTX_free... yes
checking whether OpenSSL has crippled AES support... no
checking whether OpenSSL has AES CTR via EVP... yes
checking whether OpenSSL has AES GCM via EVP... yes
checking if EVP_DigestUpdate returns an int... yes
checking for crypt... no
checking for DES_crypt... yes
checking for EVP_sha256... yes
checking for EVP_sha384... yes
checking for EVP_sha512... yes
checking for EVP_ripemd160... yes
checking whether OpenSSL has NID_X9_62_prime256v1... yes
checking whether OpenSSL has NID_secp384r1... yes
checking whether OpenSSL has NID_secp521r1... yes
checking if OpenSSL's NID_secp521r1 is functional... configure: WARNING: cross-compiling: assuming yes
checking for EC_KEY_METHOD_new... yes
checking for arc4random... yes
checking for arc4random_buf... yes
checking for arc4random_stir... no
checking for arc4random_uniform... yes
checking for ia_openinfo in -liaf... no
checking whether OpenSSL's PRNG is internally seeded... configure: WARNING: cross compiling: assuming yes
checking whether SECCOMP_MODE_FILTER is declared... yes
checking kernel for seccomp_filter support... no
checking if select works with descriptor rlimit... configure: WARNING: cross compiling: assuming yes
checking if setrlimit(RLIMIT_NOFILE,{0,0}) works... configure: WARNING: cross compiling: assuming yes
checking if setrlimit RLIMIT_FSIZE works... configure: WARNING: cross compiling: assuming yes
checking for long long... yes
checking for unsigned long long... yes
checking for long double... yes
checking size of short int... 2
checking size of int... 4
checking size of long int... 4
checking size of long long int... 8
checking for u_int type... yes
checking for intXX_t types... yes
checking for int64_t type... yes
checking for u_intXX_t types... yes
checking for u_int64_t types... yes
checking for uintXX_t types in stdint.h... yes
checking for uintXX_t types in inttypes.h... yes
checking for u_char... yes
checking for intmax_t... yes
checking for uintmax_t... yes
checking for socklen_t... yes
checking for sig_atomic_t... yes
checking for fsblkcnt_t... yes
checking for fsfilcnt_t... yes
checking for struct statfs.f_flags... yes
checking for in_addr_t... yes
checking for in_port_t... yes
checking for size_t... yes
checking for ssize_t... yes
checking for clock_t... yes
checking for sa_family_t... yes
checking for pid_t... yes
checking for mode_t... yes
checking for struct sockaddr_storage... yes
checking for struct sockaddr_in6... yes
checking for struct in6_addr... yes
checking for struct sockaddr_in6.sin6_scope_id... yes
checking for struct addrinfo... yes
checking for struct timeval... yes
checking for struct timespec... yes
configure: WARNING: cross compiling: Assuming working snprintf()
checking for ut_host field in utmp.h... yes
checking for ut_host field in utmpx.h... no
checking for syslen field in utmpx.h... no
checking for ut_pid field in utmp.h... yes
checking for ut_type field in utmp.h... yes
checking for ut_type field in utmpx.h... no
checking for ut_tv field in utmp.h... yes
checking for ut_id field in utmp.h... yes
checking for ut_id field in utmpx.h... no
checking for ut_addr field in utmp.h... yes
checking for ut_addr field in utmpx.h... no
checking for ut_addr_v6 field in utmp.h... yes
checking for ut_addr_v6 field in utmpx.h... no
checking for ut_exit field in utmp.h... yes
checking for ut_time field in utmp.h... no
checking for ut_time field in utmpx.h... no
checking for ut_tv field in utmpx.h... no
checking for struct stat.st_blksize... yes
checking for struct stat.st_mtim... yes
checking for struct stat.st_mtime... yes
checking for struct passwd.pw_gecos... yes
checking for struct passwd.pw_class... no
checking for struct passwd.pw_change... no
checking for struct passwd.pw_expire... no
checking for struct __res_state.retrans... no
checking for ss_family field in struct sockaddr_storage... yes
checking for __ss_family field in struct sockaddr_storage... no
checking for msg_accrights field in struct msghdr... no
checking if struct statvfs.f_fsid is integral type... yes
checking for msg_control field in struct msghdr... yes
checking if libc defines __progname... yes
checking whether armv7a-linux-androideabi29-clang implements __FUNCTION__... yes
checking whether armv7a-linux-androideabi29-clang implements __func__... yes
checking whether va_copy exists... yes
checking whether __va_copy exists... yes
checking whether getopt has optreset support... yes
checking if libc defines sys_errlist... no
checking if libc defines sys_nerr... no
checking for library containing getrrsetbyname... no
checking for library containing res_query... none required
checking for library containing dn_expand... none required
checking if res_query will link... yes
checking for _getshort... yes
checking for _getlong... yes
checking whether _getshort is declared... no
checking whether _getlong is declared... no
checking for HEADER.ad... yes
checking if struct __res_state _res is an extern... no
checking for xauth... /usr/bin/xauth
checking Discovering system mail directory... configure: WARNING: cross compiling: use --with-maildir=/path/to/mail
configure: WARNING: cross compiling: Disabling /dev/ptmx test
configure: WARNING: cross compiling: Disabling /dev/ptc test
checking if the systems has expire shadow information... no
configure: WARNING: cross compiling: not checking /etc/default/login
Adding /root/workspace/2openssl_for_ios_and_android/tools/../output/android/openssh-armeabi-v7a/bin to USER_PATH so scp will work
checking if we need to convert IPv4 in IPv6-mapped addresses... no (default)
checking if your system defines LASTLOG_FILE... no
checking if your system defines _PATH_LASTLOG... yes
checking if your system defines UTMP_FILE... no
checking if your system defines WTMP_FILE... no
checking if your system defines WTMPX_FILE... no
checking for struct lastlog.ll_line... yes
checking for struct utmp.ut_line... yes
checking whether BROKEN_GETADDRINFO is declared... no
configure: creating ./config.status
config.status: creating Makefile
config.status: creating buildpkg.sh
config.status: creating opensshd.init
config.status: creating openssh.xml
config.status: creating openbsd-compat/Makefile
config.status: creating openbsd-compat/regress/Makefile
config.status: creating survey.sh
config.status: creating config.h

OpenSSH has been configured with the following options:
                     User binaries: /root/workspace/2openssl_for_ios_and_android/tools/../output/android/openssh-armeabi-v7a/bin
                   System binaries: /root/workspace/2openssl_for_ios_and_android/tools/../output/android/openssh-armeabi-v7a/sbin
               Configuration files: /root/workspace/2openssl_for_ios_and_android/tools/../output/android/openssh-armeabi-v7a/etc
                   Askpass program: /root/workspace/2openssl_for_ios_and_android/tools/../output/android/openssh-armeabi-v7a/libexec/ssh-askpass
                      Manual pages: /root/workspace/2openssl_for_ios_and_android/tools/../output/android/openssh-armeabi-v7a/share/man/manX
                          PID file: /var/run
  Privilege separation chroot path: /var/empty
            sshd default user PATH: /usr/bin:/bin:/usr/sbin:/sbin:/root/workspace/2openssl_for_ios_and_android/tools/../output/android/openssh-armeabi-v7a/bin
                    Manpage format: doc
                       PAM support: no
                   OSF SIA support: no
                 KerberosV support: no
                   SELinux support: no
              MD5 password support: no
                   libedit support: no
                   libldns support: no
  Solaris process contract support: no
           Solaris project support: no
         Solaris privilege support: no
       IP address in $DISPLAY hack: no
           Translate v4 in v6 hack: no
                  BSD Auth support: no
              Random number source: OpenSSL internal ONLY
             Privsep sandbox style: rlimit

              Host: arm-unknown-linux-androideabi
          Compiler: armv7a-linux-androideabi29-clang
    Compiler flags: -march=armv7-a -mfpu=vfpv3-d16 -mfloat-abi=softfp -Wno-unused-function -fno-integrated-as -fstrict-aliasing -fPIC -DANDROID -D__ANDROID_API__=29 -Os -ffunction-sections -fdata-sections -I/root/android-ndk-r21d/toolchains/llvm/prebuilt/linux-x86_64/sysroot/usr/include -I/root/android-ndk-r21d/toolchains/llvm/prebuilt/linux-x86_64/sysroot/usr/local/include -I/root/workspace/2openssl_for_ios_and_android/tools/../output/android/openssl-armeabi-v7a/include -pipe -Wunknown-warning-option -Qunused-arguments -Wall -Wpointer-arith -Wuninitialized -Wsign-compare -Wformat-security -Wsizeof-pointer-memaccess -Wno-pointer-sign -Wno-unused-result -fno-strict-aliasing -mretpoline -D_FORTIFY_SOURCE=2 -ftrapv -fno-builtin-memset -fstack-protector-strong
Preprocessor flags: -I"${OPENSSL_OUT_DIR}" -march=armv7-a -mfpu=vfpv3-d16 -mfloat-abi=softfp -Wno-unused-function -fno-integrated-as -fstrict-aliasing -fPIC -DANDROID -D__ANDROID_API__=29 -Os -ffunction-sections -fdata-sections -I/root/android-ndk-r21d/toolchains/llvm/prebuilt/linux-x86_64/sysroot/usr/include -I/root/android-ndk-r21d/toolchains/llvm/prebuilt/linux-x86_64/sysroot/usr/local/include
      Linker flags: -L"${OPENSSL_OUT_DIR}" -march=armv7-a -mfpu=vfpv3-d16 -mfloat-abi=softfp -Wl,--fix-cortex-a8 -Wl,--gc-sections -Os -ffunction-sections -fdata-sections -L/root/android-ndk-r21d/toolchains/llvm/prebuilt/linux-x86_64/arm-linux-androideabi/lib -L/root/android-ndk-r21d/toolchains/llvm/prebuilt/linux-x86_64/sysroot/usr/lib/arm-linux-androideabi/29 -L/root/android-ndk-r21d/toolchains/llvm/prebuilt/linux-x86_64/lib -L/root/workspace/2openssl_for_ios_and_android/tools/../output/android/openssl-armeabi-v7a/lib -Wl,-z,relro -Wl,-z,now -Wl,-z,noexecstack -fstack-protector-strong
         Libraries: -lcrypto -lz

if [ -f regress/Makefile ] && [ -r regress/Makefile ]; then \
    (cd regress && make clean) \
fi
make[1]: Entering directory '/root/workspace/2openssl_for_ios_and_android/tools/openssh-8.1p1/regress'
for F in *.core actual agent-key.* authorized_keys_root authorized_keys_root.* authorized_principals_root banner.in banner.out cert_host_key* cert_user_key* copy.1 copy.2 data ed25519-agent ed25519-agent* ed25519-agent.pub ed25519 ed25519.pub empty.in expect failed-regress.log failed-ssh.log failed-sshd.log hkr.* host.ecdsa-sha2-nistp256 host.ecdsa-sha2-nistp384 host.ecdsa-sha2-nistp521 host.ssh-dss host.ssh-ed25519 host.ssh-rsa host_ca_key* host_krl_* host_revoked_* key.* key.dsa-* key.ecdsa-* key.ed25519-512 key.ed25519-512.pub key.rsa-* keys-command-args kh.* known_hosts known_hosts-cert known_hosts.* krl-* ls.copy modpipe netcat no_identity_config pidfile putty.rsa2 ready regress.log remote_pid revoked-* rsa rsa-agent rsa-agent.pub rsa.pub rsa_ssh2_cr.prv rsa_ssh2_crnl.prv scp-ssh-wrapper.exe scp-ssh-wrapper.scp setuid-allowed sftp-server.log sftp-server.sh sftp.log ssh-log-wrapper.sh ssh.log ssh-rsa_oldfmt ssh_config ssh_config.* ssh_proxy ssh_proxy_bak ssh_proxy_envpass sshd.log sshd_config sshd_config_minimal sshd_config.orig sshd_proxy sshd_proxy.* sshd_proxy_bak sshd_proxy_orig t10.out t10.out.pub t12.out t12.out.pub t2.out t3.out t6.out1 t6.out2 t7.out t7.out.pub t8.out t8.out.pub t9.out t9.out.pub testdata user_*key* user_ca* user_key*; do rm -f $F; done
rm -rf .putty
make[1]: Leaving directory '/root/workspace/2openssl_for_ios_and_android/tools/openssh-8.1p1/regress'
rm -f *.o *.a ssh sshd ssh-add ssh-keygen ssh-keyscan ssh-keysign ssh-pkcs11-helper ssh-agent scp sftp-server sftp logintest config.cache config.log
rm -f *.out core survey
rm -f regress/check-perm
rm -f regress/mkdtemp
rm -f regress/unittests/test_helper/*.a
rm -f regress/unittests/test_helper/*.o
rm -f regress/unittests/sshbuf/*.o
rm -f regress/unittests/sshbuf/test_sshbuf
rm -f regress/unittests/sshkey/*.o
rm -f regress/unittests/sshkey/test_sshkey
rm -f regress/unittests/bitmap/*.o
rm -f regress/unittests/bitmap/test_bitmap
rm -f regress/unittests/conversion/*.o
rm -f regress/unittests/conversion/test_conversion
rm -f regress/unittests/hostkeys/*.o
rm -f regress/unittests/hostkeys/test_hostkeys
rm -f regress/unittests/kex/*.o
rm -f regress/unittests/kex/test_kex
rm -f regress/unittests/match/*.o
rm -f regress/unittests/match/test_match
rm -f regress/unittests/utf8/*.o
rm -f regress/unittests/utf8/test_utf8
rm -f regress/misc/kexfuzz/*.o
rm -f regress/misc/kexfuzz/kexfuzz
(cd openbsd-compat && make clean)
make[1]: Entering directory '/root/workspace/2openssl_for_ios_and_android/tools/openssh-8.1p1/openbsd-compat'
rm -f *.o *.a core
make[1]: Leaving directory '/root/workspace/2openssl_for_ios_and_android/tools/openssh-8.1p1/openbsd-compat'
(cd openbsd-compat && make)
armv7a-linux-androideabi29-clang -march=armv7-a -mfpu=vfpv3-d16 -mfloat-abi=softfp -Wno-unused-function -fno-integrated-as -fstrict-aliasing -fPIC -DANDROID -D__ANDROID_API__=29 -Os -ffunction-sections -fdata-sections -I/root/android-ndk-r21d/toolchains/llvm/prebuilt/linux-x86_64/sysroot/usr/include -I/root/android-ndk-r21d/toolchains/llvm/prebuilt/linux-x86_64/sysroot/usr/local/include -I/root/workspace/2openssl_for_ios_and_android/tools/../output/android/openssl-armeabi-v7a/include -pipe -Wunknown-warning-option -Qunused-arguments -Wall -Wpointer-arith -Wuninitialized -Wsign-compare -Wformat-security -Wsizeof-pointer-memaccess -Wno-pointer-sign -Wno-unused-result -fno-strict-aliasing -mretpoline -D_FORTIFY_SOURCE=2 -ftrapv -fno-builtin-memset -fstack-protector-strong   -I. -I. -I"" -march=armv7-a -mfpu=vfpv3-d16 -mfloat-abi=softfp -Wno-unused-function -fno-integrated-as -fstrict-aliasing -fPIC -DANDROID -D__ANDROID_API__=29 -Os -ffunction-sections -fdata-sections -I/root/android-ndk-r21d/toolchains/llvm/prebuilt/linux-x86_64/sysroot/usr/include -I/root/android-ndk-r21d/toolchains/llvm/prebuilt/linux-x86_64/sysroot/usr/local/include -DSSHDIR=\"/root/workspace/2openssl_for_ios_and_android/tools/../output/android/openssh-armeabi-v7a/etc\" -D_PATH_SSH_PROGRAM=\"/root/workspace/2openssl_for_ios_and_android/tools/../output/android/openssh-armeabi-v7a/bin/ssh\" -D_PATH_SSH_ASKPASS_DEFAULT=\"/root/workspace/2openssl_for_ios_and_android/tools/../output/android/openssh-armeabi-v7a/libexec/ssh-askpass\" -D_PATH_SFTP_SERVER=\"/root/workspace/2openssl_for_ios_and_android/tools/../output/android/openssh-armeabi-v7a/libexec/sftp-server\" -D_PATH_SSH_KEY_SIGN=\"/root/workspace/2openssl_for_ios_and_android/tools/../output/android/openssh-armeabi-v7a/libexec/ssh-keysign\" -D_PATH_SSH_PKCS11_HELPER=\"/root/workspace/2openssl_for_ios_and_android/tools/../output/android/openssh-armeabi-v7a/libexec/ssh-pkcs11-helper\" -D_PATH_SSH_PIDDIR=\"/var/run\" -D_PATH_PRIVSEP_CHROOT_DIR=\"/var/empty\" -DHAVE_CONFIG_H -c ssh_api.c -o ssh_api.o
armv7a-linux-androideabi29-clang -march=armv7-a -mfpu=vfpv3-d16 -mfloat-abi=softfp -Wno-unused-function -fno-integrated-as -fstrict-aliasing -fPIC -DANDROID -D__ANDROID_API__=29 -Os -ffunction-sections -fdata-sections -I/root/android-ndk-r21d/toolchains/llvm/prebuilt/linux-x86_64/sysroot/usr/include -I/root/android-ndk-r21d/toolchains/llvm/prebuilt/linux-x86_64/sysroot/usr/local/include -I/root/workspace/2openssl_for_ios_and_android/tools/../output/android/openssl-armeabi-v7a/include -pipe -Wunknown-warning-option -Qunused-arguments -Wall -Wpointer-arith -Wuninitialized -Wsign-compare -Wformat-security -Wsizeof-pointer-memaccess -Wno-pointer-sign -Wno-unused-result -fno-strict-aliasing -mretpoline -D_FORTIFY_SOURCE=2 -ftrapv -fno-builtin-memset -fstack-protector-strong   -I. -I. -I"" -march=armv7-a -mfpu=vfpv3-d16 -mfloat-abi=softfp -Wno-unused-function -fno-integrated-as -fstrict-aliasing -fPIC -DANDROID -D__ANDROID_API__=29 -Os -ffunction-sections -fdata-sections -I/root/android-ndk-r21d/toolchains/llvm/prebuilt/linux-x86_64/sysroot/usr/include -I/root/android-ndk-r21d/toolchains/llvm/prebuilt/linux-x86_64/sysroot/usr/local/include -DSSHDIR=\"/root/workspace/2openssl_for_ios_and_android/tools/../output/android/openssh-armeabi-v7a/etc\" -D_PATH_SSH_PROGRAM=\"/root/workspace/2openssl_for_ios_and_android/tools/../output/android/openssh-armeabi-v7a/bin/ssh\" -D_PATH_SSH_ASKPASS_DEFAULT=\"/root/workspace/2openssl_for_ios_and_android/tools/../output/android/openssh-armeabi-v7a/libexec/ssh-askpass\" -D_PATH_SFTP_SERVER=\"/root/workspace/2openssl_for_ios_and_android/tools/../output/android/openssh-armeabi-v7a/libexec/sftp-server\" -D_PATH_SSH_KEY_SIGN=\"/root/workspace/2openssl_for_ios_and_android/tools/../output/android/openssh-armeabi-v7a/libexec/ssh-keysign\" -D_PATH_SSH_PKCS11_HELPER=\"/root/workspace/2openssl_for_ios_and_android/tools/../output/android/openssh-armeabi-v7a/libexec/ssh-pkcs11-helper\" -D_PATH_SSH_PIDDIR=\"/var/run\" -D_PATH_PRIVSEP_CHROOT_DIR=\"/var/empty\" -DHAVE_CONFIG_H -c ssherr.c -o ssherr.o
armv7a-linux-androideabi29-clang -march=armv7-a -mfpu=vfpv3-d16 -mfloat-abi=softfp -Wno-unused-function -fno-integrated-as -fstrict-aliasing -fPIC -DANDROID -D__ANDROID_API__=29 -Os -ffunction-sections -fdata-sections -I/root/android-ndk-r21d/toolchains/llvm/prebuilt/linux-x86_64/sysroot/usr/include -I/root/android-ndk-r21d/toolchains/llvm/prebuilt/linux-x86_64/sysroot/usr/local/include -I/root/workspace/2openssl_for_ios_and_android/tools/../output/android/openssl-armeabi-v7a/include -pipe -Wunknown-warning-option -Qunused-arguments -Wall -Wpointer-arith -Wuninitialized -Wsign-compare -Wformat-security -Wsizeof-pointer-memaccess -Wno-pointer-sign -Wno-unused-result -fno-strict-aliasing -mretpoline -D_FORTIFY_SOURCE=2 -ftrapv -fno-builtin-memset -fstack-protector-strong   -I. -I. -I"" -march=armv7-a -mfpu=vfpv3-d16 -mfloat-abi=softfp -Wno-unused-function -fno-integrated-as -fstrict-aliasing -fPIC -DANDROID -D__ANDROID_API__=29 -Os -ffunction-sections -fdata-sections -I/root/android-ndk-r21d/toolchains/llvm/prebuilt/linux-x86_64/sysroot/usr/include -I/root/android-ndk-r21d/toolchains/llvm/prebuilt/linux-x86_64/sysroot/usr/local/include -DSSHDIR=\"/root/workspace/2openssl_for_ios_and_android/tools/../output/android/openssh-armeabi-v7a/etc\" -D_PATH_SSH_PROGRAM=\"/root/workspace/2openssl_for_ios_and_android/tools/../output/android/openssh-armeabi-v7a/bin/ssh\" -D_PATH_SSH_ASKPASS_DEFAULT=\"/root/workspace/2openssl_for_ios_and_android/tools/../output/android/openssh-armeabi-v7a/libexec/ssh-askpass\" -D_PATH_SFTP_SERVER=\"/root/workspace/2openssl_for_ios_and_android/tools/../output/android/openssh-armeabi-v7a/libexec/sftp-server\" -D_PATH_SSH_KEY_SIGN=\"/root/workspace/2openssl_for_ios_and_android/tools/../output/android/openssh-armeabi-v7a/libexec/ssh-keysign\" -D_PATH_SSH_PKCS11_HELPER=\"/root/workspace/2openssl_for_ios_and_android/tools/../output/android/openssh-armeabi-v7a/libexec/ssh-pkcs11-helper\" -D_PATH_SSH_PIDDIR=\"/var/run\" -D_PATH_PRIVSEP_CHROOT_DIR=\"/var/empty\" -DHAVE_CONFIG_H -c sshbuf.c -o sshbuf.o
armv7a-linux-androideabi29-clang -march=armv7-a -mfpu=vfpv3-d16 -mfloat-abi=softfp -Wno-unused-function -fno-integrated-as -fstrict-aliasing -fPIC -DANDROID -D__ANDROID_API__=29 -Os -ffunction-sections -fdata-sections -I/root/android-ndk-r21d/toolchains/llvm/prebuilt/linux-x86_64/sysroot/usr/include -I/root/android-ndk-r21d/toolchains/llvm/prebuilt/linux-x86_64/sysroot/usr/local/include -I/root/workspace/2openssl_for_ios_and_android/tools/../output/android/openssl-armeabi-v7a/include -pipe -Wunknown-warning-option -Qunused-arguments -Wall -Wpointer-arith -Wuninitialized -Wsign-compare -Wformat-security -Wsizeof-pointer-memaccess -Wno-pointer-sign -Wno-unused-result -fno-strict-aliasing -mretpoline -D_FORTIFY_SOURCE=2 -ftrapv -fno-builtin-memset -fstack-protector-strong   -I. -I. -I"" -march=armv7-a -mfpu=vfpv3-d16 -mfloat-abi=softfp -Wno-unused-function -fno-integrated-as -fstrict-aliasing -fPIC -DANDROID -D__ANDROID_API__=29 -Os -ffunction-sections -fdata-sections -I/root/android-ndk-r21d/toolchains/llvm/prebuilt/linux-x86_64/sysroot/usr/include -I/root/android-ndk-r21d/toolchains/llvm/prebuilt/linux-x86_64/sysroot/usr/local/include -DSSHDIR=\"/root/workspace/2openssl_for_ios_and_android/tools/../output/android/openssh-armeabi-v7a/etc\" -D_PATH_SSH_PROGRAM=\"/root/workspace/2openssl_for_ios_and_android/tools/../output/android/openssh-armeabi-v7a/bin/ssh\" -D_PATH_SSH_ASKPASS_DEFAULT=\"/root/workspace/2openssl_for_ios_and_android/tools/../output/android/openssh-armeabi-v7a/libexec/ssh-askpass\" -D_PATH_SFTP_SERVER=\"/root/workspace/2openssl_for_ios_and_android/tools/../output/android/openssh-armeabi-v7a/libexec/sftp-server\" -D_PATH_SSH_KEY_SIGN=\"/root/workspace/2openssl_for_ios_and_android/tools/../output/android/openssh-armeabi-v7a/libexec/ssh-keysign\" -D_PATH_SSH_PKCS11_HELPER=\"/root/workspace/2openssl_for_ios_and_android/tools/../output/android/openssh-armeabi-v7a/libexec/ssh-pkcs11-helper\" -D_PATH_SSH_PIDDIR=\"/var/run\" -D_PATH_PRIVSEP_CHROOT_DIR=\"/var/empty\" -DHAVE_CONFIG_H -c sshkey.c -o sshkey.o
armv7a-linux-androideabi29-clang -march=armv7-a -mfpu=vfpv3-d16 -mfloat-abi=softfp -Wno-unused-function -fno-integrated-as -fstrict-aliasing -fPIC -DANDROID -D__ANDROID_API__=29 -Os -ffunction-sections -fdata-sections -I/root/android-ndk-r21d/toolchains/llvm/prebuilt/linux-x86_64/sysroot/usr/include -I/root/android-ndk-r21d/toolchains/llvm/prebuilt/linux-x86_64/sysroot/usr/local/include -I/root/workspace/2openssl_for_ios_and_android/tools/../output/android/openssl-armeabi-v7a/include -pipe -Wunknown-warning-option -Qunused-arguments -Wall -Wpointer-arith -Wuninitialized -Wsign-compare -Wformat-security -Wsizeof-pointer-memaccess -Wno-pointer-sign -Wno-unused-result -fno-strict-aliasing -mretpoline -D_FORTIFY_SOURCE=2 -ftrapv -fno-builtin-memset -fstack-protector-strong   -I. -I. -I"" -march=armv7-a -mfpu=vfpv3-d16 -mfloat-abi=softfp -Wno-unused-function -fno-integrated-as -fstrict-aliasing -fPIC -DANDROID -D__ANDROID_API__=29 -Os -ffunction-sections -fdata-sections -I/root/android-ndk-r21d/toolchains/llvm/prebuilt/linux-x86_64/sysroot/usr/include -I/root/android-ndk-r21d/toolchains/llvm/prebuilt/linux-x86_64/sysroot/usr/local/include -DSSHDIR=\"/root/workspace/2openssl_for_ios_and_android/tools/../output/android/openssh-armeabi-v7a/etc\" -D_PATH_SSH_PROGRAM=\"/root/workspace/2openssl_for_ios_and_android/tools/../output/android/openssh-armeabi-v7a/bin/ssh\" -D_PATH_SSH_ASKPASS_DEFAULT=\"/root/workspace/2openssl_for_ios_and_android/tools/../output/android/openssh-armeabi-v7a/libexec/ssh-askpass\" -D_PATH_SFTP_SERVER=\"/root/workspace/2openssl_for_ios_and_android/tools/../output/android/openssh-armeabi-v7a/libexec/sftp-server\" -D_PATH_SSH_KEY_SIGN=\"/root/workspace/2openssl_for_ios_and_android/tools/../output/android/openssh-armeabi-v7a/libexec/ssh-keysign\" -D_PATH_SSH_PKCS11_HELPER=\"/root/workspace/2openssl_for_ios_and_android/tools/../output/android/openssh-armeabi-v7a/libexec/ssh-pkcs11-helper\" -D_PATH_SSH_PIDDIR=\"/var/run\" -D_PATH_PRIVSEP_CHROOT_DIR=\"/var/empty\" -DHAVE_CONFIG_H -c sshbuf-getput-basic.c -o sshbuf-getput-basic.o
armv7a-linux-androideabi29-clang -march=armv7-a -mfpu=vfpv3-d16 -mfloat-abi=softfp -Wno-unused-function -fno-integrated-as -fstrict-aliasing -fPIC -DANDROID -D__ANDROID_API__=29 -Os -ffunction-sections -fdata-sections -I/root/android-ndk-r21d/toolchains/llvm/prebuilt/linux-x86_64/sysroot/usr/include -I/root/android-ndk-r21d/toolchains/llvm/prebuilt/linux-x86_64/sysroot/usr/local/include -I/root/workspace/2openssl_for_ios_and_android/tools/../output/android/openssl-armeabi-v7a/include -pipe -Wunknown-warning-option -Qunused-arguments -Wall -Wpointer-arith -Wuninitialized -Wsign-compare -Wformat-security -Wsizeof-pointer-memaccess -Wno-pointer-sign -Wno-unused-result -fno-strict-aliasing -mretpoline -D_FORTIFY_SOURCE=2 -ftrapv -fno-builtin-memset -fstack-protector-strong   -I. -I. -I"" -march=armv7-a -mfpu=vfpv3-d16 -mfloat-abi=softfp -Wno-unused-function -fno-integrated-as -fstrict-aliasing -fPIC -DANDROID -D__ANDROID_API__=29 -Os -ffunction-sections -fdata-sections -I/root/android-ndk-r21d/toolchains/llvm/prebuilt/linux-x86_64/sysroot/usr/include -I/root/android-ndk-r21d/toolchains/llvm/prebuilt/linux-x86_64/sysroot/usr/local/include -DSSHDIR=\"/root/workspace/2openssl_for_ios_and_android/tools/../output/android/openssh-armeabi-v7a/etc\" -D_PATH_SSH_PROGRAM=\"/root/workspace/2openssl_for_ios_and_android/tools/../output/android/openssh-armeabi-v7a/bin/ssh\" -D_PATH_SSH_ASKPASS_DEFAULT=\"/root/workspace/2openssl_for_ios_and_android/tools/../output/android/openssh-armeabi-v7a/libexec/ssh-askpass\" -D_PATH_SFTP_SERVER=\"/root/workspace/2openssl_for_ios_and_android/tools/../output/android/openssh-armeabi-v7a/libexec/sftp-server\" -D_PATH_SSH_KEY_SIGN=\"/root/workspace/2openssl_for_ios_and_android/tools/../output/android/openssh-armeabi-v7a/libexec/ssh-keysign\" -D_PATH_SSH_PKCS11_HELPER=\"/root/workspace/2openssl_for_ios_and_android/tools/../output/android/openssh-armeabi-v7a/libexec/ssh-pkcs11-helper\" -D_PATH_SSH_PIDDIR=\"/var/run\" -D_PATH_PRIVSEP_CHROOT_DIR=\"/var/empty\" -DHAVE_CONFIG_H -c sshbuf-misc.c -o sshbuf-misc.o
armv7a-linux-androideabi29-clang -march=armv7-a -mfpu=vfpv3-d16 -mfloat-abi=softfp -Wno-unused-function -fno-integrated-as -fstrict-aliasing -fPIC -DANDROID -D__ANDROID_API__=29 -Os -ffunction-sections -fdata-sections -I/root/android-ndk-r21d/toolchains/llvm/prebuilt/linux-x86_64/sysroot/usr/include -I/root/android-ndk-r21d/toolchains/llvm/prebuilt/linux-x86_64/sysroot/usr/local/include -I/root/workspace/2openssl_for_ios_and_android/tools/../output/android/openssl-armeabi-v7a/include -pipe -Wunknown-warning-option -Qunused-arguments -Wall -Wpointer-arith -Wuninitialized -Wsign-compare -Wformat-security -Wsizeof-pointer-memaccess -Wno-pointer-sign -Wno-unused-result -fno-strict-aliasing -mretpoline -D_FORTIFY_SOURCE=2 -ftrapv -fno-builtin-memset -fstack-protector-strong   -I. -I. -I"" -march=armv7-a -mfpu=vfpv3-d16 -mfloat-abi=softfp -Wno-unused-function -fno-integrated-as -fstrict-aliasing -fPIC -DANDROID -D__ANDROID_API__=29 -Os -ffunction-sections -fdata-sections -I/root/android-ndk-r21d/toolchains/llvm/prebuilt/linux-x86_64/sysroot/usr/include -I/root/android-ndk-r21d/toolchains/llvm/prebuilt/linux-x86_64/sysroot/usr/local/include -DSSHDIR=\"/root/workspace/2openssl_for_ios_and_android/tools/../output/android/openssh-armeabi-v7a/etc\" -D_PATH_SSH_PROGRAM=\"/root/workspace/2openssl_for_ios_and_android/tools/../output/android/openssh-armeabi-v7a/bin/ssh\" -D_PATH_SSH_ASKPASS_DEFAULT=\"/root/workspace/2openssl_for_ios_and_android/tools/../output/android/openssh-armeabi-v7a/libexec/ssh-askpass\" -D_PATH_SFTP_SERVER=\"/root/workspace/2openssl_for_ios_and_android/tools/../output/android/openssh-armeabi-v7a/libexec/sftp-server\" -D_PATH_SSH_KEY_SIGN=\"/root/workspace/2openssl_for_ios_and_android/tools/../output/android/openssh-armeabi-v7a/libexec/ssh-keysign\" -D_PATH_SSH_PKCS11_HELPER=\"/root/workspace/2openssl_for_ios_and_android/tools/../output/android/openssh-armeabi-v7a/libexec/ssh-pkcs11-helper\" -D_PATH_SSH_PIDDIR=\"/var/run\" -D_PATH_PRIVSEP_CHROOT_DIR=\"/var/empty\" -DHAVE_CONFIG_H -c sshbuf-getput-crypto.c -o sshbuf-getput-crypto.o
armv7a-linux-androideabi29-clang -march=armv7-a -mfpu=vfpv3-d16 -mfloat-abi=softfp -Wno-unused-function -fno-integrated-as -fstrict-aliasing -fPIC -DANDROID -D__ANDROID_API__=29 -Os -ffunction-sections -fdata-sections -I/root/android-ndk-r21d/toolchains/llvm/prebuilt/linux-x86_64/sysroot/usr/include -I/root/android-ndk-r21d/toolchains/llvm/prebuilt/linux-x86_64/sysroot/usr/local/include -I/root/workspace/2openssl_for_ios_and_android/tools/../output/android/openssl-armeabi-v7a/include -pipe -Wunknown-warning-option -Qunused-arguments -Wall -Wpointer-arith -Wuninitialized -Wsign-compare -Wformat-security -Wsizeof-pointer-memaccess -Wno-pointer-sign -Wno-unused-result -fno-strict-aliasing -mretpoline -D_FORTIFY_SOURCE=2 -ftrapv -fno-builtin-memset -fstack-protector-strong   -I. -I. -I"" -march=armv7-a -mfpu=vfpv3-d16 -mfloat-abi=softfp -Wno-unused-function -fno-integrated-as -fstrict-aliasing -fPIC -DANDROID -D__ANDROID_API__=29 -Os -ffunction-sections -fdata-sections -I/root/android-ndk-r21d/toolchains/llvm/prebuilt/linux-x86_64/sysroot/usr/include -I/root/android-ndk-r21d/toolchains/llvm/prebuilt/linux-x86_64/sysroot/usr/local/include -DSSHDIR=\"/root/workspace/2openssl_for_ios_and_android/tools/../output/android/openssh-armeabi-v7a/etc\" -D_PATH_SSH_PROGRAM=\"/root/workspace/2openssl_for_ios_and_android/tools/../output/android/openssh-armeabi-v7a/bin/ssh\" -D_PATH_SSH_ASKPASS_DEFAULT=\"/root/workspace/2openssl_for_ios_and_android/tools/../output/android/openssh-armeabi-v7a/libexec/ssh-askpass\" -D_PATH_SFTP_SERVER=\"/root/workspace/2openssl_for_ios_and_android/tools/../output/android/openssh-armeabi-v7a/libexec/sftp-server\" -D_PATH_SSH_KEY_SIGN=\"/root/workspace/2openssl_for_ios_and_android/tools/../output/android/openssh-armeabi-v7a/libexec/ssh-keysign\" -D_PATH_SSH_PKCS11_HELPER=\"/root/workspace/2openssl_for_ios_and_android/tools/../output/android/openssh-armeabi-v7a/libexec/ssh-pkcs11-helper\" -D_PATH_SSH_PIDDIR=\"/var/run\" -D_PATH_PRIVSEP_CHROOT_DIR=\"/var/empty\" -DHAVE_CONFIG_H -c krl.c -o krl.o
make[1]: Entering directory '/root/workspace/2openssl_for_ios_and_android/tools/openssh-8.1p1/openbsd-compat'
armv7a-linux-androideabi29-clang -march=armv7-a -mfpu=vfpv3-d16 -mfloat-abi=softfp -Wno-unused-function -fno-integrated-as -fstrict-aliasing -fPIC -DANDROID -D__ANDROID_API__=29 -Os -ffunction-sections -fdata-sections -I/root/android-ndk-r21d/toolchains/llvm/prebuilt/linux-x86_64/sysroot/usr/include -I/root/android-ndk-r21d/toolchains/llvm/prebuilt/linux-x86_64/sysroot/usr/local/include -I/root/workspace/2openssl_for_ios_and_android/tools/../output/android/openssl-armeabi-v7a/include -pipe -Wunknown-warning-option -Qunused-arguments -Wall -Wpointer-arith -Wuninitialized -Wsign-compare -Wformat-security -Wsizeof-pointer-memaccess -Wno-pointer-sign -Wno-unused-result -fno-strict-aliasing -mretpoline -D_FORTIFY_SOURCE=2 -ftrapv -fno-builtin-memset -fstack-protector-strong   -I. -I.. -I. -I./.. -I"" -march=armv7-a -mfpu=vfpv3-d16 -mfloat-abi=softfp -Wno-unused-function -fno-integrated-as -fstrict-aliasing -fPIC -DANDROID -D__ANDROID_API__=29 -Os -ffunction-sections -fdata-sections -I/root/android-ndk-r21d/toolchains/llvm/prebuilt/linux-x86_64/sysroot/usr/include -I/root/android-ndk-r21d/toolchains/llvm/prebuilt/linux-x86_64/sysroot/usr/local/include -DHAVE_CONFIG_H -c arc4random.c
armv7a-linux-androideabi29-clang -march=armv7-a -mfpu=vfpv3-d16 -mfloat-abi=softfp -Wno-unused-function -fno-integrated-as -fstrict-aliasing -fPIC -DANDROID -D__ANDROID_API__=29 -Os -ffunction-sections -fdata-sections -I/root/android-ndk-r21d/toolchains/llvm/prebuilt/linux-x86_64/sysroot/usr/include -I/root/android-ndk-r21d/toolchains/llvm/prebuilt/linux-x86_64/sysroot/usr/local/include -I/root/workspace/2openssl_for_ios_and_android/tools/../output/android/openssl-armeabi-v7a/include -pipe -Wunknown-warning-option -Qunused-arguments -Wall -Wpointer-arith -Wuninitialized -Wsign-compare -Wformat-security -Wsizeof-pointer-memaccess -Wno-pointer-sign -Wno-unused-result -fno-strict-aliasing -mretpoline -D_FORTIFY_SOURCE=2 -ftrapv -fno-builtin-memset -fstack-protector-strong   -I. -I. -I"" -march=armv7-a -mfpu=vfpv3-d16 -mfloat-abi=softfp -Wno-unused-function -fno-integrated-as -fstrict-aliasing -fPIC -DANDROID -D__ANDROID_API__=29 -Os -ffunction-sections -fdata-sections -I/root/android-ndk-r21d/toolchains/llvm/prebuilt/linux-x86_64/sysroot/usr/include -I/root/android-ndk-r21d/toolchains/llvm/prebuilt/linux-x86_64/sysroot/usr/local/include -DSSHDIR=\"/root/workspace/2openssl_for_ios_and_android/tools/../output/android/openssh-armeabi-v7a/etc\" -D_PATH_SSH_PROGRAM=\"/root/workspace/2openssl_for_ios_and_android/tools/../output/android/openssh-armeabi-v7a/bin/ssh\" -D_PATH_SSH_ASKPASS_DEFAULT=\"/root/workspace/2openssl_for_ios_and_android/tools/../output/android/openssh-armeabi-v7a/libexec/ssh-askpass\" -D_PATH_SFTP_SERVER=\"/root/workspace/2openssl_for_ios_and_android/tools/../output/android/openssh-armeabi-v7a/libexec/sftp-server\" -D_PATH_SSH_KEY_SIGN=\"/root/workspace/2openssl_for_ios_and_android/tools/../output/android/openssh-armeabi-v7a/libexec/ssh-keysign\" -D_PATH_SSH_PKCS11_HELPER=\"/root/workspace/2openssl_for_ios_and_android/tools/../output/android/openssh-armeabi-v7a/libexec/ssh-pkcs11-helper\" -D_PATH_SSH_PIDDIR=\"/var/run\" -D_PATH_PRIVSEP_CHROOT_DIR=\"/var/empty\" -DHAVE_CONFIG_H -c bitmap.c -o bitmap.o
armv7a-linux-androideabi29-clang -march=armv7-a -mfpu=vfpv3-d16 -mfloat-abi=softfp -Wno-unused-function -fno-integrated-as -fstrict-aliasing -fPIC -DANDROID -D__ANDROID_API__=29 -Os -ffunction-sections -fdata-sections -I/root/android-ndk-r21d/toolchains/llvm/prebuilt/linux-x86_64/sysroot/usr/include -I/root/android-ndk-r21d/toolchains/llvm/prebuilt/linux-x86_64/sysroot/usr/local/include -I/root/workspace/2openssl_for_ios_and_android/tools/../output/android/openssl-armeabi-v7a/include -pipe -Wunknown-warning-option -Qunused-arguments -Wall -Wpointer-arith -Wuninitialized -Wsign-compare -Wformat-security -Wsizeof-pointer-memaccess -Wno-pointer-sign -Wno-unused-result -fno-strict-aliasing -mretpoline -D_FORTIFY_SOURCE=2 -ftrapv -fno-builtin-memset -fstack-protector-strong   -I. -I. -I"" -march=armv7-a -mfpu=vfpv3-d16 -mfloat-abi=softfp -Wno-unused-function -fno-integrated-as -fstrict-aliasing -fPIC -DANDROID -D__ANDROID_API__=29 -Os -ffunction-sections -fdata-sections -I/root/android-ndk-r21d/toolchains/llvm/prebuilt/linux-x86_64/sysroot/usr/include -I/root/android-ndk-r21d/toolchains/llvm/prebuilt/linux-x86_64/sysroot/usr/local/include -DSSHDIR=\"/root/workspace/2openssl_for_ios_and_android/tools/../output/android/openssh-armeabi-v7a/etc\" -D_PATH_SSH_PROGRAM=\"/root/workspace/2openssl_for_ios_and_android/tools/../output/android/openssh-armeabi-v7a/bin/ssh\" -D_PATH_SSH_ASKPASS_DEFAULT=\"/root/workspace/2openssl_for_ios_and_android/tools/../output/android/openssh-armeabi-v7a/libexec/ssh-askpass\" -D_PATH_SFTP_SERVER=\"/root/workspace/2openssl_for_ios_and_android/tools/../output/android/openssh-armeabi-v7a/libexec/sftp-server\" -D_PATH_SSH_KEY_SIGN=\"/root/workspace/2openssl_for_ios_and_android/tools/../output/android/openssh-armeabi-v7a/libexec/ssh-keysign\" -D_PATH_SSH_PKCS11_HELPER=\"/root/workspace/2openssl_for_ios_and_android/tools/../output/android/openssh-armeabi-v7a/libexec/ssh-pkcs11-helper\" -D_PATH_SSH_PIDDIR=\"/var/run\" -D_PATH_PRIVSEP_CHROOT_DIR=\"/var/empty\" -DHAVE_CONFIG_H -c ssh-xmss.c -o ssh-xmss.o
armv7a-linux-androideabi29-clang -march=armv7-a -mfpu=vfpv3-d16 -mfloat-abi=softfp -Wno-unused-function -fno-integrated-as -fstrict-aliasing -fPIC -DANDROID -D__ANDROID_API__=29 -Os -ffunction-sections -fdata-sections -I/root/android-ndk-r21d/toolchains/llvm/prebuilt/linux-x86_64/sysroot/usr/include -I/root/android-ndk-r21d/toolchains/llvm/prebuilt/linux-x86_64/sysroot/usr/local/include -I/root/workspace/2openssl_for_ios_and_android/tools/../output/android/openssl-armeabi-v7a/include -pipe -Wunknown-warning-option -Qunused-arguments -Wall -Wpointer-arith -Wuninitialized -Wsign-compare -Wformat-security -Wsizeof-pointer-memaccess -Wno-pointer-sign -Wno-unused-result -fno-strict-aliasing -mretpoline -D_FORTIFY_SOURCE=2 -ftrapv -fno-builtin-memset -fstack-protector-strong   -I. -I.. -I. -I./.. -I"" -march=armv7-a -mfpu=vfpv3-d16 -mfloat-abi=softfp -Wno-unused-function -fno-integrated-as -fstrict-aliasing -fPIC -DANDROID -D__ANDROID_API__=29 -Os -ffunction-sections -fdata-sections -I/root/android-ndk-r21d/toolchains/llvm/prebuilt/linux-x86_64/sysroot/usr/include -I/root/android-ndk-r21d/toolchains/llvm/prebuilt/linux-x86_64/sysroot/usr/local/include -DHAVE_CONFIG_H -c bsd-asprintf.c
armv7a-linux-androideabi29-clang -march=armv7-a -mfpu=vfpv3-d16 -mfloat-abi=softfp -Wno-unused-function -fno-integrated-as -fstrict-aliasing -fPIC -DANDROID -D__ANDROID_API__=29 -Os -ffunction-sections -fdata-sections -I/root/android-ndk-r21d/toolchains/llvm/prebuilt/linux-x86_64/sysroot/usr/include -I/root/android-ndk-r21d/toolchains/llvm/prebuilt/linux-x86_64/sysroot/usr/local/include -I/root/workspace/2openssl_for_ios_and_android/tools/../output/android/openssl-armeabi-v7a/include -pipe -Wunknown-warning-option -Qunused-arguments -Wall -Wpointer-arith -Wuninitialized -Wsign-compare -Wformat-security -Wsizeof-pointer-memaccess -Wno-pointer-sign -Wno-unused-result -fno-strict-aliasing -mretpoline -D_FORTIFY_SOURCE=2 -ftrapv -fno-builtin-memset -fstack-protector-strong   -I. -I.. -I. -I./.. -I"" -march=armv7-a -mfpu=vfpv3-d16 -mfloat-abi=softfp -Wno-unused-function -fno-integrated-as -fstrict-aliasing -fPIC -DANDROID -D__ANDROID_API__=29 -Os -ffunction-sections -fdata-sections -I/root/android-ndk-r21d/toolchains/llvm/prebuilt/linux-x86_64/sysroot/usr/include -I/root/android-ndk-r21d/toolchains/llvm/prebuilt/linux-x86_64/sysroot/usr/local/include -DHAVE_CONFIG_H -c bsd-closefrom.c
In file included from arc4random.c:34:
/root/android-ndk-r21d/toolchains/llvm/prebuilt/linux-x86_64/sysroot/usr/include/unistd.h:107:20: error: expected ')'
    __attribute__((__sentinel__(1)));
                   ^
In file included from krl.c:31:
/root/android-ndk-r21d/toolchains/llvm/prebuilt/linux-x86_64/sysroot/usr/include/unistd.h:107:20: error: expected ')'
    __attribute__((__sentinel__(1)));
                   ^
armv7a-linux-androideabi29-clang -march=armv7-a -mfpu=vfpv3-d16 -mfloat-abi=softfp -Wno-unused-function -fno-integrated-as -fstrict-aliasing -fPIC -DANDROID -D__ANDROID_API__=29 -Os -ffunction-sections -fdata-sections -I/root/android-ndk-r21d/toolchains/llvm/prebuilt/linux-x86_64/sysroot/usr/include -I/root/android-ndk-r21d/toolchains/llvm/prebuilt/linux-x86_64/sysroot/usr/local/include -I/root/workspace/2openssl_for_ios_and_android/tools/../output/android/openssl-armeabi-v7a/include -pipe -Wunknown-warning-option -Qunused-arguments -Wall -Wpointer-arith -Wuninitialized -Wsign-compare -Wformat-security -Wsizeof-pointer-memaccess -Wno-pointer-sign -Wno-unused-result -fno-strict-aliasing -mretpoline -D_FORTIFY_SOURCE=2 -ftrapv -fno-builtin-memset -fstack-protector-strong   -I. -I.. -I. -I./.. -I"" -march=armv7-a -mfpu=vfpv3-d16 -mfloat-abi=softfp -Wno-unused-function -fno-integrated-as -fstrict-aliasing -fPIC -DANDROID -D__ANDROID_API__=29 -Os -ffunction-sections -fdata-sections -I/root/android-ndk-r21d/toolchains/llvm/prebuilt/linux-x86_64/sysroot/usr/include -I/root/android-ndk-r21d/toolchains/llvm/prebuilt/linux-x86_64/sysroot/usr/local/include -DHAVE_CONFIG_H -c bsd-cygwin_util.c
1 error generated.
make[1]: *** [Makefile:99: arc4random.o] Error 1
make[1]: *** Waiting for unfinished jobs....
armv7a-linux-androideabi29-clang -march=armv7-a -mfpu=vfpv3-d16 -mfloat-abi=softfp -Wno-unused-function -fno-integrated-as -fstrict-aliasing -fPIC -DANDROID -D__ANDROID_API__=29 -Os -ffunction-sections -fdata-sections -I/root/android-ndk-r21d/toolchains/llvm/prebuilt/linux-x86_64/sysroot/usr/include -I/root/android-ndk-r21d/toolchains/llvm/prebuilt/linux-x86_64/sysroot/usr/local/include -I/root/workspace/2openssl_for_ios_and_android/tools/../output/android/openssl-armeabi-v7a/include -pipe -Wunknown-warning-option -Qunused-arguments -Wall -Wpointer-arith -Wuninitialized -Wsign-compare -Wformat-security -Wsizeof-pointer-memaccess -Wno-pointer-sign -Wno-unused-result -fno-strict-aliasing -mretpoline -D_FORTIFY_SOURCE=2 -ftrapv -fno-builtin-memset -fstack-protector-strong   -I. -I. -I"" -march=armv7-a -mfpu=vfpv3-d16 -mfloat-abi=softfp -Wno-unused-function -fno-integrated-as -fstrict-aliasing -fPIC -DANDROID -D__ANDROID_API__=29 -Os -ffunction-sections -fdata-sections -I/root/android-ndk-r21d/toolchains/llvm/prebuilt/linux-x86_64/sysroot/usr/include -I/root/android-ndk-r21d/toolchains/llvm/prebuilt/linux-x86_64/sysroot/usr/local/include -DSSHDIR=\"/root/workspace/2openssl_for_ios_and_android/tools/../output/android/openssh-armeabi-v7a/etc\" -D_PATH_SSH_PROGRAM=\"/root/workspace/2openssl_for_ios_and_android/tools/../output/android/openssh-armeabi-v7a/bin/ssh\" -D_PATH_SSH_ASKPASS_DEFAULT=\"/root/workspace/2openssl_for_ios_and_android/tools/../output/android/openssh-armeabi-v7a/libexec/ssh-askpass\" -D_PATH_SFTP_SERVER=\"/root/workspace/2openssl_for_ios_and_android/tools/../output/android/openssh-armeabi-v7a/libexec/sftp-server\" -D_PATH_SSH_KEY_SIGN=\"/root/workspace/2openssl_for_ios_and_android/tools/../output/android/openssh-armeabi-v7a/libexec/ssh-keysign\" -D_PATH_SSH_PKCS11_HELPER=\"/root/workspace/2openssl_for_ios_and_android/tools/../output/android/openssh-armeabi-v7a/libexec/ssh-pkcs11-helper\" -D_PATH_SSH_PIDDIR=\"/var/run\" -D_PATH_PRIVSEP_CHROOT_DIR=\"/var/empty\" -DHAVE_CONFIG_H -c sshkey-xmss.c -o sshkey-xmss.o
armv7a-linux-androideabi29-clang -march=armv7-a -mfpu=vfpv3-d16 -mfloat-abi=softfp -Wno-unused-function -fno-integrated-as -fstrict-aliasing -fPIC -DANDROID -D__ANDROID_API__=29 -Os -ffunction-sections -fdata-sections -I/root/android-ndk-r21d/toolchains/llvm/prebuilt/linux-x86_64/sysroot/usr/include -I/root/android-ndk-r21d/toolchains/llvm/prebuilt/linux-x86_64/sysroot/usr/local/include -I/root/workspace/2openssl_for_ios_and_android/tools/../output/android/openssl-armeabi-v7a/include -pipe -Wunknown-warning-option -Qunused-arguments -Wall -Wpointer-arith -Wuninitialized -Wsign-compare -Wformat-security -Wsizeof-pointer-memaccess -Wno-pointer-sign -Wno-unused-result -fno-strict-aliasing -mretpoline -D_FORTIFY_SOURCE=2 -ftrapv -fno-builtin-memset -fstack-protector-strong   -I. -I. -I"" -march=armv7-a -mfpu=vfpv3-d16 -mfloat-abi=softfp -Wno-unused-function -fno-integrated-as -fstrict-aliasing -fPIC -DANDROID -D__ANDROID_API__=29 -Os -ffunction-sections -fdata-sections -I/root/android-ndk-r21d/toolchains/llvm/prebuilt/linux-x86_64/sysroot/usr/include -I/root/android-ndk-r21d/toolchains/llvm/prebuilt/linux-x86_64/sysroot/usr/local/include -DSSHDIR=\"/root/workspace/2openssl_for_ios_and_android/tools/../output/android/openssh-armeabi-v7a/etc\" -D_PATH_SSH_PROGRAM=\"/root/workspace/2openssl_for_ios_and_android/tools/../output/android/openssh-armeabi-v7a/bin/ssh\" -D_PATH_SSH_ASKPASS_DEFAULT=\"/root/workspace/2openssl_for_ios_and_android/tools/../output/android/openssh-armeabi-v7a/libexec/ssh-askpass\" -D_PATH_SFTP_SERVER=\"/root/workspace/2openssl_for_ios_and_android/tools/../output/android/openssh-armeabi-v7a/libexec/sftp-server\" -D_PATH_SSH_KEY_SIGN=\"/root/workspace/2openssl_for_ios_and_android/tools/../output/android/openssh-armeabi-v7a/libexec/ssh-keysign\" -D_PATH_SSH_PKCS11_HELPER=\"/root/workspace/2openssl_for_ios_and_android/tools/../output/android/openssh-armeabi-v7a/libexec/ssh-pkcs11-helper\" -D_PATH_SSH_PIDDIR=\"/var/run\" -D_PATH_PRIVSEP_CHROOT_DIR=\"/var/empty\" -DHAVE_CONFIG_H -c xmss_commons.c -o xmss_commons.o
In file included from bsd-closefrom.c:23:
/root/android-ndk-r21d/toolchains/llvm/prebuilt/linux-x86_64/sysroot/usr/include/unistd.h:107:20: error: expected ')'
    __attribute__((__sentinel__(1)));
                   ^
armv7a-linux-androideabi29-clang -march=armv7-a -mfpu=vfpv3-d16 -mfloat-abi=softfp -Wno-unused-function -fno-integrated-as -fstrict-aliasing -fPIC -DANDROID -D__ANDROID_API__=29 -Os -ffunction-sections -fdata-sections -I/root/android-ndk-r21d/toolchains/llvm/prebuilt/linux-x86_64/sysroot/usr/include -I/root/android-ndk-r21d/toolchains/llvm/prebuilt/linux-x86_64/sysroot/usr/local/include -I/root/workspace/2openssl_for_ios_and_android/tools/../output/android/openssl-armeabi-v7a/include -pipe -Wunknown-warning-option -Qunused-arguments -Wall -Wpointer-arith -Wuninitialized -Wsign-compare -Wformat-security -Wsizeof-pointer-memaccess -Wno-pointer-sign -Wno-unused-result -fno-strict-aliasing -mretpoline -D_FORTIFY_SOURCE=2 -ftrapv -fno-builtin-memset -fstack-protector-strong   -I. -I. -I"" -march=armv7-a -mfpu=vfpv3-d16 -mfloat-abi=softfp -Wno-unused-function -fno-integrated-as -fstrict-aliasing -fPIC -DANDROID -D__ANDROID_API__=29 -Os -ffunction-sections -fdata-sections -I/root/android-ndk-r21d/toolchains/llvm/prebuilt/linux-x86_64/sysroot/usr/include -I/root/android-ndk-r21d/toolchains/llvm/prebuilt/linux-x86_64/sysroot/usr/local/include -DSSHDIR=\"/root/workspace/2openssl_for_ios_and_android/tools/../output/android/openssh-armeabi-v7a/etc\" -D_PATH_SSH_PROGRAM=\"/root/workspace/2openssl_for_ios_and_android/tools/../output/android/openssh-armeabi-v7a/bin/ssh\" -D_PATH_SSH_ASKPASS_DEFAULT=\"/root/workspace/2openssl_for_ios_and_android/tools/../output/android/openssh-armeabi-v7a/libexec/ssh-askpass\" -D_PATH_SFTP_SERVER=\"/root/workspace/2openssl_for_ios_and_android/tools/../output/android/openssh-armeabi-v7a/libexec/sftp-server\" -D_PATH_SSH_KEY_SIGN=\"/root/workspace/2openssl_for_ios_and_android/tools/../output/android/openssh-armeabi-v7a/libexec/ssh-keysign\" -D_PATH_SSH_PKCS11_HELPER=\"/root/workspace/2openssl_for_ios_and_android/tools/../output/android/openssh-armeabi-v7a/libexec/ssh-pkcs11-helper\" -D_PATH_SSH_PIDDIR=\"/var/run\" -D_PATH_PRIVSEP_CHROOT_DIR=\"/var/empty\" -DHAVE_CONFIG_H -c xmss_fast.c -o xmss_fast.o
1 error generated.
make[1]: *** [Makefile:99: bsd-closefrom.o] Error 1
armv7a-linux-androideabi29-clang -march=armv7-a -mfpu=vfpv3-d16 -mfloat-abi=softfp -Wno-unused-function -fno-integrated-as -fstrict-aliasing -fPIC -DANDROID -D__ANDROID_API__=29 -Os -ffunction-sections -fdata-sections -I/root/android-ndk-r21d/toolchains/llvm/prebuilt/linux-x86_64/sysroot/usr/include -I/root/android-ndk-r21d/toolchains/llvm/prebuilt/linux-x86_64/sysroot/usr/local/include -I/root/workspace/2openssl_for_ios_and_android/tools/../output/android/openssl-armeabi-v7a/include -pipe -Wunknown-warning-option -Qunused-arguments -Wall -Wpointer-arith -Wuninitialized -Wsign-compare -Wformat-security -Wsizeof-pointer-memaccess -Wno-pointer-sign -Wno-unused-result -fno-strict-aliasing -mretpoline -D_FORTIFY_SOURCE=2 -ftrapv -fno-builtin-memset -fstack-protector-strong   -I. -I. -I"" -march=armv7-a -mfpu=vfpv3-d16 -mfloat-abi=softfp -Wno-unused-function -fno-integrated-as -fstrict-aliasing -fPIC -DANDROID -D__ANDROID_API__=29 -Os -ffunction-sections -fdata-sections -I/root/android-ndk-r21d/toolchains/llvm/prebuilt/linux-x86_64/sysroot/usr/include -I/root/android-ndk-r21d/toolchains/llvm/prebuilt/linux-x86_64/sysroot/usr/local/include -DSSHDIR=\"/root/workspace/2openssl_for_ios_and_android/tools/../output/android/openssh-armeabi-v7a/etc\" -D_PATH_SSH_PROGRAM=\"/root/workspace/2openssl_for_ios_and_android/tools/../output/android/openssh-armeabi-v7a/bin/ssh\" -D_PATH_SSH_ASKPASS_DEFAULT=\"/root/workspace/2openssl_for_ios_and_android/tools/../output/android/openssh-armeabi-v7a/libexec/ssh-askpass\" -D_PATH_SFTP_SERVER=\"/root/workspace/2openssl_for_ios_and_android/tools/../output/android/openssh-armeabi-v7a/libexec/sftp-server\" -D_PATH_SSH_KEY_SIGN=\"/root/workspace/2openssl_for_ios_and_android/tools/../output/android/openssh-armeabi-v7a/libexec/ssh-keysign\" -D_PATH_SSH_PKCS11_HELPER=\"/root/workspace/2openssl_for_ios_and_android/tools/../output/android/openssh-armeabi-v7a/libexec/ssh-pkcs11-helper\" -D_PATH_SSH_PIDDIR=\"/var/run\" -D_PATH_PRIVSEP_CHROOT_DIR=\"/var/empty\" -DHAVE_CONFIG_H -c xmss_hash.c -o xmss_hash.o
armv7a-linux-androideabi29-clang -march=armv7-a -mfpu=vfpv3-d16 -mfloat-abi=softfp -Wno-unused-function -fno-integrated-as -fstrict-aliasing -fPIC -DANDROID -D__ANDROID_API__=29 -Os -ffunction-sections -fdata-sections -I/root/android-ndk-r21d/toolchains/llvm/prebuilt/linux-x86_64/sysroot/usr/include -I/root/android-ndk-r21d/toolchains/llvm/prebuilt/linux-x86_64/sysroot/usr/local/include -I/root/workspace/2openssl_for_ios_and_android/tools/../output/android/openssl-armeabi-v7a/include -pipe -Wunknown-warning-option -Qunused-arguments -Wall -Wpointer-arith -Wuninitialized -Wsign-compare -Wformat-security -Wsizeof-pointer-memaccess -Wno-pointer-sign -Wno-unused-result -fno-strict-aliasing -mretpoline -D_FORTIFY_SOURCE=2 -ftrapv -fno-builtin-memset -fstack-protector-strong   -I. -I. -I"" -march=armv7-a -mfpu=vfpv3-d16 -mfloat-abi=softfp -Wno-unused-function -fno-integrated-as -fstrict-aliasing -fPIC -DANDROID -D__ANDROID_API__=29 -Os -ffunction-sections -fdata-sections -I/root/android-ndk-r21d/toolchains/llvm/prebuilt/linux-x86_64/sysroot/usr/include -I/root/android-ndk-r21d/toolchains/llvm/prebuilt/linux-x86_64/sysroot/usr/local/include -DSSHDIR=\"/root/workspace/2openssl_for_ios_and_android/tools/../output/android/openssh-armeabi-v7a/etc\" -D_PATH_SSH_PROGRAM=\"/root/workspace/2openssl_for_ios_and_android/tools/../output/android/openssh-armeabi-v7a/bin/ssh\" -D_PATH_SSH_ASKPASS_DEFAULT=\"/root/workspace/2openssl_for_ios_and_android/tools/../output/android/openssh-armeabi-v7a/libexec/ssh-askpass\" -D_PATH_SFTP_SERVER=\"/root/workspace/2openssl_for_ios_and_android/tools/../output/android/openssh-armeabi-v7a/libexec/sftp-server\" -D_PATH_SSH_KEY_SIGN=\"/root/workspace/2openssl_for_ios_and_android/tools/../output/android/openssh-armeabi-v7a/libexec/ssh-keysign\" -D_PATH_SSH_PKCS11_HELPER=\"/root/workspace/2openssl_for_ios_and_android/tools/../output/android/openssh-armeabi-v7a/libexec/ssh-pkcs11-helper\" -D_PATH_SSH_PIDDIR=\"/var/run\" -D_PATH_PRIVSEP_CHROOT_DIR=\"/var/empty\" -DHAVE_CONFIG_H -c xmss_hash_address.c -o xmss_hash_address.o
armv7a-linux-androideabi29-clang -march=armv7-a -mfpu=vfpv3-d16 -mfloat-abi=softfp -Wno-unused-function -fno-integrated-as -fstrict-aliasing -fPIC -DANDROID -D__ANDROID_API__=29 -Os -ffunction-sections -fdata-sections -I/root/android-ndk-r21d/toolchains/llvm/prebuilt/linux-x86_64/sysroot/usr/include -I/root/android-ndk-r21d/toolchains/llvm/prebuilt/linux-x86_64/sysroot/usr/local/include -I/root/workspace/2openssl_for_ios_and_android/tools/../output/android/openssl-armeabi-v7a/include -pipe -Wunknown-warning-option -Qunused-arguments -Wall -Wpointer-arith -Wuninitialized -Wsign-compare -Wformat-security -Wsizeof-pointer-memaccess -Wno-pointer-sign -Wno-unused-result -fno-strict-aliasing -mretpoline -D_FORTIFY_SOURCE=2 -ftrapv -fno-builtin-memset -fstack-protector-strong   -I. -I. -I"" -march=armv7-a -mfpu=vfpv3-d16 -mfloat-abi=softfp -Wno-unused-function -fno-integrated-as -fstrict-aliasing -fPIC -DANDROID -D__ANDROID_API__=29 -Os -ffunction-sections -fdata-sections -I/root/android-ndk-r21d/toolchains/llvm/prebuilt/linux-x86_64/sysroot/usr/include -I/root/android-ndk-r21d/toolchains/llvm/prebuilt/linux-x86_64/sysroot/usr/local/include -DSSHDIR=\"/root/workspace/2openssl_for_ios_and_android/tools/../output/android/openssh-armeabi-v7a/etc\" -D_PATH_SSH_PROGRAM=\"/root/workspace/2openssl_for_ios_and_android/tools/../output/android/openssh-armeabi-v7a/bin/ssh\" -D_PATH_SSH_ASKPASS_DEFAULT=\"/root/workspace/2openssl_for_ios_and_android/tools/../output/android/openssh-armeabi-v7a/libexec/ssh-askpass\" -D_PATH_SFTP_SERVER=\"/root/workspace/2openssl_for_ios_and_android/tools/../output/android/openssh-armeabi-v7a/libexec/sftp-server\" -D_PATH_SSH_KEY_SIGN=\"/root/workspace/2openssl_for_ios_and_android/tools/../output/android/openssh-armeabi-v7a/libexec/ssh-keysign\" -D_PATH_SSH_PKCS11_HELPER=\"/root/workspace/2openssl_for_ios_and_android/tools/../output/android/openssh-armeabi-v7a/libexec/ssh-pkcs11-helper\" -D_PATH_SSH_PIDDIR=\"/var/run\" -D_PATH_PRIVSEP_CHROOT_DIR=\"/var/empty\" -DHAVE_CONFIG_H -c xmss_wots.c -o xmss_wots.o
make[1]: Leaving directory '/root/workspace/2openssl_for_ios_and_android/tools/openssh-8.1p1/openbsd-compat'
make: *** [Makefile:170: openbsd-compat/libopenbsd-compat.a] Error 2
make: *** Waiting for unfinished jobs....
1 error generated.
make: *** [Makefile:166: krl.o] Error 1
Trogious commented 4 years ago

stdout output of tools/build-android-ssh.sh (different than above: API level, canary NDK):

PATH=/root/android-ndk-r23-canary/toolchains/llvm/prebuilt/linux-x86_64/bin:/root/Android/Sdk/platform-tools:/sbin:/bin:/usr/sbin:/usr/bin
Android openssh-8.1p1 start...
configure armeabi-v7a start...
~/workspace/2openssl_for_ios_and_android/tools ~/workspace/2openssl_for_ios_and_android/tools
ANDROID_NDK_HOME=/root/android-ndk-r23-canary
arch =           arm
abi =            armeabi-v7a
abi_triple =     arm-linux-androideabi
PLATFORM_TYPE =  Android
ANDROID_API =    30
in_dir =         /root/workspace/2openssl_for_ios_and_android/tools/../output/android/openssh-armeabi-v7a
out_dir =        /root/workspace/2openssl_for_ios_and_android/tools/../output/android/openssh-armeabi-v7a
AR =             arm-linux-androideabi-ar
CC =             armv7a-linux-androideabi30-clang
CXX =            armv7a-linux-androideabi30-clang++
AS =             arm-linux-androideabi-as
LD =             arm-linux-androideabi-ld
RANLIB =         arm-linux-androideabi-ranlib
STRIP =          arm-linux-androideabi-strip
CFLAGS =         -march=armv7-a -mfpu=vfpv3-d16 -mfloat-abi=softfp -Wno-unused-function -fno-integrated-as -fstrict-aliasing -fPIC -DANDROID -D__ANDROID_API__=30 -Os -ffunction-sections -fdata-sections -I/root/android-ndk-r23-canary/toolchains/llvm/prebuilt/linux-x86_64/sysroot/usr/include -I/root/android-ndk-r23-canary/toolchains/llvm/prebuilt/linux-x86_64/sysroot/usr/local/include -I/root/workspace/2openssl_for_ios_and_android/tools/../output/android/openssl-armeabi-v7a/include
CXXFLAGS =       -std=c++14 -Os -ffunction-sections -fdata-sections
LDFLAGS =        -march=armv7-a -mfpu=vfpv3-d16 -mfloat-abi=softfp -Wl,--fix-cortex-a8 -Wl,--gc-sections -Os -ffunction-sections -fdata-sections -L/root/android-ndk-r23-canary/toolchains/llvm/prebuilt/linux-x86_64/arm-linux-androideabi/lib -L/root/android-ndk-r23-canary/toolchains/llvm/prebuilt/linux-x86_64/sysroot/usr/lib/arm-linux-androideabi/30 -L/root/android-ndk-r23-canary/toolchains/llvm/prebuilt/linux-x86_64/lib -L/root/workspace/2openssl_for_ios_and_android/tools/../output/android/openssl-armeabi-v7a/lib
CPPFLAGS =       -march=armv7-a -mfpu=vfpv3-d16 -mfloat-abi=softfp -Wno-unused-function -fno-integrated-as -fstrict-aliasing -fPIC -DANDROID -D__ANDROID_API__=30 -Os -ffunction-sections -fdata-sections -I/root/android-ndk-r23-canary/toolchains/llvm/prebuilt/linux-x86_64/sysroot/usr/include -I/root/android-ndk-r23-canary/toolchains/llvm/prebuilt/linux-x86_64/sysroot/usr/local/include
make armeabi-v7a start...
~/workspace/2openssl_for_ios_and_android/tools
DanAlbert commented 4 years ago

Clang doesn't appear to support the __sentinel__ attribute: https://clang.llvm.org/docs/AttributeReference.html. The GCC docs say this is a hint to the compiler to require that a vararg argument list be null terminated: https://gcc.gnu.org/onlinedocs/gcc-4.7.2/gcc/Function-Attributes.html. My first impression is that clang doesn't need this attribute because we can do that with fortify instead. @enh-google @stephenhines wdyt?

enh-google commented 4 years ago

note that these attributes are in our headers, so i think the clang docs are just out of date (as usual).

~/aosp/bionic$ grep -C1 -rn __senti
libc/include/unistd.h-95-int execve(const char* __file, char* const* __argv, char* const* __envp);
libc/include/unistd.h:96:int execl(const char* __path, const char* __arg0, ...) __attribute__((__sentinel__));
libc/include/unistd.h:97:int execlp(const char* __file, const char* __arg0, ...) __attribute__((__sentinel__));
libc/include/unistd.h-98-int execle(const char* __path, const char* __arg0, ... /*,  char* const* __envp */)
libc/include/unistd.h:99:    __attribute__((__sentinel__(1)));
libc/include/unistd.h-100-int fexecve(int __fd, char* const* __argv, char* const* __envp) __INTRODUCED_IN(28);
~/aosp/bionic$ 

i wonder if openssl has #defined something here?

@gburgessiv anyway, in case he has any insights, although it was actually @jmgao who added this (back in 2016):

commit d80a52eb656042b98f519025e52b06c3010ae174
Author: Josh Gao <jmgao@google.com>
Date:   Wed Aug 10 15:18:29 2016 -0700

    Add __attribute__((sentinel)) tags to execl and friends.

    Give a compile time diagnostic when the nullptr sentinel is missing
    from an execl family call, instead of just pulling arbitrary values.

    Bug: http://b/30793878
    Change-Id: I1c49005c58b7ad4a5b04f0435b722d4c744e8f0e
    Test: Built bullhead
Trogious commented 4 years ago

Hmm, interesting. Setting this before running configure helps: CPPFLAGS+=" -DHAVE_ATTRIBUTE__SENTINEL__=1" Was also doing more checks, apparently the clang you provide as part of NDK has issue only with: __attribute__((__sentinel__(1))) the compilation (or rather preprocessing) works well for: __attribute__((__sentinel__)) so it's just that parametrised variation that the clang seems to struggle with.

enh-google commented 4 years ago

so it's just that parametrised variation that the clang seems to struggle with.

no, it's what i said it was :-)

here's openssh 8.1p1 screwing up:

#if !defined(HAVE_ATTRIBUTE__SENTINEL__) && !defined(__sentinel__)
# define __sentinel__
#endif
NortonAhu commented 3 years ago

hi guys. i have encount the same question, i don't know how fix this question to compile.

enh-google commented 3 years ago

hi guys. i have encount the same question, i don't know how fix this question to compile.

someone should report the bug to openssl. see my comment above that shows their problem. (i suspect that this might be a cross-compilation issue? obviously HAVE_ATTRIBUTE__SENTINEL__ should be defined for Android, but if the configure script is actually checking the host compiler and it doesn't, that would explain the mess.)

in the meantime, Trogious gave you a workaround.