gsliepen / tinc

a VPN daemon
http://tinc-vpn.org/
Other
1.96k stars 285 forks source link

Debian bullseye compilation failure #429

Open splitice opened 1 year ago

splitice commented 1 year ago

Compiling on Debian bullseye fails

Can be tested from a fresh debian:bullseye container with the following commands:

export TINC_VERSION=1.1
apt-get update && \
    DEBIAN_FRONTEND=noninteractive apt-get install -y net-tools tcpdump iproute2 rsync autoconf curl g++ gcc make meson libssl-dev git libtool && \
    git clone https://github.com/gsliepen/tinc -b ${TINC_VERSION} && \
    cd tinc && \
    meson setup builddir && \
    meson compile -C builddir && \
    meson install -C builddir

Failures start at:

[217/1191] Compiling C object subprojects/openssl-3.0.2/libcrypto.so.p/crypto_bio_bf_buff.c.o
In file included from ../subprojects/openssl-3.0.2/crypto/bio/bio_local.h:10,
                 from ../subprojects/openssl-3.0.2/crypto/bio/bf_buff.c:12:
../subprojects/openssl-3.0.2/e_os.h: In function ‘ossl_sleep’:
../subprojects/openssl-3.0.2/e_os.h:314:5: warning: implicit declaration of function ‘usleep’; did you mean ‘sleep’? [-Wimplicit-function-declaration]
  314 |     usleep(millis * 1000);
      |     ^~~~~~
      |     sleep

The first explicit error:

../subprojects/openssl-3.0.2/crypto/bn/asm/x86_64-gcc.c:76:9: warning: implicit declaration of function ‘asm’ [-Wimplicit-function-declaration]
   76 |         asm ("mulq %3"                  \
      |         ^~~
../subprojects/openssl-3.0.2/crypto/bn/asm/x86_64-gcc.c:119:9: note: in expansion of macro ‘mul_add’
  119 |         mul_add(rp[0], ap[0], w, c1);
      |         ^~~~~~~
../subprojects/openssl-3.0.2/crypto/bn/asm/x86_64-gcc.c:77:17: error: expected ‘)’ before ‘:’ token
   77 |                 : "=a"(low),"=d"(high)  \
      |                 ^

Edit: tired dyslexica fixed

splitice commented 1 year ago

Alpine builds by the way. So requires newer gcc than is found in debian bullseye?