[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#1060075: gcc-13 FTCBFS: target system type set to nvptx-unknown-none



Source: gcc-13
Version: 13.2.0-9
User: debian-cross@lists.debian.org
Usertags: ftcbfs
X-Debbugs-CC: debian-cross@lists.debian.org

Hi,

cross-building the native compiler (build_type = cross-build-native)
fails due to (1) an issue with m2, and (2) nvptx being confused about
the host/target system. The first problem is apparently old and known,
as shown by the various logs at https://crossqa.debian.net/src/gcc-13

The nvptx issue perhaps is not.

On a x86 machine, I've tried building gcc-13 with:

 DEB_BUILD_OPTIONS='nolang=m2 nocheck' sbuild --host=arm64

After a while the build failed with:

  checking build system type... x86_64-pc-linux-gnu
  checking host system type... x86_64-pc-linux-gnu
  checking target system type... nvptx-unknown-none
  [...]
  checking whether we are cross compiling... configure: error: in `/<<PKGBUILDDIR>>/build-nvptx':
  configure: error: cannot run C compiled programs.

My understanding is that both the host and target system type should be
aarch64-unknown-linux-gnu instead.

With nvptx disabled, ie with the following patch applied, and
DEB_BUILD_OPTIONS='nolang=m2', gcc-13 cross-builds successfully.

--- /tmp/gcc-13-13.2.0/debian/rules.defs	2023-12-14 19:55:12.000000000 +0100
+++ debian/rules.defs	2024-01-05 17:26:13.528700625 +0100
@@ -781,7 +781,7 @@
   offload_targets :=
   with_offload_nvptx :=
 endif
-ifneq (,$(findstring build-cross, $(build_type)))
+ifneq ($(build_type),build-native)
   offload_targets :=
   with_offload_nvptx := disabled for cross builds
 endif


Reply to: