Bug#1115731: llvm-toolchain: please make some improvements to the build doc/scripts
Marc Dequènes (duck)
duck at duckcorp.org
Fri Sep 19 16:35:43 BST 2025
Source: llvm-toolchain-19
Version: 1:19.1.7-6
Severity: wishlist
Quack,
Due to #1115194 I wanted to rebuild llvm myself but that did not go so
well.
Running ./19/debian/orig-tar.sh to get the sources ends-up in:
Compressing to llvm-toolchain-19_19.1.7.orig.tar.xz
./19/debian/orig-tar.sh: 168: time: not found
The documentation mentions prefixing the command with sh but `time` is
not available in dash apparently and bash (or some other shell) is
needed.
Then the script does a dch as Sylvestre Ledru, so clearly this script is
not really meant to be used by any other; I was expecting to just get
the sources and be able to run sbuild right after.
But anyway building fails too:
dpkg-source: info: building llvm-toolchain-19 using existing
./llvm-toolchain-19_19.1.7.orig.tar.xz
dpkg-source: info: using patch list from debian/patches/series
dpkg-source: info: the patch has fuzz which is not allowed, or is
malformed
dpkg-source: info: if patch 'powerpc-fix-sigill.diff' 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-source: error: cannot read
19.orig.dowxPV/debian/patches/powerpc-fix-sigill.diff: No such file or
directory
debian/patches/powerpc-fix-sigill.diff does not exist, but
debian/patches/powerpc-fix-SIGILL.diff does, are you working on a case
insensitive filesystem?
I renamed the file and the build started but I also noted patches seem
to already be applied without setting the .pc metadata, so using quilt
is impossible; I'm not really sure how you manage patches but
fortunately my changes did not conflict with any patch and the build was
able to proceed. It would be nice to clarify how it should be done.
That is to say: I really appreciated finding docs in debian/README
because the build steps are very specific to this package but there's a
few things that could make things easier to external contributors.
Regards.
\_o<
--
Marc Dequènes
More information about the Pkg-llvm-team
mailing list