Skip to content
This repository has been archived by the owner on May 3, 2019. It is now read-only.

mellowplayer-3.3.3 compilation fails on Fedora 27 #196

Closed
martinkg opened this issue Feb 10, 2018 · 3 comments
Closed

mellowplayer-3.3.3 compilation fails on Fedora 27 #196

martinkg opened this issue Feb 10, 2018 · 3 comments
Assignees
Milestone

Comments

@martinkg
Copy link

compilation of mellowplayer-3.3.3 fails with this error on Fedora 27:
rpm spec file: https://martinkg.fedorapeople.org/Packages/mellowplayer/mellowplayer.spec

 [martin@f27 SPECS]$ rpmbuild -ba mellowplayer.spec 
Executing(%prep): /bin/sh -e /var/tmp/rpm-tmp.TSsdJr
+ umask 022
+ cd /home/martin/rpmbuild/BUILD
+ cd /home/martin/rpmbuild/BUILD
+ rm -rf MellowPlayer-3.3.3
+ /usr/bin/gzip -dc /home/martin/rpmbuild/SOURCES/mellowplayer-3.3.3.tar.gz
+ /usr/bin/tar -xof -
+ STATUS=0
+ '[' 0 -ne 0 ']'
+ cd MellowPlayer-3.3.3
+ /usr/bin/chmod -Rf a+rX,u+w,g-w,o-w .
+ rm -rf scripts/packaging/osx scripts/packaging/windows
+ sed -i 1,1d src/main/share/applications/mellowplayer.desktop
+ exit 0
Executing(%build): /bin/sh -e /var/tmp/rpm-tmp.heU8aF
+ umask 022
+ cd /home/martin/rpmbuild/BUILD
+ cd MellowPlayer-3.3.3
+ CFLAGS='-O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -m64 -mtune=generic'
+ export CFLAGS
+ CXXFLAGS='-O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -m64 -mtune=generic'
+ export CXXFLAGS
+ FFLAGS='-O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -m64 -mtune=generic -I/usr/lib64/gfortran/modules'
+ export FFLAGS
+ FCFLAGS='-O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -m64 -mtune=generic -I/usr/lib64/gfortran/modules'
+ export FCFLAGS
+ LDFLAGS='-Wl,-z,relro -specs=/usr/lib/rpm/redhat/redhat-hardened-ld'
+ export LDFLAGS
+ /usr/bin/cmake -DCMAKE_C_FLAGS_RELEASE:STRING=-DNDEBUG -DCMAKE_CXX_FLAGS_RELEASE:STRING=-DNDEBUG -DCMAKE_Fortran_FLAGS_RELEASE:STRING=-DNDEBUG -DCMAKE_VERBOSE_MAKEFILE:BOOL=ON -DCMAKE_INSTALL_PREFIX:PATH=/usr -DINCLUDE_INSTALL_DIR:PATH=/usr/include -DLIB_INSTALL_DIR:PATH=/usr/lib64 -DSYSCONF_INSTALL_DIR:PATH=/etc -DSHARE_INSTALL_PREFIX:PATH=/usr/share -DLIB_SUFFIX=64 -DBUILD_SHARED_LIBS:BOOL=ON .
-- The C compiler identification is GNU 7.3.1
-- The CXX compiler identification is GNU 7.3.1
-- Check for working C compiler: /usr/bin/cc
-- Check for working C compiler: /usr/bin/cc -- 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/c++
-- Check for working CXX compiler: /usr/bin/c++ -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- Found Qt 5.9.4 in /usr/lib64/cmake/Qt5
-- Found PkgConfig: /usr/bin/pkg-config (found version "1.3.12") 
-- Checking for one of the modules 'libnotify'
-- Found libnotify 0.7.7 in /usr/lib64
-- Found qxtglobalshortcut
-- Looking for pthread.h
-- Looking for pthread.h - found
-- Looking for pthread_create
-- Looking for pthread_create - not found
-- Looking for pthread_create in pthreads
-- Looking for pthread_create in pthreads - not found
-- Looking for pthread_create in pthread
-- Looking for pthread_create in pthread - found
-- Found Threads: TRUE  
-- Using GNU gold linker
-- qml import path: from imports.qrc
-- CMAKE_INSTALL_BINDIR: /usr/bin
-- CMAKE_INSTALL_LIBDIR: /usr/lib64
-- CMAKE_INSTALL_DATADIR: /usr/share
-- cotire 1.7.10 loaded.
-- CXX target MellowPlayer.Domain cotired without unity build.
-- CXX target MellowPlayer.Infrastructure cotired without unity build.
-- Linux header files 
-- CXX target MellowPlayer.Presentation cotired without unity build.
-- Looking for XOpenDisplay in /usr/lib64/libX11.so;/usr/lib64/libXext.so
-- Looking for XOpenDisplay in /usr/lib64/libX11.so;/usr/lib64/libXext.so - found
-- Looking for gethostbyname
-- Looking for gethostbyname - found
-- Looking for connect
-- Looking for connect - found
-- Looking for remove
-- Looking for remove - found
-- Looking for shmat
-- Looking for shmat - found
-- Looking for IceConnectionNumber in ICE
-- Looking for IceConnectionNumber in ICE - found
-- Found X11: /usr/lib64/libX11.so
-- Building MellowPlayer v3.3.3.0
-- Build date: 2018-02-10
-- Build type: Release
-- Use pre-compiled headers: ON
-- Default theme: Adaptive
-- Build tests: OFF
-- Configuring done
CMake Error in src/main/CMakeLists.txt:
  Cannot find source file:

    /home/martin/rpmbuild/BUILD/MellowPlayer-3.3.3/src/main/qrc_languages.cpp

  Tried extensions .c .C .c++ .cc .cpp .cxx .m .M .mm .h .hh .h++ .hm .hpp
  .hxx .in .txx


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

    CMAKE_C_FLAGS_RELEASE
    CMAKE_Fortran_FLAGS_RELEASE
    INCLUDE_INSTALL_DIR
    LIB_INSTALL_DIR
    LIB_SUFFIX
    SHARE_INSTALL_PREFIX
    SYSCONF_INSTALL_DIR
@ColinDuquesnoy
Copy link
Owner

Hmm weird, version 3.3.3 builds fine on Travis-CI and openSUSE build service and I cannot reproduce that build issue in my development environment. But I don't see anything wrong in your spec file.

I've pushed what I hope will fix the issue for you (commit 1a75e49). If that doesn't work I'll rever commit 18a8648 and find another solution to generate languages.qrc.

@ColinDuquesnoy ColinDuquesnoy self-assigned this Feb 11, 2018
@ColinDuquesnoy ColinDuquesnoy added this to the 3.3.4 milestone Feb 11, 2018
@martinkg
Copy link
Author

Thanks, works for me.

@ColinDuquesnoy
Copy link
Owner

Good. I'll probably release 3.3.4 next weekend.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

2 participants