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

Add some missing cstdint includes #262

Merged
merged 1 commit into from
Jan 28, 2024

Conversation

swt2c
Copy link
Contributor

@swt2c swt2c commented Jan 18, 2024

Newer versions of GCC have become more strict about this, resulting in errors similar to the following:

In file included from /<<PKGBUILDDIR>>/core/include/ikos/core/domain/machine_int/abstract_domain.hpp:47,
                 from /<<PKGBUILDDIR>>/core/include/ikos/core/domain/machine_int/interval.hpp:46,
                 from /<<PKGBUILDDIR>>/analyzer/src/analysis/pointer/pointer.cpp:48:
/<<PKGBUILDDIR>>/core/include/ikos/core/domain/machine_int/operator.hpp:97:24: error: ‘uint64_t’ has not been declared
   97 |                        uint64_t result_bit_width,
      |                        ^~~~~~~~
```

Newer versions of GCC have become more strict about import of
known-size number types.

Currently, compiling IKOS leads to errors similar to the following:
In file included from /<<PKGBUILDDIR>>/core/include/ikos/core/domain/machine_int/abstract_domain.hpp:47,
                 from /<<PKGBUILDDIR>>/core/include/ikos/core/domain/machine_int/interval.hpp:46,
                 from /<<PKGBUILDDIR>>/analyzer/src/analysis/pointer/pointer.cpp:48:
/<<PKGBUILDDIR>>/core/include/ikos/core/domain/machine_int/operator.hpp:97:24: error: ‘uint64_t’ has not been declared
   97 |                        uint64_t result_bit_width,
      |                        ^~~~~~~~

This commits adds cstdint to the list of includes wherever a numerical
type with a known or fixed size is used.
@ivanperez-keera
Copy link
Collaborator

ivanperez-keera commented Jan 26, 2024

@swt2c All good. I'm just adding some doc locally to the git repo. I only changed the commit message. I'll wait a few minutes for this to build. Thanks!

EDIT: We also have to do the CLA. I almost forgot!

@ivanperez-keera
Copy link
Collaborator

ivanperez-keera commented Jan 26, 2024

I know this is a small patch, but can you please sign one of the two CLAs: https://github.com/NASA-SW-VnV/ikos/tree/master/doc/contribute. Send it by email to [email protected], CC-ing me [email protected].

Thanks!

@swt2c
Copy link
Contributor Author

swt2c commented Jan 28, 2024

I know this is a small patch, but can you please sign one of the two CLAs: https://github.com/NASA-SW-VnV/ikos/tree/master/doc/contribute. Send it by email to [email protected], CC-ing me [email protected].

Thanks!

Done.

@ivanperez-keera
Copy link
Collaborator

Thanks! Received!

@ivanperez-keera ivanperez-keera merged commit fcca375 into NASA-SW-VnV:master Jan 28, 2024
2 checks passed
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.

2 participants