FS#71861 - [haproxy] 2.4.3 doesn't start any more
Attached to Project:
Community Packages
Opened by Oleksandr Natalenko (post-factum) - Wednesday, 18 August 2021, 13:18 GMT
Last edited by Christian Hesse (eworm) - Wednesday, 18 August 2021, 13:45 GMT
Opened by Oleksandr Natalenko (post-factum) - Wednesday, 18 August 2021, 13:18 GMT
Last edited by Christian Hesse (eworm) - Wednesday, 18 August 2021, 13:45 GMT
|
Details
This is what I get after the recent update:
``` haproxy[1001879]: FATAL ERROR: invalid code detected -- cannot go further, please recompile! haproxy[1001879]: The source code was miscompiled by the compiler, which usually indicates that haproxy[1001879]: some of the CFLAGS needed to work around overzealous compiler optimizations haproxy[1001879]: were overwritten at build time. Please do not force CFLAGS, and read Makefile haproxy[1001879]: and INSTALL files to decide on the best way to pass your local build options. haproxy[1001879]: Build options : haproxy[1001879]: TARGET = linux-glibc haproxy[1001879]: CPU = generic haproxy[1001879]: CC = cc haproxy[1001879]: CFLAGS = -march=x86-64 -mtune=generic -O2 -pipe -fno-plt haproxy[1001879]: OPTIONS = USE_PCRE=1 USE_PCRE_JIT=1 USE_GETADDRINFO=1 USE_OPENSSL=1 USE_LUA=1 USE_ZLIB=1 USE_SYSTEMD=1 USE_PROMEX=1 haproxy[1001879]: DEBUG = ``` The error comes from this commit: https://git.haproxy.org/?p=haproxy-2.4.git;a=commit;h=08293ed8f964cd2dc3faafbe81562b1eb59187d1 I assume haproxy needs `-fwrapv` now. Downgrading to 2.4.2 fixes this. |
This task depends upon
Closed by Christian Hesse (eworm)
Wednesday, 18 August 2021, 13:45 GMT
Reason for closing: Fixed
Additional comments about closing: haproxy 2.4.3-2
Wednesday, 18 August 2021, 13:45 GMT
Reason for closing: Fixed
Additional comments about closing: haproxy 2.4.3-2

Indeed, adding `export CFLAGS="$CFLAGS -fwrapv"` to the PKGBUILD
fixes the issue.