--- Begin Message ---
- To: Urmas Rist <urmas@leil.io>
- Subject: Re: Update
- From: Tony Travis <tony.travis@minke-informatics.co.uk>
- Date: Thu, 23 Oct 2025 12:32:53 +0100
- Message-id: <0aac9a83-9dd4-415f-89b7-47b3d220faa0@minke-informatics.co.uk>
- In-reply-to: <DDORXCBQSIYB.KQUAPLOD86GQ@leil.io>
- References: <695bac4e-600f-4c29-8136-dacf27805fec@minke-informatics.co.uk> <DC2VE85F60QN.1LC41KORKKNJ5@leil.io> <b2a1b712-db27-4dc6-921f-8967d93473ed@minke-informatics.co.uk> <DDORXCBQSIYB.KQUAPLOD86GQ@leil.io>
On 22/10/2025 11:20, Urmas Rist wrote:
[...]
Hello Tony!
Sorry for the late reply, I had to cut the other day short.
I don't think you even need to use `--git-upstream-tag=v5.1.2` option.
It should work fine without it.
Also make sure the git repository is clean with `git reset --hard HEAD`
and `git clean -f .`.
P.S: I just updated the git repository with 5.3.0 snapshot, you may want
to pull after you are able to build 5.1.2 package.
Hi, Urmas.
I only have guest access to Salsa as Tony Travis @ajtravis-guest, so I
can't create comments or issues in "history". I've requested access, but
I hope you don't mind me contacting you by email for now.
I'm running Debian 12 (bookworm) on my Proxmox Backup server "pbs1":
root@pbs1:/usr/local/src# lsb_release -d
No LSB modules are available.
Description: Debian GNU/Linux 12 (bookworm)
As you can tell from my previous email, I'm new to "gbp" and struggling
to understand how to use it. Your suggestions did not fix the problem,
but I have managed to get it to run using a BRANCH instead of a TAG:
root@pbs1:/usr/local/src/saunafs# gbp clone https://salsa.debian.org/hpc-team/saunafs.git
root@pbs1:/usr/local/src/saunafs# cd saunafs/
root@pbs1:/usr/local/src/saunafs# DIST=bookworm ARCH=amd64 git-pbuilder create |& tee /var/tmp/git-pbuilder.log
root@pbs1:/usr/local/src/saunafs# gbp buildpackage --git-pbuilder --git-arch=amd64 --git-dist=bookworm --git-upstream-tag=master |& tee /var/tmp/gbp.log
However, this failed to build because of an error and stopped:
[...]> /build/saunafs-5.3.0-rc3/src/metrics/metrics.cc:64:22: error:
'jthread' is not a member of 'std'; did you mean 'fread'?
64 | std::unique_ptr<std::jthread>
| ^~~~~~~
| fread
/build/saunafs-5.3.0-rc3/src/metrics/metrics.cc:64:29: error: template argument 1 is invalid
64 | std::unique_ptr<std::jthread>
| ^
/build/saunafs-5.3.0-rc3/src/metrics/metrics.cc:64:29: error: template argument 2 is invalid
/build/saunafs-5.3.0-rc3/src/metrics/metrics.cc: In function 'void metrics::destroy()':
/build/saunafs-5.3.0-rc3/src/metrics/metrics.cc:68:32: error: invalid operands of types 'int' and 'std::nullptr_t' to binary 'operator!='
68 | if (gMetricsMainThread != nullptr) {
| ~~~~~~~~~~~~~~~~~~~^~~~~~~~~~
/build/saunafs-5.3.0-rc3/src/metrics/metrics.cc:69:35: error: base operand of '->' is not a pointer
69 | gMetricsMainThread->request_stop();
| ^~
/build/saunafs-5.3.0-rc3/src/metrics/metrics.cc: At global scope:
/build/saunafs-5.3.0-rc3/src/metrics/metrics.cc:105:32: error: 'stop_token' in namespace 'std' does not name a type
105 | void prometheusLoop(const std::stop_token& stop, const char* host) {
| ^~~~~~~~~~
/build/saunafs-5.3.0-rc3/src/metrics/metrics.cc: In function 'void metrics::prometheusLoop(const int&, const char*)':
/build/saunafs-5.3.0-rc3/src/metrics/metrics.cc:113:30: error: request for member 'stop_requested' in 'stop', which is of non-class type 'const int'
113 | while (!stop.stop_requested()) {
| ^~~~~~~~~~~~~~
/build/saunafs-5.3.0-rc3/src/metrics/metrics.cc:114:30: error: 'std::this_thread' has not been declared
114 | std::this_thread::sleep_for(std::chrono::milliseconds(THREAD_SLEEP_TIME_MS));
| ^~~~~~~~~~~
/build/saunafs-5.3.0-rc3/src/metrics/metrics.cc: In function 'void metrics::init(const char*)':
/build/saunafs-5.3.0-rc3/src/metrics/metrics.cc:122:52: error: 'jthread' is not a member of 'std'; did you mean 'fread'?
122 | gMetricsMainThread = std::make_unique<std::jthread>(std::jthread(prometheusLoop, host));
| ^~~~~~~
| fread
/build/saunafs-5.3.0-rc3/src/metrics/metrics.cc:122:66: error: 'jthread' is not a member of 'std'; did you mean 'fread'?
122 | gMetricsMainThread = std::make_unique<std::jthread>(std::jthread(prometheusLoop, host));
| ^~~~~~~
| fread
[...]> [ 40%] Built target sfscommon
make[2]: Leaving directory '/build/saunafs-5.3.0-rc3/build'
make[1]: *** [Makefile:159: all] Error 2
make[1]: Leaving directory '/build/saunafs-5.3.0-rc3/build'
dh_auto_build: error: cd build && make -j32 "INSTALL=install --strip-program=true" VERBOSE=1 returned exit code 2
make: *** [debian/rules:20: binary] Error 25
dpkg-buildpackage: error: debian/rules binary subprocess returned exit status 2
I: copying local configuration
E: Failed autobuilding of package
I: unmounting dev/ptmx filesystem
I: unmounting dev/pts filesystem
I: unmounting dev/shm filesystem
I: unmounting proc filesystem
I: unmounting sys filesystem
I: Cleaning COW directory
I: forking: rm -rf /var/cache/pbuilder/build/cow.672597
gbp:error: 'git-pbuilder' failed: it exited with 1
I couldn't get it to run using a version tag and I could not see any
tags in the repository. I don't know how to set my cloned repo to use
the 5.1.2 version. I get the "Not a valid treeish" error if I use the
tag you did. I'd appreciate your advice about what I'm doing wrong!
Thanks,
Tony.
--
Minke Informatics Limited, Registered in Scotland - Company No. SC419028
Registered Office: 3 Donview, Bridge of Alford, AB33 8QJ, Scotland (UK)
tel. +44(0)19755 63548 http://minke-informatics.co.uk
mob. +44(0)7985 078324 mailto:tony.travis@minke-informatics.co.uk
--- End Message ---