Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Debian bullseye compilation failure #429

Open
splitice opened this issue Feb 2, 2023 · 1 comment
Open

Debian bullseye compilation failure #429

splitice opened this issue Feb 2, 2023 · 1 comment
Labels
bug Issues in which the users gave a clear indication to the causes of the unexpected behaviour build_system Issue relates to the build system linux Issues specific to Linux.

Comments

@splitice
Copy link
Contributor

splitice commented Feb 2, 2023

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 splitice changed the title Debian Buster compilation failure Debian bullseye compilation failure Feb 2, 2023
@splitice
Copy link
Contributor Author

splitice commented Feb 2, 2023

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

@gsliepen gsliepen added bug Issues in which the users gave a clear indication to the causes of the unexpected behaviour linux Issues specific to Linux. build_system Issue relates to the build system labels Mar 23, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Issues in which the users gave a clear indication to the causes of the unexpected behaviour build_system Issue relates to the build system linux Issues specific to Linux.
Projects
None yet
Development

No branches or pull requests

2 participants