-
Notifications
You must be signed in to change notification settings - Fork 217
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
#include <sys/signal.h> from os-posix.h causes compiler warnings in Alpine Linux #438
Comments
Currently working on this topic (nasa/cFS#56 (comment)), I came across this issue too. I have observed the following behaviors after having merely replaced Alpine 3.11 (Docker, GCC 9.2.0-r4, native, omit deprecated) Case 1:
Case 2:
Additional work will then probably be required to make cFS successfully build on Alpine. CentOS 7 (Docker, GCC 4.8.5, native, debug, omit deprecated)
This failure, if confirmed, should be taken into consideration if it is decided to modify the include. Ubuntu 18.04 (Docker and VM, GCC 7.4.0, native, debug, omit deprecated)
|
Complementary tests reveal that |
This explicitly specifies the BSP to use when using SIMULATION=native flags to the build. All other example toolchain files already included this setting.
Fix nasa#438: Set OSAL_SYSTEM_BSPTYPE for native builds
Describe the bug
When trying to build the cFS bundle using Alpine Linux using the musl library we get a gcc error:
#warning redirecting incorrect #include <sys/signal.h> to <signal.h>
From my seaarches It seems that
sys/signal.h
is an older implementation.To Reproduce
Build and run the following Docker image
Build and run the container:
Build:
docker build --tag cfs-bundle:alpine DOCKERFILE_DIRECTORY Run:
docker run -it --rm cfs-bundle:alpine`Expected behavior
cFS Build like with Travis CI and Ubuntu
Code snips
In
os-posix.h:40
:#include <sys/signal.h>
System observed on:
Docker Desktop 2.2.0.4
OSX 10.14.6
The text was updated successfully, but these errors were encountered: