Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

src/a3m_compress.h: fix build failure with gcc 13 #357

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

emollier
Copy link

Following header changes in gcc 13, hh-suite fails to build with the following errors:

In file included from /<<PKGBUILDDIR>>/src/a3m_compress.cpp:8:
/<<PKGBUILDDIR>>/src/a3m_compress.h:37:37: error: ‘uint16_t’ has not been declared
   37 |   void writeU16(std::ostream& file, uint16_t);
      |                                     ^~~~~~~~
/<<PKGBUILDDIR>>/src/a3m_compress.h:38:28: error: ‘uint16_t’ has not been declared
   38 |   void readU16(char** ptr, uint16_t &result);
      |                            ^~~~~~~~
[…]

Including cstdint in the affected file allows the build to go through. This issue has initially been reported in Debian bug #1037689.

Following header changes in gcc 13, hh-suite fails to build with the
following errors:

	In file included from /<<PKGBUILDDIR>>/src/a3m_compress.cpp:8:
	/<<PKGBUILDDIR>>/src/a3m_compress.h:37:37: error: ‘uint16_t’ has not been declared
	   37 |   void writeU16(std::ostream& file, uint16_t);
	      |                                     ^~~~~~~~
	/<<PKGBUILDDIR>>/src/a3m_compress.h:38:28: error: ‘uint16_t’ has not been declared
	   38 |   void readU16(char** ptr, uint16_t &result);
	      |                            ^~~~~~~~
	[…]

Including cstdint in the affected file allows the build to go through.
This issue has initially been reported in [Debian bug #1037689].

[Debian bug #1037689]: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1037689

Signed-off-by: Étienne Mollier <emollier@debian.org>
ghost pushed a commit to NixOS/nixpkgs that referenced this pull request Feb 9, 2024
The build of `hh-suite` stopped working with GCC 13 because
GCC stopped transitively including a couple of headers like
`cstdint` in various scenarios.

There already is an upstream PR proposed that fixes this issue [1]
but hasn't been merged yet. This change pulls in this correction
using `fetchpatch`, fixing the build for now.

[1]: soedinglab/hh-suite#357
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant