chipyard icon indicating copy to clipboard operation
chipyard copied to clipboard

./scripts/build-setup.sh esp-tools terminated at step 3

Open pigen01 opened this issue 1 year ago • 0 comments

Background Work

Chipyard Version and Hash

commit 150f888a621ddabe588f19e0194d4409143e247e

OS Setup

Ex: Output of uname -a + lsb_release -a + printenv + conda list Linux 37553645b4a0 6.2.0-33-generic #33~22.04.1-Ubuntu SMP PREEMPT_DYNAMIC Thu Sep 7 10:33:52 UTC 2 x86_64 x86_64 x86_64 GNU/Linux

bash: lsb_release: command not found

CONDA_EXE=/workspace/mambaforge/bin/conda _CE_M= HOSTNAME=37553645b4a0 XML_CATALOG_FILES=file:///workspace/mambaforge/etc/xml/catalog file:///etc/xml/catalog PWD=/workspace/chipyard GSETTINGS_SCHEMA_DIR=/workspace/mambaforge/share/glib-2.0/schemas CONDA_PREFIX=/workspace/mambaforge GSETTINGS_SCHEMA_DIR_CONDA_BACKUP= HOME=/root LS_COLORS=rs=0:di=01;34:ln=01;36:mh=00:pi=40;33:so=01;35:do=01;35:bd=40;33;01:cd=40;33;01:or=40;31;01:mi=00:su=37;41:sg=30;43:ca=30;41:tw=30;42:ow=34;42:st=37;44:ex=01;32:.tar=01;31:.tgz=01;31:.arc=01;31:.arj=01;31:.taz=01;31:.lha=01;31:.lz4=01;31:.lzh=01;31:.lzma=01;31:.tlz=01;31:.txz=01;31:.tzo=01;31:.t7z=01;31:.zip=01;31:.z=01;31:.dz=01;31:.gz=01;31:.lrz=01;31:.lz=01;31:.lzo=01;31:.xz=01;31:.zst=01;31:.tzst=01;31:.bz2=01;31:.bz=01;31:.tbz=01;31:.tbz2=01;31:.tz=01;31:.deb=01;31:.rpm=01;31:.jar=01;31:.war=01;31:.ear=01;31:.sar=01;31:.rar=01;31:.alz=01;31:.ace=01;31:.zoo=01;31:.cpio=01;31:.7z=01;31:.rz=01;31:.cab=01;31:.wim=01;31:.swm=01;31:.dwm=01;31:.esd=01;31:.jpg=01;35:.jpeg=01;35:.mjpg=01;35:.mjpeg=01;35:.gif=01;35:.bmp=01;35:.pbm=01;35:.pgm=01;35:.ppm=01;35:.tga=01;35:.xbm=01;35:.xpm=01;35:.tif=01;35:.tiff=01;35:.png=01;35:.svg=01;35:.svgz=01;35:.mng=01;35:.pcx=01;35:.mov=01;35:.mpg=01;35:.mpeg=01;35:.m2v=01;35:.mkv=01;35:.webm=01;35:.webp=01;35:.ogm=01;35:.mp4=01;35:.m4v=01;35:.mp4v=01;35:.vob=01;35:.qt=01;35:.nuv=01;35:.wmv=01;35:.asf=01;35:.rm=01;35:.rmvb=01;35:.flc=01;35:.avi=01;35:.fli=01;35:.flv=01;35:.gl=01;35:.dl=01;35:.xcf=01;35:.xwd=01;35:.yuv=01;35:.cgm=01;35:.emf=01;35:.ogv=01;35:.ogx=01;35:.aac=00;36:.au=00;36:.flac=00;36:.m4a=00;36:.mid=00;36:.midi=00;36:.mka=00;36:.mp3=00;36:.mpc=00;36:.ogg=00;36:.ra=00;36:.wav=00;36:.oga=00;36:.opus=00;36:.spx=00;36:.xspf=00;36: CONDA_PROMPT_MODIFIER=(base) https_proxy=http://127.0.0.1:7891 LESSCLOSE=/usr/bin/lesspipe %s %s TERM=xterm _CE_CONDA= LESSOPEN=| /usr/bin/lesspipe %s CONDA_SHLVL=1 SHLVL=1 http_proxy=http://127.0.0.1:7891 CONDA_PYTHON_EXE=/workspace/mambaforge/bin/python CONDA_DEFAULT_ENV=base PATH=/workspace/mambaforge/bin:/workspace/mambaforge/condabin:/riscv/_install/bin:/riscv/_install/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin OLDPWD=/workspace _=/usr/bin/printenv

packages in environment at /workspace/mambaforge:

Name Version Build Channel

_libgcc_mutex 0.1 conda_forge conda-forge _openmp_mutex 4.5 2_gnu conda-forge annotated-types 0.6.0 pyhd8ed1ab_0 conda-forge appdirs 1.4.4 pyh9f0ad1d_0 conda-forge archspec 0.2.2 pyhd8ed1ab_0 conda-forge boltons 23.1.1 pyhd8ed1ab_0 conda-forge brotli-python 1.1.0 py310hc6cd4ac_1 conda-forge bzip2 1.0.8 hd590300_5 conda-forge c-ares 1.24.0 hd590300_0 conda-forge ca-certificates 2023.11.17 hbcca054_0 conda-forge cachecontrol 0.13.1 pyhd8ed1ab_0 conda-forge cachecontrol-with-filecache 0.13.1 pyhd8ed1ab_0 conda-forge cachy 0.3.0 pyhd8ed1ab_1 conda-forge certifi 2023.11.17 pyhd8ed1ab_0 conda-forge cffi 1.16.0 py310h2fee648_0 conda-forge charset-normalizer 3.3.2 pyhd8ed1ab_0 conda-forge click 8.1.7 unix_pyh707e725_0 conda-forge click-default-group 1.2.4 pyhd8ed1ab_0 conda-forge clikit 0.6.2 pyhd8ed1ab_2 conda-forge colorama 0.4.6 pyhd8ed1ab_0 conda-forge conda 23.11.0 py310hff52083_1 conda-forge [36/1449]conda-libmamba-solver 23.12.0 pyhd8ed1ab_0 conda-forge conda-lock 1.4.0 pyhd8ed1ab_2 conda-forge conda-package-handling 2.2.0 pyh38be061_0 conda-forge conda-package-streaming 0.9.0 pyhd8ed1ab_0 conda-forge crashtest 0.4.1 pyhd8ed1ab_0 conda-forge cryptography 42.0.0 py310hb8475ec_0 conda-forge dbus 1.13.6 h5008d03_3 conda-forge distlib 0.3.8 pyhd8ed1ab_0 conda-forge distro 1.8.0 pyhd8ed1ab_0 conda-forge ensureconda 1.4.3 pyhd8ed1ab_0 conda-forge expat 2.5.0 hcb278e6_1 conda-forge filelock 3.13.1 pyhd8ed1ab_0 conda-forge fmt 10.1.1 h00ab1b0_1 conda-forge gettext 0.21.1 h27087fc_0 conda-forge html5lib 1.1 pyh9f0ad1d_0 conda-forge icu 73.2 h59595ed_0 conda-forge idna 3.6 pyhd8ed1ab_0 conda-forge importlib-metadata 7.0.1 pyha770c72_0 conda-forge importlib_metadata 7.0.1 hd8ed1ab_0 conda-forge jaraco.classes 3.3.0 pyhd8ed1ab_0 conda-forge jeepney 0.8.0 pyhd8ed1ab_0 conda-forge jinja2 3.1.3 pyhd8ed1ab_0 conda-forge jsonpatch 1.33 pyhd8ed1ab_0 conda-forge jsonpointer 2.4 py310hff52083_3 conda-forge keyring 24.3.0 py310hff52083_0 conda-forge keyutils 1.6.1 h166bdaf_0 conda-forge krb5 1.21.2 h659d440_0 conda-forge ld_impl_linux-64 2.40 h41732ed_0 conda-forge libarchive 3.7.2 h2aa1ff5_1 conda-forge libcurl 8.5.0 hca28451_0 conda-forge libedit 3.1.20191231 he28a2e2_2 conda-forge libev 4.33 hd590300_2 conda-forge libexpat 2.5.0 hcb278e6_1 conda-forge libffi 3.4.2 h7f98852_5 conda-forge libgcc-ng 13.2.0 h807b86a_3 conda-forge libglib 2.78.3 h783c2da_0 conda-forge libgomp 13.2.0 h807b86a_3 conda-forge libiconv 1.17 hd590300_2 conda-forge libmamba 1.5.5 had39da4_0 conda-forge libmambapy 1.5.5 py310h39ff949_0 conda-forge libnghttp2 1.58.0 h47da74e_1 conda-forge libnsl 2.0.1 hd590300_0 conda-forge libsolv 0.7.27 hfc55251_0 conda-forge libsqlite 3.44.2 h2797004_0 conda-forge libssh2 1.11.0 h0841786_0 conda-forge libstdcxx-ng 13.2.0 h7e041cc_3 conda-forge libuuid 2.38.1 h0b41bf4_0 conda-forge libxml2 2.12.3 h232c23b_0 conda-forge libzlib 1.2.13 hd590300_5 conda-forge lz4-c 1.9.4 hcb278e6_0 conda-forge lzo 2.10 h516909a_1000 conda-forge mamba 1.5.5 py310h51d5547_0 conda-forge markupsafe 2.1.4 py310h2372a71_0 conda-forge menuinst 2.0.1 py310hff52083_0 conda-forge more-itertools 10.2.0 pyhd8ed1ab_0 conda-forge msgpack-python 1.0.7 py310hd41b1e2_0 conda-forge ncurses 6.4 h59595ed_2 conda-forge openssl 3.2.0 hd590300_1 conda-forge packaging 23.2 pyhd8ed1ab_0 conda-forge pastel 0.2.1 pyhd8ed1ab_0 conda-forge pcre2 10.42 hcad00b1_0 conda-forge pip 23.3.2 pyhd8ed1ab_0 conda-forge pkginfo 1.9.6 pyhd8ed1ab_0 conda-forge platformdirs 4.1.0 pyhd8ed1ab_0 conda-forge pluggy 1.3.0 pyhd8ed1ab_0 conda-forge pybind11-abi 4 hd8ed1ab_3 conda-forge pycosat 0.6.6 py310h2372a71_0 conda-forge pycparser 2.21 pyhd8ed1ab_0 conda-forge pydantic 2.5.3 pyhd8ed1ab_0 conda-forge pydantic-core 2.14.6 py310hcb5633a_1 conda-forge pylev 1.4.0 pyhd8ed1ab_0 conda-forge pysocks 1.7.1 pyha2e5f31_6 conda-forge python 3.10.13 hd12c33a_0_cpython conda-forge python_abi 3.10 4_cp310 conda-forge pyyaml 6.0.1 py310h2372a71_1 conda-forge readline 8.2 h8228510_1 conda-forge reproc 14.2.4.post0 hd590300_1 conda-forge reproc-cpp 14.2.4.post0 h59595ed_1 conda-forge requests 2.31.0 pyhd8ed1ab_0 conda-forge ruamel.yaml 0.18.5 py310h2372a71_0 conda-forge ruamel.yaml.clib 0.2.7 py310h2372a71_2 conda-forge secretstorage 3.3.3 py310hff52083_2 conda-forge setuptools 68.2.2 pyhd8ed1ab_0 conda-forge six 1.16.0 pyh6c4a22f_0 conda-forge tk 8.6.13 noxft_h4845f30_101 conda-forge tomli 2.0.1 pyhd8ed1ab_0 conda-forge tomlkit 0.12.3 pyha770c72_0 conda-forge toolz 0.12.1 pyhd8ed1ab_0 conda-forge tqdm 4.66.1 pyhd8ed1ab_0 conda-forge truststore 0.8.0 pyhd8ed1ab_0 conda-forge typing-extensions 4.9.0 hd8ed1ab_0 conda-forge typing_extensions 4.9.0 pyha770c72_0 conda-forge tzdata 2023c h71feb2d_0 conda-forge urllib3 1.26.18 pyhd8ed1ab_0 conda-forge virtualenv 20.25.0 pyhd8ed1ab_0 conda-forge webencodings 0.5.1 pyhd8ed1ab_2 conda-forge wheel 0.42.0 pyhd8ed1ab_0 conda-forge xz 5.2.6 h166bdaf_0 conda-forge yaml 0.2.5 h7f98852_2 conda-forge yaml-cpp 0.8.0 h59595ed_0 conda-forge zipp 3.17.0 pyhd8ed1ab_0 conda-forge zstandard 0.22.0 py310h1275a96_0 conda-forge zstd 1.5.5 hfc55251_0 conda-forge

Other Setup

Ex: Prior steps taken / Documentation Followed / etc... I followed the setup steps on Chipyard Document

Current Behavior

when I ran

/workspace/chipyard# ./scripts/build-setup.sh esp-tools

I met the error below at step 3

g++ -L ./.conda-env/esp-tools//lib -Wl,-rpath,./.conda-env/esp-tools//lib -shared -o libspikedevices.so -std=c++17 -I ./.conda-env/esp-tools//include -fPIC src/iceblk.cc src/sifive_uart.cc
In file included from src/iceblk.cc:9:
src/iceblk.h:8:10: fatal error: riscv/abstract_device.h: No such file or directory
    8 | #include <riscv/abstract_device.h>
      |          ^~~~~~~~~~~~~~~~~~~~~~~~~
compilation terminated.
In file included from src/sifive_uart.cc:1:
src/sifive_uart.h:4:10: fatal error: riscv/abstract_device.h: No such file or directory
    4 | #include <riscv/abstract_device.h>
      |          ^~~~~~~~~~~~~~~~~~~~~~~~~
compilation terminated.
make: *** [Makefile:15: libspikedevices.so] Error 1

Expected Behavior

No errors should report

Other Information

I tried to add cp related file to include, it helps, but another file decode.h not found.

pigen01 avatar Jan 26 '24 16:01 pigen01