Description
Working through getting the build on OSX, here is what I have done along the way with issues I have encountered and how I managed to get passed some of them.
First problem I had was when building it could not find objcopy
or gobjcopy
So first I made sure I had brew install binutils
installed and then I was required to also run the following:
export PATH=/usr/local/opt/binutils/bin:$PATH
export LDFLAGS="-L/usr/local/opt/binutils/lib"
export CPPFLAGS="-I/usr/local/opt/binutils/include"
Next I re-ran ./configure --enable-local
, things looked good until I encountered
checking for help2man... no
configure: error: missing required tool: help2man
Once again I ran brew install help2man
and you may not run into this issue but I could not link it
futurepr0n@MacBook-Pro crosstool-ng % brew install help2man
==> Downloading https://formulae.brew.sh/api/formula.jws.json
######################################################################### 100.0%
==> Downloading https://formulae.brew.sh/api/cask.jws.json
==> Downloading https://ghcr.io/v2/homebrew/core/help2man/manifests/1.49.3_2
######################################################################### 100.0%
==> Fetching dependencies for help2man: berkeley-db@5 and perl
==> Downloading https://ghcr.io/v2/homebrew/core/berkeley-db/5/manifests/5.3.28_
######################################################################### 100.0%
==> Fetching berkeley-db@5
==> Downloading https://ghcr.io/v2/homebrew/core/berkeley-db/5/blobs/sha256:db12
######################################################################### 100.0%
==> Downloading https://ghcr.io/v2/homebrew/core/perl/manifests/5.38.2_1
######################################################################### 100.0%
==> Fetching perl
==> Downloading https://ghcr.io/v2/homebrew/core/perl/blobs/sha256:4da05eef811a9
######################################################################### 100.0%
==> Fetching help2man
==> Downloading https://ghcr.io/v2/homebrew/core/help2man/blobs/sha256:c7be1329f
######################################################################### 100.0%
==> Installing dependencies for help2man: berkeley-db@5 and perl
==> Installing help2man dependency: berkeley-db@5
==> Downloading https://ghcr.io/v2/homebrew/core/berkeley-db/5/manifests/5.3.28_
Already downloaded: /Users/futurepr0n/Library/Caches/Homebrew/downloads/17e4e0def00184b561c8a490b5c0813a7c4f5e1365eb2e927570786eb4e05e09--berkeley-db@5-5.3.28_1.bottle_manifest.json
==> Pouring berkeley-db@5--5.3.28_1.sonoma.bottle.tar.gz
🍺 /usr/local/Cellar/berkeley-db@5/5.3.28_1: 5,271 files, 86.2MB
==> Installing help2man dependency: perl
==> Downloading https://ghcr.io/v2/homebrew/core/perl/manifests/5.38.2_1
Already downloaded: /Users/futurepr0n/Library/Caches/Homebrew/downloads/e664800549b3654bc040f70178f610931fec1d5299fe0d845f2dd2b969ad1372--perl-5.38.2_1.bottle_manifest.json
==> Pouring perl--5.38.2_1.sonoma.bottle.tar.gz
🍺 /usr/local/Cellar/perl/5.38.2_1: 2,516 files, 67.8MB
==> Installing help2man
==> Pouring help2man--1.49.3_2.sonoma.bottle.tar.gz
Error: The `brew link` step did not complete successfully
The formula built, but is not symlinked into /usr/local
Could not symlink share/man/de/man1/help2man.1
/usr/local/share/man/de/man1 is not writable.
You can try again using:
brew link help2man
==> Summary
🍺 /usr/local/Cellar/help2man/1.49.3_2: 72 files, 776.0KB
==> Running `brew cleanup help2man`...
Disable this behaviour by setting HOMEBREW_NO_INSTALL_CLEANUP.
Hide these hints with HOMEBREW_NO_ENV_HINTS (see `man brew`).
To get around this brew link
would not work either, so I found an article where fixing that issue was to run sudo chown -R $(whoami) $(brew --prefix)/*
after that I executed the brew link help2man
successfully and ran ./configure --enable-local
. Successfully.
Next, steps:
cd ..
cp configs/sh2eb-elf/native-linux.config .config
Still at the moment trying to get passed the next part, as build sh2 part fails