Has anyone compiled the libgpg-error, gnupg, and other packages?

The ultimate goal is to use GnuPG’s digital signature and encryption features on a mobile device, which involves cross-compilation. First, I’m trying to compile it on the host machine for testing.

GnuPG relies on several libraries—essentially configuration tools for itself, just managed separately. Unfortunately, I got stuck right at the first step. :frowning:

libgpg-error is the most fundamental library in this suite, providing the configure script. I downloaded source packages from multiple sources, including the official website and openEuler’s source package, with varying versions, but the compilation issues were identical across all.

On the host system—x86_64 openEuler 2509 DevStation—running ./configure works fine, but make fails with a missing config.h file, even though config.h.in exists in the current directory.

Checking the config.log file, the last section shows:

$ tail config.log
  CONFIG_FILES    = 
  CONFIG_HEADERS  = 
  CONFIG_LINKS    = 
  CONFIG_COMMANDS = 
  $ ./config.status config.h

on hw-pc

config.status:1306: creating config.h
config.status:1487: config.h is unchanged

Manually running this command produces no config.h file.

It shouldn’t be that none of the various source packages compile properly. :sob:

官方都源代码用于排错,可能无法完成编译:
GnuPG - GIT Access

“This service is provided to help you in hunting bugs and not to deliver stable snapshots; it may happen that it even does not compile, so please don’t complain. Git may put a high load on a server, so please don’t poll for new pushes too often. Instead, we suggest you use notifications from https://dev.gnupg.org/source/gnupg.git which mirrors the repositories.”

I got caught by the toolchain—the diff provided by the cross-compilation toolchain is broken, unrelated to gnupg’s code.\n\nSpent a long time troubleshooting.