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

building draco:x64-linux failed with: BUILD_FAILED #5

Open
hemebond opened this issue Sep 24, 2023 · 2 comments
Open

building draco:x64-linux failed with: BUILD_FAILED #5

hemebond opened this issue Sep 24, 2023 · 2 comments

Comments

@hemebond
Copy link

hemebond commented Sep 24, 2023

System Information

Debian Testing Linux x86_64

Trying to build commit 8d0d7e80e7c970d045417c020c76ef829e06d884 (HEAD -> master, origin/master, origin/HEAD)

Expected Behavior

Builds a TrenchBroom executable.

Steps to Reproduce

Run the first cmake command:

cmake .. -DCMAKE_BUILD_TYPE=Debug -DCMAKE_PREFIX_PATH="cmake/packages"

Crash Info

CMake error
$ git submodule update --init --recursive
Submodule 'vcpkg' (https://github.com/Microsoft/vcpkg.git) registered for path '../vcpkg'
Cloning into '/home/james/Workspace/TrenchBroomBFG/vcpkg'...
Submodule path '../vcpkg': checked out '5251291e1623eabf5c8f275f456bc95f983cd8eb'
 19:12:14  ~/Workspace/TrenchBroomBFG/build   master 
$ cmake .. -DCMAKE_BUILD_TYPE=Debug -DCMAKE_PREFIX_PATH="cmake/packages"


CMake Error at scripts/cmake/vcpkg_execute_build_process.cmake:131 (message):
    Command failed: /usr/bin/cmake --build . --config Debug --target install -- -v -j9
    Working Directory: /home/james/Workspace/TrenchBroomBFG/vcpkg/buildtrees/draco/x64-linux-dbg
    See logs for more information:
      /home/james/Workspace/TrenchBroomBFG/vcpkg/buildtrees/draco/install-x64-linux-dbg-out.log

Call Stack (most recent call first):
  /home/james/Workspace/TrenchBroomBFG/build/vcpkg_installed/x64-linux/share/vcpkg-cmake/vcpkg_cmake_build.cmake:74 (vcpkg_execute_build_process)
  /home/james/Workspace/TrenchBroomBFG/build/vcpkg_installed/x64-linux/share/vcpkg-cmake/vcpkg_cmake_install.cmake:16 (vcpkg_cmake_build)
  buildtrees/versioning_/versions/draco/39effb9dbafcf8540c1e99bacc9a2701ab9f94a1/portfile.cmake:19 (vcpkg_cmake_install)
  scripts/ports.cmake:147 (include)


error: building draco:x64-linux failed with: BUILD_FAILED
error: 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+draco
You can submit a new issue at:
    https://github.com/microsoft/vcpkg/issues/new?template=report-package-build-failure.md&title=[draco]+Build+error
Include '[draco] 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-10-17-3247920fbdd47d08f36cbd480addd9890d3c2435
    vcpkg-scripts version: 5251291e1 2022-10-20 (11 months ago)


Please use the prefilled template from /home/james/Workspace/TrenchBroomBFG/build/vcpkg_installed/vcpkg/issue_body.md when reporting your issue.
-- Running vcpkg install - failed
CMake Error at vcpkg/scripts/buildsystems/vcpkg.cmake:868 (message):
  vcpkg install failed.  See logs for more information:
  /home/james/Workspace/TrenchBroomBFG/build/vcpkg-manifest-install.log
Call Stack (most recent call first):
  /usr/share/cmake-3.27/Modules/CMakeDetermineSystem.cmake:148 (include)
  CMakeLists.txt:37 (project)


CMake Error: CMake was unable to find a build program corresponding to "Unix Makefiles".  CMAKE_MAKE_PROGRAM is not set.  You probably need to select a different build tool.
CMake Error: CMAKE_C_COMPILER not set, after EnableLanguage
CMake Error: CMAKE_CXX_COMPILER not set, after EnableLanguage
-- Configuring incomplete, errors occurred!

This appears to be the error that's occurring microsoft/vcpkg#31270

From vcpkg/buildtrees/draco/install-x64-linux-dbg-out.log
FAILED: CMakeFiles/draco_io.dir/src/draco/io/file_utils.cc.o 
/usr/bin/c++ -DDRACO_CMAKE=1 -DDRACO_FLAGS_SRCDIR=\"/home/james/Workspace/TrenchBroomBFG/vcpkg/buildtrees/draco/src/2257cd33db-2b975c873c.clean\" -DDRACO_FLAGS_TMPDIR=\"/tmp\" -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -I/home/james/Workspace/TrenchBroomBFG/vcpkg/buildtrees/draco/src/2257cd33db-2b975c873c.clean -I/home/james/Workspace/TrenchBroomBFG/vcpkg/buildtrees/draco/src/2257cd33db-2b975c873c.clean/src -I/home/james/Workspace/TrenchBroomBFG/vcpkg/buildtrees/draco/x64-linux-dbg -fPIC -g -std=gnu++11 -MD -MT CMakeFiles/draco_io.dir/src/draco/io/file_utils.cc.o -MF CMakeFiles/draco_io.dir/src/draco/io/file_utils.cc.o.d -o CMakeFiles/draco_io.dir/src/draco/io/file_utils.cc.o -c /home/james/Workspace/TrenchBroomBFG/vcpkg/buildtrees/draco/src/2257cd33db-2b975c873c.clean/src/draco/io/file_utils.cc
In file included from /home/james/Workspace/TrenchBroomBFG/vcpkg/buildtrees/draco/src/2257cd33db-2b975c873c.clean/src/draco/io/file_utils.cc:15:
/home/james/Workspace/TrenchBroomBFG/vcpkg/buildtrees/draco/src/2257cd33db-2b975c873c.clean/src/draco/io/file_utils.h:61:35: error: ‘uint8_t’ was not declared in this scope
   61 |                       std::vector<uint8_t> *buffer);
      |                                   ^~~~~~~
/home/james/Workspace/TrenchBroomBFG/vcpkg/buildtrees/draco/src/2257cd33db-2b975c873c.clean/src/draco/io/file_utils.h:20:1: note: ‘uint8_t’ is defined in header ‘<cstdint>’; did you forget to ‘#include <cstdint>’?
   19 | #include <vector>
  +++ |+#include <cstdint>
   20 | 
/home/james/Workspace/TrenchBroomBFG/vcpkg/buildtrees/draco/src/2257cd33db-2b975c873c.clean/src/draco/io/file_utils.h:61:42: error: template argument 1 is invalid
   61 |                       std::vector<uint8_t> *buffer);
      |                                          ^

Tried updating the submodule, but it didn't help.

$ git submodule update --remote
Submodule path '../vcpkg': checked out '70fd7df7a9e2d3d47ab6bf87fc7347a6c2d06fda'
@reeFridge
Copy link

reeFridge commented Nov 27, 2023

Stumbled across this issue on my archlinux desktop today. After several hours i figure out that error caused by assimp version used in vcpkg.json.

So workaround that is worked for me:

cd TrenchBroomBFG
rm -rf vcpkg
git submodule update --remote
# remove builtin-baseline field from vcpkg.json
# change version of assimp to 5.2.5 in vcpkg.json
mkdir build-debug
cd build-debug
# run initial cmake cmd just to bootstrap vcpkg
cmake .. -DCMAKE_BUILD_TYPE=Debug -DCMAKE_PREFIX_PATH="cmake/packages"
../vcpkg/vcpkg x-update-baseline --add-initial-baseline
# and now proper version of draco (as a dependency of the assimp) will be used
cmake .. -DCMAKE_BUILD_TYPE=Debug -DCMAKE_PREFIX_PATH="cmake/packages"

@reeFridge
Copy link

Maybe this info would be valuable for someone who also use archlinux host:

if you got bad_alloc/segfault at [ 97%] Generating gen-manual/shortcuts.js just change CMAKE_BUILD_TYPE from Debug to Release.

To make Debug build possible you need acquire qt5-base's so files compiled with Debug flag somewhere.

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

No branches or pull requests

2 participants