Thread View: linux.debian.ports.arm
1 messages
1 total messages
Started by Helmut Grohne
Mon, 09 Nov 2026 06:00
Bug#1153490: openipmi FTCBFS for amd64 and arm64: passes host flags to the build compiler
Author: Helmut Grohne
Date: Mon, 09 Nov 2026 06:00
Date: Mon, 09 Nov 2026 06:00
50 lines
3217 bytes
3217 bytes
--CPwpZ30FkWy5SNdn
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
Source: openipmi
Version: 2.0.37-1
X-Debbugs-Cc: debian-amd64@lists.debian.org, debian-arm@lists.debian.org
User: debian-arm@lists.debian.org
Usertags: arm64
User: debian-amd64@lists.debian.org
Usertags: amd64
User: debian-cross@lists.debian.org
Usertags: ftcbfs
openipmi fails to cross build from source, because it passes host
compiler flags to the build architecture compiler. This breaks when
building for amd64 or arm64, because those architectures have unique
compiler flags that are not accepted by other compilers. I'm attaching a
patch to differentiate those flags.
Helmut
--CPwpZ30FkWy5SNdn
Content-Type: text/x-diff; charset=us-ascii
Content-Disposition: attachment; filename="cross.patch"
--- openipmi-2.0.37.orig/configure.ac
+++ openipmi-2.0.37/configure.ac
@@ -761,8 +761,10 @@
AC_CHECK_PROGS(BUILD_CC, [${build_alias}-gcc ${build}-gcc gcc])
else
BUILD_CC="$CC"
+ BUILD_CFLAGS="$CFLAGS"
fi
AC_SUBST([BUILD_CC])
+AC_SUBST([BUILD_CFLAGS])
AC_CONFIG_FILES([Makefile
utils/Makefile
--- openipmi-2.0.37.orig/lanserv/sdrcomp/Makefile.am
+++ openipmi-2.0.37/lanserv/sdrcomp/Makefile.am
@@ -19,4 +19,4 @@
$(top_srcdir)/utils/string.c
BUILD_SDRCOMP_SRCS = $(top_srcdir)/$(subdir)/sdrcomp.c
sdrcomp_build$(EXEEXT): $(BUILD_SDRCOMP_SRCS) $(BUILD_SDRCOMP_DEPS)
- $(BUILD_CC) -o $@ $(BUILD_SDRCOMP_SRCS) $(CFLAGS) $(AM_CFLAGS) -lm
+ $(BUILD_CC) -o $@ $(BUILD_SDRCOMP_SRCS) $(BUILD_CFLAGS) $(AM_CFLAGS) -lm
--CPwpZ30FkWy5SNdn--
Thread Navigation
This is a paginated view of messages in the thread with full content displayed inline.
Messages are displayed in chronological order, with the original post highlighted in green.
Use pagination controls to navigate through all messages in large threads.
Back to All Threads