Project

General

Profile

Bug #12364

windows build failure

Added by Philippe Weyland about 1 month ago. Updated about 1 month ago.

Status:
New
Priority:
Low
Assignee:
-
Category:
Buildsystem
Target version:
-
Start date:
10/15/2018
Due date:
% Done:

0%

Affected Version:
git master branch
System:
Windows
bitness:
64-bit
hardware architecture:
amd64/x86

Description

The current code of dt doesn't build for windows.

[ 15%] Building C object src/CMakeFiles/lib_darktable.dir/common/collection.c.obj
In file included from C:/msys64/home/Philippe/dt-org/src/common/collection.c:20:
C:/msys64/home/Philippe/dt-org/src/common/collection.c: In function 'dt_collection_shift_image_positions':
C:/msys64/home/Philippe/dt-org/src/common/collection.c:1392:84: error: left shift count >= width of type [-Werror=shift-count-overflow]
   DT_DEBUG_SQLITE3_BIND_INT64(stmt, 3, (image_position & 0xFFFFFFFF00000000) + (1l << 32));
                                                                                    ^~
C:/msys64/home/Philippe/dt-org/src/common/debug.h:65:97: note: in definition of macro '__DT_DEBUG_ASSERT__'
     _Pragma("GCC diagnostic push") _Pragma("GCC diagnostic ignored \"-Wshadow\"") const int x = xin;             \
                                                                                                 ^~~
C:/msys64/home/Philippe/dt-org/src/common/collection.c:1392:3: note: in expansion of macro 'DT_DEBUG_SQLITE3_BIND_INT64'
   DT_DEBUG_SQLITE3_BIND_INT64(stmt, 3, (image_position & 0xFFFFFFFF00000000) + (1l << 32));
   ^~~~~~~~~~~~~~~~~~~~~~~~~~~
cc1.exe: all warnings being treated as errors
make[2]: *** [src/CMakeFiles/lib_darktable.dir/build.make:168: src/CMakeFiles/lib_darktable.dir/common/collection.c.obj] Error 1
make[1]: *** [CMakeFiles/Makefile2:1439: src/CMakeFiles/lib_darktable.dir/all] Error 2
make: *** [Makefile:152: all] Error 2

I overcome this going back to 15th September commit (0588beb880363f9e0092010ee4f5416217d8f8ef).

History

#1 Updated by Philippe Weyland about 1 month ago

Solved with the last commits.

Also available in: Atom PDF