Project

General

Profile

Actions

Bug #57466

closed

"./do_cmake.sh: line 89: cmake: command not found"

Added by Yuri Weinstein over 1 year ago. Updated over 1 year ago.

Status:
Resolved
Priority:
Urgent
Assignee:
Category:
-
Target version:
-
% Done:

0%

Source:
Q/A
Tags:
Backport:
Regression:
No
Severity:
3 - minor
Reviewed:
Affected Versions:
ceph-qa-suite:
Pull request ID:
Crash signature (v1):
Crash signature (v2):

Description

This is reproducible in an Ubuntu Focal container.

root@ab75663d2a1b:~/wip-yuri7-testing# ./do_cmake.sh
+ '[' -d .git ']'
+ git submodule update --init --recursive
+ : build
+ : ..
+ '[' -e build ']'
+ PYBUILD=3
+ ARGS=-GNinja
+ '[' -r /etc/os-release ']'
+ source /etc/os-release
++ NAME=Ubuntu
++ VERSION='20.04.1 LTS (Focal Fossa)'
++ ID=ubuntu
++ ID_LIKE=debian
++ PRETTY_NAME='Ubuntu 20.04.1 LTS'
++ VERSION_ID=20.04
++ HOME_URL=https://www.ubuntu.com/
++ SUPPORT_URL=https://help.ubuntu.com/
++ BUG_REPORT_URL=https://bugs.launchpad.net/ubuntu/
++ PRIVACY_POLICY_URL=https://www.ubuntu.com/legal/terms-and-policies/privacy-policy
++ VERSION_CODENAME=focal
++ UBUNTU_CODENAME=focal
+ case "$ID" in
++ echo 20.04
++ sed -e 's/\..*$//'
+ MAJOR_VER=20
+ '[' 20 -ge 22 ']'
+ ARGS+=' -DWITH_PYTHON3=3'
+ type ccache
+ cxx_compiler=g++
+ c_compiler=gcc
++ seq 20 -1 11
+ for i in $(seq 20 -1 11)
+ type -t gcc-20
+ for i in $(seq 20 -1 11)
+ type -t gcc-19
+ for i in $(seq 20 -1 11)
+ type -t gcc-18
+ for i in $(seq 20 -1 11)
+ type -t gcc-17
+ for i in $(seq 20 -1 11)
+ type -t gcc-16
+ for i in $(seq 20 -1 11)
+ type -t gcc-15
+ for i in $(seq 20 -1 11)
+ type -t gcc-14
+ for i in $(seq 20 -1 11)
+ type -t gcc-13
+ for i in $(seq 20 -1 11)
+ type -t gcc-12
+ for i in $(seq 20 -1 11)
+ type -t gcc-11
+ cxx_compiler=g++-11
+ c_compiler=gcc-11
+ break
+ ARGS+=' -DCMAKE_CXX_COMPILER=g++-11'
+ ARGS+=' -DCMAKE_C_COMPILER=gcc-11'
+ mkdir build
+ cd build
+ type cmake3
+ CMAKE=cmake
+ cmake -GNinja -DWITH_PYTHON3=3 -DCMAKE_CXX_COMPILER=g++-11 -DCMAKE_C_COMPILER=gcc-11 ..
./do_cmake.sh: line 89: cmake: command not found
+ exit 1
Actions #1

Updated by Yuri Weinstein over 1 year ago

  • Description updated (diff)
Actions #2

Updated by Laura Flores over 1 year ago

The issue is with `ensure_decent_gcc_on_unbuntu`: https://github.com/ceph/ceph/blob/e85e121747baf9691b263effef4c284a96431457/install-deps.sh#L64-L101

This function is only called for Focal and Bionic, which explains why Jammy is working correctly.

Commenting this line out helped the script complete: https://github.com/ceph/ceph/blob/e85e121747baf9691b263effef4c284a96431457/install-deps.sh#L343

Actions #3

Updated by Laura Flores over 1 year ago

Actually, it's this exact line that's causing the problem: https://github.com/ceph/ceph/blob/e85e121747baf9691b263effef4c284a96431457/install-deps.sh#L100

If we are not in jenkins, this line returns "false" or "0", which I believe is acting as an early return in the function.

Actions #4

Updated by Laura Flores over 1 year ago

  • Assignee set to Laura Flores
  • Pull request ID set to 48009
Actions #5

Updated by Laura Flores over 1 year ago

  • Status changed from New to Fix Under Review
Actions #6

Updated by Ilya Dryomov over 1 year ago

  • Status changed from Fix Under Review to Resolved
Actions

Also available in: Atom PDF