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

setup-ubuntu.sh failed with "Architecture not supported!" #11658

Open
yingsu00 opened this issue Nov 26, 2024 · 0 comments
Open

setup-ubuntu.sh failed with "Architecture not supported!" #11658

yingsu00 opened this issue Nov 26, 2024 · 0 comments
Labels
build triage Newly created issue that needs attention.

Comments

@yingsu00
Copy link
Collaborator

yingsu00 commented Nov 26, 2024

Problem description

On a fresh Ubuntu VM, install CMake, create Velox repo and fetch the latest from master, then run setup-ubuntu.sh

CMake Error at /usr/share/cmake-3.28/Modules/CMakeTestCXXCompiler.cmake:60 (message):
  The C++ compiler

    "/usr/bin/c++"

  is not able to compile a simple test program.

  It fails with the following output:

    Change Dir: '/root/velox/deps-download/fmt/_build/CMakeFiles/CMakeScratch/TryCompile-LNxDKb'

    Run Build Command(s): /usr/bin/ninja -v cmTC_b6979
    [1/2] /usr/bin/c++   Architecture not supported!  -fPIE -o CMakeFiles/cmTC_b6979.dir/testCXXCompiler.cxx.o -c /root/velox/deps-download/fmt/_build/CMakeFiles/CMakeScratch/TryCompile-LNxDKb/testCXXCompiler.cxx
    FAILED: CMakeFiles/cmTC_b6979.dir/testCXXCompiler.cxx.o
    /usr/bin/c++   Architecture not supported!  -fPIE -o CMakeFiles/cmTC_b6979.dir/testCXXCompiler.cxx.o -c /root/velox/deps-download/fmt/_build/CMakeFiles/CMakeScratch/TryCompile-LNxDKb/testCXXCompiler.cxx
    c++: warning: Architecture: linker input file unused because linking not done
    c++: error: Architecture: linker input file not found: No such file or directory
    c++: warning: not: linker input file unused because linking not done
    c++: error: not: linker input file not found: No such file or directory
    c++: warning: supported!: linker input file unused because linking not done
    c++: error: supported!: linker input file not found: No such file or directory
    ninja: build stopped: subcommand failed.





  CMake will not be able to correctly generate this project.
Call Stack (most recent call first):
  CMakeLists.txt:137 (project)

Note that apt-get install fmt works fine.
Folly compilation also hit the same problem.

System information

Velox System Info v0.0.2
Commit: 3452d65
CMake Version: 3.28.3
System: Linux-6.8.0-49-generic
Arch: s390x
C++ Compiler: /usr/bin/c++
C++ Compiler Version: 13.2.0
C Compiler: /usr/bin/cc
C Compiler Version: 13.2.0
CMake Prefix Path: /usr/local;/usr;/;/usr;/usr/local;/usr/X11R6;/usr/pkg;/opt

root@c20053v1:~/velox# uname -m
s390x

CMake log

root@c20053v1:~/velox# ./scripts/setup-ubuntu.sh
++ dirname ./scripts/setup-ubuntu.sh
+ SCRIPTDIR=./scripts
+ source ./scripts/setup-helper-functions.sh
+++ pwd
++ DEPENDENCY_DIR=/root/velox/deps-download
++ OS_CXXFLAGS=
++ get_cxx_flags
++ local CPU_ARCH=
+++ uname
++ local OS=Linux
+++ uname -m
++ local MACHINE=s390x
++ [[ -z '' ]]
++ '[' Linux = Darwin ']'
++ '[' Linux = Linux ']'
++ '[' s390x = aarch64 ']'
+++ cat /proc/cpuinfo
+++ grep flags
+++ head -n 1
+++ awk '{print tolower($0)}'
++ local CPU_CAPABILITIES=
++ [[ '' =~ avx ]]
++ [[ '' =~ sse ]]
++ case $CPU_ARCH in
++ echo -n 'Architecture not supported!'
+ COMPILER_FLAGS='Architecture not supported!'
+ export COMPILER_FLAGS
++ getconf _NPROCESSORS_ONLN
+ NPROC=8
+ BUILD_DUCKDB=true
+ export CMAKE_BUILD_TYPE=Release
+ CMAKE_BUILD_TYPE=Release
+ SUDO='sudo --preserve-env'
+ USE_CLANG=false
+ export INSTALL_PREFIX=/usr/local
+ INSTALL_PREFIX=/usr/local
+ DEPENDENCY_DIR=/root/velox/deps-download
++ cat /etc/os-release
++ grep VERSION_ID
+ VERSION='VERSION_ID="24.04"'
+ [[ VERSION_ID="24.04" =~ 20\.04 ]]
+ FB_OS_VERSION=v2024.07.01.00
+ FMT_VERSION=10.1.1
+ BOOST_VERSION=boost-1.84.0
+ ARROW_VERSION=15.0.0
+ STEMMER_VERSION=2.2.0
+ DUCKDB_VERSION=v0.8.1
+ return
+ [[ false != \f\a\l\s\e ]]
+ [[ 0 -ne 0 ]]
+ '[' Y == Y ']'
+ echo 'Installing build dependencies'
Installing build dependencies
+ run_and_time install_build_prerequisites
+ install_build_prerequisites
+ sudo --preserve-env apt update
Hit:1 http://ports.ubuntu.com/ubuntu-ports noble InRelease
Get:2 http://ports.ubuntu.com/ubuntu-ports noble-updates InRelease [126 kB]
Get:3 http://ports.ubuntu.com/ubuntu-ports noble-backports InRelease [126 kB]
Get:4 http://ports.ubuntu.com/ubuntu-ports noble-security InRelease [126 kB]
Get:5 http://ports.ubuntu.com/ubuntu-ports noble-updates/main s390x Packages [431 kB]
Get:6 http://ports.ubuntu.com/ubuntu-ports noble-updates/main Translation-en [157 kB]
Get:7 http://ports.ubuntu.com/ubuntu-ports noble-updates/main s390x Components [130 kB]
Get:8 http://ports.ubuntu.com/ubuntu-ports noble-updates/restricted Translation-en [92.5 kB]
Get:9 http://ports.ubuntu.com/ubuntu-ports noble-updates/restricted s390x Components [212 B]
Get:10 http://ports.ubuntu.com/ubuntu-ports noble-updates/universe s390x Packages [638 kB]
Get:11 http://ports.ubuntu.com/ubuntu-ports noble-updates/universe Translation-en [213 kB]
69% [10 Packages store 0 B] [11 Translation-en 35.3 kB/213 kB 17%]^C+ sudo --preserve-env apt install -y libunwind-dev
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
libunwind-dev is already the newest version (1.6.2-3build1).
The following packages were automatically installed and are no longer required:
  appstream cloud-guest-utils eatmydata fdisk gdisk gir1.2-packagekitglib-1.0 groff-base libappstream5 libeatmydata1 libgstreamer1.0-0 libnetplan1 libpackagekit-glib2-18 libstemmer0d libuchardet0 libxmlb2 netplan-generator
  packagekit packagekit-tools python-babel-localedata python3-attr python3-babel python3-configobj python3-debconf python3-jinja2 python3-json-pointer python3-jsonpatch python3-jsonschema python3-markdown-it python3-markupsafe
  python3-mdurl python3-netifaces python3-netplan python3-pygments python3-pyrsistent python3-rich python3-serial python3-software-properties python3-tz software-properties-common
Use 'sudo apt autoremove' to remove them.
0 upgraded, 0 newly installed, 0 to remove and 147 not upgraded.
+ sudo --preserve-env apt install -y build-essential python3-pip ccache curl ninja-build checkinstall git pkg-config wget
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
build-essential is already the newest version (12.10ubuntu1).
python3-pip is already the newest version (24.0+dfsg-1ubuntu1.1).
ccache is already the newest version (4.9.1-1).
curl is already the newest version (8.5.0-2ubuntu10.5).
ninja-build is already the newest version (1.11.1-2).
checkinstall is already the newest version (1.6.2+git20170426.d24a630-4).
git is already the newest version (1:2.43.0-1ubuntu7.1).
wget is already the newest version (1.21.4-1ubuntu4.1).
The following packages were automatically installed and are no longer required:
  appstream cloud-guest-utils eatmydata fdisk gdisk gir1.2-packagekitglib-1.0 groff-base libappstream5 libeatmydata1 libgstreamer1.0-0 libnetplan1 libpackagekit-glib2-18 libstemmer0d libuchardet0 libxmlb2 netplan-generator
  packagekit packagekit-tools python-babel-localedata python3-attr python3-babel python3-configobj python3-debconf python3-jinja2 python3-json-pointer python3-jsonpatch python3-jsonschema python3-markdown-it python3-markupsafe
  python3-mdurl python3-netifaces python3-netplan python3-pygments python3-pyrsistent python3-rich python3-serial python3-software-properties python3-tz software-properties-common
Use 'sudo apt autoremove' to remove them.
The following additional packages will be installed:
  libpkgconf3 pkgconf pkgconf-bin
The following NEW packages will be installed:
  libpkgconf3 pkg-config pkgconf pkgconf-bin
0 upgraded, 4 newly installed, 0 to remove and 147 not upgraded.
Need to get 76.8 kB of archives.
After this operation, 281 kB of additional disk space will be used.
Get:1 http://ports.ubuntu.com/ubuntu-ports noble/main s390x libpkgconf3 s390x 1.8.1-2build1 [31.4 kB]
Get:2 http://ports.ubuntu.com/ubuntu-ports noble/main s390x pkgconf-bin s390x 1.8.1-2build1 [21.3 kB]
Get:3 http://ports.ubuntu.com/ubuntu-ports noble/main s390x pkgconf s390x 1.8.1-2build1 [16.8 kB]
Get:4 http://ports.ubuntu.com/ubuntu-ports noble/main s390x pkg-config s390x 1.8.1-2build1 [7264 B]
Fetched 76.8 kB in 1s (98.8 kB/s)
debconf: delaying package configuration, since apt-utils is not installed
Selecting previously unselected package libpkgconf3:s390x.
(Reading database ... 66033 files and directories currently installed.)
Preparing to unpack .../libpkgconf3_1.8.1-2build1_s390x.deb ...
Unpacking libpkgconf3:s390x (1.8.1-2build1) ...
Selecting previously unselected package pkgconf-bin.
Preparing to unpack .../pkgconf-bin_1.8.1-2build1_s390x.deb ...
Unpacking pkgconf-bin (1.8.1-2build1) ...
Selecting previously unselected package pkgconf:s390x.
Preparing to unpack .../pkgconf_1.8.1-2build1_s390x.deb ...
Unpacking pkgconf:s390x (1.8.1-2build1) ...
Selecting previously unselected package pkg-config:s390x.
Preparing to unpack .../pkg-config_1.8.1-2build1_s390x.deb ...
Unpacking pkg-config:s390x (1.8.1-2build1) ...
Setting up libpkgconf3:s390x (1.8.1-2build1) ...
Setting up pkgconf-bin (1.8.1-2build1) ...
Setting up pkgconf:s390x (1.8.1-2build1) ...
Setting up pkg-config:s390x (1.8.1-2build1) ...
Processing triggers for libc-bin (2.39-0ubuntu8.1) ...
Scanning processes...
Scanning candidates...
Scanning linux images...

Running kernel seems to be up-to-date (ABI upgrades are not detected).

Restarting services...

Service restarts being deferred:
 /etc/needrestart/restart.d/dbus.service
 systemctl restart networkd-dispatcher.service
 systemctl restart systemd-logind.service

No containers need to be restarted.

No user sessions are running outdated binaries.

No VM guests are running outdated hypervisor (qemu) binaries on this host.
+ sudo --preserve-env pip3 install cmake==3.28.3
error: externally-managed-environment

× This environment is externally managed
╰─> To install Python packages system-wide, try apt install
    python3-xyz, where xyz is the package you are trying to
    install.

    If you wish to install a non-Debian-packaged Python package,
    create a virtual environment using python3 -m venv path/to/venv.
    Then use path/to/venv/bin/python and path/to/venv/bin/pip. Make
    sure you have python3-full installed.

    If you wish to install a non-Debian packaged Python application,
    it may be easiest to use pipx install xyz, which will manage a
    virtual environment for you. Make sure you have pipx installed.

    See /usr/share/doc/python3.12/README.venv for more information.

note: If you believe this is a mistake, please contact your Python installation or OS distribution provider. You can override this, at the risk of breaking your Python installation or OS, by passing --break-system-packages.
hint: See PEP 668 for the detailed specification.
+ install_gcc11_if_needed
+ [[ VERSION_ID="24.04" =~ 20\.04 ]]
+ [[ false != \f\a\l\s\e ]]

real	0m6.285s
user	0m0.014s
sys	0m0.028s
+ Finished running install_build_prerequisites
+ install_velox_deps
+ run_and_time install_velox_deps_from_apt
+ install_velox_deps_from_apt
+ sudo --preserve-env apt update
Hit:1 http://ports.ubuntu.com/ubuntu-ports noble InRelease
Get:2 http://ports.ubuntu.com/ubuntu-ports noble-updates InRelease [126 kB]
Get:3 http://ports.ubuntu.com/ubuntu-ports noble-backports InRelease [126 kB]
Get:4 http://ports.ubuntu.com/ubuntu-ports noble-security InRelease [126 kB]
Get:5 http://ports.ubuntu.com/ubuntu-ports noble-updates/main s390x Packages [431 kB]
Get:6 http://ports.ubuntu.com/ubuntu-ports noble-updates/main Translation-en [157 kB]
Get:7 http://ports.ubuntu.com/ubuntu-ports noble-updates/main s390x Components [130 kB]
Get:8 http://ports.ubuntu.com/ubuntu-ports noble-updates/restricted Translation-en [92.5 kB]
Get:9 http://ports.ubuntu.com/ubuntu-ports noble-updates/restricted s390x Components [212 B]
Get:10 http://ports.ubuntu.com/ubuntu-ports noble-updates/universe s390x Packages [638 kB]
Get:11 http://ports.ubuntu.com/ubuntu-ports noble-updates/universe Translation-en [213 kB]
Get:12 http://ports.ubuntu.com/ubuntu-ports noble-updates/universe s390x Components [254 kB]
Get:13 http://ports.ubuntu.com/ubuntu-ports noble-updates/multiverse s390x Components [212 B]
Get:14 http://ports.ubuntu.com/ubuntu-ports noble-backports/main s390x Components [208 B]
Get:15 http://ports.ubuntu.com/ubuntu-ports noble-backports/restricted s390x Components [216 B]
Get:16 http://ports.ubuntu.com/ubuntu-ports noble-backports/universe s390x Components [21.7 kB]
Get:17 http://ports.ubuntu.com/ubuntu-ports noble-backports/multiverse s390x Components [212 B]
Get:18 http://ports.ubuntu.com/ubuntu-ports noble-security/main s390x Packages [260 kB]
Get:19 http://ports.ubuntu.com/ubuntu-ports noble-security/main Translation-en [101 kB]
Get:20 http://ports.ubuntu.com/ubuntu-ports noble-security/main s390x Components [5652 B]
Get:21 http://ports.ubuntu.com/ubuntu-ports noble-security/restricted Translation-en [92.5 kB]
Get:22 http://ports.ubuntu.com/ubuntu-ports noble-security/restricted s390x Components [208 B]
Get:23 http://ports.ubuntu.com/ubuntu-ports noble-security/universe s390x Components [51.9 kB]
Get:24 http://ports.ubuntu.com/ubuntu-ports noble-security/multiverse s390x Components [208 B]
#!/bin/bash
# Copyright (c) Facebook, Inc. and its affiliates.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
#     http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.

# This script documents setting up a Ubuntu host for Velox
# development.  Running it should make you ready to compile.
#
# Environment variables:
# * INSTALL_PREREQUISITES="N": Skip installation of packages for build.
# * PROMPT_ALWAYS_RESPOND="n": Automatically respond to interactive prompts.
#     Use "n" to never wipe directories.
#
# You can also run individual functions below by specifying them as arguments:
# $ scripts/setup-ubuntu.sh install_googletest install_fmt
#

# Minimal setup for Ubuntu 22.04.
set -eufx -o pipefail
SCRIPTDIR=$(dirname "${BASH_SOURCE[0]}")
source $SCRIPTDIR/setup-helper-functions.sh

# Folly must be built with the same compiler flags so that some low level types
# are the same size.
COMPILER_FLAGS=$(get_cxx_flags)
export COMPILER_FLAGS
NPROC=$(getconf _NPROCESSORS_ONLN)
BUILD_DUCKDB="${BUILD_DUCKDB:-true}"
export CMAKE_BUILD_TYPE=Release
SUDO="${SUDO:-"sudo --preserve-env"}"
USE_CLANG="${USE_CLANG:-false}"
export INSTALL_PREFIX=${INSTALL_PREFIX:-"/usr/local"}
DEPENDENCY_DIR=${DEPENDENCY_DIR:-$(pwd)/deps-download}
VERSION=$(cat /etc/os-release | grep VERSION_ID)

# On Ubuntu 20.04 dependencies need to be built using gcc11.
# On Ubuntu 22.04 gcc11 is already the system gcc installed.
if [[ ${VERSION} =~ "20.04" ]]; then
  export CC=/usr/bin/gcc-11
  export CXX=/usr/bin/g++-11
fi

function install_clang15 {
  if [[ ! ${VERSION} =~ "22.04" && ! ${VERSION} =~ "24.04" ]]; then
    echo "Warning: using the Clang configuration is for Ubuntu 22.04 and 24.04. Errors might occur."
  fi
  CLANG_PACKAGE_LIST=clang-15
  if [[ ${VERSION} =~ "22.04" ]]; then
    CLANG_PACKAGE_LIST=${CLANG_PACKAGE_LIST} gcc-12 g++-12 libc++-12-dev
"./scripts/setup-ubuntu.sh" 324L, 10518B                               1,1           Top
#!/bin/bash
Fetched 1291 kB in 3s (370 kB/s)
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
149 packages can be upgraded. Run 'apt list --upgradable' to see them.
+ sudo --preserve-env apt install -y libc-ares-dev libcurl4-openssl-dev libssl-dev libicu-dev libdouble-conversion-dev libgoogle-glog-dev libbz2-dev libgflags-dev libgmock-dev libevent-dev liblz4-dev libzstd-dev libre2-dev libsnappy-dev libsodium-dev liblzo2-dev libelf-dev libdwarf-dev bison flex libfl-dev tzdata
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
libc-ares-dev is already the newest version (1.27.0-1.0ubuntu1).
libcurl4-openssl-dev is already the newest version (8.5.0-2ubuntu10.5).
libssl-dev is already the newest version (3.0.13-0ubuntu3.4).
libicu-dev is already the newest version (74.2-1ubuntu3.1).
libdouble-conversion-dev is already the newest version (3.3.0-1build1).
libgoogle-glog-dev is already the newest version (0.6.0-2.1build1).
libbz2-dev is already the newest version (1.0.8-5.1build0.1).
libgflags-dev is already the newest version (2.2.2-2build1).
libgmock-dev is already the newest version (1.14.0-1).
libevent-dev is already the newest version (2.1.12-stable-9ubuntu2).
liblz4-dev is already the newest version (1.9.4-1build1.1).
libzstd-dev is already the newest version (1.5.5+dfsg2-2build1.1).
libre2-dev is already the newest version (20230301-3build1).
libsnappy-dev is already the newest version (1.1.10-1build1).
libsodium-dev is already the newest version (1.0.18-1build3).
liblzo2-dev is already the newest version (2.10-2build4).
libelf-dev is already the newest version (0.190-1.1build4).
libdwarf-dev is already the newest version (20210528-1build2).
bison is already the newest version (2:3.8.2+dfsg-1build2).
flex is already the newest version (2.6.4-8.2build1).
libfl-dev is already the newest version (2.6.4-8.2build1).
tzdata is already the newest version (2024a-3ubuntu1.1).
The following packages were automatically installed and are no longer required:
  appstream cloud-guest-utils eatmydata fdisk gdisk gir1.2-packagekitglib-1.0 groff-base libappstream5 libeatmydata1 libgstreamer1.0-0 libnetplan1 libpackagekit-glib2-18 libstemmer0d libuchardet0 libxmlb2 netplan-generator
  packagekit packagekit-tools python-babel-localedata python3-attr python3-babel python3-configobj python3-debconf python3-jinja2 python3-json-pointer python3-jsonpatch python3-jsonschema python3-markdown-it python3-markupsafe
  python3-mdurl python3-netifaces python3-netplan python3-pygments python3-pyrsistent python3-rich python3-serial python3-software-properties python3-tz software-properties-common
Use 'sudo apt autoremove' to remove them.
0 upgraded, 0 newly installed, 0 to remove and 149 not upgraded.

real	0m7.880s
user	0m0.007s
sys	0m0.021s
+ Finished running install_velox_deps_from_apt
+ run_and_time install_fmt
+ install_fmt
+ wget_and_untar https://github.com/fmtlib/fmt/archive/10.1.1.tar.gz fmt
+ local URL=https://github.com/fmtlib/fmt/archive/10.1.1.tar.gz
+ local DIR=fmt
+ mkdir -p /root/velox/deps-download
+ pushd /root/velox/deps-download
~/velox/deps-download ~/velox
+ SUDO='sudo --preserve-env'
+ '[' -d fmt ']'
+ prompt 'fmt already exists. Delete?'
fmt already exists. Delete? [Y, n] ^C
root@c20053v1:~/velox# export PROMPT_ALWAYS_RESPOND="y"
root@c20053v1:~/velox# exprot
-bash: exprot: command not found
root@c20053v1:~/velox# vi ./scripts/setup-ubuntu.sh
root@c20053v1:~/velox# ./scripts/setup-ubuntu.sh
./scripts/setup-ubuntu.sh: line 27: Skip: command not found
++ dirname ./scripts/setup-ubuntu.sh
+ SCRIPTDIR=./scripts
+ source ./scripts/setup-helper-functions.sh
+++ pwd
++ DEPENDENCY_DIR=/root/velox/deps-download
++ OS_CXXFLAGS=
++ get_cxx_flags
++ local CPU_ARCH=
+++ uname
++ local OS=Linux
+++ uname -m
++ local MACHINE=s390x
++ [[ -z '' ]]
++ '[' Linux = Darwin ']'
++ '[' Linux = Linux ']'
++ '[' s390x = aarch64 ']'
+++ cat /proc/cpuinfo
+++ grep flags
+++ head -n 1
+++ awk '{print tolower($0)}'
++ local CPU_CAPABILITIES=
++ [[ '' =~ avx ]]
++ [[ '' =~ sse ]]
++ case $CPU_ARCH in
++ echo -n 'Architecture not supported!'
+ COMPILER_FLAGS='Architecture not supported!'
+ export COMPILER_FLAGS
++ getconf _NPROCESSORS_ONLN
+ NPROC=8
+ BUILD_DUCKDB=true
+ export CMAKE_BUILD_TYPE=Release
+ CMAKE_BUILD_TYPE=Release
+ SUDO='sudo --preserve-env'
+ USE_CLANG=false
+ export INSTALL_PREFIX=/usr/local
+ INSTALL_PREFIX=/usr/local
+ DEPENDENCY_DIR=/root/velox/deps-download
++ cat /etc/os-release
++ grep VERSION_ID
+ VERSION='VERSION_ID="24.04"'
+ [[ VERSION_ID="24.04" =~ 20\.04 ]]
+ FB_OS_VERSION=v2024.07.01.00
+ FMT_VERSION=10.1.1
+ BOOST_VERSION=boost-1.84.0
+ ARROW_VERSION=15.0.0
+ STEMMER_VERSION=2.2.0
+ DUCKDB_VERSION=v0.8.1
+ return
+ [[ false != \f\a\l\s\e ]]
+ [[ 0 -ne 0 ]]
+ '[' Y == Y ']'
+ echo 'Installing build dependencies'
Installing build dependencies
+ run_and_time install_build_prerequisites
+ install_build_prerequisites
+ sudo --preserve-env apt update
Hit:1 http://ports.ubuntu.com/ubuntu-ports noble InRelease
Hit:2 http://ports.ubuntu.com/ubuntu-ports noble-updates InRelease
Hit:3 http://ports.ubuntu.com/ubuntu-ports noble-backports InRelease
Hit:4 http://ports.ubuntu.com/ubuntu-ports noble-security InRelease
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
149 packages can be upgraded. Run 'apt list --upgradable' to see them.
+ sudo --preserve-env apt install -y libunwind-dev
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
libunwind-dev is already the newest version (1.6.2-3build1).
The following packages were automatically installed and are no longer required:
  appstream cloud-guest-utils eatmydata fdisk gdisk gir1.2-packagekitglib-1.0 groff-base libappstream5 libeatmydata1 libgstreamer1.0-0 libnetplan1 libpackagekit-glib2-18 libstemmer0d libuchardet0 libxmlb2 netplan-generator
  packagekit packagekit-tools python-babel-localedata python3-attr python3-babel python3-configobj python3-debconf python3-jinja2 python3-json-pointer python3-jsonpatch python3-jsonschema python3-markdown-it python3-markupsafe
  python3-mdurl python3-netifaces python3-netplan python3-pygments python3-pyrsistent python3-rich python3-serial python3-software-properties python3-tz software-properties-common
Use 'sudo apt autoremove' to remove them.
0 upgraded, 0 newly installed, 0 to remove and 149 not upgraded.
+ sudo --preserve-env apt install -y build-essential python3-pip ccache curl ninja-build checkinstall git pkg-config wget
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
build-essential is already the newest version (12.10ubuntu1).
python3-pip is already the newest version (24.0+dfsg-1ubuntu1.1).
ccache is already the newest version (4.9.1-1).
curl is already the newest version (8.5.0-2ubuntu10.5).
ninja-build is already the newest version (1.11.1-2).
checkinstall is already the newest version (1.6.2+git20170426.d24a630-4).
git is already the newest version (1:2.43.0-1ubuntu7.1).
pkg-config is already the newest version (1.8.1-2build1).
wget is already the newest version (1.21.4-1ubuntu4.1).
The following packages were automatically installed and are no longer required:
  appstream cloud-guest-utils eatmydata fdisk gdisk gir1.2-packagekitglib-1.0 groff-base libappstream5 libeatmydata1 libgstreamer1.0-0 libnetplan1 libpackagekit-glib2-18 libstemmer0d libuchardet0 libxmlb2 netplan-generator
  packagekit packagekit-tools python-babel-localedata python3-attr python3-babel python3-configobj python3-debconf python3-jinja2 python3-json-pointer python3-jsonpatch python3-jsonschema python3-markdown-it python3-markupsafe
  python3-mdurl python3-netifaces python3-netplan python3-pygments python3-pyrsistent python3-rich python3-serial python3-software-properties python3-tz software-properties-common
Use 'sudo apt autoremove' to remove them.
0 upgraded, 0 newly installed, 0 to remove and 149 not upgraded.
+ sudo --preserve-env pip3 install cmake==3.28.3
error: externally-managed-environment

× This environment is externally managed
╰─> To install Python packages system-wide, try apt install
    python3-xyz, where xyz is the package you are trying to
    install.

    If you wish to install a non-Debian-packaged Python package,
    create a virtual environment using python3 -m venv path/to/venv.
    Then use path/to/venv/bin/python and path/to/venv/bin/pip. Make
    sure you have python3-full installed.

    If you wish to install a non-Debian packaged Python application,
    it may be easiest to use pipx install xyz, which will manage a
    virtual environment for you. Make sure you have pipx installed.

    See /usr/share/doc/python3.12/README.venv for more information.

note: If you believe this is a mistake, please contact your Python installation or OS distribution provider. You can override this, at the risk of breaking your Python installation or OS, by passing --break-system-packages.
hint: See PEP 668 for the detailed specification.
+ install_gcc11_if_needed
+ [[ VERSION_ID="24.04" =~ 20\.04 ]]
+ [[ false != \f\a\l\s\e ]]

real	0m3.499s
user	0m0.012s
sys	0m0.024s
+ Finished running install_build_prerequisites
+ install_velox_deps
+ run_and_time install_velox_deps_from_apt
+ install_velox_deps_from_apt
+ sudo --preserve-env apt update
Hit:1 http://ports.ubuntu.com/ubuntu-ports noble InRelease
Hit:2 http://ports.ubuntu.com/ubuntu-ports noble-updates InRelease
Hit:3 http://ports.ubuntu.com/ubuntu-ports noble-backports InRelease
Hit:4 http://ports.ubuntu.com/ubuntu-ports noble-security InRelease
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
149 packages can be upgraded. Run 'apt list --upgradable' to see them.
+ sudo --preserve-env apt install -y libc-ares-dev libcurl4-openssl-dev libssl-dev libicu-dev libdouble-conversion-dev libgoogle-glog-dev libbz2-dev libgflags-dev libgmock-dev libevent-dev liblz4-dev libzstd-dev libre2-dev libsnappy-dev libsodium-dev liblzo2-dev libelf-dev libdwarf-dev bison flex libfl-dev tzdata
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
libc-ares-dev is already the newest version (1.27.0-1.0ubuntu1).
libcurl4-openssl-dev is already the newest version (8.5.0-2ubuntu10.5).
libssl-dev is already the newest version (3.0.13-0ubuntu3.4).
libicu-dev is already the newest version (74.2-1ubuntu3.1).
libdouble-conversion-dev is already the newest version (3.3.0-1build1).
libgoogle-glog-dev is already the newest version (0.6.0-2.1build1).
libbz2-dev is already the newest version (1.0.8-5.1build0.1).
libgflags-dev is already the newest version (2.2.2-2build1).
libgmock-dev is already the newest version (1.14.0-1).
libevent-dev is already the newest version (2.1.12-stable-9ubuntu2).
liblz4-dev is already the newest version (1.9.4-1build1.1).
libzstd-dev is already the newest version (1.5.5+dfsg2-2build1.1).
libre2-dev is already the newest version (20230301-3build1).
libsnappy-dev is already the newest version (1.1.10-1build1).
libsodium-dev is already the newest version (1.0.18-1build3).
liblzo2-dev is already the newest version (2.10-2build4).
libelf-dev is already the newest version (0.190-1.1build4).
libdwarf-dev is already the newest version (20210528-1build2).
bison is already the newest version (2:3.8.2+dfsg-1build2).
flex is already the newest version (2.6.4-8.2build1).
libfl-dev is already the newest version (2.6.4-8.2build1).
tzdata is already the newest version (2024a-3ubuntu1.1).
The following packages were automatically installed and are no longer required:
  appstream cloud-guest-utils eatmydata fdisk gdisk gir1.2-packagekitglib-1.0 groff-base libappstream5 libeatmydata1 libgstreamer1.0-0 libnetplan1 libpackagekit-glib2-18 libstemmer0d libuchardet0 libxmlb2 netplan-generator
  packagekit packagekit-tools python-babel-localedata python3-attr python3-babel python3-configobj python3-debconf python3-jinja2 python3-json-pointer python3-jsonpatch python3-jsonschema python3-markdown-it python3-markupsafe
  python3-mdurl python3-netifaces python3-netplan python3-pygments python3-pyrsistent python3-rich python3-serial python3-software-properties python3-tz software-properties-common
Use 'sudo apt autoremove' to remove them.
0 upgraded, 0 newly installed, 0 to remove and 149 not upgraded.

real	0m2.518s
user	0m0.007s
sys	0m0.016s
+ Finished running install_velox_deps_from_apt
+ run_and_time install_fmt
+ install_fmt
+ wget_and_untar https://github.com/fmtlib/fmt/archive/10.1.1.tar.gz fmt
+ local URL=https://github.com/fmtlib/fmt/archive/10.1.1.tar.gz
+ local DIR=fmt
+ mkdir -p /root/velox/deps-download
+ pushd /root/velox/deps-download
~/velox/deps-download ~/velox
+ SUDO='sudo --preserve-env'
+ '[' -d fmt ']'
+ prompt 'fmt already exists. Delete?'
fmt already exists. Delete? [Y, n] + sudo --preserve-env rm -rf fmt
+ mkdir -p fmt
+ pushd fmt
~/velox/deps-download/fmt ~/velox/deps-download ~/velox
+ curl -L https://github.com/fmtlib/fmt/archive/10.1.1.tar.gz
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
  0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0
100  831k    0  831k    0     0   757k      0 --:--:--  0:00:01 --:--:-- 7816k
+ tar -xz --strip-components=1 -f fmt.tar.gz
+ popd
~/velox/deps-download ~/velox
+ popd
~/velox
+ cmake_install_dir fmt -DFMT_TEST=OFF
+ pushd /root/velox/deps-download/fmt
~/velox/deps-download/fmt ~/velox
+ shift
+ cmake_install -DFMT_TEST=OFF
+++ pwd
++ basename /root/velox/deps-download/fmt
+ local NAME=fmt
+ local BINARY_DIR=_build
+ SUDO='sudo --preserve-env'
+ '[' -d _build ']'
+ mkdir -p _build
++ get_cxx_flags
++ local CPU_ARCH=
+++ uname
++ local OS=Linux
+++ uname -m
++ local MACHINE=s390x
++ [[ -z '' ]]
++ '[' Linux = Darwin ']'
++ '[' Linux = Linux ']'
++ '[' s390x = aarch64 ']'
+++ cat /proc/cpuinfo
+++ grep flags
+++ head -n 1
+++ awk '{print tolower($0)}'
++ local CPU_CAPABILITIES=
++ [[ '' =~ avx ]]
++ [[ '' =~ sse ]]
++ case $CPU_ARCH in
++ echo -n 'Architecture not supported!'
+ COMPILER_FLAGS='Architecture not supported!'
+ COMPILER_FLAGS+=
+ cmake -Wno-dev -B_build -GNinja -DCMAKE_POSITION_INDEPENDENT_CODE=ON -DCMAKE_CXX_STANDARD=17 -DCMAKE_PREFIX_PATH=/usr/local -DCMAKE_INSTALL_PREFIX=/usr/local '-DCMAKE_CXX_FLAGS=Architecture not supported!' -DBUILD_TESTING=OFF -DFMT_TEST=OFF
-- CMake version: 3.28.3
-- The CXX compiler identification is GNU 13.2.0
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - failed
-- Check for working CXX compiler: /usr/bin/c++
-- Check for working CXX compiler: /usr/bin/c++ - broken
CMake Error at /usr/share/cmake-3.28/Modules/CMakeTestCXXCompiler.cmake:60 (message):
  The C++ compiler

    "/usr/bin/c++"

  is not able to compile a simple test program.

  It fails with the following output:

    Change Dir: '/root/velox/deps-download/fmt/_build/CMakeFiles/CMakeScratch/TryCompile-CNyAts'

    Run Build Command(s): /usr/bin/ninja -v cmTC_82a09
    [1/2] /usr/bin/c++   Architecture not supported!  -fPIE -o CMakeFiles/cmTC_82a09.dir/testCXXCompiler.cxx.o -c /root/velox/deps-download/fmt/_build/CMakeFiles/CMakeScratch/TryCompile-CNyAts/testCXXCompiler.cxx
    FAILED: CMakeFiles/cmTC_82a09.dir/testCXXCompiler.cxx.o
    /usr/bin/c++   Architecture not supported!  -fPIE -o CMakeFiles/cmTC_82a09.dir/testCXXCompiler.cxx.o -c /root/velox/deps-download/fmt/_build/CMakeFiles/CMakeScratch/TryCompile-CNyAts/testCXXCompiler.cxx
    c++: warning: Architecture: linker input file unused because linking not done
    c++: error: Architecture: linker input file not found: No such file or directory
    c++: warning: not: linker input file unused because linking not done
    c++: error: not: linker input file not found: No such file or directory
    c++: warning: supported!: linker input file unused because linking not done
    c++: error: supported!: linker input file not found: No such file or directory
    ninja: build stopped: subcommand failed.





  CMake will not be able to correctly generate this project.
Call Stack (most recent call first):
  CMakeLists.txt:137 (project)


-- Configuring incomplete, errors occurred!
+ cmake --build _build
ninja: error: loading 'build.ninja': No such file or directory
+ echo 'build failed'
build failed
+ exit 1

real	0m1.620s
user	0m0.355s
sys	0m0.221s
@yingsu00 yingsu00 added build triage Newly created issue that needs attention. labels Nov 26, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
build triage Newly created issue that needs attention.
Projects
None yet
Development

No branches or pull requests

1 participant