microsoft / vcpkg

C++ Library Manager for Windows, Linux, and MacOS
MIT License
22.99k stars 6.35k forks source link

[bond] build failure #31169

Closed achindra closed 1 year ago

achindra commented 1 year ago

Operating system

Linux

Compiler

clang

Steps to reproduce the behavior

vcpkg install bond:x64-linux
find ./ -name gbc
<returns nothing>

Now with recent pull, build started failing on Linux.

Failure logs

Package: bond[core]:x64-linux -> 9.0.3#3

Host Environment

To Reproduce

vcpkg install bond

Failure logs

-- Downloading https://github.com/microsoft/bond/archive/9.0.3.tar.gz -> microsoft-bond-9.0.3.tar.gz...
-- Extracting source /home/user/source/vcpkg/downloads/microsoft-bond-9.0.3.tar.gz
-- Applying patch fix-install-path.patch
-- Applying patch skip-grpc-compilation.patch
-- Using source at /home/user/source/vcpkg/buildtrees/bond/src/9.0.3-a4daca7a1f.clean

A recent version of Haskell Tool Stack is required to build.
  For information on how to install see https://docs.haskellstack.org/en/stable/README/

-- Configuring x64-linux-dbg
-- Configuring x64-linux-rel
CMake Warning at installed/x64-linux/share/vcpkg-cmake/vcpkg_cmake_configure.cmake:314 (message):
  The following variables are not used in CMakeLists.txt:

      BOND_ENABLE_COMM

  Please recheck them and remove the unnecessary options from the
  `vcpkg_cmake_configure` 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/bond/portfile.cmake:44 (vcpkg_cmake_configure)
  scripts/ports.cmake:147 (include)

-- Building x64-linux-dbg
CMake Error at scripts/cmake/vcpkg_execute_build_process.cmake:134 (message):
    Command failed: /usr/local/lib/python3.8/dist-packages/cmake/data/bin/cmake --build . --config Debug --target install -- -v -j9
    Working Directory: /home/user/source/vcpkg/buildtrees/bond/x64-linux-dbg
    See logs for more information:
      /home/user/source/vcpkg/buildtrees/bond/install-x64-linux-dbg-out.log

Call Stack (most recent call first):
  installed/x64-linux/share/vcpkg-cmake/vcpkg_cmake_build.cmake:74 (vcpkg_execute_build_process)
  installed/x64-linux/share/vcpkg-cmake/vcpkg_cmake_install.cmake:16 (vcpkg_cmake_build)
  ports/bond/portfile.cmake:57 (vcpkg_cmake_install)
  scripts/ports.cmake:147 (include)
/home/user/source/vcpkg/buildtrees/bond/install-x64-linux-dbg-out.log ``` [1/15] cd /home/user/source/vcpkg/buildtrees/bond/src/9.0.3-a4daca7a1f.clean/compiler && /usr/local/lib/python3.8/dist-packages/cmake/data/bin/cmake /home/user/source/vcpkg/buildtrees/bond/x64-linux-dbg -N -Dbuild_dir=/home/user/source/vcpkg/buildtrees/bond/x64-linux-dbg/compiler -Dtarget=gbc "-Dstack_options=;--fast;--no-executable-stripping;--no-library-stripping;--no-strip;;;;;;;;;;" -P stack_build.cmake FAILED: compiler/build/gbc/gbc /home/user/source/vcpkg/buildtrees/bond/x64-linux-dbg/compiler/build/gbc/gbc cd /home/user/source/vcpkg/buildtrees/bond/src/9.0.3-a4daca7a1f.clean/compiler && /usr/local/lib/python3.8/dist-packages/cmake/data/bin/cmake /home/user/source/vcpkg/buildtrees/bond/x64-linux-dbg -N -Dbuild_dir=/home/user/source/vcpkg/buildtrees/bond/x64-linux-dbg/compiler -Dtarget=gbc "-Dstack_options=;--fast;--no-executable-stripping;--no-library-stripping;--no-strip;;;;;;;;;;" -P stack_build.cmake ghc: panic! (the 'impossible' happened) (GHC version 8.6.5 for x86_64-unknown-linux): Prelude.chr: bad argument: 2634022915 Please report this as a GHC bug: http://www.haskell.org/ghc/reportabug Error: [S-6374] While building simple Setup.hs (scroll up to its section to see the error) using: /usr/bin/ghc-8.6.5 -rtsopts -threaded -clear-package-db -global-package-db -hide-all-packages -package base -main-is StackSetupShim.mainOverride -package Cabal-2.4.0.1 /home/user/.stack/setup-exe-src/setup-SvXsv1f_.hs /home/user/.stack/setup-exe-src/setup-shim-SvXsv1f_.hs -o /home/user/.stack/setup-exe-cache/x86_64-linux/tmp-Cabal-simple_SvXsv1f__2.4.0.1_ghc-8.6.5 Process exited with code: ExitFailure 1 CMake Error at stack_build.cmake:30 (message): build failed - scroll up for its output ninja: build stopped: subcommand failed. ```

Additional context

Additional context

vpkg.exe on windows builds correctly and installs gbc.exe in vcpkg\installed\x64-windows-static\tools\gbc.exe Linux build does not complete, earlier it was building but not installing gbc.

achindra commented 1 year ago

Looking deeper

ghc: panic! (the 'impossible' happened) (GHC version 8.6.5 for x86_64-unknown-linux): Prelude.chr: bad argument: 2634022915

[1/15] cd /home/user/source/rpc/vcpkg/buildtrees/bond/src/9.0.3-a4daca7a1f.clean/compiler && /usr/local/lib/python3.8/dist-packages/cmake/data/bin/cmake /home/user/source/rpc/vcpkg/buildtrees/bond/x64-linux-dbg -N -Dbuild_dir=/home/user/source/rpc/vcpkg/buildtrees/bond/x64-linux-dbg/compiler -Dtarget=gbc "-Dstack_options=;--fast;--no-executable-stripping;--no-library-stripping;--no-strip;;;;;;;;;;" -P stack_build.cmake
FAILED: compiler/build/gbc/gbc /home/user/source/rpc/vcpkg/buildtrees/bond/x64-linux-dbg/compiler/build/gbc/gbc 
cd /home/user/source/rpc/vcpkg/buildtrees/bond/src/9.0.3-a4daca7a1f.clean/compiler && /usr/local/lib/python3.8/dist-packages/cmake/data/bin/cmake /home/user/source/rpc/vcpkg/buildtrees/bond/x64-linux-dbg -N -Dbuild_dir=/home/user/source/rpc/vcpkg/buildtrees/bond/x64-linux-dbg/compiler -Dtarget=gbc "-Dstack_options=;--fast;--no-executable-stripping;--no-library-stripping;--no-strip;;;;;;;;;;" -P stack_build.cmake
ghc: panic! (the 'impossible' happened)
  (GHC version 8.6.5 for x86_64-unknown-linux):
    Prelude.chr: bad argument: 2634022915

Please report this as a GHC bug:  http://www.haskell.org/ghc/reportabug

Error: [S-6374]
       While building simple Setup.hs (scroll up to its section to see the error) using:
       /usr/bin/ghc-8.6.5 -rtsopts -threaded -clear-package-db -global-package-db -hide-all-packages -package base -main-is StackSetupShim.mainOverride -package Cabal-2.4.0.1 /home/user/.stack/setup-exe-src/setup-SvXsv1f_.hs /home/user/.stack/setup-exe-src/setup-shim-SvXsv1f_.hs -o /home/user/.stack/setup-exe-cache/x86_64-linux/tmp-Cabal-simple_SvXsv1f__2.4.0.1_ghc-8.6.5
       Process exited with code: ExitFailure 1 
CMake Error at stack_build.cmake:30 (message):
  build failed - scroll up for its output

ninja: build stopped: subcommand failed.
Cheney-W commented 1 year ago

I can't reproduce this issue in my side with the latest vcpkg. Also, does this issue disappear when deleting .stack/setup-exe-src/?

github-actions[bot] commented 1 year ago

This is an automated message. Per our repo policy, stale issues get closed if there has been no activity in the past 28 days. The issue will be automatically closed in 14 days. If you wish to keep this issue open, please add a new comment.