Hi Jing,

* Jing Luo <jing@jing.rocks> [2025-02-02 19:44]:
Hi! cruft-ng 0.9.65 fails to build from source. Here is the sbuild log:

g++ -g -O2 -ffile-prefix-map=/build/reproducible-path/cruft-ng-0.9.65=. 
-fstack-protector-strong -fstack-clash-protection -Wformat 
-Werror=format-security -fcf-protection -Wall -Wextra   -Wdate-time 
-D_FORTIFY_SOURCE=2  -c -o dpkg_lib.o dpkg_lib.cc
dpkg_lib.cc: In function ‘int query(const char*)’:
dpkg_lib.cc:24:25: error: ‘FHFF_NOCOPY’ was not declared in this scope; did you 
mean ‘FHFF_NO_COPY’?
  24 | #define FHFF_NO_COPY    FHFF_NOCOPY
     |                         ^~~~~~~~~~~
dpkg_lib.cc:48:46: note: in expansion of macro ‘FHFF_NO_COPY’
  48 |         namenode = fsys_hash_find_node(path, FHFF_NO_COPY);
     |                                              ^~~~~~~~~~~~
make[2]: *** [<builtin>: dpkg_lib.o] Error 1
make[2]: *** Waiting for unfinished jobs....
plocate.cc: In function ‘int read_locate(std::vector<std::__cxx11::basic_string<char> 
>&, const std::string&, const std::string&)’:
plocate.cc:14:78: warning: unused parameter ‘root_dir’ [-Wunused-parameter]
  14 | int read_locate(vector<string>& fs, const string& ignore_path, const 
string& root_dir)
     |                                                                
~~~~~~~~~~~~~~^~~~~~~~
cpigs.cc: In function ‘void output_ncdu(std::vector<std::__cxx11::basic_string<char> 
>&)’:
cpigs.cc:136:19: warning: unused variable ‘part’ [-Wunused-variable]
 136 |         for(auto& part : last_dir) { cout << ']'; }
     |                   ^~~~
make[2]: Leaving directory '/build/reproducible-path/cruft-ng-0.9.65'
dh_auto_build: error: make -j60 "INSTALL=install --strip-program=true" cruft 
cpigs returned exit code 2
make[1]: *** [debian/rules:28: override_dh_auto_build-arch] Error 25
make[1]: Leaving directory '/build/reproducible-path/cruft-ng-0.9.65'
make: *** [debian/rules:20: binary] Error 2
dpkg-buildpackage: error: debian/rules binary subprocess returned exit status 2

I can't reproduce this, i.e. this works on a trixie system:

sbuild --chroot-mode=unshare --dist=unstable cruft-ng

Can you share your complete build log?

Cheers Jochen

Attachment: signature.asc
Description: PGP signature

Reply via email to