Closed anwfeb closed 9 months ago
==> Installing riscv-tools from riscv-software-src/riscv ==> Installing dependencies for riscv-software-src/riscv/riscv-tools: readline, riscv-software-src/riscv/riscv-gnu-toolchain, dtc, riscv-software-src/riscv/riscv-isa-sim and riscv-software-src/riscv/riscv-pk ==> Installing riscv-software-src/riscv/riscv-tools dependency: readline ==> Downloading https://ghcr.io/v2/homebrew/core/readline/manifests/8.2.10 Already downloaded: /Users/macbookair/Library/Caches/Homebrew/downloads/4ddd52803319828799f1932d4c7fa8d11c667049b20a56341c0c19246a1be93b--readline-8.2.10.bottle_manifest.json ==> Pouring readline--8.2.10.monterey.bottle.tar.gz 🍺 /usr/local/Cellar/readline/8.2.10: 50 files, 1.7MB ==> Installing riscv-software-src/riscv/riscv-tools dependency: riscv-softw ==> git submodule update --depth 1 --init --recursive newlib ==> git submodule update --depth 1 --init --recursive binutils ==> git submodule update --depth 1 --init --recursive gcc ==> ./configure --with-cmodel=medany --disable-gdb --enable-multilib ==> make Last 15 lines from /Users/macbookair/Library/Logs/Homebrew/riscv-gnu-toolchain/05.make: log2(_A1 lcpp_x) _NOEXCEPT {return ::log2((double)lcpp_x);} ^ ../.././gcc/gcc/config/riscv/genrvv-type-indexer.cc:120:30: error: no member named 'log2' in namespace 'std'; did you mean simply 'log2'? elmul_log2 = lmul_log2 + std::log2 (eew / sew); ^~~~~ log2 /Library/Developer/CommandLineTools/SDKs/MacOSX12.sdk/usr/include/c++/v1/math.h:1463:1: note: 'log2' declared here log2(_A1 lcpp_x) _NOEXCEPT {return ::log2((double)lcpp_x);} ^ 2 errors generated. make[2]: [build/genrvv-type-indexer.o] Error 1 make[2]: Waiting for unfinished jobs.... rm fsf-funding.pod gpl.pod cpp.pod gcov-dump.pod gfdl.pod gcc.pod gcov.pod lto-dump.pod gcov-tool.pod make[1]: [all-gcc] Error 2 make: [stamps/build-gcc-newlib-stage1] Error 2
If reporting this issue please do so at (not Homebrew/brew or Homebrew/homebrew-core): https://github.com/riscv-software-src/homebrew-riscv/issues
macbookair@192 ~ %
In #124 you made the connection to this being the same problem. It is probably the same as #116.
==> Installing riscv-tools from riscv-software-src/riscv ==> Installing dependencies for riscv-software-src/riscv/riscv-tools: readline, riscv-software-src/riscv/riscv-gnu-toolchain, dtc, riscv-software-src/riscv/riscv-isa-sim and riscv-software-src/riscv/riscv-pk ==> Installing riscv-software-src/riscv/riscv-tools dependency: readline ==> Downloading https://ghcr.io/v2/homebrew/core/readline/manifests/8.2.10 Already downloaded: /Users/macbookair/Library/Caches/Homebrew/downloads/4ddd52803319828799f1932d4c7fa8d11c667049b20a56341c0c19246a1be93b--readline-8.2.10.bottle_manifest.json ==> Pouring readline--8.2.10.monterey.bottle.tar.gz 🍺 /usr/local/Cellar/readline/8.2.10: 50 files, 1.7MB ==> Installing riscv-software-src/riscv/riscv-tools dependency: riscv-softw ==> git submodule update --depth 1 --init --recursive newlib ==> git submodule update --depth 1 --init --recursive binutils ==> git submodule update --depth 1 --init --recursive gcc ==> ./configure --with-cmodel=medany --disable-gdb --enable-multilib ==> make Last 15 lines from /Users/macbookair/Library/Logs/Homebrew/riscv-gnu-toolchain/05.make: log2(_A1 lcpp_x) _NOEXCEPT {return ::log2((double)lcpp_x);} ^ ../.././gcc/gcc/config/riscv/genrvv-type-indexer.cc:120:30: error: no member named 'log2' in namespace 'std'; did you mean simply 'log2'? elmul_log2 = lmul_log2 + std::log2 (eew / sew); ^
~~~~ log2 /Library/Developer/CommandLineTools/SDKs/MacOSX12.sdk/usr/include/c++/v1/math.h:1463:1: note: 'log2' declared here log2(_A1 lcpp_x) _NOEXCEPT {return ::log2((double)lcpp_x);} ^ 2 errors generated. make[2]: [build/genrvv-type-indexer.o] Error 1 make[2]: Waiting for unfinished jobs.... rm fsf-funding.pod gpl.pod cpp.pod gcov-dump.pod gfdl.pod gcc.pod gcov.pod lto-dump.pod gcov-tool.pod make[1]: [all-gcc] Error 2 make: [stamps/build-gcc-newlib-stage1] Error 2If reporting this issue please do so at (not Homebrew/brew or Homebrew/homebrew-core): https://github.com/riscv-software-src/homebrew-riscv/issues
macbookair@192 ~ %