bebbo / amiga-gcc

The GNU C-Compiler with Binutils and other useful tools for cross development for Amiga
GNU General Public License v2.0
312 stars 66 forks source link

Cannot build on MacOS due to CC_FOR_BUILD error #373

Closed hitman-codehq closed 4 months ago

hitman-codehq commented 8 months ago

When following the instructions in https://github.com/bebbo/amiga-gcc/issues/367 and running contrib/download_prerequisites to download the right version of isl, I get the following error when building on MacOS:

checking how to run the C preprocessor... gcc -E
checking build system compiler gcc... no
configure: error: Specified CC_FOR_BUILD doesn't seem to work
gmake[1]: *** [Makefile:4561: configure-gmp] Error 1
make gcc...failed

There is no other useful information given. Any ideas?

This ISL problem seems to be causing issues for quite a few people. Should we patch the source to GCC so that it works with the new version?

make gcc.log

bebbo commented 8 months ago

try export CC_FOR_BUILD=/path/to/working/gcc and use the path that matches your system.

seems to be some Xcode problem, similar as here: https://github.com/ghaerr/elks/issues/774