Am Samstag, 27. Januar 2018, 06:38:57 CET schrieb Jørn Villesen Christensen: > Hi there, > > It seems (to me) that darktable does not support gcc 7. Is there any > effort at the moment to support this? Or if not, what is the latest > gcc-version that is supported?
gcc 7 should be supported, several of us are building with it all the time. > Observations behind this question: > > I just did a git pull on the master branch and tried to compile it. I > got the following error (and others similar): > > /home/jvc/Dev/darktable/src/common/mipmap_cache.c: In function > ‘dt_mipmap_cache_unlink_ondisk_thumbnail.part.3’: > /home/jvc/Dev/darktable/src/common/mipmap_cache.c:426:42: error: ‘.d/’ > directive output may be truncated writing 3 bytes into a region of size > between 1 and 4096 [-Werror=format-truncation=] > snprintf(filename, sizeof(filename), "%s.d/%d/%d.jpg", > cache->cachedir, mip, imgid); > ^~~~~~~~~~~~~~~~ I have never seen that error before, I am not even aware of ".d/" being a printf directive of any kind. Does anyone know what's going on? > /home/jvc/Dev/darktable/src/common/mipmap_cache.c:426:42: note: using > the range [-2147483648, 2147483647] for directive argument > In file included from /usr/include/stdio.h:862:0, > from /home/jvc/Dev/darktable/src/common/dtpthread.h:28, > from /home/jvc/Dev/darktable/src/common/cache.h:21, > from /home/jvc/Dev/darktable/src/common/mipmap_cache.h:21, > from /home/jvc/Dev/darktable/src/common/mipmap_cache.c:19: > > > After a bit googling, I realised it was because I upgraded my Ubuntu and > got gcc v7.2 along with it. I am using 7.3 at the moment, but I am fairly certain that I used 7.2 before. > BR > Jørn Tobias
signature.asc
Description: This is a digitally signed message part.