portaloffreedom / pipecontrol

Pipewire control GUI program in Qt (Kirigami2)
GNU General Public License v3.0
48 stars 2 forks source link

Package does not compile on Arch, compiler error #11

Open cleinias opened 10 months ago

cleinias commented 10 months ago

It seems like a compiler directive issue in cmake, perhaps? Here is the console's output:

` ==> Making package: pipecontrol 0.2.10-1 (Wed 18 Oct 2023 10:06:04 AM CDT) ==> Checking runtime dependencies... ==> Checking buildtime dependencies... ==> Retrieving sources... -> Downloading PipeControl-0.2.10.tar.gz... % Total % Received % Xferd Average Speed Time Time Time Current Dload Upload Total Spent Left Speed 0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0 100 43311 0 43311 0 0 56768 0 --:--:-- --:--:-- --:--:-- 56768 ==> Validating source files with sha256sums... PipeControl-0.2.10.tar.gz ... Passed ==> Extracting sources... -> Extracting PipeControl-0.2.10.tar.gz with bsdtar ==> Starting build()... -- The C compiler identification is GNU 13.2.1 -- The CXX compiler identification is GNU 13.2.1 -- Detecting C compiler ABI info -- Detecting C compiler ABI info - done -- Check for working C compiler: /usr/bin/cc - skipped -- Detecting C compile features -- Detecting C compile features - done -- Detecting CXX compiler ABI info -- Detecting CXX compiler ABI info - done -- Check for working CXX compiler: /usr/bin/c++ - skipped -- Detecting CXX compile features -- Detecting CXX compile features - done -- Installing in the same prefix as Qt, adopting their path scheme. fatal: not a git repository (or any parent up to mount point /) Stopping at filesystem boundary (GIT_DISCOVERY_ACROSS_FILESYSTEM not set). fatal: not a git repository (or any parent up to mount point /) Stopping at filesystem boundary (GIT_DISCOVERY_ACROSS_FILESYSTEM not set). -- Looking for GLIBC -- Looking for GLIBC - found -- Performing Test _OFFT_IS_64BIT -- Performing Test _OFFT_IS_64BIT - Success -- Performing Test HAVE_DATE_TIME -- Performing Test HAVE_DATE_TIME - Success -- Found KF5Kirigami2: /usr/lib/cmake/KF5Kirigami2/KF5Kirigami2Config.cmake (found version "5.110.0") -- Found Gettext: /usr/bin/msgmerge (found version "0.22.3") -- Found KF5I18n: /usr/lib/cmake/KF5I18n/KF5I18nConfig.cmake (found version "5.110.0") -- Found KF5CoreAddons: /usr/lib/cmake/KF5CoreAddons/KF5CoreAddonsConfig.cmake (found version "5.110.0") -- Found KF5: success (found suitable version "5.110.0", minimum required is "5.68.0") found components: Kirigami2 I18n CoreAddons -- Found PkgConfig: /usr/bin/pkg-config (found version "1.8.1") -- Checking for module 'libpipewire-0.3' -- Found libpipewire-0.3, version 0.3.82 -- Configuring done (1.0s) -- Generating done (0.0s) -- Build files have been written to: /home/stefano/builds/pipecontrol/src/pipecontrol-0.2.10 [ 5%] Automatic MOC and UIC for target pipecontrol [ 5%] Built target pipecontrol_autogen [ 10%] Automatic RCC for qml.qrc [ 15%] Building CXX object CMakeFiles/pipecontrol.dir/pipecontrol_autogen/mocs_compilation.cpp.o In file included from /home/stefano/builds/pipecontrol/src/pipecontrol-0.2.10/pipecontrol_autogen/LWJK3SHQDE/../../src/pw/qpipewire.h:38, from /home/stefano/builds/pipecontrol/src/pipecontrol-0.2.10/pipecontrol_autogen/LWJK3SHQDE/moc_qpipewire.cpp:10, from /home/stefano/builds/pipecontrol/src/pipecontrol-0.2.10/pipecontrol_autogen/mocs_compilation.cpp:3: /home/stefano/builds/pipecontrol/src/pipecontrol-0.2.10/src/pw/qpipewirenode.h:124:82: error: too many initializers for ‘spa_io_clock’ 124 | struct spa_io_clock clock = {0,0,"",0,{0,0},0,0,0,0,0,{0,0},0,0,0,0,0}; | ^ make[2]: [CMakeFiles/pipecontrol.dir/build.make:86: CMakeFiles/pipecontrol.dir/pipecontrol_autogen/mocs_compilation.cpp.o] Error 1 make[1]: [CMakeFiles/Makefile2:192: CMakeFiles/pipecontrol.dir/all] Error 2 make: *** [Makefile:146: all] Error 2 ==> ERROR: A failure occurred in build(). Aborting...

`

dreirund commented 10 months ago

Similar error here; I post the compilation output again for better formatting:

-- The C compiler identification is GNU 13.2.1
-- The CXX compiler identification is GNU 13.2.1
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working C compiler: /usr/bin/cc - skipped
-- Detecting C compile features
-- Detecting C compile features - done
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Check for working CXX compiler: /usr/bin/c++ - skipped
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- Installing in the same prefix as Qt, adopting their path scheme.
fatal: not a git repository (or any parent up to mount point /)
Stopping at filesystem boundary (GIT_DISCOVERY_ACROSS_FILESYSTEM not set).
fatal: not a git repository (or any parent up to mount point /)
Stopping at filesystem boundary (GIT_DISCOVERY_ACROSS_FILESYSTEM not set).
-- Looking for __GLIBC__
-- Looking for __GLIBC__ - found
-- Performing Test _OFFT_IS_64BIT
-- Performing Test _OFFT_IS_64BIT - Success
-- Performing Test HAVE_DATE_TIME
-- Performing Test HAVE_DATE_TIME - Success
-- Found KF5Kirigami2: /usr/lib/cmake/KF5Kirigami2/KF5Kirigami2Config.cmake (found version "5.110.0") 
-- Found Gettext: /usr/bin/msgmerge (found version "0.22.3") 
-- Found KF5I18n: /usr/lib/cmake/KF5I18n/KF5I18nConfig.cmake (found version "5.110.0") 
-- Found KF5CoreAddons: /usr/lib/cmake/KF5CoreAddons/KF5CoreAddonsConfig.cmake (found version "5.110.0") 
-- Found KF5: success (found suitable version "5.110.0", minimum required is "5.68.0") found components: Kirigami2 I18n CoreAddons 
-- Found PkgConfig: /usr/bin/pkg-config (found version "1.8.1") 
-- Checking for module 'libpipewire-0.3'
--   Found libpipewire-0.3, version 0.3.83
-- Configuring done (3.3s)
-- Generating done (0.0s)
-- Build files have been written to: /tmp/makepkg/build/pipecontrol/src/pipecontrol-0.2.10
[  5%] Automatic MOC and UIC for target pipecontrol
[  5%] Built target pipecontrol_autogen
[ 10%] Automatic RCC for qml.qrc
[ 15%] Building CXX object CMakeFiles/pipecontrol.dir/pipecontrol_autogen/mocs_compilation.cpp.o
In file included from /tmp/makepkg/build/pipecontrol/src/pipecontrol-0.2.10/pipecontrol_autogen/LWJK3SHQDE/../../src/pw/qpipewire.h:38,
                 from /tmp/makepkg/build/pipecontrol/src/pipecontrol-0.2.10/pipecontrol_autogen/LWJK3SHQDE/moc_qpipewire.cpp:10,
                 from /tmp/makepkg/build/pipecontrol/src/pipecontrol-0.2.10/pipecontrol_autogen/mocs_compilation.cpp:3:
/tmp/makepkg/build/pipecontrol/src/pipecontrol-0.2.10/src/pw/qpipewirenode.h:124:82: error: too many initializers for ‘spa_io_clock’
  124 |             struct spa_io_clock clock = {0,0,"",0,{0,0},0,0,0,0,0,{0,0},0,0,0,0,0};
      |                                                                                  ^
make[2]: *** [CMakeFiles/pipecontrol.dir/build.make:86: CMakeFiles/pipecontrol.dir/pipecontrol_autogen/mocs_compilation.cpp.o] Error 1
make[1]: *** [CMakeFiles/Makefile2:192: CMakeFiles/pipecontrol.dir/all] Error 2
make: *** [Makefile:146: all] Error 2

Regards!