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

Build fails #3030

Open
garthwatney opened this issue Nov 18, 2024 · 1 comment
Open

Build fails #3030

garthwatney opened this issue Nov 18, 2024 · 1 comment
Labels
bug High Priority High Priority issue that needs to be resolved.

Comments

@garthwatney
Copy link
Contributor

garthwatney commented Nov 18, 2024

F´ Version
v3.5.0
Affected Component

Problem Description

Build fails:
In member function ‘void Drv::LinuxGpioDriver::pollLoop()’:
fprime/Drv/LinuxGpioDriver/LinuxGpioDriver.cpp:290:37: error: comparison of integer expressions of different signedness: ‘const FwSizeType’ {aka ‘const long unsigned int’} and ‘int’ [-Werror=sign-compare]
290 | static_assert(GPIO_POLL_TIMEOUT < std::numeric_limits::max(), "Poll timeout would overflow");
| ~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
fprime/Drv/LinuxGpioDriver/LinuxGpioDriver.cpp:292:55: error: comparison of integer expressions of different signedness: ‘long int’ and ‘long unsigned int’ [-Werror=sign-compare]
292 | static_assert(std::numeric_limits<ssize_t>::max() <= std::numeric_limits::max(), "FwSizeType too small");
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
cc1plus: all warnings being treated as errors

A description of the problem with sufficient detail to understand the issue.

Context / Environment

Operating System: Linux
CPU Architecture: x86_64
Platform: Linux-5.15.90.1-microsoft-standard-WSL2-x86_64-with-glibc2.29
Python version: 3.8.10
CMake version: 3.23.1
Pip version: 20.0.2
Pip packages:
    fprime-tools==3.5.0
    fprime-gds==3.5.0
    fprime-fpp-*==2.2.0
--INSERT HERE--

How to Reproduce

  1. cd to the top level directory of the fprime repo
  2. fprime-util generate -f
  3. fprime-util build

Expected Behavior

A description of the expected behavior.

@LeStarch LeStarch added the High Priority High Priority issue that needs to be resolved. label Nov 22, 2024
@jsilveira1409
Copy link
Contributor

I tried reproducing this bug but was not able to :(

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug High Priority High Priority issue that needs to be resolved.
Projects
None yet
Development

No branches or pull requests

3 participants