-
Notifications
You must be signed in to change notification settings - Fork 65
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
setup: make gcc
step fails when homebrew is not installed in /usr/local
#203
Comments
unless someone donates me such a platform, I can't support it. Maybe someone else steps in!? |
Understood. Sorry I'm not able to be much help here, I'm a bit sketchy on how configure works at all 😳 If someone can explain to me how the process "decides" that there's no valid GMP I could probably dig further to see what "test" is failing on this system. Is it as simple as checking for the presence of a header ? Or is there some version number check somehow ? In other words, what specially leads GCC to decide there's no valid GMP ? |
look at the end of config.log in the gcc's build folder. |
maybe you can install isl to use that prebuilt isl version? |
is that something I would do through homebrew ? |
yes, sir. |
So many moving parts. I take my hat off to you that it works so well on Intel :-) |
uhm - out of ideas - maybe it works, if you also build mpfr, mfc and gmp yourself? use contrib/download_prerequisites to do that |
Yup, tried that too :-) |
Guess we'll leave it for someone who knows what they are doing and has an M1 |
that |
yup. You have the brains and I have the hardware. I guess they'll get more common over time. Oh. One thing that does suddenly occur to me actually is that my intel MBP is on 10.15 and my M1 is 11.2 🤦 So maybe its BigSur related rather than M1 related. 💡 |
I just read this: |
Read it where ? |
OK I'm. little closer. Its not an ARM issue per se. https://github.com/bebbo/amiga-gcc/blob/master/Makefile#L402-L405 These lines seem to set up gcc to find gmp etc in the homebrew locations. Trouble is Homebrew installs in In other words, if homebrew is installed anywhere other than If I manually change the those lines to point to Yay! When it comes to the So. Given I can correct the lines in the amiga-gcc/Makefile to pass the right stuff for ARM during the |
gmake all
step fails building gcc on Apple M1make gcc
step fails when homebrew is not installed in /usr/local
Hi Stefan,
I've run through your instructions successfully on both my intel Macs using homebrew but I just tried on an M1 Mac and hit an issue configuring/building gcc. It complains about gmp.h not being found.
I have checked homebrew and on both Intel and M1 it sports version 6.2.1 of GMP installed with no caveats or issues.
After hitting the wall on
gmake all
and trying some googling I saw some suggestions for runningcontrib/download_prerequisites
which I tried. Got past theconfigure gcc
step and intomake gcc
at which point I hit a similar error "configuring in mpfr", which also complained about gmp.I'm afraid I'm a bit new to this kind of GNU wizardry so may not be much help in answering further questions, but happy to try or send you the logs I have.
As I say, homebrew seemed happy on both platforms and all worked fine on my intel Macs.
The text was updated successfully, but these errors were encountered: