Helmut Grohne, le mar. 09 sept. 2025 17:54:46 +0200, a ecrit: > On Mon, Sep 08, 2025 at 04:42:06PM +0200, Samuel Thibault wrote: > > It seems it didn't work on the salsa CI: > > > > https://salsa.debian.org/debian/otf2/-/jobs/8240376 > > > > “ > > checking for suffix of executables... > > checking whether we are cross compiling... configure: error: in > > '/builds/debian/otf2/debian/output/source_dir/build-backend': > > configure: error: cannot run C compiled programs. > > If you meant to cross compile, use '--host'. > > ” > > As much as I see this failing on salsa-ci, I cannot reproduce this > failure locally. This output is from the nested configure invocation. > For reference, the invocation is: > > configure: running /bin/bash ./configure --disable-option-checking > '--prefix=/usr' 'CC_FOR_BUILD=' '--infodir=${prefix}/share/info' > '--host=aarch64-linux-gnu' 'CXX=' '--localstatedir=/var' 'FC_FOR_BUILD=' > 'CXX_FOR_BUILD=' 'CFLAGS=-g -O2 -Werror=implicit-function-declaration > -ffile-prefix-map=/builds/debian/otf2/debian/output/source_dir=. > -fstack-protector-strong -fstack-clash-protection -Wformat > -Werror=format-security -mbranch-protection=standard' 'CXXFLAGS=-g -O2 > -ffile-prefix-map=/builds/debian/otf2/debian/output/source_dir=. > -fstack-protector-strong -fstack-clash-protection -Wformat > -Werror=format-security -mbranch-protection=standard' 'FCFLAGS=-g -O2 > -ffile-prefix-map=/builds/debian/otf2/debian/output/source_dir=. > -fstack-protector-strong -fstack-clash-protection > -mbranch-protection=standard' 'F77_FOR_BUILD=' '--build=x86_64-linux-gnu' > 'CC=' '--runstatedir=/run' '--sysconfdir=/etc' 'FFLAGS=-g -O2 > -ffile-prefix-map=/builds/debian/otf2/debian/output/source_dir=. > -fstack-protector-strong -fstack-clash-protection > -mbranch-protection=standard' 'FC=' > '--libdir=${prefix}/lib/aarch64-linux-gnu' '--includedir=${prefix}/include' > 'F77=' '--mandir=${prefix}/share/man' '--with-custom-compilers' > '--enable-backend-test-runs' '--disable-dependency-tracking' > '--disable-maintainer-mode' '--disable-silent-rules' > 'ac_scorep_platform=linux' 'ac_scorep_cross_compiling=no' > --cache-file=/dev/null --srcdir=. > > Please observe that the 5th option is --host. It is not clear to me why > that is failing on salsa-ci and succeeding locally in sbuild.
Does your sbuild tree have arm64 binfmt emulation enabled? It would work then. I have found the issue: the score-p infrastructure assumes that Linux does not cross-compile (as opposed to bluegene etc. environments which do cross-compile). And another small bit about libdir. It does cross-build on my box, it should be fine on salsa as well, we will see on https://salsa.debian.org/debian/otf2/-/pipelines/935033 Samuel

