RobotLocomotion / drake

Model-based design and verification for robotics.
https://drake.mit.edu
Other
3.23k stars 1.25k forks source link

when bazel build //... it occurs :"ERROR: An error occurred during the fetch of repository 'spdlog': Traceback (most recent call last):" #19002

Closed dbdxnuliba closed 1 year ago

dbdxnuliba commented 1 year ago

What happened?

dell@dell:~/ref/drake-1.13.0$ bazel build //... Extracting Bazel installation... Starting local Bazel server and connecting to it... WARNING: Download from https://github.com/okdshin/PicoSHA2/archive/27fcf6979298949e8a462e16d09a0351c18fcaf2.tar.gz failed: class java.io.IOException connect timed out WARNING: Download from https://github.com/ToyotaResearchInstitute/voxelized_geometry_tools/archive/83f9d52218fcd31a91b3cb493bedbad53fdf2bb3.tar.gz failed: class java.io.IOException connect timed out WARNING: Download from https://github.com/ros/xacro/archive/refs/tags/1.14.14.tar.gz failed: class java.io.IOException connect timed out WARNING: Download from https://github.com/RobotLocomotion/styleguide/archive/61c02fb47fa90ac1a5daa83e22d8f39bb1348aaf.tar.gz failed: class java.io.IOException connect timed out WARNING: Download from https://github.com/google/googletest/archive/refs/tags/v1.13.0.tar.gz failed: class java.io.IOException connect timed out WARNING: Download from https://github.com/IntelRealSense/realsense-ros/archive/refs/tags/2.3.2.tar.gz failed: class java.io.IOException connect timed out INFO: Repository spdlog instantiated at: /home/dell/ref/drake-1.13.0/WORKSPACE:10:22: in /home/dell/ref/drake-1.13.0/tools/workspace/default.bzl:385:29: in add_default_workspace /home/dell/ref/drake-1.13.0/tools/workspace/default.bzl:304:26: in add_default_repositories Repository rule spdlog_repository defined at: /home/dell/ref/drake-1.13.0/tools/workspace/spdlog/repository.bzl:29:36: in ERROR: An error occurred during the fetch of repository 'spdlog': Traceback (most recent call last): File "/home/dell/ref/drake-1.13.0/tools/workspace/spdlog/repository.bzl", line 27, column 13, in _impl fail(error) Error in fail: error 1 from [/usr/bin/pkg-config, "spdlog"]: ERROR: /home/dell/ref/drake-1.13.0/WORKSPACE:10:22: fetching spdlog_repository rule //external:spdlog: Traceback (most recent call last): File "/home/dell/ref/drake-1.13.0/tools/workspace/spdlog/repository.bzl", line 27, column 13, in _impl fail(error) Error in fail: error 1 from [/usr/bin/pkg-config, "spdlog"]: INFO: Repository remote_coverage_tools instantiated at: /DEFAULT.WORKSPACE.SUFFIX:4:6: in /home/dell/.cache/bazel/_bazel_dell/f994dfb1b58f572097b8607de536a576/external/bazel_tools/tools/build_defs/repo/utils.bzl:233:18: in maybe Repository rule http_archive defined at: /home/dell/.cache/bazel/_bazel_dell/f994dfb1b58f572097b8607de536a576/external/bazel_tools/tools/build_defs/repo/http.bzl:372:31: in INFO: Repository dm_control_internal instantiated at: /home/dell/ref/drake-1.13.0/WORKSPACE:10:22: in /home/dell/ref/drake-1.13.0/tools/workspace/default.bzl:385:29: in add_default_workspace /home/dell/ref/drake-1.13.0/tools/workspace/default.bzl:154:39: in add_default_repositories /home/dell/ref/drake-1.13.0/tools/workspace/dm_control_internal/repository.bzl:8:19: in dm_control_internal_repository /home/dell/ref/drake-1.13.0/tools/workspace/github.bzl:93:25: in github_archive Repository rule _github_archive_real defined at: /home/dell/ref/drake-1.13.0/tools/workspace/github.bzl:128:39: in INFO: Repository mosek instantiated at: /home/dell/ref/drake-1.13.0/WORKSPACE:10:22: in /home/dell/ref/drake-1.13.0/tools/workspace/default.bzl:385:29: in add_default_workspace /home/dell/ref/drake-1.13.0/tools/workspace/default.bzl:226:25: in add_default_repositories Repository rule mosek_repository defined at: /home/dell/ref/drake-1.13.0/tools/workspace/mosek/repository.bzl:183:35: in INFO: Repository models_internal instantiated at: /home/dell/ref/drake-1.13.0/WORKSPACE:10:22: in /home/dell/ref/drake-1.13.0/tools/workspace/default.bzl:385:29: in add_default_workspace /home/dell/ref/drake-1.13.0/tools/workspace/default.bzl:224:35: in add_default_repositories /home/dell/ref/drake-1.13.0/tools/workspace/models_internal/repository.bzl:8:19: in models_internal_repository /home/dell/ref/drake-1.13.0/tools/workspace/github.bzl:93:25: in github_archive Repository rule _github_archive_real defined at: /home/dell/ref/drake-1.13.0/tools/workspace/github.bzl:128:39: in INFO: Repository fcl_internal instantiated at: /home/dell/ref/drake-1.13.0/WORKSPACE:10:22: in /home/dell/ref/drake-1.13.0/tools/workspace/default.bzl:385:29: in add_default_workspace /home/dell/ref/drake-1.13.0/tools/workspace/default.bzl:168:32: in add_default_repositories /home/dell/ref/drake-1.13.0/tools/workspace/fcl_internal/repository.bzl:8:19: in fcl_internal_repository /home/dell/ref/drake-1.13.0/tools/workspace/github.bzl:93:25: in github_archive Repository rule _github_archive_real defined at: /home/dell/ref/drake-1.13.0/tools/workspace/github.bzl:128:39: in INFO: Repository mypy_internal instantiated at: /home/dell/ref/drake-1.13.0/WORKSPACE:10:22: in /home/dell/ref/drake-1.13.0/tools/workspace/default.bzl:385:29: in add_default_workspace /home/dell/ref/drake-1.13.0/tools/workspace/default.bzl:238:33: in add_default_repositories /home/dell/ref/drake-1.13.0/tools/workspace/mypy_internal/repository.bzl:8:19: in mypy_internal_repository /home/dell/ref/drake-1.13.0/tools/workspace/github.bzl:93:25: in github_archive Repository rule _github_archive_real defined at: /home/dell/ref/drake-1.13.0/tools/workspace/github.bzl:128:39: in INFO: Repository suitesparse_internal instantiated at: /home/dell/ref/drake-1.13.0/WORKSPACE:10:22: in /home/dell/ref/drake-1.13.0/tools/workspace/default.bzl:385:29: in add_default_workspace /home/dell/ref/drake-1.13.0/tools/workspace/default.bzl:319:40: in add_default_repositories /home/dell/ref/drake-1.13.0/tools/workspace/suitesparse_internal/repository.bzl:8:19: in suitesparse_internal_repository /home/dell/ref/drake-1.13.0/tools/workspace/github.bzl:93:25: in github_archive Repository rule _github_archive_real defined at: /home/dell/ref/drake-1.13.0/tools/workspace/github.bzl:128:39: in ERROR: Analysis of target '//bindings/pydrake/common:install_lint_genquery_install' failed; build aborted: no such package '@spdlog//': error 1 from [/usr/bin/pkg-config, "spdlog"]: INFO: Elapsed time: 121.947s INFO: 0 processes. FAILED: Build did NOT complete successfully (308 packages loaded, 3834 targets configured) currently loading: @drake_visualizer// ... (22 packages) Fetching https://drake-mirror.csail.mit.edu/github/deepmind/dm_control/774f46182140106e22725914aad3c6299ed91edd.tar.gz; 5.7 MiB (5,980,909B) 36s Fetching https://drake-mirror.csail.mit.edu/github/RobotLocomotion/models/bcd2cf1b27979bc725608d133ddbf3adfd497365.tar.gz; 17.8 MiB (18,618,593B) 36s Fetching https://mirror.bazel.build/bazel_coverage_output_generator/releases/coverage_output_generator-v2.6.zip; 410.8 KiB (420,614B) 28s Fetching https://download.mosek.com/stable/10.0.18/mosektoolslinux64x86.tar.bz2; 58.5 KiB (59,934B) 11s

Version

drake-1.13.0

What operating system are you using?

Ubuntu 20.04

What installation option are you using?

compiled from source code using Bazel

Relevant log output

No response

dbdxnuliba commented 1 year ago

and I has run the script drake-1.13.0/setup/ubuntu/source_distribution$ sudo ./install_prereqs.sh without err and then run bazel build //... again ,it still has the same err dell@dell:~/ref/drake-1.13.0/setup/ubuntu/source_distribution$ sudo ./install_prereqs.sh [sudo] password for dell: Sorry, try again. [sudo] password for dell: Hit:1 http://dl.google.com/linux/chrome/deb stable InRelease Hit:3 http://storage.googleapis.com/bazel-apt stable InRelease
Hit:4 http://packages.osrfoundation.org/gazebo/ubuntu-stable focal InRelease
Get:5 http://packages.microsoft.com/repos/code stable InRelease [3023 B]
Hit:7 https://linux.teamviewer.com/deb stable InRelease
Hit:8 https://mirrors.cloud.tencent.com/ubuntu focal InRelease
Get:9 https://mirrors.cloud.tencent.com/ubuntu focal-updates InRelease [114 kB]
Get:10 http://packages.microsoft.com/repos/code stable/main armhf Packages [63.4 kB]
Get:12 https://packages.microsoft.com/repos/vscode stable InRelease [1867 B]
Get:13 http://packages.ros.org/ros-testing/ubuntu focal InRelease [4679 B]
Get:14 https://mirrors.cloud.tencent.com/ubuntu focal-backports InRelease [108 kB]
Get:15 http://packages.microsoft.com/repos/code stable/main amd64 Packages [62.6 kB]
Get:16 https://packages.microsoft.com/repos/vscode stable/main amd64 Packages [162 kB]
Hit:6 https://apt.llvm.org/focal llvm-toolchain-focal InRelease
Get:18 https://mirrors.cloud.tencent.com/ubuntu focal-security InRelease [114 kB]
Get:19 http://packages.microsoft.com/repos/code stable/main arm64 Packages [63.0 kB]
Hit:2 https://archive.ubuntukylin.com/ukui focal InRelease
Get:20 http://packages.ros.org/ros-testing/ubuntu focal/main amd64 Packages [766 kB]
Hit:11 https://apt.llvm.org/focal llvm-toolchain-focal-12 InRelease
Hit:17 https://apt.llvm.org/focal llvm-toolchain-focal-13 InRelease
Get:21 https://mirrors.cloud.tencent.com/ubuntu focal-updates/main i386 Packages [796 kB]
Hit:22 http://ppa.launchpad.net/remmina-ppa-team/remmina-next/ubuntu focal InRelease
Hit:23 https://apt.kitware.com/ubuntu focal InRelease
Get:24 https://mirrors.cloud.tencent.com/ubuntu focal-updates/main amd64 Packages [2424 kB] Get:25 https://mirrors.cloud.tencent.com/ubuntu focal-updates/main Translation-en [415 kB]
Get:26 https://mirrors.cloud.tencent.com/ubuntu focal-updates/main amd64 DEP-11 Metadata [275 kB] Get:27 https://mirrors.cloud.tencent.com/ubuntu focal-updates/main amd64 c-n-f Metadata [16.2 kB]
Get:28 https://mirrors.cloud.tencent.com/ubuntu focal-updates/universe i386 Packages [718 kB]
Get:29 https://mirrors.cloud.tencent.com/ubuntu focal-updates/universe amd64 Packages [1038 kB]
Get:30 https://mirrors.cloud.tencent.com/ubuntu focal-updates/universe Translation-en [243 kB] Get:31 https://mirrors.cloud.tencent.com/ubuntu focal-updates/universe amd64 DEP-11 Metadata [409 kB]
Get:32 https://mirrors.cloud.tencent.com/ubuntu focal-updates/universe amd64 c-n-f Metadata [23.8 kB]
Get:33 https://mirrors.cloud.tencent.com/ubuntu focal-updates/multiverse amd64 DEP-11 Metadata [944 B]
Get:34 https://mirrors.cloud.tencent.com/ubuntu focal-backports/main amd64 DEP-11 Metadata [8020 B]
Get:35 https://mirrors.cloud.tencent.com/ubuntu focal-backports/universe amd64 DEP-11 Metadata [30.5 kB]
Get:36 https://mirrors.cloud.tencent.com/ubuntu focal-security/main amd64 DEP-11 Metadata [60.0 kB]
Get:37 https://mirrors.cloud.tencent.com/ubuntu focal-security/universe amd64 DEP-11 Metadata [95.0 kB]
Get:38 https://mirrors.cloud.tencent.com/ubuntu focal-security/multiverse amd64 DEP-11 Metadata [940 B]
Fetched 8013 kB in 15s (524 kB/s)
Reading package lists... Done Reading package lists... Done Building dependency tree
Reading state information... Done ca-certificates is already the newest version (20211016ubuntu0.20.04.1). wget is already the newest version (1.20.3-1ubuntu2). The following packages were automatically installed and are no longer required: libqglviewer2-qt5 librhash0 ros-noetic-franka-description Use 'sudo apt autoremove' to remove them. 0 upgraded, 0 newly installed, 0 to remove and 697 not upgraded. Reading package lists... Done Building dependency tree
Reading state information... Done default-jdk is already the newest version (2:1.11-72). file is already the newest version (1:5.38-4). gfortran is already the newest version (4:9.3.0-1ubuntu2). libblas-dev is already the newest version (3.9.0-1build1). libbz2-dev is already the newest version (1.0.8-2). liblapack-dev is already the newest version (3.9.0-1build1). libpng-dev is already the newest version (1.6.37-2). libtool is already the newest version (2.4.6-14). ocl-icd-opencl-dev is already the newest version (2.2.11-1ubuntu1). patch is already the newest version (2.7.6-6). pkg-config is already the newest version (0.29.1-0ubuntu4). python3-all-dev is already the newest version (3.8.2-0ubuntu2). python3-semantic-version is already the newest version (2.8.2-2). coinor-libclp-dev is already the newest version (1.17.5+repack1-1). coinor-libcoinutils-dev is already the newest version (2.11.4+repack1-1). coinor-libipopt-dev is already the newest version (3.11.9-2.2build2). libdouble-conversion-dev is already the newest version (3.1.5-4ubuntu1). libglew-dev is already the newest version (2.1.0-4). libmsgpack-dev is already the newest version (3.0.1-3). libmumps-seq-dev is already the newest version (5.2.1-2build1). libnlopt-cxx-dev is already the newest version (2.6.1-8ubuntu2). libtinyxml-dev is already the newest version (2.6.2-4build1). opencl-headers is already the newest version (2.2~2019.08.06-g0d5f18c-1). patchelf is already the newest version (0.10-2build1). git is already the newest version (1:2.25.1-1ubuntu3.10). libexpat1-dev is already the newest version (2.2.9-1ubuntu0.6). libgl-dev is already the newest version (1.3.2-1~ubuntu0.20.04.2). libglib2.0-dev is already the newest version (2.64.6-1~ubuntu20.04.4). libglx-dev is already the newest version (1.3.2-1~ubuntu0.20.04.2). libjpeg-turbo8-dev is already the newest version (2.0.3-0ubuntu1.20.04.3). liblz4-dev is already the newest version (1.9.2-2ubuntu0.20.04.1). liblzma-dev is already the newest version (5.2.4-1ubuntu1.1). libopengl-dev is already the newest version (1.3.2-1~ubuntu0.20.04.2). libtiff-dev is already the newest version (4.1.0+git191117-2ubuntu0.20.04.8). libtiff-dev set to manually installed. libx11-dev is already the newest version (2:1.6.9-2ubuntu1.2). openssh-client is already the newest version (1:8.2p1-4ubuntu0.5). zlib1g-dev is already the newest version (1:1.2.11.dfsg-2ubuntu1.5). clang-format-12 is already the newest version (1:12.0.1~++20211029101322+fed41342a82f-1~exp1~20211029221816.4). libclang-12-dev is already the newest version (1:12.0.1~++20211029101322+fed41342a82f-1~exp1~20211029221816.4). The following packages were automatically installed and are no longer required: libqglviewer2-qt5 librhash0 ros-noetic-franka-description Use 'sudo apt autoremove' to remove them. 0 upgraded, 0 newly installed, 0 to remove and 697 not upgraded. Reading package lists... Done Building dependency tree
Reading state information... Done locales is already the newest version (2.31-0ubuntu9.9). The following packages were automatically installed and are no longer required: libqglviewer2-qt5 librhash0 ros-noetic-franka-description Use 'sudo apt autoremove' to remove them. 0 upgraded, 0 newly installed, 0 to remove and 697 not upgraded. Generating locales (this might take a while)... en_US.UTF-8... done Generation complete. /usr/bin/python is already installed Reading package lists... Done Building dependency tree
Reading state information... Done clang-12 is already the newest version (1:12.0.1~++20211029101322+fed41342a82f-1~exp1~20211029221816.4). libomp-12-dev is already the newest version (1:12.0.1~++20211029101322+fed41342a82f-1~exp1~20211029221816.4). The following packages were automatically installed and are no longer required: libqglviewer2-qt5 librhash0 ros-noetic-franka-description Use 'sudo apt autoremove' to remove them. 0 upgraded, 0 newly installed, 0 to remove and 697 not upgraded. Reading package lists... Done Building dependency tree
Reading state information... Done python3-dateutil is already the newest version (2.7.3-3ubuntu1). python3-dbg is already the newest version (3.8.2-0ubuntu2). python3-flask is already the newest version (1.1.1-2). python3-psutil is already the newest version (5.5.1-1ubuntu4). python3-requests is already the newest version (2.22.0-2ubuntu1). python3-six is already the newest version (1.14.0-2). kcov is already the newest version (38+dfsg-1). python3-matplotlib-dbg is already the newest version (3.1.2-1ubuntu4). python3-nbconvert is already the newest version (5.6.1-1). python3-nbformat is already the newest version (5.0.4-1). python3-opencv is already the newest version (4.2.0+dfsg-5). python3-pandas is already the newest version (0.25.3+dfsg-7). python3-uritemplate is already the newest version (0.6-4). python3-websockets is already the newest version (8.1-1). python3-zmq-dbg is already the newest version (18.1.1-3). curl is already the newest version (7.68.0-1ubuntu2.16). python3-lxml-dbg is already the newest version (4.5.0-1ubuntu0.5). python3-numpy-dbg is already the newest version (1:1.17.4-5ubuntu3.1). python3-yaml-dbg is already the newest version (5.3.1-1ubuntu0.1). valgrind is already the newest version (1:3.15.0-1ubuntu9.1). valgrind-dbg is already the newest version (1:3.15.0-1ubuntu9.1). libstdc++6-10-dbg is already the newest version (10.3.0-1ubuntu1~20.04). llvm-12 is already the newest version (1:12.0.1~++20211029101322+fed41342a82f-1~exp1~20211029221816.4). The following packages were automatically installed and are no longer required: libqglviewer2-qt5 librhash0 ros-noetic-franka-description Use 'sudo apt autoremove' to remove them. 0 upgraded, 0 newly installed, 0 to remove and 697 not upgraded. Reading package lists... Done Building dependency tree
Reading state information... Done g++ is already the newest version (4:9.3.0-1ubuntu2). unzip is already the newest version (6.0-25ubuntu1.1). zlib1g-dev is already the newest version (1:1.2.11.dfsg-2ubuntu1.5). The following packages were automatically installed and are no longer required: libqglviewer2-qt5 librhash0 ros-noetic-franka-description Use 'sudo apt autoremove' to remove them. 0 upgraded, 0 newly installed, 0 to remove and 697 not upgraded. --2023-03-15 09:41:16-- https://releases.bazel.build/6.0.0/release/bazel_6.0.0-linux-x86_64.deb Resolving releases.bazel.build (releases.bazel.build)... 130.211.22.235 Connecting to releases.bazel.build (releases.bazel.build)|130.211.22.235|:443... connected. HTTP request sent, awaiting response... 200 OK Length: 49224658 (47M) [application/x-debian-package] Saving to: '/tmp/bazel_6.0.0-amd64.deb'

/tmp/bazel_6.0.0-amd64.deb 100%[================================================================================================================>] 46.94M 130KB/s in 1m 47s

2023-03-15 09:43:05 (449 KB/s) - '/tmp/bazel_6.0.0-amd64.deb' saved [49224658/49224658]

/tmp/bazel_6.0.0-amd64.deb: OK

Selecting previously unselected package bazel. (Reading database ... 361137 files and directories currently installed.) Preparing to unpack /tmp/bazel_6.0.0-amd64.deb ... Unpacking bazel (6.0.0) ... Setting up bazel (6.0.0) ...

jwnimmer-tri commented 1 year ago

The instructions say to run:

sudo ./setup/ubuntu/install_prereqs.sh.

It looks like you might be running:

sudo ./setup/ubuntu/source_distribution/install_prereqs.sh

dbdxnuliba commented 1 year ago

yes I run the script you said now again

dell@dell:~/ref/drake-1.13.0$ sudo ./setup/ubuntu/source_distribution/install_prereqs.sh [sudo] password for dell: Hit:1 http://dl.google.com/linux/chrome/deb stable InRelease Hit:3 https://mirrors.cloud.tencent.com/ubuntu focal InRelease
Hit:4 http://packages.microsoft.com/repos/code stable InRelease
Hit:5 https://mirrors.cloud.tencent.com/ubuntu focal-updates InRelease
Hit:7 http://packages.osrfoundation.org/gazebo/ubuntu-stable focal InRelease
Hit:8 https://mirrors.cloud.tencent.com/ubuntu focal-backports InRelease
Hit:9 https://mirrors.cloud.tencent.com/ubuntu focal-security InRelease
Hit:2 https://archive.ubuntukylin.com/ukui focal InRelease
Hit:10 http://storage.googleapis.com/bazel-apt stable InRelease
Hit:11 https://packages.microsoft.com/repos/vscode stable InRelease
Hit:13 http://packages.ros.org/ros-testing/ubuntu focal InRelease
Hit:14 https://linux.teamviewer.com/deb stable InRelease
Hit:6 https://apt.llvm.org/focal llvm-toolchain-focal InRelease
Hit:12 https://apt.llvm.org/focal llvm-toolchain-focal-12 InRelease
Hit:16 http://ppa.launchpad.net/remmina-ppa-team/remmina-next/ubuntu focal InRelease Hit:15 https://apt.llvm.org/focal llvm-toolchain-focal-13 InRelease
Hit:17 https://apt.kitware.com/ubuntu focal InRelease
Reading package lists... Done Reading package lists... Done Building dependency tree
Reading state information... Done ca-certificates is already the newest version (20211016ubuntu0.20.04.1). wget is already the newest version (1.20.3-1ubuntu2). The following packages were automatically installed and are no longer required: libqglviewer2-qt5 librhash0 ros-noetic-franka-description Use 'sudo apt autoremove' to remove them. 0 upgraded, 0 newly installed, 0 to remove and 698 not upgraded. Reading package lists... Done Building dependency tree
Reading state information... Done default-jdk is already the newest version (2:1.11-72). file is already the newest version (1:5.38-4). gfortran is already the newest version (4:9.3.0-1ubuntu2). libblas-dev is already the newest version (3.9.0-1build1). libbz2-dev is already the newest version (1.0.8-2). liblapack-dev is already the newest version (3.9.0-1build1). libpng-dev is already the newest version (1.6.37-2). libtool is already the newest version (2.4.6-14). ocl-icd-opencl-dev is already the newest version (2.2.11-1ubuntu1). patch is already the newest version (2.7.6-6). pkg-config is already the newest version (0.29.1-0ubuntu4). python3-all-dev is already the newest version (3.8.2-0ubuntu2). python3-semantic-version is already the newest version (2.8.2-2). coinor-libclp-dev is already the newest version (1.17.5+repack1-1). coinor-libcoinutils-dev is already the newest version (2.11.4+repack1-1). coinor-libipopt-dev is already the newest version (3.11.9-2.2build2). libdouble-conversion-dev is already the newest version (3.1.5-4ubuntu1). libglew-dev is already the newest version (2.1.0-4). libmsgpack-dev is already the newest version (3.0.1-3). libmumps-seq-dev is already the newest version (5.2.1-2build1). libnlopt-cxx-dev is already the newest version (2.6.1-8ubuntu2). libtinyxml-dev is already the newest version (2.6.2-4build1). opencl-headers is already the newest version (2.2~2019.08.06-g0d5f18c-1). patchelf is already the newest version (0.10-2build1). git is already the newest version (1:2.25.1-1ubuntu3.10). libexpat1-dev is already the newest version (2.2.9-1ubuntu0.6). libgl-dev is already the newest version (1.3.2-1~ubuntu0.20.04.2). libglib2.0-dev is already the newest version (2.64.6-1~ubuntu20.04.4). libglx-dev is already the newest version (1.3.2-1~ubuntu0.20.04.2). libjpeg-turbo8-dev is already the newest version (2.0.3-0ubuntu1.20.04.3). liblz4-dev is already the newest version (1.9.2-2ubuntu0.20.04.1). liblzma-dev is already the newest version (5.2.4-1ubuntu1.1). libopengl-dev is already the newest version (1.3.2-1~ubuntu0.20.04.2). libtiff-dev is already the newest version (4.1.0+git191117-2ubuntu0.20.04.8). libx11-dev is already the newest version (2:1.6.9-2ubuntu1.2). openssh-client is already the newest version (1:8.2p1-4ubuntu0.5). zlib1g-dev is already the newest version (1:1.2.11.dfsg-2ubuntu1.5). clang-format-12 is already the newest version (1:12.0.1~++20211029101322+fed41342a82f-1~exp1~20211029221816.4). libclang-12-dev is already the newest version (1:12.0.1~++20211029101322+fed41342a82f-1~exp1~20211029221816.4). The following packages were automatically installed and are no longer required: libqglviewer2-qt5 librhash0 ros-noetic-franka-description Use 'sudo apt autoremove' to remove them. 0 upgraded, 0 newly installed, 0 to remove and 698 not upgraded. Reading package lists... Done Building dependency tree
Reading state information... Done locales is already the newest version (2.31-0ubuntu9.9). The following packages were automatically installed and are no longer required: libqglviewer2-qt5 librhash0 ros-noetic-franka-description Use 'sudo apt autoremove' to remove them. 0 upgraded, 0 newly installed, 0 to remove and 698 not upgraded. Generating locales (this might take a while)... en_US.UTF-8... done Generation complete. /usr/bin/python is already installed Reading package lists... Done Building dependency tree
Reading state information... Done clang-12 is already the newest version (1:12.0.1~++20211029101322+fed41342a82f-1~exp1~20211029221816.4). libomp-12-dev is already the newest version (1:12.0.1~++20211029101322+fed41342a82f-1~exp1~20211029221816.4). The following packages were automatically installed and are no longer required: libqglviewer2-qt5 librhash0 ros-noetic-franka-description Use 'sudo apt autoremove' to remove them. 0 upgraded, 0 newly installed, 0 to remove and 698 not upgraded. Reading package lists... Done Building dependency tree
Reading state information... Done python3-dateutil is already the newest version (2.7.3-3ubuntu1). python3-dbg is already the newest version (3.8.2-0ubuntu2). python3-flask is already the newest version (1.1.1-2). python3-psutil is already the newest version (5.5.1-1ubuntu4). python3-requests is already the newest version (2.22.0-2ubuntu1). python3-six is already the newest version (1.14.0-2). kcov is already the newest version (38+dfsg-1). python3-matplotlib-dbg is already the newest version (3.1.2-1ubuntu4). python3-nbconvert is already the newest version (5.6.1-1). python3-nbformat is already the newest version (5.0.4-1). python3-opencv is already the newest version (4.2.0+dfsg-5). python3-pandas is already the newest version (0.25.3+dfsg-7). python3-uritemplate is already the newest version (0.6-4). python3-websockets is already the newest version (8.1-1). python3-zmq-dbg is already the newest version (18.1.1-3). curl is already the newest version (7.68.0-1ubuntu2.16). python3-lxml-dbg is already the newest version (4.5.0-1ubuntu0.5). python3-numpy-dbg is already the newest version (1:1.17.4-5ubuntu3.1). python3-yaml-dbg is already the newest version (5.3.1-1ubuntu0.1). valgrind is already the newest version (1:3.15.0-1ubuntu9.1). valgrind-dbg is already the newest version (1:3.15.0-1ubuntu9.1). libstdc++6-10-dbg is already the newest version (10.3.0-1ubuntu1~20.04). llvm-12 is already the newest version (1:12.0.1~++20211029101322+fed41342a82f-1~exp1~20211029221816.4). The following packages were automatically installed and are no longer required: libqglviewer2-qt5 librhash0 ros-noetic-franka-description Use 'sudo apt autoremove' to remove them. 0 upgraded, 0 newly installed, 0 to remove and 698 not upgraded. Reading package lists... Done Building dependency tree
Reading state information... Done g++ is already the newest version (4:9.3.0-1ubuntu2). unzip is already the newest version (6.0-25ubuntu1.1). zlib1g-dev is already the newest version (1:1.2.11.dfsg-2ubuntu1.5). The following packages were automatically installed and are no longer required: libqglviewer2-qt5 librhash0 ros-noetic-franka-description Use 'sudo apt autoremove' to remove them. 0 upgraded, 0 newly installed, 0 to remove and 698 not upgraded. bazel is already at the desired version 6.0.0

The instructions say to run:

sudo ./setup/ubuntu/install_prereqs.sh.

It looks like you might be running:

sudo ./setup/ubuntu/source_distribution/install_prereqs.sh

dbdxnuliba commented 1 year ago

and then run bazel build //... it still shows dell@dell:~/ref/drake-1.13.0$ bazel build //... INFO: Repository spdlog instantiated at: /home/dell/ref/drake-1.13.0/WORKSPACE:10:22: in /home/dell/ref/drake-1.13.0/tools/workspace/default.bzl:385:29: in add_default_workspace /home/dell/ref/drake-1.13.0/tools/workspace/default.bzl:304:26: in add_default_repositories Repository rule spdlog_repository defined at: /home/dell/ref/drake-1.13.0/tools/workspace/spdlog/repository.bzl:29:36: in ERROR: An error occurred during the fetch of repository 'spdlog': Traceback (most recent call last): File "/home/dell/ref/drake-1.13.0/tools/workspace/spdlog/repository.bzl", line 27, column 13, in _impl fail(error) Error in fail: error 1 from [/usr/bin/pkg-config, "spdlog"]: ERROR: /home/dell/ref/drake-1.13.0/WORKSPACE:10:22: fetching spdlog_repository rule //external:spdlog: Traceback (most recent call last): File "/home/dell/ref/drake-1.13.0/tools/workspace/spdlog/repository.bzl", line 27, column 13, in _impl fail(error)

jwnimmer-tri commented 1 year ago

It still looks like you're running the wrong file.

The one you should run is not in the source_distribution directory.

When you run the correct script, you should see libspdlog-dev in the list of what's being installed.

dbdxnuliba commented 1 year ago

yes ,it works well but when I continue run bazel build //... it show err "ERROR: /home/dell/ref/drake-1.13.0/bindings/pydrake/multibody/BUILD.bazel:97:21: Compiling bindings/pydrake/multibody/tree_py.cc failed: (Exit 1): gcc failed: error executing command (from target //bindings/pydrake/multibody:tree.cpython-38-x86_64-linux-gnu.so) /usr/bin/gcc -U_FORTIFY_SOURCE -fstack-protector -Wall -Wunused-but-set-parameter -Wno-free-nonheap-object -fno-omit-frame-pointer -g0 -O2 '-D_FORTIFY_SOURCE=1' -DNDEBUG -ffunction-sections ... (remaining 236 arguments skipped)"

dell@dell:~/ref/drake-1.13.0$ bazel build //... INFO: Analyzed 10286 targets (0 packages loaded, 0 targets configured). INFO: Found 10286 targets... ERROR: /home/dell/ref/drake-1.13.0/bindings/pydrake/multibody/BUILD.bazel:97:21: Compiling bindings/pydrake/multibody/tree_py.cc failed: (Exit 1): gcc failed: error executing command (from target //bindings/pydrake/multibody:tree.cpython-38-x86_64-linux-gnu.so) /usr/bin/gcc -U_FORTIFY_SOURCE -fstack-protector -Wall -Wunused-but-set-parameter -Wno-free-nonheap-object -fno-omit-frame-pointer -g0 -O2 '-D_FORTIFY_SOURCE=1' -DNDEBUG -ffunction-sections ... (remaining 236 arguments skipped)

Use --sandbox_debug to see verbose messages from the sandbox and retain the sandbox build root for debugging gcc: fatal error: Killed signal terminated program cc1plus compilation terminated. INFO: Elapsed time: 84.860s, Critical Path: 59.12s INFO: 440 processes: 228 internal, 206 linux-sandbox, 6 worker. FAILED: Build did NOT complete successfully

jwnimmer-tri commented 1 year ago

For "killed cc1plus", please see: https://drake.mit.edu/troubleshooting.html#build-oom

dbdxnuliba commented 1 year ago

ok, build it successfully now bazel build --jobs=2 //... INFO: Elapsed time: 2068.252s, Critical Path: 60.17s INFO: 11014 processes: 9379 internal, 1634 linux-sandbox, 1 worker. INFO: Build completed successfully, 11014 total actions dell@dell:~/ref/drake-1.13.0$

thanks a lot

dbdxnuliba commented 1 year ago

@jwnimmer-tri excuse me another question : after I bazel drake sucessfully I try to use pydrake ,but it shows erro ModuleNotFoundError: No module named 'pydrake'

dell@dell:~/ref/drake-1.13.0$ python Python 3.8.10 (default, Nov 14 2022, 12:59:47) [GCC 9.4.0] on linux Type "help", "copyright", "credits" or "license" for more information.

import pydrake Traceback (most recent call last): File "", line 1, in ModuleNotFoundError: No module named 'pydrake'

jwnimmer-tri commented 1 year ago

See https://drake.mit.edu/from_source.html#building-the-python-bindings.

You should run "make" from a CMake build, in other words "make install" which will copy the pydrake files into somewhere you can add to your PYTHONPATH.

dbdxnuliba commented 1 year ago

thanks for your reply ,it works well now