CMake issueshttps://gitlab.kitware.com/cmake/cmake/-/issues2022-06-22T12:31:25-04:00https://gitlab.kitware.com/cmake/cmake/-/issues/18033Regression in Windows: after 3.11.x GetRealPath doesn't respect DOS and subst...2022-06-22T12:31:25-04:00Francisco FacioniRegression in Windows: after 3.11.x GetRealPath doesn't respect DOS and subst mountsAfter 640709e7db054e90d5e6609eeb16a01af34b5a5a (from !1202) DOS mounted paths get translated to their real path instead of the mounted ones.
Example: if `C:\path` is mounted as `X:` then `cmSystemTools::GetRealPath("X:\file.txt")` will ...After 640709e7db054e90d5e6609eeb16a01af34b5a5a (from !1202) DOS mounted paths get translated to their real path instead of the mounted ones.
Example: if `C:\path` is mounted as `X:` then `cmSystemTools::GetRealPath("X:\file.txt")` will return `C:\path\file.txt` instead of `X:\file.txt` as it did previously.
Reverting 640709e7db054e90d5e6609eeb16a01af34b5a5a fixes the issue. Not sure what is the best solution for this, but we rely heavily on being able to mount paths as drives in Windows and this issue is blocking us to upgrade to 3.113.11.3Brad KingBrad Kinghttps://gitlab.kitware.com/cmake/cmake/-/issues/18038create_test_sourcelist: fails to compile correctly with latest GCC2018-05-31T08:51:13-04:00Sander Vrijderscreate_test_sourcelist: fails to compile correctly with latest GCCThe test suite fails to compile with the new version of GCC (8.1.0) on my machine.
I am running CMake 3.11.2.
```
[ 64%] Building C object src/ipcpd/normal/tests/CMakeFiles/normal_test.dir/test_suite.c.o
In function ‘lowercase’,
in...The test suite fails to compile with the new version of GCC (8.1.0) on my machine.
I am running CMake 3.11.2.
```
[ 64%] Building C object src/ipcpd/normal/tests/CMakeFiles/normal_test.dir/test_suite.c.o
In function ‘lowercase’,
inlined from ‘main’ at /home/sander/upstream/ouroboros/build/src/ipcpd/normal/tests/test_suite.c:104:11:
/home/sander/upstream/ouroboros/build/src/ipcpd/normal/tests/test_suite.c:56:3: error: ‘strncpy’ specified bound depends on the length of the source argument [-Werror=stringop-overflow=]
strncpy(new_string, string, stringSize);
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/home/sander/upstream/ouroboros/build/src/ipcpd/normal/tests/test_suite.c: In function ‘main’:
/home/sander/upstream/ouroboros/build/src/ipcpd/normal/tests/test_suite.c:50:32: note: length computed here
stringSize = CM_CAST(size_t, strlen(string) + 1);
^~~~~~~~~~~~~~
/home/sander/upstream/ouroboros/build/src/ipcpd/normal/tests/test_suite.c:19:36: note: in definition of macro ‘CM_CAST’
#define CM_CAST(TYPE, EXPR) (TYPE)(EXPR)
^~~~
cc1: all warnings being treated as errors
make[3]: *** [src/ipcpd/normal/tests/CMakeFiles/normal_test.dir/build.make:63: src/ipcpd/normal/tests/CMakeFiles/normal_test.dir/test_suite.c.o] Error 1
make[2]: *** [CMakeFiles/Makefile2:615: src/ipcpd/normal/tests/CMakeFiles/normal_test.dir/all] Error 2
make[1]: *** [CMakeFiles/Makefile2:109: CMakeFiles/check.dir/rule] Error 2
make: *** [Makefile:210: check] Error 2
```
Flags used:
```
C_FLAGS = -std=c89 -Wall -Wempty-body -Wignored-qualifiers -Wimplicit-fallthrough -Wmissing-field-initializers -Wmissing-parameter-type -Wold-style-declaration -Woverride-init -Wsign-compare -Wtype-limits -Wuninitialized -Wshift-negative-value -Wunused-parameter -Wunused-but-set-parameter -Werror -Wundef -Wpointer-arith -Wstrict-prototypes -Wunreachable-code -Wdeclaration-after-statement -fmax-errors=5 -O3 -O3 -DNDEBUG
```3.11.3Brad KingBrad Kinghttps://gitlab.kitware.com/cmake/cmake/-/issues/18042cross compiling for mingw fails in cpack as it cant find the Wix files.2018-05-31T08:50:19-04:00Johncross compiling for mingw fails in cpack as it cant find the Wix files.When attempting to build cmake on a Linux machine for mingw (cross compiling):
CMake Error at Source/CMakeLists.txt:989 (add_library):
Cannot find source file:
CPack/Wix/cmCMakeToWixPath.cxx
Tried extensions .c...When attempting to build cmake on a Linux machine for mingw (cross compiling):
CMake Error at Source/CMakeLists.txt:989 (add_library):
Cannot find source file:
CPack/Wix/cmCMakeToWixPath.cxx
Tried extensions .c .C .c++ .cc .cpp .cxx .cu .m .M .mm .h .hh .h++ .hm .hpp .hxx .in .txx
CMake Error at Source/CMakeLists.txt:989 (add_library):
No SOURCES given to target: CPackLib
The issue at a quick look is that the sources are in CPack/WiX/, but CMakeFileList.txt is looking for CPack/Wix/3.11.3Brad KingBrad King