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 · 1 comment
Open

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

pilonsi opened this issue Sep 18, 2023 · 1 comment

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.

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

2 participants