Project

General

Profile

Bug #11199

Current git version does not build on Gentoo

Added by Nick Kachulin over 3 years ago. Updated 11 months ago.

Status:
Closed: upstream
Priority:
Low
Assignee:
-
Category:
Buildsystem
Target version:
Start date:
10/06/2016
Due date:
% Done:

0%

Estimated time:
Affected Version:
git master branch
System:
other GNU/Linux
bitness:
64-bit
hardware architecture:
amd64/x86

Description

Build failes with cc1: error: -Werror=address-of-packed-member: no option -Waddress-of-packed-member
Pulled from EGIT_REPO_URI="git://github.com/darktable-org/darktable.git"
Output:
...
Build type Gentoo
Install path /usr
Build type Gentoo
Install path /usr
Compiler flags:
C -march=native -pipe -Wno-all -O2 -msse3 -Wtype-limits -Wformat-security -Wshadow -Wvla -Wold-style-declaration -Wno-error=varargs -Wframe-larger-than=65536 -Wstack-usage=65536 -Wlarger-than=1048576
C++ -march=native -pipe -Wno-all -O2 -msse3 -Wtype-limits -Wformat-security -Wshadow -Wvla -Wno-error=varargs -Wframe-larger-than=65536 -Wstack-usage=65536 -Wlarger-than=1048576
Linker flags:
Executable -Wl,-O2,--sort-common,--hash-style=gnu,--as-needed,-s
Module -Wl,-O2,--sort-common,--hash-style=gnu,--as-needed,-s
Shared -Wl,-O2,--sort-common,--hash-style=gnu,--as-needed,-s

-- Configuring incomplete, errors occurred!
See also "/var/tmp/portage/media-gfx/darktable-9999/work/darktable-9999_build/CMakeFiles/CMakeOutput.log".
See also "/var/tmp/portage/media-gfx/darktable-9999/work/darktable-9999_build/CMakeFiles/CMakeError.log". * ERROR: media-gfx/darktable-9999::gentoo failed (configure phase): * cmake failed
...

Please find CMakeError.log attached

CMakeError.log (6.74 KB) CMakeError.log Nick Kachulin, 10/06/2016 02:42 PM
build_debian_jessie.log (82.1 KB) build_debian_jessie.log Christian Kanzian, 10/06/2016 05:35 PM
media-gfx_darktable-9999_20161006-171243.log (17.1 KB) media-gfx_darktable-9999_20161006-171243.log Nick Kachulin, 10/06/2016 08:38 PM

History

#1 Updated by Roman Lebedev over 3 years ago

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

That is really strange.
What failed is the test that checks whether a flag is supported or no.
Are you sure you are building in clean build dir?
Which cmake version?

#2 Updated by Christian Kanzian over 3 years ago

build fails also on Debian Jessie with a clean build dir

cmake version 3.0.2

In file included from /home/chri/Linux/darktable/src/external/rawspeed/RawSpeed/StdAfx.h:115:0,
                 from /home/chri/Linux/darktable/src/external/rawspeed/RawSpeed/RawSpeed-API.h:22,
                 from /home/chri/Linux/darktable/src/common/imageio_rawspeed.cc:24:
/home/chri/Linux/darktable/src/external/rawspeed/RawSpeed/Point.h: In member function ‘void RawSpeed::iRectangle2D::offset(const RawSpeed::iPoint2D&)’:
/home/chri/Linux/darktable/src/external/rawspeed/RawSpeed/Point.h:62:39: error: declaration of ‘offset’ shadows a member of 'this' [-Werror=shadow]
   void offset(const iPoint2D& offset) {pos+=offset;}
                                       ^
[ 33%] Building C object src/CMakeFiles/lib_darktable.dir/common/metadata.c.o
cc1plus: all warnings being treated as errors
src/CMakeFiles/lib_darktable.dir/build.make:851: recipe for target 'src/CMakeFiles/lib_darktable.dir/common/imageio_rawspeed.cc.o' failed
make[2]: *** [src/CMakeFiles/lib_darktable.dir/common/imageio_rawspeed.cc.o] Error 1
make[2]: *** Warte auf noch nicht beendete Prozesse...
CMakeFiles/Makefile2:1369: recipe for target 'src/CMakeFiles/lib_darktable.dir/all' failed
make[1]: *** [src/CMakeFiles/lib_darktable.dir/all] Error 2
Makefile:137: recipe for target 'all' failed
make: *** [all] Error 2

#3 Updated by Roman Lebedev over 3 years ago

@Nick Kachulin Are you 100% sure you don't pass -Werror in cflags?

#4 Updated by Roman Lebedev over 3 years ago

Christian Kanzian wrote:

build fails also on Debian Jessie with a clean build dir

cmake version 3.0.2

[...]

@Christian Kanzian should be fixed now.
That being said, gcc-4.9 is getting old, you should upgrade.
(debian sid recently dropped gcc-4.9, so i will not check that dt still can be compiled with this old compiler)

#5 Updated by Nick Kachulin over 3 years ago

As for flags, my first message shows the flags used in fact. (That was the reason I included this part of output). Moreover, I see this particular flag (address-of-packed-member) for the first time ever. Sure I haven't set it.

I use gcc 4.9.3 that is stable in Gentoo tree now. I can upgrade gcc if necessary -- eventually, it's inevitable at some point (4.9.4 5.3.0 5.4.0 easily available).

Cmake 3.5.2-r1.

#6 Updated by Roman Lebedev over 3 years ago

Nick Kachulin wrote:

As for flags, my first message shows the flags used in fact. (That was the reason I included this part of output). Moreover, I see this particular flag (address-of-packed-member) for the first time ever. Sure I haven't set it.

I use gcc 4.9.3 that is stable in Gentoo tree now. I can upgrade gcc if necessary -- eventually, it's inevitable at some point (4.9.4 5.3.0 5.4.0 easily available).

Cmake 3.5.2-r1.

Please attach build.log

#8 Updated by Roman Lebedev over 3 years ago

Nick Kachulin wrote:

Here you go...

217 CMake Error at doc/CMakeLists.txt:5 (install):
218 install FILES given directory "../" to install.

Is the actual problem...

Now, the question is: why CMAKE_INSTALL_DOCDIR is "../"
Works for me, so it must be either configuration error on your setup, or gentoo issue.

#9 Updated by Roman Lebedev over 3 years ago

  • % Done changed from 20 to 0
  • Status changed from Incomplete to Closed: upstream

#10 Updated by Nick Kachulin over 3 years ago

The proposed ebuild works for me. Will keep it locally as a workaround. Thanks!

#11 Updated by Roman Lebedev over 3 years ago

  • Target version set to 2.2.0

#12 Updated by arun saini 11 months ago

Icons are really imporant when http://desktopiconswindows10.com users go for open any kind of the application.

Also available in: Atom PDF

Go to top