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

fix build failures with gcc 13 #39

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

Conversation

emollier
Copy link

Initially seen in Debian Bug#1037655, Filtlong fails to build with gcc 13. The relevant part of the build log looks like:

In file included from src/read.h:25,
                 from src/read.cpp:22:
src/kmers.h:37:26: error: ‘uint32_t’ has not been declared
   37 |     bool is_kmer_present(uint32_t kmer);
      |                          ^~~~~~~~
src/kmers.h:39:5: error: ‘uint32_t’ does not name a type
   39 |     uint32_t starting_kmer_to_bits_forward(char * sequence);
      |     ^~~~~~~~
src/kmers.h:25:1: note: ‘uint32_t’ is defined in header ‘<cstdint>’; did you forget to ‘#include <cstdint>’?

Adding cstdint to kmers.h per compiler hint allows the build to go through.

Initially seen in [Debian Bug#1037655], Filtlong fails to build with
gcc 13.  The relevant part of the build log looks like:

	In file included from src/read.h:25,
	                 from src/read.cpp:22:
	src/kmers.h:37:26: error: ‘uint32_t’ has not been declared
	   37 |     bool is_kmer_present(uint32_t kmer);
	      |                          ^~~~~~~~
	src/kmers.h:39:5: error: ‘uint32_t’ does not name a type
	   39 |     uint32_t starting_kmer_to_bits_forward(char * sequence);
	      |     ^~~~~~~~
	src/kmers.h:25:1: note: ‘uint32_t’ is defined in header ‘<cstdint>’; did you forget to ‘#include <cstdint>’?

Adding cstdint to kmers.h per compiler hint allows the build to go
through.

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

Signed-off-by: Étienne Mollier <[email protected]>
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.

1 participant