Page MenuHome GnuPG

gpgme: build failure without threads
Open, LowPublic

Description

The following build failure is raised without threads since version 1.17.1 and https://git.gnupg.org/cgi-bin/gitweb.cgi?p=gpgme.git;a=commit;h=f3177d3ee0a1d30e15f33ff226b5e4c96b7610db

run-wkdlookup.cpp: In function 'int main(int, char**)':
run-wkdlookup.cpp:130:18: error: 'std::this_thread' has not been declared
  130 |             std::this_thread::sleep_for(std::chrono::milliseconds{250 * cnt});
      |                  ^~~~~~~~~~~

Please find a patch attached that allow the user to disable cpp tests.

Event Timeline

gniibe added a project: Info Needed.
gniibe added a subscriber: gniibe.

Thank you for your report. Next time, please include information of your target and configuration in the report.

AIUC, the target is uClibc environment. Basically, the error comes from C library and toolchain issue (I mean, not our fault).

C++11 support is required for GPGME and GnuPG requires threads support.

I think that the particular patch would make sense for your own build, but not relevant to upstream.

GnuPG requires threads but not gpgme.
We already had the same discussion about threads and libgpg-error more than one year ago: https://dev.gnupg.org/T5296