Opened 16 months ago

Last modified 16 months ago

#67757 assigned defect

haproxy 2.8.1 runtime failure due to overriding CFLAGS

Reported by: simon-anthony (Simon Anthony) Owned by: judaew (Vadym-Valdis Yudaiev)
Priority: Normal Milestone:
Component: ports Version:
Keywords: Cc: MarcusCalhoun-Lopez (Marcus Calhoun-Lopez), aphor (Jeremy McMillan)
Port: haproxy

Description

FATAL ERROR: invalid code detected -- cannot go further, please recompile! The source code was miscompiled by the compiler, which usually indicates that some of the CFLAGS needed to work around overzealous compiler optimizations were overwritten at build time. Please do not force CFLAGS, and read Makefile and INSTALL files to decide on the best way to pass your local build options.

Build options :

TARGET = osx CPU = generic CC = /usr/bin/clang CFLAGS = -I/opt/local/libexec/openssl3/include -Os -isysroot/Library/Developer/CommandLineTools/SDKs/MacOSX13.sdk -arch x86_64 OPTIONS = USE_THREAD=1 USE_LIBCRYPT=1 USE_OPENSSL=1 USE_ZLIB=1 USE_PCRE=1 USE_PCRE_JIT=1 DEBUG = -DDEBUG_STRICT -DDEBUG_MEMORY_POOLS

Change History (2)

comment:1 Changed 16 months ago by jmroot (Joshua Root)

Cc: MarcusCalhoun-Lopez aphor added
Owner: set to judaew
Status: newassigned
Summary: haproxy 2.8.1 needs recompilationhaproxy 2.8.1 runtime failure due to overriding CFLAGS

Looks like it specifically requires -fwrapv. This is normally added in the Makefile, but it looks like the Portfile is overwriting the default flags as of [07a5c1a7fa0afd0db80c8cb1cd9acb38053a3f83/macports-ports].

comment:2 Changed 16 months ago by judaew (Vadym-Valdis Yudaiev)

In 74688cf8515982db31bb60935c1354e6431cb755/macports-ports (master):

haproxy: fix runtime failure due to overriding CFLAGS

See #67757

Note: See TracTickets for help on using tickets.