Uploaded image for project: 'Funtoo Linux'
  1. Funtoo Linux
  2. FL-12105

Latest glfw 3.4 fails to compile

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Important (Ebuild) Important (Ebuild)
    • None
    • None
    • None

      The latest version of GLFW fails to compile due to changes in the CMakeLists.txt file relating to compiling in X11 and Wayland support. The changes in the build file now allow us to build X11, Wayland or both and removed the old wayland-only option.

      I have a fix for the autogen, that also adds an X and wayland USE flags ready for inclusion.

      Build log:

      >>> Emerging (1 of 2) media-libs/glfw-3.4::media-kit
       * Fetching files in the background.
       * To view fetch progress, run in another terminal:
       * tail -f /var/log/emerge-fetch.log
       * glfw-3.4-a74efa0.tar.gz BLAKE2B SHA512 size ;-) ...                                                                                                                                                                                                                                                                                                                                                                             [ ok ]
      >>> Unpacking source...
      >>> Unpacking glfw-3.4-a74efa0.tar.gz to /var/tmp/portage/media-libs/glfw-3.4/work
      >>> Source unpacked in /var/tmp/portage/media-libs/glfw-3.4/work
      >>> Preparing source in /var/tmp/portage/media-libs/glfw-3.4/work/glfw-3.4 ...
       * Working in BUILD_DIR: "/var/tmp/portage/media-libs/glfw-3.4/work/glfw-3.4_build"
      >>> Source prepared.
      >>> Configuring source in /var/tmp/portage/media-libs/glfw-3.4/work/glfw-3.4 ...
       * Working in BUILD_DIR: "/var/tmp/portage/media-libs/glfw-3.4/work/glfw-3.4_build"
      cmake -C /var/tmp/portage/media-libs/glfw-3.4/work/glfw-3.4_build/gentoo_common_config.cmake -G Ninja -DCMAKE_INSTALL_PREFIX=/usr -DGLFW_BUILD_EXAMPLES=no -DGLFW_USE_WAYLAND=no -DBUILD_SHARED_LIBS=1 -DCMAKE_BUILD_TYPE=Gentoo -DCMAKE_TOOLCHAIN_FILE=/var/tmp/portage/media-libs/glfw-3.4/work/glfw-3.4_build/gentoo_toolchain.cmake  /var/tmp/portage/media-libs/glfw-3.4/work/glfw-3.4
      CMake Warning:
        Ignoring empty string ("") provided on the command line.
      
      
      loading initial cache file /var/tmp/portage/media-libs/glfw-3.4/work/glfw-3.4_build/gentoo_common_config.cmake
      -- The C compiler identification is GNU 12.3.0
      -- Detecting C compiler ABI info
      -- Detecting C compiler ABI info - done
      -- Check for working C compiler: /usr/bin/x86_64-pc-linux-gnu-gcc - skipped
      -- Detecting C compile features
      -- Detecting C compile features - done
      CMake Error at CMakeLists.txt:31 (message):
        GLFW_USE_WAYLAND has been removed; delete the CMake cache and set
        GLFW_BUILD_WAYLAND and GLFW_BUILD_X11 instead
      
      
      -- Configuring incomplete, errors occurred!
      See also "/var/tmp/portage/media-libs/glfw-3.4/work/glfw-3.4_build/CMakeFiles/CMakeOutput.log".
       * ERROR: media-libs/glfw-3.4::media-kit failed (configure phase):
       *   cmake failed
       * 
       * Call stack:
       *     ebuild.sh, line   93:  Called src_configure
       *   environment, line 1957:  Called cmake_src_configure
       *   environment, line  805:  Called die
       * The specific snippet of code:
       *       "${CMAKE_BINARY}" "${cmakeargs[@]}" "${CMAKE_USE_DIR}" || die "cmake failed";
       * 
       * If you need support, post the output of `emerge --info '=media-libs/glfw-3.4::media-kit'`,
       * the complete build log and the output of `emerge -pqv '=media-libs/glfw-3.4::media-kit'`.
       * The complete build log is located at '/var/tmp/portage/media-libs/glfw-3.4/temp/build.log'.
       * The ebuild environment file is located at '/var/tmp/portage/media-libs/glfw-3.4/temp/environment'.
       * Working directory: '/var/tmp/portage/media-libs/glfw-3.4/work/glfw-3.4_build'
       * S: '/var/tmp/portage/media-libs/glfw-3.4/work/glfw-3.4'
      

            madman10k madman10k
            madman10k madman10k
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: