-
Notifications
You must be signed in to change notification settings - Fork 1.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Cross-compilation broken: set(Halide_TARGET "cmake")
makes no sense
#8531
Comments
Hmm that should be translated from |
Uhh, i don't quite easy repro steps for you i'm afraid.
|
@LebedevRI -- I'm not sure what the following error means:
Apparently it defaults to looking for
|
I attempted to reproduce this error in a Docker container, running on i386. Here's the Dockerfile: FROM debian:testing
WORKDIR /ws
ARG DEBIAN_FRONTEND=noninteractive
RUN apt-get -qq -y update && \
apt-get -y install \
build-essential clang-19 cmake dh-python doxygen g++ git \
git-buildpackage libclang-19-dev libclang-rt-19-dev \
libflatbuffers-dev libgl-dev libjpeg-dev liblld-19-dev libopenblas-dev \
libpng-dev libpython3-dev libxml2-dev lld-19 llvm-19 llvm-19-dev \
ninja-build pybind11-dev python3-dev python3-imageio python3-numpy \
sbuild zlib1g-dev \
&& \
apt-get -qq -y clean && \
rm -rf /var/lib/apt/lists/*
RUN git clone https://salsa.debian.org/pkg-llvm-team/halide.git I built with: $ docker buildx build --platform linux/386 -t halide-i386 --load . Then I ran: alex@alex-ubuntu:~$ docker run --rm -it --entrypoint linux32 halide-i386 bash
root@7d394e5ffa1a:/ws# lsb_release -a
No LSB modules are available.
Distributor ID: Debian
Description: Debian GNU/Linux trixie/sid
Release: n/a
Codename: trixie
root@7d394e5ffa1a:/ws# arch
i686
root@7d394e5ffa1a:/ws# apt-get install libomp-19-dev
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
E: Unable to locate package libomp-19-dev And if I try to build without that dependency, it fails: root@7d394e5ffa1a:/ws/halide# gbp buildpackage --git-upstream-tree=debian/19.0.0-1
gbp:info: Creating halide_19.0.0.orig.tar.gz from 'debian/19.0.0-1'
gbp:info: Performing the build
dpkg-buildpackage -us -uc -ui -i -I
dpkg-buildpackage: info: source package halide
dpkg-buildpackage: info: source version 19.0.0-1
dpkg-buildpackage: info: source distribution unstable
dpkg-buildpackage: info: source changed by Roman Lebedev <[email protected]>
dpkg-source -i -I --before-build .
dpkg-buildpackage: info: host architecture i386
dpkg-source: warning: diff halide/debian/patches/0001-Remove-unrelevant-prebuild-binaries-to-pacify-lintia.patch removes a non-existing file halide/src/runtime/hexagon_remote/bin/arm-32-android/libhalide_hexagon_host.so (line 31)
dpkg-source: warning: diff halide/debian/patches/0001-Remove-unrelevant-prebuild-binaries-to-pacify-lintia.patch removes a non-existing file halide/src/runtime/hexagon_remote/bin/arm-64-android/libhalide_hexagon_host.so (line 576)
dpkg-source: warning: diff halide/debian/patches/0001-Remove-unrelevant-prebuild-binaries-to-pacify-lintia.patch removes a non-existing file halide/src/runtime/hexagon_remote/bin/host/libhalide_hexagon_host.so (line 652)
dpkg-source: warning: diff halide/debian/patches/0001-Remove-unrelevant-prebuild-binaries-to-pacify-lintia.patch removes a non-existing file halide/src/runtime/hexagon_remote/bin/src/halide_hexagon_remote.h (line 762)
dpkg-source: warning: diff halide/debian/patches/0001-Remove-unrelevant-prebuild-binaries-to-pacify-lintia.patch removes a non-existing file halide/src/runtime/hexagon_remote/bin/src/halide_hexagon_remote_skel.c (line 823)
dpkg-source: warning: diff halide/debian/patches/0001-Remove-unrelevant-prebuild-binaries-to-pacify-lintia.patch removes a non-existing file halide/src/runtime/hexagon_remote/bin/src/halide_hexagon_remote_stub.c (line 1601)
dpkg-source: warning: diff halide/debian/patches/0001-Remove-unrelevant-prebuild-binaries-to-pacify-lintia.patch removes a non-existing file halide/src/runtime/hexagon_remote/bin/v65/hexagon_sim_remote (line 2513)
dpkg-source: warning: diff halide/debian/patches/0001-Remove-unrelevant-prebuild-binaries-to-pacify-lintia.patch removes a non-existing file halide/src/runtime/hexagon_remote/bin/v65/libhalide_hexagon_remote_skel.so (line 4667)
dpkg-source: warning: diff halide/debian/patches/0001-Remove-unrelevant-prebuild-binaries-to-pacify-lintia.patch removes a non-existing file halide/src/runtime/hexagon_remote/bin/v65/libsim_qurt.a (line 4841)
dpkg-checkbuilddeps: error: Unmet build dependencies: libomp-19-dev
dpkg-buildpackage: warning: build dependencies/conflicts unsatisfied; aborting
dpkg-buildpackage: warning: (Use -d flag to override.)
debuild: fatal error at line 1184:
dpkg-buildpackage -us -uc -ui -i -I failed
gbp:error: 'debuild -i -I' failed: it exited with 29 Same thing if I try root@7d394e5ffa1a:/ws/halide# sbuild --host=i386 --build=i386
The Debian buildds switched to the "unshare" backend and sbuild will default to it in the future.
To start using "unshare" add this to your `~/.config/sbuild/config.pl`:
$chroot_mode = "unshare";
If you want to keep the old "schroot" mode even in the future, add the following to your `~/.config/sbuild/config.pl`:
$chroot_mode = "schroot";
$schroot = "schroot";
dpkg-source: warning: diff halide/debian/patches/0001-Remove-unrelevant-prebuild-binaries-to-pacify-lintia.patch removes a non-existing file halide/src/runtime/hexagon_remote/bin/arm-32-android/libhalide_hexagon_host.so (line 31)
dpkg-source: warning: diff halide/debian/patches/0001-Remove-unrelevant-prebuild-binaries-to-pacify-lintia.patch removes a non-existing file halide/src/runtime/hexagon_remote/bin/arm-64-android/libhalide_hexagon_host.so (line 576)
dpkg-source: warning: diff halide/debian/patches/0001-Remove-unrelevant-prebuild-binaries-to-pacify-lintia.patch removes a non-existing file halide/src/runtime/hexagon_remote/bin/host/libhalide_hexagon_host.so (line 652)
dpkg-source: warning: diff halide/debian/patches/0001-Remove-unrelevant-prebuild-binaries-to-pacify-lintia.patch removes a non-existing file halide/src/runtime/hexagon_remote/bin/src/halide_hexagon_remote.h (line 762)
dpkg-source: warning: diff halide/debian/patches/0001-Remove-unrelevant-prebuild-binaries-to-pacify-lintia.patch removes a non-existing file halide/src/runtime/hexagon_remote/bin/src/halide_hexagon_remote_skel.c (line 823)
dpkg-source: warning: diff halide/debian/patches/0001-Remove-unrelevant-prebuild-binaries-to-pacify-lintia.patch removes a non-existing file halide/src/runtime/hexagon_remote/bin/src/halide_hexagon_remote_stub.c (line 1601)
dpkg-source: warning: diff halide/debian/patches/0001-Remove-unrelevant-prebuild-binaries-to-pacify-lintia.patch removes a non-existing file halide/src/runtime/hexagon_remote/bin/v65/hexagon_sim_remote (line 2513)
dpkg-source: warning: diff halide/debian/patches/0001-Remove-unrelevant-prebuild-binaries-to-pacify-lintia.patch removes a non-existing file halide/src/runtime/hexagon_remote/bin/v65/libhalide_hexagon_remote_skel.so (line 4667)
dpkg-source: warning: diff halide/debian/patches/0001-Remove-unrelevant-prebuild-binaries-to-pacify-lintia.patch removes a non-existing file halide/src/runtime/hexagon_remote/bin/v65/libsim_qurt.a (line 4841)
dpkg-buildpackage: info: source package halide
dpkg-buildpackage: info: source version 19.0.0-1
dpkg-buildpackage: info: source distribution unstable
dpkg-buildpackage: info: source changed by Roman Lebedev <[email protected]>
dpkg-checkbuilddeps: error: Unmet build dependencies: libomp-19-dev
dpkg-buildpackage: warning: build dependencies/conflicts unsatisfied; aborting
dpkg-buildpackage: warning: (Use -d flag to override.)
E: Failed to clean source directory /ws/halide (/ws/halide_19.0.0-1.dsc) |
Right, you need
|
@LebedevRI -- I got a little further but still no luck root@6e296dd9ef8f:/ws/halide# git show HEAD
commit 721ae8c99da3a053a0da8f709f0e270853a7a86d (HEAD -> debian)
Author: Your Name <[email protected]>
Date: Sun Dec 22 16:44:26 2024 +0000
patch out libomp
diff --git a/debian/control b/debian/control
index d66c1ebf9..7a6eb4cc3 100644
--- a/debian/control
+++ b/debian/control
@@ -19,7 +19,7 @@ Build-Depends: debhelper-compat (= 13),
libgl-dev,
libjpeg-dev,
liblld-19-dev,
- libomp-19-dev,
+ libomp-19-dev [!i386],
libopenblas-dev,
libpng-dev,
libxml2-dev,
root@6e296dd9ef8f:/ws/halide# gbp buildpackage --git-upstream-tree=debian/19.0.0-1
...
The next patch would delete the file src/runtime/hexagon_remote/bin/v65/libhalide_hexagon_remote_skel.so,
which does not exist! Skipping patch.
1 out of 1 hunk ignored
The next patch would delete the file src/runtime/hexagon_remote/bin/v65/libsim_qurt.a,
which does not exist! Skipping patch.
1 out of 1 hunk ignored
dpkg-source: info: the patch has fuzz which is not allowed, or is malformed
dpkg-source: info: if patch '0001-Remove-unrelevant-prebuild-binaries-to-pacify-lintia.patch' is correctly applied by quilt, use 'quilt refresh' to update it
dpkg-source: info: if the file is present in the unpacked source, make sure it is also present in the orig tarball
dpkg-buildpackage: error: dpkg-source -i -I -b . subprocess returned exit status 2
debuild: fatal error at line 1184:
dpkg-buildpackage -us -uc -ui -i -I failed
gbp:error: 'debuild -i -I' failed: it exited with 29 |
You should be fine with also applying diff --git a/debian/patches/series b/debian/patches/series
index 9cad0106a..926648dc4 100644
--- a/debian/patches/series
+++ b/debian/patches/series
@@ -1,4 +1,3 @@
-0001-Remove-unrelevant-prebuild-binaries-to-pacify-lintia.patch
0002-Fixup-libhalide-version-soversion-for-debian-package.patch
0003-Fixup-libHalidePyStubs-version-soversion-for-debian-.patch
0004-Disable-LTO-for-python-stub.patch
|
Presumably
Halide/cmake/HalideTargetHelpers.cmake
Lines 76 to 84 in b3c8c8b
should be
?
The text was updated successfully, but these errors were encountered: