I just disabled the warnings that break the build:
--- ./src/CMakeLists.txt.orig 2015-05-13 20:21:03.706279576 -0700
+++ ./src/CMakeLists.txt 2015-05-13 20:21:39.024246687 -0700
@@ -111,7 +111,7 @@
# initial compiler flags
add_definitions("-DHAVE_CONFIG_H")
-set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -std=c99")
+set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -std=c99 -Wno-array-bounds
-Wno-maybe-uninitialized")
# Check for openmp
find_package(OpenMP)
For me it is simpler than switching to another compiler or rebuilding gcc with
non-default config.
From: Roman Lebedev <[email protected]>
To: Chris Siebenmann <[email protected]>; Andrew Terekhov
<[email protected]>; Andrew Terekhov <[email protected]>;
Felix Manuel Cobos Sánchez <[email protected]>; Simon G. <[email protected]>;
Wolfgang Goetz <[email protected]>
Cc: "[email protected]"
<[email protected]>;
"[email protected]" <[email protected]>
Sent: Monday, June 29, 2015 1:59 PM
Subject: Re: [Darktable-users] Build error on git tip on Fedora 22 using gcc
On Mon, Jun 29, 2015 at 11:32 PM, Chris Siebenmann <[email protected]> wrote:
I just updated one of my machines to Fedora 22 and attempted to rebuild
the current git tip development version of darktable on it.
Hey.
This errored
out with:
/data/code/git/darktable/src/common/interpolation.c: In function
‘dt_interpolation_compute_sample’:
/data/code/git/darktable/src/common/interpolation.c:789:21: error: array
subscript is above array bounds [-Werror=array-bounds]
h += kernelh[j] * ipixel[0];
^
cc1: all warnings being treated as errors
Fedora 22 is using gcc 5.1.1, according to 'gcc --version'.
So far, we consider this to be a gcc bug.Feel free to report it to report it to
fedora/$(DISTRO_NAME)/gcc bugzilla.
For now, either:*) use other compilers (clang, gcc-4.6 ... gcc-4.9), or*) gcc-5
but with -DCMAKE_BUILD_TYPE=RelWithDebInto
Relevant issues:https://gcc.gnu.org/bugzilla/show_bug.cgi?id=53198 [RESOLVED
FIXED]https://gcc.gnu.org/bugzilla/show_bug.cgi?id=45180 [NEW]
No build error happens when building with clang (via 'CC=clang
CXX=clang++ ./build.sh').
- cks
Roman.
------------------------------------------------------------------------------
Don't Limit Your Business. Reach for the Cloud.
GigeNET's Cloud Solutions provide you with the tools and support that
you need to offload your IT needs and focus on growing your business.
Configured For All Businesses. Start Your Cloud Today.
https://www.gigenetcloud.com/
_______________________________________________
Darktable-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/darktable-users
------------------------------------------------------------------------------
Don't Limit Your Business. Reach for the Cloud.
GigeNET's Cloud Solutions provide you with the tools and support that
you need to offload your IT needs and focus on growing your business.
Configured For All Businesses. Start Your Cloud Today.
https://www.gigenetcloud.com/
_______________________________________________
Darktable-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/darktable-users