sustrik/libmill

[install] make FAILS

vieks opened this issue · 2 comments

vieks commented

~/Downloads/libmill-1.18 # make
CC libmill_la-chan.lo
CC libmill_la-cr.lo
CC libmill_la-debug.lo
CC libmill_la-ip.lo
In file included from ip.c:44:
ip.c: In function 'mill_ipremote_':
dns/dns.h:1009:24: error: lvalue required as unary '&' operand
1009 | #define dns_opts(...) (&dns_quietinit((struct dns_options)DNS_OPTS_INIT(VA_ARGS)))
| ^
ip.c:268:31: note: in expansion of macro 'dns_opts'
268 | mill_dns_hints, NULL, dns_opts(), &rc);
| ^~~~~~~~
make: *** [Makefile:1190: libmill_la-ip.lo] Error 1

vieks commented

gcc -v
Using built-in specs.
COLLECT_GCC=gcc
COLLECT_LTO_WRAPPER=/usr/lib/gcc/x86_64-pc-linux-gnu/9.1.0/lto-wrapper
Target: x86_64-pc-linux-gnu
Configured with: /build/gcc/src/gcc/configure --prefix=/usr --libdir=/usr/lib --libexecdir=/usr/lib --mandir=/usr/share/man --infodir=/usr/share/info --with-bugurl=https://bugs.archlinux.org/ --enable-languages=c,c++,ada,fortran,go,lto,objc,obj-c++ --enable-shared --enable-threads=posix --with-system-zlib --with-isl --enable-__cxa_atexit --disable-libunwind-exceptions --enable-clocale=gnu --disable-libstdcxx-pch --disable-libssp --enable-gnu-unique-object --enable-linker-build-id --enable-lto --enable-plugin --enable-install-libiberty --with-linker-hash-style=gnu --enable-gnu-indirect-function --enable-multilib --disable-werror --enable-checking=release --enable-default-pie --enable-default-ssp --enable-cet=auto
Thread model: posix
gcc version 9.1.0 (GCC)

vieks commented

by using an older GCC version, 8, it compiles well.

but now a new problem is emerging:
make check:
tests/ip

%CPU100 lt-ip

the test is hanging by using 100% of the CPU time, same that:
#185