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

Compilation Failure on sudo make Due to Missing <limits> Include in Specific Files #68

Open
Carlos12001 opened this issue Mar 6, 2024 · 0 comments

Comments

@Carlos12001
Copy link

Carlos12001 commented Mar 6, 2024

Title:

Compilation Failure on sudo make Due to Missing <limits> Include in Specific Files

Description:

When attempting to compile the project using make with sudo, I encountered multiple compilation errors stating that 'numeric_limits' is not a member of 'std'. The errors occur in the files src/gen/gen-cc.cc and potentially others related to floating-point operations. It appears that the issue is due to the absence of the <limits> header in these files.

Steps to Reproduce:

  1. Navigate to the project root directory.
  2. Execute the command sudo make.

Expected Outcome:

The project compiles without any errors.

Actual Outcome:

Compilation fails with the following error messages:

src/gen/gen-cc.cc: In function ‘void typed_value_set(std::set<std::__cxx11::basic_string<char> >&, const rv_primitive_type*)’:
src/gen/gen-cc.cc:50:18: error: ‘numeric_limits’ is not a member of ‘std’
   50 |         if (std::numeric_limits<T>::is_signed) {
      |                  ^~~~~~~~~~~~~~
...

Proposed Solution:

Include <limits> in the affected files, specifically:

  • src/gen/gen-cc.cc
  • src/gen/gen-fpu-test.cc

Additional Information:

  • Operating System: Linux Mint 21.3 x86_64
  • Kernel: 6.5.0-21-generic
  • GCC Version: gcc (Ubuntu 11.4.0-1ubuntu1~22.04) 11.4.0
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

No branches or pull requests

1 participant