Beep6581 / RawTherapee

A powerful cross-platform raw photo processing program
https://rawtherapee.com
GNU General Public License v3.0
2.77k stars 313 forks source link

Issue with compilation under Solus (GCC 5.3.0) #3368

Closed loopset closed 8 years ago

loopset commented 8 years ago

Hi! I'm getting this issue every time that i try to compile RawTherapee 4.2 (NOT git versions, the tarball from 2014):

Build] Running step: setup
+ cd /var/ypkg-root/root/rawtherapee/build/RawTherapee-4.2
+ export 'CFLAGS=-mtune=generic -march=x86-64 -ftree-vectorize -g2 -O2 -pipe -fPIC -Wformat -Wformat-security -fno-omit-frame-pointer -fstack-protector-strong --param ssp-buffer-size=4 -fexceptions -D_FORTIFY_SOURCE=2 -feliminate-unused-debug-types -Wno-error -Wp,-D_REENTRANT'
+ CFLAGS='-mtune=generic -march=x86-64 -ftree-vectorize -g2 -O2 -pipe -fPIC -Wformat -Wformat-security -fno-omit-frame-pointer -fstack-protector-strong --param ssp-buffer-size=4 -fexceptions -D_FORTIFY_SOURCE=2 -feliminate-unused-debug-types -Wno-error -Wp,-D_REENTRANT'
+ export 'CXXFLAGS=-mtune=generic -march=x86-64 -ftree-vectorize -g2 -O2 -pipe -fPIC -Wformat -Wformat-security -fno-omit-frame-pointer -fstack-protector-strong --param ssp-buffer-size=4 -fexceptions -D_FORTIFY_SOURCE=2 -feliminate-unused-debug-types -Wno-error -Wp,-D_REENTRANT'
+ CXXFLAGS='-mtune=generic -march=x86-64 -ftree-vectorize -g2 -O2 -pipe -fPIC -Wformat -Wformat-security -fno-omit-frame-pointer -fstack-protector-strong --param ssp-buffer-size=4 -fexceptions -D_FORTIFY_SOURCE=2 -feliminate-unused-debug-types -Wno-error -Wp,-D_REENTRANT'
+ export 'LDFLAGS=-Wl,--copy-dt-needed-entries -Wl,-O1 -Wl,-z,relro -Wl,-z,now'
+ LDFLAGS='-Wl,--copy-dt-needed-entries -Wl,-O1 -Wl,-z,relro -Wl,-z,now'
+ export 'FFLAGS=-mtune=generic -march=x86-64 -ftree-vectorize -g2 -O2 -pipe -fPIC -Wformat -Wformat-security -fno-omit-frame-pointer -fstack-protector-strong --param ssp-buffer-size=4 -fexceptions -D_FORTIFY_SOURCE=2 -feliminate-unused-debug-types -Wno-error -Wp,-D_REENTRANT'
+ FFLAGS='-mtune=generic -march=x86-64 -ftree-vectorize -g2 -O2 -pipe -fPIC -Wformat -Wformat-security -fno-omit-frame-pointer -fstack-protector-strong --param ssp-buffer-size=4 -fexceptions -D_FORTIFY_SOURCE=2 -feliminate-unused-debug-types -Wno-error -Wp,-D_REENTRANT'
+ export 'FCFLAGS=-mtune=generic -march=x86-64 -ftree-vectorize -g2 -O2 -pipe -fPIC -Wformat -Wformat-security -fno-omit-frame-pointer -fstack-protector-strong --param ssp-buffer-size=4 -fexceptions -D_FORTIFY_SOURCE=2 -feliminate-unused-debug-types -Wno-error -Wp,-D_REENTRANT'
+ FCFLAGS='-mtune=generic -march=x86-64 -ftree-vectorize -g2 -O2 -pipe -fPIC -Wformat -Wformat-security -fno-omit-frame-pointer -fstack-protector-strong --param ssp-buffer-size=4 -fexceptions -D_FORTIFY_SOURCE=2 -feliminate-unused-debug-types -Wno-error -Wp,-D_REENTRANT'
+ export PATH=/usr/bin:/bin:/usr/sbin:/sbin
+ PATH=/usr/bin:/bin:/usr/sbin:/sbin
+ export workdir=/var/ypkg-root/root/rawtherapee/build/RawTherapee-4.2
+ workdir=/var/ypkg-root/root/rawtherapee/build/RawTherapee-4.2
+ export package=rawtherapee
+ package=rawtherapee
+ export release=1
+ release=1
+ export version=4.2
+ version=4.2
+ export sources=/var/cache/eopkg/archives
+ sources=/var/cache/eopkg/archives
+ export pkgfiles=/WORK/packages/files
+ pkgfiles=/WORK/packages/files
+ export installdir=/var/ypkg-root/root/rawtherapee/install
+ installdir=/var/ypkg-root/root/rawtherapee/install
+ export CC=x86_64-solus-linux-gcc
+ CC=x86_64-solus-linux-gcc
+ export CXX=x86_64-solus-linux-g++
+ CXX=x86_64-solus-linux-g++
+ export LD_AS_NEEDED=1
+ LD_AS_NEEDED=1
+ unset DISPLAY SUDO_USER SUDO_GID SUDO_UID SUDO_COMMAND CDPATH
+ cmake '-DCMAKE_CFLAGS=-mtune=generic -march=x86-64 -ftree-vectorize -g2 -O2 -pipe -fPIC -Wformat -Wformat-security -fno-omit-frame-pointer -fstack-protector-strong --param ssp-buffer-size=4 -fexceptions -D_FORTIFY_SOURCE=2 -feliminate-unused-debug-types -Wno-error -Wp,-D_REENTRANT' '-DCMAKE_CXX_FLAGS=-mtune=generic -march=x86-64 -ftree-vectorize -g2 -O2 -pipe -fPIC -Wformat -Wformat-security -fno-omit-frame-pointer -fstack-protector-strong --param ssp-buffer-size=4 -fexceptions -D_FORTIFY_SOURCE=2 -feliminate-unused-debug-types -Wno-error -Wp,-D_REENTRANT' '-DCMAKE_LD_FLAGS=-Wl,--copy-dt-needed-entries -Wl,-O1 -Wl,-z,relro -Wl,-z,now' -DCMAKE_LIB_SUFFIX=64 -DCMAKE_BUILD_TYPE=RelWithDebInfo -DCMAKE_INSTALL_PREFIX=/usr . -DCMAKE_CXX_FLAGS=-std=c++11 -DCMAKE_C_FLAGS=-std=c++11 -DBUILD_SHARED_LIBS:BOOL=ON -DCACHE_NAME_SUFFIX=
-- The C compiler identification is GNU 5.3.0
-- The CXX compiler identification is GNU 5.3.0
-- Check for working C compiler: /usr/bin/x86_64-solus-linux-gcc
-- Check for working C compiler: /usr/bin/x86_64-solus-linux-gcc -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Detecting C compile features
-- Detecting C compile features - done
-- Check for working CXX compiler: /usr/bin/x86_64-solus-linux-g++
-- Check for working CXX compiler: /usr/bin/x86_64-solus-linux-g++ -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- CMAKE_BUILD_TYPE: RelWithDebInfo
-- Found PkgConfig: /usr/bin/pkg-config (found version "0.28") 
-- checking for module 'gtk+-2.0>=2.12'
--   found gtk+-2.0, version 2.24.28
-- checking for module 'glib-2.0>=2.16'
--   found glib-2.0, version 2.46.1
-- checking for module 'glibmm-2.4>=2.16'
--   found glibmm-2.4, version 2.46.1
-- checking for module 'gtkmm-2.4>=2.22'
--   found gtkmm-2.4, version 2.24.4
-- checking for module 'gio-2.0>=2.16'
--   found gio-2.0, version 2.46.1
-- checking for module 'giomm-2.4>=2.12'
--   found giomm-2.4, version 2.46.1
-- checking for module 'gthread-2.0>=2.16'
--   found gthread-2.0, version 2.46.1
-- checking for module 'gobject-2.0>=2.16'
--   found gobject-2.0, version 2.46.1
-- checking for module 'sigc++-2.0'
--   found sigc++-2.0, version 2.6.1
-- checking for module 'lcms2'
--   found lcms2, version 2.7
-- Found EXPAT: /usr/lib64/libexpat.so (found version "2.1.1") 
-- checking for module 'fftw3f'
--   found fftw3f, version 3.3.4
-- checking for module 'libiptcdata'
--   found libiptcdata, version 1.0.4
-- checking for module 'fftw3'
--   found fftw3, version 3.3.4
-- Found JPEG: /usr/lib64/libjpeg.so  
-- Found ZLIB: /usr/lib64/libz.so (found version "1.2.8") 
-- Found PNG: /usr/lib64/libpng.so (found version "1.5.26") 
-- Found TIFF: /usr/lib64/libtiff.so (found version "4.0.6") 
-- Found BZip2: /usr/lib64/libbz2.so (found version "1.0.6") 
-- Looking for BZ2_bzCompressInit in /usr/lib64/libbz2.so
-- Looking for BZ2_bzCompressInit in /usr/lib64/libbz2.so - found
-- checking for module 'libcanberra-gtk'
--   found libcanberra-gtk, version 0.30
-- Try OpenMP C flag = [-fopenmp]
-- Performing Test OpenMP_FLAG_DETECTED
-- Performing Test OpenMP_FLAG_DETECTED - Success
-- Try OpenMP CXX flag = [-fopenmp]
-- Performing Test OpenMP_FLAG_DETECTED
-- Performing Test OpenMP_FLAG_DETECTED - Success
-- Found OpenMP: -fopenmp  
CMake Warning at CMakeLists.txt:269 (message):
  You are performing an in-source build.  This is discouraged.  For an
  explanation and the advantages of out-of-source builds, please refer to
  http://www.cmake.org/Wiki/CMake_FAQ#What_is_an_.22out-of-source.22_build.3F

-- Configuring done
CMake Warning (dev) at CMakeLists.txt:349 (add_dependencies):
  Policy CMP0046 is not set: Error on non-existent dependency in
  add_dependencies.  Run "cmake --help-policy CMP0046" for policy details.
  Use the cmake_policy command to set the policy and suppress this warning.

  The dependency target "Debug" of target "AboutFile" does not exist.
This warning is for project developers.  Use -Wno-dev to suppress it.

CMake Warning (dev) at CMakeLists.txt:349 (add_dependencies):
  Policy CMP0046 is not set: Error on non-existent dependency in
  add_dependencies.  Run "cmake --help-policy CMP0046" for policy details.
  Use the cmake_policy command to set the policy and suppress this warning.

  The dependency target "MinSizeRel" of target "AboutFile" does not exist.
This warning is for project developers.  Use -Wno-dev to suppress it.

CMake Warning (dev) at CMakeLists.txt:349 (add_dependencies):
  Policy CMP0046 is not set: Error on non-existent dependency in
  add_dependencies.  Run "cmake --help-policy CMP0046" for policy details.
  Use the cmake_policy command to set the policy and suppress this warning.

  The dependency target "RelWithDebInfo" of target "AboutFile" does not
  exist.
This warning is for project developers.  Use -Wno-dev to suppress it.

CMake Warning (dev) at CMakeLists.txt:349 (add_dependencies):
  Policy CMP0046 is not set: Error on non-existent dependency in
  add_dependencies.  Run "cmake --help-policy CMP0046" for policy details.
  Use the cmake_policy command to set the policy and suppress this warning.

  The dependency target "Release" of target "AboutFile" does not exist.
This warning is for project developers.  Use -Wno-dev to suppress it.

-- Generating done
CMake Warning:
  Manually-specified variables were not used by the project:

    CMAKE_CFLAGS
    CMAKE_LD_FLAGS
    CMAKE_LIB_SUFFIX

-- Build files have been written to: /var/ypkg-root/root/rawtherapee/build/RawTherapee-4.2
[Build] setup successful
[Build] Running step: build
+ cd /var/ypkg-root/root/rawtherapee/build/RawTherapee-4.2
+ export 'CFLAGS=-mtune=generic -march=x86-64 -ftree-vectorize -g2 -O2 -pipe -fPIC -Wformat -Wformat-security -fno-omit-frame-pointer -fstack-protector-strong --param ssp-buffer-size=4 -fexceptions -D_FORTIFY_SOURCE=2 -feliminate-unused-debug-types -Wno-error -Wp,-D_REENTRANT'
+ CFLAGS='-mtune=generic -march=x86-64 -ftree-vectorize -g2 -O2 -pipe -fPIC -Wformat -Wformat-security -fno-omit-frame-pointer -fstack-protector-strong --param ssp-buffer-size=4 -fexceptions -D_FORTIFY_SOURCE=2 -feliminate-unused-debug-types -Wno-error -Wp,-D_REENTRANT'
+ export 'CXXFLAGS=-mtune=generic -march=x86-64 -ftree-vectorize -g2 -O2 -pipe -fPIC -Wformat -Wformat-security -fno-omit-frame-pointer -fstack-protector-strong --param ssp-buffer-size=4 -fexceptions -D_FORTIFY_SOURCE=2 -feliminate-unused-debug-types -Wno-error -Wp,-D_REENTRANT'
+ CXXFLAGS='-mtune=generic -march=x86-64 -ftree-vectorize -g2 -O2 -pipe -fPIC -Wformat -Wformat-security -fno-omit-frame-pointer -fstack-protector-strong --param ssp-buffer-size=4 -fexceptions -D_FORTIFY_SOURCE=2 -feliminate-unused-debug-types -Wno-error -Wp,-D_REENTRANT'
+ export 'LDFLAGS=-Wl,--copy-dt-needed-entries -Wl,-O1 -Wl,-z,relro -Wl,-z,now'
+ LDFLAGS='-Wl,--copy-dt-needed-entries -Wl,-O1 -Wl,-z,relro -Wl,-z,now'
+ export 'FFLAGS=-mtune=generic -march=x86-64 -ftree-vectorize -g2 -O2 -pipe -fPIC -Wformat -Wformat-security -fno-omit-frame-pointer -fstack-protector-strong --param ssp-buffer-size=4 -fexceptions -D_FORTIFY_SOURCE=2 -feliminate-unused-debug-types -Wno-error -Wp,-D_REENTRANT'
+ FFLAGS='-mtune=generic -march=x86-64 -ftree-vectorize -g2 -O2 -pipe -fPIC -Wformat -Wformat-security -fno-omit-frame-pointer -fstack-protector-strong --param ssp-buffer-size=4 -fexceptions -D_FORTIFY_SOURCE=2 -feliminate-unused-debug-types -Wno-error -Wp,-D_REENTRANT'
+ export 'FCFLAGS=-mtune=generic -march=x86-64 -ftree-vectorize -g2 -O2 -pipe -fPIC -Wformat -Wformat-security -fno-omit-frame-pointer -fstack-protector-strong --param ssp-buffer-size=4 -fexceptions -D_FORTIFY_SOURCE=2 -feliminate-unused-debug-types -Wno-error -Wp,-D_REENTRANT'
+ FCFLAGS='-mtune=generic -march=x86-64 -ftree-vectorize -g2 -O2 -pipe -fPIC -Wformat -Wformat-security -fno-omit-frame-pointer -fstack-protector-strong --param ssp-buffer-size=4 -fexceptions -D_FORTIFY_SOURCE=2 -feliminate-unused-debug-types -Wno-error -Wp,-D_REENTRANT'
+ export PATH=/usr/bin:/bin:/usr/sbin:/sbin
+ PATH=/usr/bin:/bin:/usr/sbin:/sbin
+ export workdir=/var/ypkg-root/root/rawtherapee/build/RawTherapee-4.2
+ workdir=/var/ypkg-root/root/rawtherapee/build/RawTherapee-4.2
+ export package=rawtherapee
+ package=rawtherapee
+ export release=1
+ release=1
+ export version=4.2
+ version=4.2
+ export sources=/var/cache/eopkg/archives
+ sources=/var/cache/eopkg/archives
+ export pkgfiles=/WORK/packages/files
+ pkgfiles=/WORK/packages/files
+ export installdir=/var/ypkg-root/root/rawtherapee/install
+ installdir=/var/ypkg-root/root/rawtherapee/install
+ export CC=x86_64-solus-linux-gcc
+ CC=x86_64-solus-linux-gcc
+ export CXX=x86_64-solus-linux-g++
+ CXX=x86_64-solus-linux-g++
+ export LD_AS_NEEDED=1
+ LD_AS_NEEDED=1
+ unset DISPLAY SUDO_USER SUDO_GID SUDO_UID SUDO_COMMAND CDPATH
+ make -j5
Scanning dependencies of target AboutFile
Scanning dependencies of target rtexif
[  0%] Creating the about file
CMake Error at AboutThisBuild.cmake:20 (message):
  hg command not found!

CMakeFiles/AboutFile.dir/build.make:49: fallo en las instrucciones para el objetivo 'CMakeFiles/AboutFile'
make[2]: *** [CMakeFiles/AboutFile] Error 1
CMakeFiles/Makefile2:60: fallo en las instrucciones para el objetivo 'CMakeFiles/AboutFile.dir/all'
make[1]: *** [CMakeFiles/AboutFile.dir/all] Error 2
make[1]: *** Se espera a que terminen otras tareas....
[  1%] [  1%] [  1%] [  2%] [  2%] Building CXX object rtexif/CMakeFiles/rtexif.dir/pentaxattribs.cc.o
Building CXX object rtexif/CMakeFiles/rtexif.dir/rtexif.cc.o
Building CXX object rtexif/CMakeFiles/rtexif.dir/nikonattribs.cc.o
Building CXX object rtexif/CMakeFiles/rtexif.dir/stdattribs.cc.o
Building CXX object rtexif/CMakeFiles/rtexif.dir/canonattribs.cc.o
/var/ypkg-root/root/rawtherapee/build/RawTherapee-4.2/rtexif/rtexif.cc:31:30: error fatal: ../rtgui/version.h: No existe el fichero o el directorio
compilación terminada.
rtexif/CMakeFiles/rtexif.dir/build.make:54: fallo en las instrucciones para el objetivo 'rtexif/CMakeFiles/rtexif.dir/rtexif.cc.o'
make[2]: *** [rtexif/CMakeFiles/rtexif.dir/rtexif.cc.o] Error 1
make[2]: *** Se espera a que terminen otras tareas....
CMakeFiles/Makefile2:110: fallo en las instrucciones para el objetivo 'rtexif/CMakeFiles/rtexif.dir/all'
make[1]: *** [rtexif/CMakeFiles/rtexif.dir/all] Error 2
Makefile:116: fallo en las instrucciones para el objetivo 'all'
make: *** [all] Error 2
Command '['/bin/bash', '--norc', '--noprofile', '/tmp/ypkg-buildAtqfR_']' returned non-zero exit status 2
[Build] build failed

The error is that ../rtgui/version.h doesn't exist. All the dependencies are correct, and I ran cmake with this options:

%cmake . \
         -DCMAKE_CXX_FLAGS="-std=c++11" \
         -DCMAKE_C_FLAGS="-std=c++11" \
         -DBUILD_SHARED_LIBS:BOOL=ON \

Thanks! :)

ikeydoherty commented 8 years ago
CMake Error at AboutThisBuild.cmake:20 (message):
  hg command not found!

Is the real issue.

sudo eopkg install mercurial

Ideally this should have been raised with the Solus team before trying to elevate it upstream

loopset commented 8 years ago

Thanks Ikey for your answer. Finally, I could compile it with the help of a few patches. So i will close this issue.