Hi,

I'm trying to compile libidn v.1.37 on Void Linux musl-x86_64 but getting
an error. Any help would be appreciated.  Build log attached.

JFYI v.1.36 was building fine.

Thanks in advance.
=> xbps-src: updating repositories for host (x86_64-musl)...
[*] Updating repository 
`https://alpha.de.repo.voidlinux.org/current/musl/x86_64-musl-repodata' ...
[*] Updating repository 
`https://alpha.de.repo.voidlinux.org/current/musl/nonfree/x86_64-musl-repodata' 
...
[*] Updating repository 
`https://alpha.de.repo.voidlinux.org/current/musl/debug/x86_64-musl-repodata' 
...
=> xbps-src: updating software in / masterdir...
=> xbps-src: cleaning up / masterdir...
=> libidn-1.37_1: removing autodeps, please wait...
=> libidn-1.37_1: building [gnu-configure] for x86_64-musl...
   [host] autoconf-archive-2019.01.06_2: found 
(https://alpha.de.repo.voidlinux.org/current/musl)
   [host] automake-1.16.2_2: found 
(https://alpha.de.repo.voidlinux.org/current/musl)
   [host] gettext-devel-0.21_3: found 
(https://alpha.de.repo.voidlinux.org/current/musl)
   [host] libtool-2.4.6_6: found 
(https://alpha.de.repo.voidlinux.org/current/musl)
   [host] perl-5.32.1_2: found 
(https://alpha.de.repo.voidlinux.org/current/musl)
   [host] pkg-config-0.29.2_2: found 
(https://alpha.de.repo.voidlinux.org/current/musl)
   [runtime] libidn-1.37_1: not found (self, ignored)
=> libidn-1.37_1: installing host dependencies: autoconf-archive-2019.01.06_2 
automake-1.16.2_2 gettext-devel-0.21_3 libtool-2.4.6_6 perl-5.32.1_2 
pkg-config-0.29.2_2 ...
=> libidn-1.37_1: running do-fetch hook: 00-distfiles ...
=> libidn-1.37_1: running do-extract hook: 00-distfiles ...
=> libidn-1.37_1: extracting distfile(s), please wait...
=> libidn-1.37_1: running do-patch hook: 00-patches ...
=> libidn-1.37_1: running pre-configure hook: 00-gnu-configure-asneeded ...
=> libidn-1.37_1: running pre-configure hook: 01-override-config ...
=> libidn-1.37_1: running pre-configure hook: 02-script-wrapper ...
=> libidn-1.37_1: running pre_configure ...
Copying file build-aux/config.rpath
Copying file lib/m4/codeset.m4
Copying file lib/m4/extern-inline.m4
Copying file lib/m4/fcntl-o.m4
Copying file lib/m4/glibc2.m4
Copying file lib/m4/glibc21.m4
Copying file lib/m4/iconv.m4
Copying file lib/m4/intdiv0.m4
Copying file lib/m4/intl.m4
Copying file lib/m4/intldir.m4
Copying file lib/m4/intmax.m4
Copying file lib/m4/inttypes-pri.m4
Copying file lib/m4/inttypes_h.m4
Copying file lib/m4/lcmessage.m4
Copying file lib/m4/lib-ld.m4
Copying file lib/m4/lib-link.m4
Copying file lib/m4/lib-prefix.m4
Copying file lib/m4/lock.m4
Copying file lib/m4/longlong.m4
Copying file lib/m4/printf-posix.m4
Copying file lib/m4/size_max.m4
Copying file lib/m4/stdint_h.m4
Copying file lib/m4/threadlib.m4
Copying file lib/m4/uintmax_t.m4
Copying file lib/m4/visibility.m4
Copying file lib/m4/wchar_t.m4
Copying file lib/m4/wint_t.m4
Copying file lib/m4/xsize.m4
Copying file po/Makevars.template
libtoolize: putting auxiliary files in AC_CONFIG_AUX_DIR, 'build-aux'.
libtoolize: copying file 'build-aux/ltmain.sh'
libtoolize: putting macros in AC_CONFIG_MACRO_DIRS, 'lib/m4'.
libtoolize: copying file 'lib/m4/libtool.m4'
libtoolize: copying file 'lib/m4/ltoptions.m4'
libtoolize: copying file 'lib/m4/ltsugar.m4'
libtoolize: copying file 'lib/m4/ltversion.m4'
libtoolize: copying file 'lib/m4/lt~obsolete.m4'
configure.ac:41: installing 'build-aux/missing'
examples/Makefile.am: installing 'build-aux/depcomp'
=> libidn-1.37_1: running do_configure ...
configure: GNU Libidn 1.37 libidn 18:2:6 12
checking for a BSD-compatible install... 
/builddir/.xbps-libidn/wrappers/install -c
checking whether build environment is sane... yes
checking for a thread-safe mkdir -p... /usr/bin/mkdir -p
checking for gawk... gawk
checking whether make sets $(MAKE)... yes
checking whether make supports nested variables... yes
checking whether make supports nested variables... (cached) yes
checking for x86_64-unknown-linux-musl-gcc... cc
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... no
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether cc accepts -g... yes
checking for cc option to enable C11 features... none needed
checking whether the compiler is clang... no
checking for compiler option needed when checking for declarations... none
checking whether make supports the include directive... yes (GNU style)
checking dependency style of cc... gcc3
checking how to run the C preprocessor... cpp
checking for grep that handles long lines and -e... /usr/bin/grep
checking for egrep... /usr/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 for wchar.h... yes
checking for minix/config.h... no
checking for sys/socket.h... yes
checking for unistd.h... (cached) yes
checking for sys/stat.h... (cached) yes
checking for getopt.h... yes
checking for sys/cdefs.h... no
checking for limits.h... yes
checking for sys/param.h... yes
checking for sys/time.h... yes
checking for inttypes.h... (cached) yes
checking for sys/types.h... (cached) yes
checking for stdint.h... (cached) yes
checking for iconv.h... yes
checking for langinfo.h... yes
checking whether it is safe to define __EXTENSIONS__... yes
checking whether _XOPEN_SOURCE should be defined... no
checking build system type... x86_64-unknown-linux-musl
checking host system type... x86_64-unknown-linux-musl
checking for Minix Amsterdam compiler... no
checking for x86_64-unknown-linux-musl-ar... ar
checking the archiver (ar) interface... ar
checking for x86_64-unknown-linux-musl-ar... (cached) ar
checking for special C compiler options needed for large files... no
checking for _FILE_OFFSET_BITS value needed for large files... (cached) 64
configure: autobuild project... GNU Libidn
configure: autobuild revision... 1.37
configure: autobuild hostname... void
configure: autobuild timestamp... 20210520T140616Z
checking for x86_64-unknown-linux-musl-ar... (cached) ar
checking the archiver (ar) interface... (cached) ar
checking how to print strings... printf
checking for a sed that does not truncate output... /usr/bin/sed
checking for fgrep... /usr/bin/grep -F
checking for ld used by cc... ld
checking if the linker (ld) is GNU ld... yes
checking for BSD- or MS-compatible name lister (nm)... nm
checking the name lister (nm) interface... BSD nm
checking whether ln -s works... yes
checking the maximum length of command line arguments... 98304
checking how to convert x86_64-unknown-linux-musl file names to 
x86_64-unknown-linux-musl format... func_convert_file_noop
checking how to convert x86_64-unknown-linux-musl file names to toolchain 
format... func_convert_file_noop
checking for ld option to reload object files... -r
checking for x86_64-unknown-linux-musl-objdump... objdump
checking how to recognize dependent libraries... pass_all
checking for x86_64-unknown-linux-musl-dlltool... no
checking for dlltool... no
checking how to associate runtime and link libraries... printf %s\n
checking for x86_64-unknown-linux-musl-ar... (cached) ar
checking for archiver @FILE support... @
checking for x86_64-unknown-linux-musl-strip... strip
checking for x86_64-unknown-linux-musl-ranlib... ranlib
checking command to parse nm output from cc object... ok
checking for libtool-sysroot... no
checking for a working dd... /usr/bin/dd
checking how to truncate binary pipes... /usr/bin/dd bs=4096 count=1
checking for x86_64-unknown-linux-musl-mt... no
checking for mt... no
checking if : is a manifest tool... no
checking for dlfcn.h... yes
checking for objdir... .libs
checking if cc supports -fno-rtti -fno-exceptions... no
checking for cc option to produce PIC... -fPIC -DPIC
checking if cc PIC flag -fPIC -DPIC works... yes
checking if cc static flag -static works... yes
checking if cc supports -c -o file.o... yes
checking if cc supports -c -o file.o... (cached) yes
checking whether the cc linker (ld -m elf_x86_64) supports shared libraries... 
yes
checking whether -lc should be explicitly linked in... no
checking dynamic linker characteristics... GNU/Linux ld.so
checking how to hardcode library paths into programs... immediate
checking whether stripping libraries is possible... no
checking if libtool supports shared libraries... yes
checking whether to build shared libraries... yes
checking whether to build static libraries... no
checking for ld used by cc... ld -m elf_x86_64
checking if the linker (ld -m elf_x86_64) is GNU ld... yes
checking for shared library run path origin... done
checking for iconv... yes
checking for working iconv... yes
checking for iconv declaration... 
         extern size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, 
char * *outbuf, size_t *outbytesleft);
checking for emacs... no
checking for xemacs... no
checking where .elc files should go... ${datadir}/emacs/site-lisp
checking whether NLS is requested... yes
checking for msgfmt... /usr/bin/msgfmt
checking for gmsgfmt... /usr/bin/msgfmt
checking for xgettext... /usr/bin/xgettext
checking for msgmerge... /usr/bin/msgmerge
checking for CFPreferencesCopyAppValue... no
checking for CFLocaleCopyCurrent... no
checking for GNU gettext in libc... (cached) yes
checking whether to use NLS... yes
checking where the gettext function comes from... libc
checking for size_t... yes
checking for working alloca.h... yes
checking for alloca... yes
checking for _set_invalid_parameter_handler... no
checking for fcntl... yes
checking for symlink... yes
checking for getdelim... yes
checking for getdtablesize... yes
checking for getprogname... no
checking for getexecname... no
checking for lstat... yes
checking for preferred C# implementation... no
checking for C# compiler... no
checking whether the preprocessor supports include_next... (cached) yes
checking whether source code line length is unlimited... yes
checking for complete errno.h... (cached) yes
checking whether strerror_r is declared... yes
checking for strerror_r... yes
checking whether strerror_r returns char *... no
checking for working fcntl.h... (cached) yes
checking for pid_t... yes
checking for mode_t... yes
checking whether stat file-mode macros are broken... no
checking for C/C++ restrict keyword... __restrict__
checking for nlink_t... yes
checking whether getdelim is declared... yes
checking whether getdtablesize is declared... yes
checking whether getline is declared... yes
checking for getopt.h... (cached) yes
checking for getopt_long_only... yes
checking whether getopt is POSIX compatible... no
checking whether limits.h has LLONG_MAX, WORD_BIT, ULLONG_WIDTH etc.... no
checking for stdlib.h... (cached) yes
checking for GNU libc compatible malloc... yes
checking whether the compiler produces multi-arch binaries... no
checking for O_CLOEXEC... yes
checking for promoted mode_t type... (cached) mode_t
checking for stdbool.h that conforms to C99... yes
checking for _Bool... yes
checking for wchar_t... yes
checking for good max_align_t... yes
checking whether NULL can be used in arbitrary expressions... (cached) yes
checking for wint_t... yes
checking whether stdint.h conforms to C99... (cached) yes
checking whether stdint.h works without ISO C predefines... yes
checking whether stdint.h has UINTMAX_WIDTH etc.... no
checking whether fcloseall is declared... no
checking which flavor of printf attribute matches inttypes macros... system
checking whether strerror(0) succeeds... yes
checking for struct timespec in <time.h>... (cached) yes
checking for TIME_UTC in <time.h>... yes
checking whether execvpe is declared... yes
checking for valgrind... no
checking for alloca as a compiler built-in... yes
checking whether // is distinct from /... no
checking whether dup2 works... (cached) yes
checking for error_at_line... no
checking whether fcntl handles F_DUPFD correctly... (cached) yes
checking whether fcntl understands F_DUPFD_CLOEXEC... (cached) yes
checking for working getdelim function... yes
checking whether getdtablesize works... yes
checking for getline... yes
checking for working getline function... yes
checking whether program_invocation_name is declared... yes
checking whether program_invocation_short_name is declared... yes
checking whether __argv is declared... no
checking if gcc/ld supports -Wl,--output-def... no
checking if LD -Wl,--version-script works... yes
checking whether the -Werror option is usable... yes
checking for simple visibility declarations... yes
checking whether open recognizes a trailing slash... yes
checking for pmccabe... false
checking whether program_invocation_name is declared... (cached) yes
checking whether program_invocation_short_name is declared... (cached) yes
checking for ssize_t... yes
checking whether stat handles trailing slashes on files... yes
checking for struct stat.st_atim.tv_nsec... yes
checking whether struct stat.st_atim is of type struct timespec... yes
checking for struct stat.st_birthtimespec.tv_nsec... no
checking for struct stat.st_birthtimensec... no
checking for struct stat.st_birthtim.tv_nsec... no
checking for va_copy... yes
checking for working strerror function... (cached) yes
checking for inline... inline
checking whether langinfo.h defines CODESET... yes
checking whether langinfo.h defines T_FMT_AMPM... yes
checking whether langinfo.h defines ALTMON_1... no
checking whether langinfo.h defines ERA... yes
checking whether langinfo.h defines YESEXPR... yes
checking whether ecvt is declared... yes
checking whether fcvt is declared... yes
checking whether gcvt is declared... yes
checking whether free is known to preserve errno... no
checking whether the compiler generally respects inline... yes
checking whether the compiler supports the __inline keyword... yes
checking for ssize_t... (cached) yes
checking for strverscmp... yes
checking if TLD API for specific TLD rules should be built... yes
checking pkg-config is at least version 0.9.0... yes
checking for gtk-doc... no
configure: WARNING:
  You will not be able to create source packages with 'make dist'
  because gtk-doc >= 1.14 is not found.
checking for gtkdoc-check... no
checking for gtkdoc-check... no
checking for gtkdoc-rebase... no
checking for gtkdoc-mkpdf... no
checking whether to build gtk-doc documentation... no
checking for GTKDOC_DEPS... no
checking if implementation in Java should be built... no
checking if implementation in C# should be built... no
checking whether C compiler handles -Werror -Wunknown-warning-option... no
checking whether C compiler handles -Wframe-larger-than=160... yes
checking whether -Wno-missing-field-initializers is supported... yes
checking whether -Wno-missing-field-initializers is needed... no
checking whether -Wuninitialized is supported... yes
checking whether C compiler handles -fanalyzer... yes
checking whether C compiler handles -fno-common... yes
checking whether C compiler handles -Wall... yes
checking whether C compiler handles -Warith-conversion... yes
checking whether C compiler handles -Wbad-function-cast... yes
checking whether C compiler handles -Wcast-align=strict... yes
checking whether C compiler handles -Wdate-time... yes
checking whether C compiler handles -Wdisabled-optimization... yes
checking whether C compiler handles -Wdouble-promotion... yes
checking whether C compiler handles -Wduplicated-branches... yes
checking whether C compiler handles -Wduplicated-cond... yes
checking whether C compiler handles -Wextra... yes
checking whether C compiler handles -Wformat-signedness... yes
checking whether C compiler handles -Winit-self... yes
checking whether C compiler handles -Winline... yes
checking whether C compiler handles -Winvalid-pch... yes
checking whether C compiler handles -Wmissing-declarations... yes
checking whether C compiler handles -Wmissing-include-dirs... yes
checking whether C compiler handles -Wmissing-prototypes... yes
checking whether C compiler handles -Wnested-externs... yes
checking whether C compiler handles -Wnull-dereference... yes
checking whether C compiler handles -Wold-style-definition... yes
checking whether C compiler handles -Wopenmp-simd... yes
checking whether C compiler handles -Wpacked... yes
checking whether C compiler handles -Wpointer-arith... yes
checking whether C compiler handles -Wshadow... yes
checking whether C compiler handles -Wstack-protector... yes
checking whether C compiler handles -Wstrict-overflow... yes
checking whether C compiler handles -Wstrict-prototypes... yes
checking whether C compiler handles -Wsuggest-attribute=cold... yes
checking whether C compiler handles -Wsuggest-attribute=format... yes
checking whether C compiler handles -Wsuggest-attribute=malloc... yes
checking whether C compiler handles -Wsuggest-attribute=noreturn... yes
checking whether C compiler handles -Wsuggest-final-methods... yes
checking whether C compiler handles -Wsuggest-final-types... yes
checking whether C compiler handles -Wsync-nand... yes
checking whether C compiler handles -Wtrampolines... yes
checking whether C compiler handles -Wuninitialized... yes
checking whether C compiler handles -Wunknown-pragmas... yes
checking whether C compiler handles -Wunsafe-loop-optimizations... yes
checking whether C compiler handles -Wunused-macros... yes
checking whether C compiler handles -Wvariadic-macros... yes
checking whether C compiler handles -Wvector-operation-performance... yes
checking whether C compiler handles -Wvla... yes
checking whether C compiler handles -Wwrite-strings... yes
checking whether C compiler handles -Warray-bounds=2... yes
checking whether C compiler handles -Wattribute-alias=2... yes
checking whether C compiler handles -Wformat-overflow=2... yes
checking whether C compiler handles -Wformat=2... yes
checking whether C compiler handles -Wformat-truncation=2... yes
checking whether C compiler handles -Wimplicit-fallthrough=5... yes
checking whether C compiler handles -Wshift-overflow=2... yes
checking whether C compiler handles -Wunused-const-variable=2... yes
checking whether C compiler handles -Wvla-larger-than=4031... yes
checking whether C compiler handles -Wno-analyzer-double-free... yes
checking whether C compiler handles -Wno-analyzer-malloc-leak... yes
checking whether C compiler handles -Wno-analyzer-null-dereference... yes
checking whether C compiler handles -Wno-analyzer-use-after-free... yes
checking whether C compiler handles -Wno-missing-field-initializers... yes
checking that generated files are newer than configure... done
configure: creating ./config.status
config.status: creating csharpcomp.sh
config.status: creating csharpexec.sh
config.status: creating Makefile
config.status: creating contrib/doxygen/Doxyfile
config.status: creating csharp/Makefile
config.status: creating doc/Makefile
config.status: creating doc/cyclo/Makefile
config.status: creating doc/java/Makefile
config.status: creating doc/reference/Makefile
config.status: creating doc/reference/version.xml
config.status: creating doc/specifications/Makefile
config.status: creating doc/tld/Makefile
config.status: creating examples/Makefile
config.status: creating fuzz/Makefile
config.status: creating gl/Makefile
config.status: creating java/Makefile
config.status: creating java/pom.xml
config.status: creating java/src/Makefile
config.status: creating java/src/main/Makefile
config.status: creating java/src/main/java/Makefile
config.status: creating java/src/main/java/gnu/Makefile
config.status: creating java/src/main/java/gnu/inet/Makefile
config.status: creating java/src/main/java/gnu/inet/encoding/Makefile
config.status: creating java/src/test/Makefile
config.status: creating java/src/test/java/Makefile
config.status: creating java/src/util/Makefile
config.status: creating java/src/util/java/Makefile
config.status: creating lib/Makefile
config.status: creating lib/gl/Makefile
config.status: creating lib/libidn.pc
config.status: creating po/Makefile.in
config.status: creating src/Makefile
config.status: creating tests/Makefile
config.status: creating config.h
config.status: executing depfiles commands
config.status: executing libtool commands
config.status: executing po-directories commands
config.status: creating po/POTFILES
config.status: creating po/Makefile
configure: Summary of build options:

  Version:           1.37
  Libtool version    18:2:6
  DLL version:       12
  Header version:    major  minor  patch  number 
  Build/host system: x86_64-unknown-linux-musl / x86_64-unknown-linux-musl
  Install prefix:    /usr
  Compiler:          cc
  Warning flags:      -fanalyzer -fno-common -Wall -Warith-conversion 
-Wbad-function-cast -Wcast-align=strict -Wdate-time -Wdisabled-optimization 
-Wdouble-promotion -Wduplicated-branches -Wduplicated-cond -Wextra 
-Wformat-signedness -Winit-self -Winline -Winvalid-pch -Wmissing-declarations 
-Wmissing-include-dirs -Wmissing-prototypes -Wnested-externs -Wnull-dereference 
-Wold-style-definition -Wopenmp-simd -Wpacked -Wpointer-arith -Wshadow 
-Wstack-protector -Wstrict-overflow -Wstrict-prototypes 
-Wsuggest-attribute=cold -Wsuggest-attribute=format -Wsuggest-attribute=malloc 
-Wsuggest-attribute=noreturn -Wsuggest-final-methods -Wsuggest-final-types 
-Wsync-nand -Wtrampolines -Wuninitialized -Wunknown-pragmas 
-Wunsafe-loop-optimizations -Wunused-macros -Wvariadic-macros 
-Wvector-operation-performance -Wvla -Wwrite-strings -Warray-bounds=2 
-Wattribute-alias=2 -Wformat-overflow=2 -Wformat=2 -Wformat-truncation=2 
-Wimplicit-fallthrough=5 -Wshift-overflow=2 -Wunused-const-variable=2 
-Wvla-larger-than=4031 -Wno-analyzer-double-free -Wno-analyzer-malloc-leak 
-Wno-analyzer-null-dereference -Wno-analyzer-use-after-free 
-Wno-missing-field-initializers
  CFLAGS:            -fstack-clash-protection -D_FORTIFY_SOURCE=2 
-mtune=generic -O2 -pipe       
  LDFlags:           -Wl,-z,relro -Wl,-z,now -Wl,--as-needed    
  Documentation:     yes
  Library types:     Shared=yes, Static=no
  Libiconv:          yes 
  Valgrind:          no
  Version script:    yes
  nl_langinfo:       yes
  TLD code:          yes
  Build Java port:   no
  Build C# port:     no
  Address Sanitizer: no
  UB Sanitizer:      no

=> libidn-1.37_1: running pre-build hook: 02-script-wrapper ...
=> libidn-1.37_1: running do_build ...
make  all-recursive
make[1]: Entering directory '/builddir/libidn-1.37'
Making all in gl
make[2]: Entering directory '/builddir/libidn-1.37/gl'
  GEN      alloca.h
  GEN      fcntl.h
  GEN      getopt.h
  GEN      getopt-cdefs.h
  GEN      limits.h
  GEN      stdint.h
  GEN      stdio.h
  GEN      string.h
  GEN      sys/stat.h
  GEN      sys/types.h
  GEN      time.h
  GEN      unistd.h
make  all-recursive
make[3]: Entering directory '/builddir/libidn-1.37/gl'
make[4]: Entering directory '/builddir/libidn-1.37/gl'
  CC       basename-lgpl.lo
  CC       cloexec.lo
In file included from /usr/include/endian.h:23,
                 from /usr/include/sys/types.h:70,
                 from ./sys/types.h:39,
                 from ./fcntl.h:56,
                 from cloexec.c:25:
./stdint.h:89:5: error: #if with no expression
   89 | #if
      |     ^
make[4]: *** [Makefile:1559: cloexec.lo] Error 1
make[4]: Leaving directory '/builddir/libidn-1.37/gl'
make[3]: *** [Makefile:1578: all-recursive] Error 1
make[3]: Leaving directory '/builddir/libidn-1.37/gl'
make[2]: *** [Makefile:1454: all] Error 2
make[2]: Leaving directory '/builddir/libidn-1.37/gl'
make[1]: *** [Makefile:1415: all-recursive] Error 1
make[1]: Leaving directory '/builddir/libidn-1.37'
make: *** [Makefile:1341: all] Error 2
=> ERROR: libidn-1.37_1: do_build: '${make_cmd} ${makejobs} ${make_build_args} 
${make_build_target}' exited with 2
=> ERROR:   in do_build() at common/build-style/gnu-configure.sh:15
  • Lib... Demetris
    • ... Discussion list for GNU Internationalized Domain Name library (Libidn)
      • ... Discussion list for GNU Internationalized Domain Name library (Libidn)

Reply via email to