Your message dated Mon, 01 Sep 2025 06:35:08 +0000
with message-id <[email protected]>
and subject line Bug#1107590: fixed in openblas 0.3.30+ds-1
has caused the Debian Bug report #1107590,
regarding openblas FTCBFS: multiple reasons
to be marked as done.

This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.

(NB: If you are a system administrator and have no idea what this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact [email protected]
immediately.)


-- 
1107590: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1107590
Debian Bug Tracking System
Contact [email protected] with problems
--- Begin Message ---
Source: openblas
Version: 0.3.29+ds-3
Tags: patch
User: [email protected]
Usertags: cross-satisfiability ftcbfs

openblas fails to cross build from source for several reasons. The
immediate problem is that gfortran as a build dependency cannot be
installed. "gfortran" refers to the native compiler for the host
architecture and if it were installable it could not be run. Instead,
openblas should build depend on "gfortran-for-host". Doing so comes with
a twist though. You cannot just run "gfortran" then. A triplet-prefixed
variant must be used (even for native builds). To comply with this
limitation, a suitable FC variable needs to be passed to the build
system. A suitable value can be obtained from dpkg's buildtools.mk.
While at it, I suggest also setting CC to make the build system honour
the builders choice. For actually cross compiling, the build system
needs to be told via CROSS=1 and it also needs a HOSTCC. And with that
in place, cross building openblas seems to just work. I'm attaching a
patch meant for forky for your convenience.

Helmut
diff --minimal -Nru openblas-0.3.29+ds/debian/changelog 
openblas-0.3.29+ds/debian/changelog
--- openblas-0.3.29+ds/debian/changelog 2025-03-10 19:55:28.000000000 +0100
+++ openblas-0.3.29+ds/debian/changelog 2025-05-31 19:51:06.000000000 +0200
@@ -1,3 +1,12 @@
+openblas (0.3.29+ds-3.1) UNRELEASED; urgency=medium
+
+  * Non-maintainer upload.
+  * Fix FTCBFS: (Closes: #-1)
+    * Build-Depend on gfortran-for-host.
+    * Set more MAKE_OPTIONS to forward the toolchain.
+
+ -- Helmut Grohne <[email protected]>  Sat, 31 May 2025 19:51:06 +0200
+
 openblas (0.3.29+ds-3) unstable; urgency=medium
 
   * Cherry-pick upstream PR#5170 for thread safety of pthread build.
diff --minimal -Nru openblas-0.3.29+ds/debian/control 
openblas-0.3.29+ds/debian/control
--- openblas-0.3.29+ds/debian/control   2025-01-28 02:08:14.000000000 +0100
+++ openblas-0.3.29+ds/debian/control   2025-05-31 19:47:49.000000000 +0200
@@ -6,7 +6,7 @@
 Priority: optional
 Build-Depends: debhelper-compat (= 13),
                debhelper (>= 12.8~),
-               gfortran,
+               gfortran-for-host,
                liblapack-dev (>= 3.12),
                liblapack64-dev (>= 3.12) [amd64 arm64 ppc64el ppc64 mips64el 
riscv64 sparc64 s390x loong64],
 Standards-Version: 4.7.0
diff --minimal -Nru openblas-0.3.29+ds/debian/rules 
openblas-0.3.29+ds/debian/rules
--- openblas-0.3.29+ds/debian/rules     2025-03-10 19:55:23.000000000 +0100
+++ openblas-0.3.29+ds/debian/rules     2025-05-31 19:51:06.000000000 +0200
@@ -4,12 +4,18 @@
 export DEB_LDFLAGS_MAINT_STRIP := "-Wl,-Bsymbolic-functions"
 
 include /usr/share/dpkg/buildflags.mk
+include /usr/share/dpkg/buildtools.mk
 include /usr/share/dpkg/pkg-info.mk
 SOVER := 0
 SRCS := $(filter-out debian $(FLAVORS), $(wildcard ./*))
 
 MAKE_OPTIONS := NO_LAPACKE=1 NO_AFFINITY=1 NO_WARMUP=1 CFLAGS="$(CPPFLAGS) 
$(CFLAGS)" FFLAGS="$(FFLAGS)"
 
+MAKE_OPTIONS += CC='$(CC)' FC='$(FC)'
+ifneq ($(DEB_BUILD_ARCH),$(DEB_HOST_ARCH))
+MAKE_OPTIONS += CROSS=1 HOSTCC='$(CC_FOR_BUILD)'
+endif
+
 # Avoid having -O2 automatically added (especially for DEB_BUILD_OPTIONS=noopt)
 MAKE_OPTIONS += COMMON_OPT=
 

--- End Message ---
--- Begin Message ---
Source: openblas
Source-Version: 0.3.30+ds-1
Done: Sébastien Villemot <[email protected]>

We believe that the bug you reported is fixed in the latest version of
openblas, which is due to be installed in the Debian FTP archive.

A summary of the changes between this version and the previous one is
attached.

Thank you for reporting the bug, which will now be closed.  If you
have further comments please address them to [email protected],
and the maintainer will reopen the bug report if appropriate.

Debian distribution maintenance software
pp.
Sébastien Villemot <[email protected]> (supplier of updated openblas package)

(This message was generated automatically at their request; if you
believe that there is a problem with it please contact the archive
administrators by mailing [email protected])


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA512

Format: 1.8
Date: Sun, 31 Aug 2025 21:45:04 +0200
Source: openblas
Architecture: source
Version: 0.3.30+ds-1
Distribution: experimental
Urgency: medium
Maintainer: Debian Science Team 
<[email protected]>
Changed-By: Sébastien Villemot <[email protected]>
Closes: 1107581 1107590
Changes:
 openblas (0.3.30+ds-1) experimental; urgency=medium
 .
   [ Sébastien Villemot ]
   * New upstream version 0.3.30+ds
   * d/watch: upgrade to version 5
   * d/copyright: reflect upstream changes
   * 39eb43d4410d0745ca2c78d1162d973abf3aa35b.patch: drop patch, applied 
upstream
   * Remove “Rules-Requires-Root: no”, which is now the default
   * Bump S-V to 4.7.2
 .
   [ Helmut Grohne ]
   * Fix FTCBFS
     * Build-Depend on gfortran-for-host.
     * Set more MAKE_OPTIONS to forward the toolchain. (Closes: #1107590)
 .
   [ John Paul Adrian Glaubitz ]
   * Build on alpha (Closes: #1107581)
Checksums-Sha1:
 e7645b7a047e38a223da6d662fe4de9149a21362 4670 openblas_0.3.30+ds-1.dsc
 92a8e4eb78694fc758903214a860d3f19b9c4ec5 2230516 openblas_0.3.30+ds.orig.tar.xz
 ac7b27066e577d95064f56bb1556ad8e59e83da6 25196 
openblas_0.3.30+ds-1.debian.tar.xz
 500a231723a15cb9316f1ef855b9acb1e6c789b3 13113 
openblas_0.3.30+ds-1_amd64.buildinfo
Checksums-Sha256:
 b960b53da65baa50db27c303e132793ab6a06573e0b12f7193d6b3c3b6dabb87 4670 
openblas_0.3.30+ds-1.dsc
 441ce70583c6d5d18a727b9b20110818f7794cf8209859969d95edc1c5eda30b 2230516 
openblas_0.3.30+ds.orig.tar.xz
 0c53dfbc765601139acbd8554738a0bc269f82cc622c0ea9e7f69d9352a5ad02 25196 
openblas_0.3.30+ds-1.debian.tar.xz
 7e3e8ae57252475809898b995bfac6b29caa6fbbee9d7e708f17b631a7a7e8fb 13113 
openblas_0.3.30+ds-1_amd64.buildinfo
Files:
 ba7ab2a08b53d52df81883f6e749aeb1 4670 devel optional openblas_0.3.30+ds-1.dsc
 b8febf636300fc26a3951d0f38b683c8 2230516 devel optional 
openblas_0.3.30+ds.orig.tar.xz
 ff7a71efc8c34719867e99cf934153d8 25196 devel optional 
openblas_0.3.30+ds-1.debian.tar.xz
 7caf1c163a995892d585fa345fe19862 13113 devel optional 
openblas_0.3.30+ds-1_amd64.buildinfo

-----BEGIN PGP SIGNATURE-----

iQIzBAEBCgAdFiEEU5UdlScuDFuCvoxKLOzpNQ7OvkoFAmi0s50ACgkQLOzpNQ7O
vkp02Q//VZCKIK3eLkLU1bEC9mh1W2g4mo6SNO81OiMMcdB50Afr5rA2ZkAlKpvP
VAIZCmWlyuluWURStBqz8YqEhjKQhoD7tOxvSBgiF7n4MFpEWB/ol9Y/tqxu4TFW
/bo1TLxF2PfXAyn0w7JW/X6gaTpFs/HoJZkDlHff0N95n2WK23FKcUtwyNN5MGST
MBogZWLmG5SDCvrkkv5sqvoR/q9iztgN2SKgCv2TDAzVI36b5Wi4eEZOEtvH8/lr
EJydqfOG8DBXbqHSpPTOyDtkOpy7UdirIayAiRlukU7TOLhEOVoghG2RGdrcEt1P
0QU996eb7hJ4dCkOAJzUyG+Fm6M2uxoNKGHzFSIXumvJbRDp85bnUO1tlQXNV0ej
0jUPng0AAgfqAqM03TXmp0ptgSRo1u7XuqfYEcDsQudA+tM7LSxae3MMAo/Uotdg
sfZ8Tkiif2w1STlMf80B+Nm0rnhryvqKqU20265jPVQBhLStuo4bUgqLJoJIm9tL
YGWGFnsKoY1/t2qjwS2TuAkrrzmw9IhpK4vpSj2ju90Kyv12hmMpQ4S8Hwko1pCF
XCEEZVL/54CEa042HPbhlmBvuFGtCqwUmWtWdJCxKQljtV7VdlIzIPIlmKR2LRDO
89FhX2ONKfvOMcDTs70DvWf/SppSHiV7NIe0shPB1PbsrdEVG8k=
=PjOg
-----END PGP SIGNATURE-----

Attachment: pgpIueH9J947o.pgp
Description: PGP signature


--- End Message ---

Reply via email to