You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I get the following error on my system (linux 5.18.11-arch1-1) when I try to build cFS bundle freshly cloned fom git:
[100%] Built target mission-prebuild
[ 1%] Built target osal_generic-linux_impl
[ 5%] Built target osal_bsp
Consolidate compiler generated dependencies of target osal_posix_impl
[ 5%] Building C object osal/posix_impl/CMakeFiles/osal_posix_impl.dir/src/os-impl-filesys.c.o
/home/linux/CELESTIAL/NEWSPACE/cFS/osal/src/os/posix/src/os-impl-filesys.c: In function ‘OS_FileSysStartVolume_Impl’:
/home/linux/CELESTIAL/NEWSPACE/cFS/osal/src/os/posix/src/os-impl-filesys.c:173:9: error: ‘snprintf’ argument 5 overlaps destination object ‘OS_filesys_table’ [-Werror=restrict]
173 | snprintf(local->system_mountpt, sizeof(local->system_mountpt), "%s/osal:%s", tmpdir, local->volume_name);
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from /home/linux/CELESTIAL/NEWSPACE/cFS/osal/src/os/posix/src/os-impl-filesys.c:44:
/home/linux/CELESTIAL/NEWSPACE/cFS/osal/src/os/shared/inc/os-shared-filesys.h:104:37: note: destination object referenced by ‘restrict’-qualified argument 1 was declared here
104 | extern OS_filesys_internal_record_t OS_filesys_table[OS_MAX_FILE_SYSTEMS];
| ^~~~~~~~~~~~~~~~
cc1: all warnings being treated as errors
make[7]: *** [osal/posix_impl/CMakeFiles/osal_posix_impl.dir/build.make:174: osal/posix_impl/CMakeFiles/osal_posix_impl.dir/src/os-impl-filesys.c.o] Error 1
make[6]: *** [CMakeFiles/Makefile2:822: osal/posix_impl/CMakeFiles/osal_posix_impl.dir/all] Error 2
make[5]: *** [Makefile:146: all] Error 2
make[4]: *** [CMakeFiles/native_default_cpu1-all.dir/build.make:70: CMakeFiles/native_default_cpu1-all] Error 2
make[3]: *** [CMakeFiles/Makefile2:415: CMakeFiles/native_default_cpu1-all.dir/all] Error 2
make[2]: *** [CMakeFiles/Makefile2:186: CMakeFiles/mission-all.dir/rule] Error 2
make[1]: *** [Makefile:179: mission-all] Error 2
make: *** [Makefile:119: all] Error 2
Previously (several months ago) I had no issues building, but now, could this be because of my compiler version or a bug in the build system? My compiler is (GCC) 12.1.0.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
I get the following error on my system (linux 5.18.11-arch1-1) when I try to build cFS bundle freshly cloned fom git:
Previously (several months ago) I had no issues building, but now, could this be because of my compiler version or a bug in the build system? My compiler is (GCC) 12.1.0.
Beta Was this translation helpful? Give feedback.
All reactions