Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Missing build instructions for MacOS running MacPorts in README.md #1332

Open
pilonsi opened this issue Sep 18, 2023 · 2 comments
Open

Missing build instructions for MacOS running MacPorts in README.md #1332

pilonsi opened this issue Sep 18, 2023 · 2 comments

Comments

@pilonsi
Copy link

pilonsi commented Sep 18, 2023

The README.md file is missing instructions for building on a MacPorts MacOS system. These would be:

To fetch required dependencies:

$ sudo port install python311 gmake gawk gsed gmp mpfr libmpc isl zlib expat texinfo flock
$ sudo ln -s /opt/local/bin/gmake /opt/local/libexec/gnubin/gnumake

Before running ./configure:

$ export PATH=/opt/local/libexec/gnubin:$PATH 
$ export CPPFLAGS=-I/opt/local/include 
$ export LDFLAGS=-L/opt/local/lib

I have added gmake to the install list because when building the Linux toolchaing glibc complains that the system make is too old:

$ make linux
[...]
configure: error:                                                                                                                                                                 
*** These critical programs are missing or too old: make                 
*** Check the INSTALL file for required versions.
make: *** [stamps/build-glibc-linux-headers] Error 1
[...]

$ cat glibc/INSTALL | grep make
[...]
   * GNU 'make' 4.0 or newer
[...]

$ make --version
GNU Make 3.81
Copyright (C) 2006  Free Software Foundation, Inc.
This is free software; see the source for copying conditions.
There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A
PARTICULAR PURPOSE.

This program built for i386-apple-darwin11.3.0

Maybe this issue also happens when building from Homebrew but I cannot test it.

I have tested these building both the Newlib and Linux toolchains on a MacOS 12.6.8 host.

I have added these changes to the README.md file here. If it looks OK I can submit a PR.

@cmuellner
Copy link
Collaborator

Sorry for not responding earlier. Please go ahead and file a PR to adjust the MacOS build instructions as needed.

@TommyMurphyTM1234
Copy link
Collaborator

TommyMurphyTM1234 commented Oct 12, 2024

Unfortunately it seems like none of the active contributors here have access to macOS hardware (Intel or Arm based) in order to analyse/investigate such issues. Until somebody with access to and knowledge of these platforms steps up to help macOS issues will remain in abeyance. In this case the issue was not followed through with a PR to address the specific issue in question. But even such issues seem piecemeal and ideally it would be better if somebody took a systematic approach to teasing out and explaining all of the issues with building the riscv-gnu-toolchain based tools using the relevant tooling (e.g. macOS Intel and Arm, [Home]Brew?, XCode?, MacPorts?, Fink?!? etc.). In the absence of such contributions here the only option that I can think of is to point people in the direction of the xPack Project where I know that @ilg-ul has done a lot of work to establish a stable/reliable build system for macOS (and many other OS targets) and doeument it extensively.

I am inclined to close this issue due to lack of activity and, in particular, the contribution of a suitable PR.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants