Project

General

Profile

Bug #11754

cc1: error: unrecognized command line option ‘-Wno-format-truncation’ [-Werror]

Added by Tamas Papp over 1 year ago. Updated over 1 year ago.

Status:
Fixed
Priority:
Low
Assignee:
-
Category:
-
Target version:
Start date:
09/30/2017
Due date:
% Done:

100%

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

Description

I am trying to compile darktable master following the instructions at
https://github.com/darktable-org/darktable#manual-way

I get the following error:

[ 83%] Building C object src/iop/CMakeFiles/colortransfer.dir/introspection_colortransfer.c.o
In file included from /home/tamas/src/darktable/build/src/iop/introspection_colortransfer.c:33:0:
/home/tamas/src/darktable/src/iop/colortransfer.c:181:1: warning: ISO C90 forbids variable length array ‘mi’ [-Wvla]
static void get_cluster_mapping(const int n, float mi[n][2], float mo[n][2], int mapio[n])
^~~~
/home/tamas/src/darktable/src/iop/colortransfer.c:181:1: warning: ISO C90 forbids variable length array ‘mo’ [-Wvla]
/home/tamas/src/darktable/src/iop/colortransfer.c:181:1: warning: ISO C90 forbids variable length array ‘mapio’ [-Wvla]
/home/tamas/src/darktable/src/iop/colortransfer.c:201:1: warning: ISO C90 forbids variable length array ‘mean’ [-Wvla]
static void get_clusters(const float col, const int n, float mean[n][2], float *weight)
^~~~
/home/tamas/src/darktable/src/iop/colortransfer.c:220:1: warning: ISO C90 forbids variable length array ‘mean’ [-Wvla]
static int get_cluster(const float *col, const int n, float mean[n][2])
^~~~
/home/tamas/src/darktable/src/iop/colortransfer.c:237:1: warning: ISO C90 forbids variable length array ‘mean_out’ [-Wvla]
static void kmeans(const float *col, const dt_iop_roi_t *const roi, const int n, float mean_out[n][2],
^~~~
/home/tamas/src/darktable/src/iop/colortransfer.c:238:20: warning: ISO C90 forbids variable length array ‘var_out’ [-Wvla]
float var_out[n][2])
^~~
cc1: error: unrecognized command line option ‘-Wno-format-truncation’ [-Werror]
cc1: all warnings being treated as errors
src/iop/CMakeFiles/colortransfer.dir/build.make:67: recipe for target 'src/iop/CMakeFiles/colortransfer.dir/introspection_colortransfer.c.o' failed
make2:
[src/iop/CMakeFiles/colortransfer.dir/introspection_colortransfer.c.o] Error 1
CMakeFiles/Makefile2:6147: recipe for target 'src/iop/CMakeFiles/colortransfer.dir/all' failed
make1:
[src/iop/CMakeFiles/colortransfer.dir/all] Error 2
Makefile:149: recipe for target 'all' failed
make: *
* [all] Error 2

tamas@tamas ...src/darktable/build % gcc v
Using built-in specs.
COLLECT_GCC=gcc
COLLECT_LTO_WRAPPER=/usr/lib/gcc/x86_64-linux-gnu/6/lto-wrapper
Target: x86_64-linux-gnu
Configured with: ../src/configure -v --with-pkgversion='Ubuntu 6.3.0-12ubuntu2' --with-bugurl=file:///usr/share/doc/gcc-6/README.Bugs --enable-languages=c,ada,c++,java,go,d,fortran,objc,obj-c++ --prefix=/usr --program-suffix=-6 --program-prefix=x86_64-linux-gnu
--enable-shared --enable-linker-build-id --libexecdir=/usr/lib --without-included-gettext --enable-threads=posix --libdir=/usr/lib --enable-nls --with-sysroot=/ --enable-clocale=gnu --enable-libstdcxx-debug --enable-libstdcxx-time=yes --with-default-libstdcxx-abi=new --enable-gnu-unique-object --disable-vtable-verify --enable-libmpx --enable-plugin --enable-default-pie --with-system-zlib --disable-browser-plugin --enable-java-awt=gtk --enable-gtk-cairo --with-java-home=/usr/lib/jvm/java-1.5.0-gcj-6-amd64/jre --enable-java-home --with-jvm-root-dir=/usr/lib/jvm/java-1.5.0-gcj-6-amd64 --with-jvm-jar-dir=/usr/lib/jvm-exports/java-1.5.0-gcj-6-amd64 --with-arch-directory=amd64 --with-ecj-jar=/usr/share/java/eclipse-ecj.jar --with-target-system-zlib --enable-objc-gc=auto --enable-multiarch --disable-werror --with-arch-32=i686 --with-abi=m64 --with-multilib-list=m32,m64,mx32 --enable-multilib --with-tune=generic --enable-checking=release --build=x86_64-linux-gnu --host=x86_64-linux-gnu --target=x86_64-linux-gnu
Thread model: posix
gcc version 6.3.0 20170406 (Ubuntu 6.3.0-12ubuntu2)

Using Ubuntu 17.04, all packages the current version. I have installed all the prerequisites.

Associated revisions

Revision 6108b29c
Added by Roman Lebedev over 1 year ago

Revert "Merge remote-tracking branch 'upstream/pr/1542'"

Fixes #11754.

This reverts commit 8b11bad94c9237e83894c3dca781f37d79653a57, reversing
changes made to 5c801e63667838278cccfe3ebdf79eb8153bb1de.

History

#1 Updated by Roman Lebedev over 1 year ago

  • % Done changed from 0 to 20
  • Status changed from New to Incomplete

Start by purging the build dir.
Does it still happen then?

#2 Updated by Tamas Papp over 1 year ago

Yes. Same error after rm -Rf build. Even after wiping the whole cloned repo and starting over.

Would the output of cmake and/or make help?

#3 Updated by Roman Lebedev over 1 year ago

  • % Done changed from 20 to 100
  • Status changed from Incomplete to Fixed

#4 Updated by Roman Lebedev over 1 year ago

  • Target version set to 2.4.0

Also available in: Atom PDF