Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[osg] Build error #24938

Closed
sotex opened this issue May 26, 2022 · 3 comments
Closed

[osg] Build error #24938

sotex opened this issue May 26, 2022 · 3 comments
Assignees
Labels
category:community-triplet A PR or issue related to community triplets not officially validated by the vcpkg team.

Comments

@sotex
Copy link

sotex commented May 26, 2022

Host Environment

  • OS: Windows11
  • Compiler: gcc version 8.1.0 (x86_64-posix-seh-rev0, Built by MinGW-W64 project)

To Reproduce
Steps to reproduce the behavior:
vcpkg.exe install osg --triplet=x64-mingw-dynamic

Failure logs

  • Cut and paste the appropriate build messages from the console output.
Computing installation plan...
The following packages will be built and installed:
  * egl-registry[core]:x64-mingw-dynamic -> 2021-11-23
  * opengl-registry[core]:x64-mingw-dynamic -> 2021-11-17
    osg[core]:x64-mingw-dynamic -> 3.6.5#12
Additional packages (*) will be modified to complete this operation.
Detecting compiler hash for triplet x64-mingw-dynamic...
Restored 0 packages from C:\Users\o\AppData\Local\vcpkg\archives in 620.4 us. Use --debug to see more details.
Installing 1/3 egl-registry:x64-mingw-dynamic...
Building egl-registry[core]:x64-mingw-dynamic...
-- Using community triplet x64-mingw-dynamic. This triplet configuration is not guaranteed to succeed.
-- [COMMUNITY] Loading triplet configuration from: G:\buildtmp\vcpkg\triplets\community\x64-mingw-dynamic.cmake
-- Using cached KhronosGroup-EGL-Registry-992aa3914f8fea801b1034c992db389911d9f3c3.tar.gz.
-- Cleaning sources at G:/buildtmp/vcpkg/buildtrees/egl-registry/src/9911d9f3c3-247a0cf5c1.clean. Use --editable to skip cleaning for the packages you specify.
-- Extracting source G:/buildtmp/vcpkg/downloads/KhronosGroup-EGL-Registry-992aa3914f8fea801b1034c992db389911d9f3c3.tar.gz
-- Using source at G:/buildtmp/vcpkg/buildtrees/egl-registry/src/9911d9f3c3-247a0cf5c1.clean
-- Installing: G:/buildtmp/vcpkg/packages/egl-registry_x64-mingw-dynamic/share/egl-registry/copyright
-- Performing post-build validation
-- Performing post-build validation done
Stored binary cache: C:\Users\o\AppData\Local\vcpkg\archives\51\51a913f017fe9f3523a0a05e186d025d00cdedab27b32de62cfbf0ccca5684d7.zip
Elapsed time to handle egl-registry:x64-mingw-dynamic: 691.1 ms
Installing 2/3 opengl-registry:x64-mingw-dynamic...
Building opengl-registry[core]:x64-mingw-dynamic...
-- Using community triplet x64-mingw-dynamic. This triplet configuration is not guaranteed to succeed.
-- [COMMUNITY] Loading triplet configuration from: G:\buildtmp\vcpkg\triplets\community\x64-mingw-dynamic.cmake
-- Using cached KhronosGroup-OpenGL-Registry-a48c224a2db6edc4f4c610025b529d1c31ee9445.tar.gz.
-- Cleaning sources at G:/buildtmp/vcpkg/buildtrees/opengl-registry/src/1c31ee9445-26fd4dce99.clean. Use --editable to skip cleaning for the packages you specify.
-- Extracting source G:/buildtmp/vcpkg/downloads/KhronosGroup-OpenGL-Registry-a48c224a2db6edc4f4c610025b529d1c31ee9445.tar.gz
-- Using source at G:/buildtmp/vcpkg/buildtrees/opengl-registry/src/1c31ee9445-26fd4dce99.clean
-- Installing: G:/buildtmp/vcpkg/packages/opengl-registry_x64-mingw-dynamic/share/opengl-registry/copyright
-- Performing post-build validation
-- Performing post-build validation done
Stored binary cache: C:\Users\o\AppData\Local\vcpkg\archives\7c\7c3c8dd111d5a38b0a412fb20f461280c2696f76f3d36c988b39f4ada116c6d7.zip
Elapsed time to handle opengl-registry:x64-mingw-dynamic: 3.459 s
Installing 3/3 osg:x64-mingw-dynamic...
Building osg[core]:x64-mingw-dynamic...
-- Using community triplet x64-mingw-dynamic. This triplet configuration is not guaranteed to succeed.
-- [COMMUNITY] Loading triplet configuration from: G:\buildtmp\vcpkg\triplets\community\x64-mingw-dynamic.cmake
-- Downloading https://github.com/openscenegraph/OpenSceneGraph/archive/OpenSceneGraph-3.6.5.tar.gz -> openscenegraph-OpenSceneGraph-OpenSceneGraph-3.6.5.tar.gz...
-- Extracting source G:/buildtmp/vcpkg/downloads/openscenegraph-OpenSceneGraph-OpenSceneGraph-3.6.5.tar.gz
-- Applying patch collada.patch
-- Applying patch static.patch
-- Applying patch fix-sdl.patch
-- Applying patch fix-example-application.patch
-- Applying patch disable-present3d-staticview-in-linux.patch
-- Applying patch fix-curl.patch
-- Applying patch remove-prefix.patch
-- Applying patch fix-liblas.patch
-- Applying patch fix-nvtt.patch
-- Applying patch use-boost-asio.patch
-- Applying patch fix-dependency-coin.patch
-- Applying patch osgdb_zip_nozip.patch
-- Using source at G:/buildtmp/vcpkg/buildtrees/osg/src/raph-3.6.5-0028e69d98.clean
CMake Deprecation Warning at scripts/cmake/vcpkg_check_features.cmake:178 (message):
  calling `vcpkg_check_features` without the `FEATURES` keyword has been
  deprecated.

      Please add the `FEATURES` keyword to the call.
Call Stack (most recent call first):
  ports/osg/portfile.cmake:62 (vcpkg_check_features)
  scripts/ports.cmake:146 (include)


-- Configuring x64-mingw-dynamic
CMake Warning at scripts/cmake/vcpkg_configure_cmake.cmake:448 (message):
  The following variables are not used in CMakeLists.txt:

      BUILD_OSG_PLUGIN_DICOM
      BUILD_OSG_PLUGIN_DIRECTSHOW
      BUILD_OSG_PLUGIN_FBX
      BUILD_OSG_PLUGIN_INVENTOR
      BUILD_OSG_PLUGIN_OPENCASCADE
      BUILD_OSG_PLUGIN_QTKIT
      BUILD_OSG_PLUGIN_RESTHTTPDEVICE
      BUILD_OSG_PLUGIN_SVG
      BUILD_OSG_PLUGIN_VNC
      BUILD_OSG_PLUGIN_ZEROCONFDEVICE
      BUILD_REF_DOCS_SEARCHENGINE
      BUILD_REF_DOCS_TAGFILE
      CMAKE_DISABLE_FIND_PACKAGE_FONTCONFIG
      CMAKE_DISABLE_FIND_PACKAGE_LIBLAS

  Please recheck them and remove the unnecessary options from the
  `vcpkg_configure_cmake` call.

  If these options should still be passed for whatever reason, please use the
  `MAYBE_UNUSED_VARIABLES` argument.
Call Stack (most recent call first):
  ports/osg/portfile.cmake:83 (vcpkg_configure_cmake)
  scripts/ports.cmake:146 (include)


-- Building x64-mingw-dynamic-rel
CMake Error at scripts/cmake/vcpkg_execute_build_process.cmake:158 (message):
    Command failed: C:/scoop/apps/cmake/3.23.1/bin/cmake.exe --build . --config Release --target install -- -v -j13
    Working Directory: G:/buildtmp/vcpkg/buildtrees/osg/x64-mingw-dynamic-rel
    See logs for more information:
      G:\buildtmp\vcpkg\buildtrees\osg\install-x64-mingw-dynamic-rel-out.log

Call Stack (most recent call first):
  scripts/cmake/vcpkg_build_cmake.cmake:113 (vcpkg_execute_build_process)
  scripts/cmake/vcpkg_install_cmake.cmake:44 (vcpkg_build_cmake)
  ports/osg/portfile.cmake:106 (vcpkg_install_cmake)
  scripts/ports.cmake:146 (include)


error: building osg:x64-mingw-dynamic failed with: BUILD_FAILED
Please ensure you're using the latest port files with `git pull` and `vcpkg update`.
Then check for known issues at:
    https://github.com/microsoft/vcpkg/issues?q=is%3Aissue+is%3Aopen+in%3Atitle+osg
You can submit a new issue at:
    https://github.com/microsoft/vcpkg/issues/new?template=report-package-build-failure.md&title=[osg]+Build+error
Include '[osg] Build error' in your bug report title, the following version information in your bug description, and attach any relevant failure logs from above.
    vcpkg-tool version: 2022-05-05-67e17c1782801cf481be9ac0b3765dff3e4bdeb8
    vcpkg-scripts version: 93b38546e 2022-05-24 (34 hours ago)
  • Please attach any additional failure logs mentioned in the console output.
......
G:/buildtmp/vcpkg/buildtrees/osg/src/raph-3.6.5-0028e69d98.clean/src/osg/DisplaySettings.cpp
In file included from C:/Qt/Tools/mingw810_64/x86_64-w64-mingw32/include/windows.h:10,
                 from G:/buildtmp/vcpkg/buildtrees/osg/src/raph-3.6.5-0028e69d98.clean/src/osg/DisplaySettings.cpp:29:
C:/Qt/Tools/mingw810_64/x86_64-w64-mingw32/include/sdkddkver.h:175:19: error: operator '<=' has no left operand
 #if (_WIN32_WINNT <= _WIN32_WINNT_NT4)
......

config-x64-mingw-dynamic-out.log
install-x64-mingw-dynamic-rel-out.log

Additional context
Add any other context about the problem here, such as what you have already tried to resolve the issue.

@dg0yt
Copy link
Contributor

dg0yt commented May 26, 2022

I'm working on port osg improvements for in #24720. Perhaps it will eventually help with mingw triplets. But it is not a priority.

  • Compiler: gcc version 8.1.0 (x86_64-posix-seh-rev0, Built by MinGW-W64 project)

Note that actual version of mingw would be more important than the version of gcc. MSYS2 may have a more recent toolchain than Qt.

@Cheney-W Cheney-W added the category:community-triplet A PR or issue related to community triplets not officially validated by the vcpkg team. label May 27, 2022
@LilyWangLL
Copy link
Contributor

@sotex PR #24720 has been merged, does this issue still exist?

@LilyWangLL
Copy link
Contributor

This issue hasn’t been updated in 3 months, if it is still an issue, please reopen this issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
category:community-triplet A PR or issue related to community triplets not officially validated by the vcpkg team.
Projects
None yet
Development

No branches or pull requests

4 participants