Is this a common issue or related to my code block? metrics.cpp unreachable code #46324
Unanswered
joelslamospersson
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hi,
I can't wrap my head around why it occurs..
I am trying to install VCPKG on ubuntu 24.04, but it keeps running into the same issue, sometimes it passes most of the times it doesn't..
Issue:
Downloading vcpkg-glibc...
vcpkg package management program version 2025-06-20-ef7c0d541124bbdd334a03467e7edb6c3364d199
See LICENSE.txt for license information.
�[91m/source/src/vcpkg/metrics.cpp(176): unreachable code was reached
�[0mAborted (core dumped)
Code snippet:
log "Starting L Canary setup for user $APP_USER"
——————————————————————————————
[1/7] System update & core tool install
if [[ ! -f "${USER_HOME}/l1.done" ]]; then
log "[1/7] Updating system and installing core packages"
apt update && apt dist-upgrade -y
apt install -y
git
build-essential
autoconf
libtool
ca-certificates
curl
zip unzip tar pkg-config
ninja-build
ccache
linux-headers-$(uname -r)
touch "${USER_HOME}/l1.done"
else
log "[1/7] skipped"
fi
——————————————————————————————
[2/7] CMake via snap
if [[ ! -f "${USER_HOME}/l2.done" ]]; then
log "[2/7] Upgrading CMake via snap"
apt remove --purge -y cmake || true
hash -r
apt install -y snapd
snap install cmake --classic
cmake --version
touch "${USER_HOME}/l.2.done"
else
log "[2/7] skipped"
fi
——————————————————————————————
[3/7] Install GCC-14 and select
if [[ ! -f "${USER_HOME}/l3.done" ]]; then
log "[3/7] Installing and configuring GCC-14"
apt update
apt install -y gcc-14 g++-14
update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-14 100
--slave /usr/bin/g++ g++ /usr/bin/g++-14
--slave /usr/bin/gcov gcov /usr/bin/gcov-14
update-alternatives --set gcc /usr/bin/gcc-14
gcc --version
g++ --version
touch "${USER_HOME}/l3.done"
else
log "[3/7] skipped"
fi
——————————————————————————————
[4/7] Install vcpkg
if [[ ! -f "${USER_HOME}/.l4.done" ]]; then
log "[4/7] Cloning and bootstrapping vcpkg"
cd "${USER_HOME}"
rm -rf "$VCPKG_DIR"
git clone https://github.com/microsoft/vcpkg "$VCPKG_DIR"
cd "$VCPKG_DIR"
Disable metrics properly
export VCPKG_METRICS_OPT_OUT=1
./bootstrap-vcpkg.sh --disableMetrics
log " vcpkg ready at $VCPKG_DIR/vcpkg"
touch "${USER_HOME}/l4.done"
else
log "[4/7] skipped"
fi
Beta Was this translation helpful? Give feedback.
All reactions