Closed eyolfson closed 1 year ago
Hi, I'm also trying to build from source in MacOS 13.0 on my M1 MacBook Pro, but I failed to build gcc after applying your changes, and the terminal didn't show any wrong log, do you know why?
I'm not sure. That's the only change I made and I was able to build successfully. I'm also. on an M1 MacBook Pro. There was no additional output, or a log file that might indicate what went wrong?
The build process stopped with a bunch of /usr/bin/install xxx
and mkdir -p stamps/ && touch stamps/build-gcc-newlib-stage1
, which is followed by the homebrew's output:
There're too many logs attached, do you know which to look?
I'd appreciate it if you can share your command to build-from-source using homebrew!
Here's my command:
brew install --build-from-source riscv-gnu-toolchain --verbose
I just did:
brew edit riscv-gnu-toolchain
# add the entry for "texinfo", as in the diff
brew install riscv-tools
My brew config
is pretty much the same as you, minus Xcode:
HOMEBREW_VERSION: 3.6.8-10-g73d535a
ORIGIN: https://github.com/Homebrew/brew
HEAD: 73d535a206d86c06e6ebc266351a53e28692dace
Last commit: 18 hours ago
Core tap ORIGIN: https://github.com/Homebrew/homebrew-core
Core tap HEAD: 618830a6dd9ded1b6a92806a6a835a6f595f19d3
Core tap last commit: 7 hours ago
Core tap branch: master
HOMEBREW_PREFIX: /opt/homebrew
HOMEBREW_CASK_OPTS: []
HOMEBREW_MAKE_JOBS: 10
Homebrew Ruby: 2.6.10 => /System/Library/Frameworks/Ruby.framework/Versions/2.6/usr/bin/ruby
CPU: 10-core 64-bit arm_firestorm_icestorm
Clang: 14.0.0 build 1400
Git: 2.38.1 => /opt/homebrew/bin/git
Curl: 7.84.0 => /usr/bin/curl
macOS: 13.0-arm64
CLT: 14.1.0.0.1.1666437224
Xcode: N/A
Rosetta 2: false
Thanks, I'll remove Xcode and try again!
It works!
After I recalled the whole process, I find that the real reason of previous failure is the poor network connection. I was manually git clone
those submodules but forgot to do it recursively, so there're some submodules missed when building.
Glad to see it works now! Hopefully it gets merged soon :)
I'm still running macOS 12, so I can't confirm makeinfo got removed, but it makes sense. Apple was avoiding GPL3 code, so they ran very old versions of many GNU programs. They finally decided bash was too old (thus the shift to zsh default). On my system, makeinfo is Apple provided, but version 4.8 from 2004, so way outdated.
Thanks for the PR!
When building on the latest macOS 13.0 you get the following error when building:
This patch adds the "texinfo" build dependency that contains the 'makeinfo' command.
Signed-off-by: Jon Eyolfson jon@eyolfson.com