Skip to content
Failed

Console Output

Started by an SCM change
Running as SYSTEM
Building in workspace /var/lib/jenkins/workspace/SpadesX
The recommended git tool is: NONE
No credentials specified
 > git rev-parse --resolve-git-dir /var/lib/jenkins/workspace/SpadesX/.git # timeout=10
Fetching changes from the remote Git repository
 > git config remote.origin.url https://github.com/SpadesX/SpadesX.git # timeout=10
Fetching upstream changes from https://github.com/SpadesX/SpadesX.git
 > git --version # timeout=10
 > git --version # 'git version 2.30.2'
 > git fetch --tags --force --progress -- https://github.com/SpadesX/SpadesX.git +refs/heads/*:refs/remotes/origin/* # timeout=10
 > git rev-parse refs/remotes/origin/master^{commit} # timeout=10
Checking out Revision 304450815470e86c141652e3acb9d4082dcd40cf (refs/remotes/origin/master)
 > git config core.sparsecheckout # timeout=10
 > git checkout -f 304450815470e86c141652e3acb9d4082dcd40cf # timeout=10
Commit message: "Log.c: Change localtime_r to localtime_s for win32"
 > git rev-list --no-walk 4d03df20c77c627842bbbb32015d6319813b396d # timeout=10
[SpadesX] $ /bin/sh -xe /tmp/jenkins6611125589968396711.sh + git clean -f -d -x Removing build/ + git submodule init + git submodule update [SpadesX] $ /bin/sh -xe /tmp/jenkins121729595940826432.sh + mkdir -p build + cd build + cmake -G Unix Makefiles -DCMAKE_BUILD_TYPE=Release -DCMAKE_C_COMPILER=i686-w64-mingw32-gcc -DCMAKE_CXX_COMPILER=i686-w64-mingw32-g++ -DCMAKE_SYSTEM_NAME=Windows -DCMAKE_EXE_LINKER_FLAGS=-static -DCMAKE_FIND_ROOT_PATH=/usr/i686-w64-mingw32 -DCMAKE_FIND_ROOT_PATH_MODE_PROGRAM=NEVER -DCMAKE_FIND_ROOT_PATH_MODE_LIBRARY=ONLY -DCMAKE_FIND_ROOT_PATH_MODE_INCLUDE=ONLY .. -- The C compiler identification is GNU 10.0.0 -- The CXX compiler identification is GNU 10.0.0 -- Detecting C compiler ABI info -- Detecting C compiler ABI info - done -- Check for working C compiler: /usr/bin/i686-w64-mingw32-gcc - skipped -- Detecting C compile features -- Detecting C compile features - done -- Detecting CXX compiler ABI info -- Detecting CXX compiler ABI info - done -- Check for working CXX compiler: /usr/bin/i686-w64-mingw32-g++ - skipped -- Detecting CXX compile features -- Detecting CXX compile features - done -- Performing Test CMAKE_HAVE_LIBC_PTHREAD -- Performing Test CMAKE_HAVE_LIBC_PTHREAD - Failed -- Looking for pthread_create in pthreads -- Looking for pthread_create in pthreads - not found -- Looking for pthread_create in pthread -- Looking for pthread_create in pthread - found -- Found Threads: TRUE -- Could NOT find PkgConfig (missing: PKG_CONFIG_EXECUTABLE) -- Found enet: /usr/i686-w64-mingw32/lib/libenet.a -- Found Git: /usr/bin/git (found version "2.30.2") -- Configuring done -- Generating done -- Build files have been written to: /var/lib/jenkins/workspace/SpadesX/build + make -j 4 [ 5%] Building C object Extern/libmapvxl/CMakeFiles/mapvxl.dir/Unity/unity_0_c.c.obj [ 11%] Linking C static library libmapvxl.a [ 11%] Built target mapvxl [ 23%] Building C object Source/Util/CMakeFiles/Util.dir/Unity/unity_0_c.c.obj [ 23%] Building C object Source/Util/CMakeFiles/Util.dir/Unity/unity_1_c.c.obj In file included from /var/lib/jenkins/workspace/SpadesX/build/Source/Util/CMakeFiles/Util.dir/Unity/unity_1_c.c:9: /var/lib/jenkins/workspace/SpadesX/Source/Util/Log.c: In function ‘log_print_with_time’: /var/lib/jenkins/workspace/SpadesX/Source/Util/Log.c:10:17: error: passing argument 1 of ‘localtime_s’ from incompatible pointer type [-Werror=incompatible-pointer-types] 10 | localtime_s(&t, &tm); | ^~ | | | time_t * {aka long int *} In file included from /var/lib/jenkins/workspace/SpadesX/Source/Util/Log.c:3, from /var/lib/jenkins/workspace/SpadesX/build/Source/Util/CMakeFiles/Util.dir/Unity/unity_1_c.c:9: /usr/share/mingw-w64/include/time.h:222:58: note: expected ‘struct tm *’ but argument is of type ‘time_t *’ {aka ‘long int *’} 222 | static __inline errno_t __CRTDECL localtime_s(struct tm *_Tm,const time_t *_Time) { return _localtime32_s(_Tm,_Time); } | ~~~~~~~~~~~^~~ In file included from /var/lib/jenkins/workspace/SpadesX/build/Source/Util/CMakeFiles/Util.dir/Unity/unity_1_c.c:9: /var/lib/jenkins/workspace/SpadesX/Source/Util/Log.c:10:21: error: passing argument 2 of ‘localtime_s’ from incompatible pointer type [-Werror=incompatible-pointer-types] 10 | localtime_s(&t, &tm); | ^~~ | | | struct tm * In file included from /var/lib/jenkins/workspace/SpadesX/Source/Util/Log.c:3, from /var/lib/jenkins/workspace/SpadesX/build/Source/Util/CMakeFiles/Util.dir/Unity/unity_1_c.c:9: /usr/share/mingw-w64/include/time.h:222:76: note: expected ‘const time_t *’ {aka ‘const long int *’} but argument is of type ‘struct tm *’ 222 | static __inline errno_t __CRTDECL localtime_s(struct tm *_Tm,const time_t *_Time) { return _localtime32_s(_Tm,_Time); } | ~~~~~~~~~~~~~~^~~~~ cc1: all warnings being treated as errors make[2]: *** [Source/Util/CMakeFiles/Util.dir/build.make:77: Source/Util/CMakeFiles/Util.dir/Unity/unity_1_c.c.obj] Error 1 make[1]: *** [CMakeFiles/Makefile2:220: Source/Util/CMakeFiles/Util.dir/all] Error 2 make: *** [Makefile:91: all] Error 2 Build step 'Execute shell' marked build as failure Archiving artifacts Recording fingerprints Finished: FAILURE