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

OSX support #4

Open
KanedaFr opened this issue Feb 11, 2022 · 6 comments
Open

OSX support #4

KanedaFr opened this issue Feb 11, 2022 · 6 comments

Comments

@KanedaFr
Copy link

It took me some hours but I was finally able to build v810-gcc on OSX

I attached the patch if you need it ;)
v810_gcc_for_OSX.patch.zip

some notes:

--disable-werror is needed because sbrk is no longer available on OSX
--build=x86_64-apple-darwin20 is needed because it is unable to autodetect build typeOSX...I don't know how to customize it by OS

I used the downloaded mpfr / gmp / mpc and not the one on systems
--with-mpfr-include=$TOPDIR/gcc-4.7.4/mpfr/src
--with-mpfr-lib=$TOPDIR/build/gcc/mpfr/src/.libs
is not OSX only, it is needed for anyone who want to do the same, because mpfr 3.1 changed is tree, make it not compatible with what gcc is looking for ;)

HTH, I can't wait to play with PCFX !!

@jbrandwood
Copy link
Owner

Thank you, I'll see if these can be integrated into the new changes that I'm making.

One thing to note ... is that I'm not sure what the problem is that you're having with mpfr, because I have no problem building V810-GCC 4.7.4 or V810-GCC 4.9.4 on Windows with the latest version of mpr.

Do you mean that OSX has an earlier version of mpfr?

Best wishes,

John

@jbrandwood
Copy link
Owner

OK, I have the build scripts modified to download the extra libraries and integrate them into the source on the Mac, but my tester with a Mac is still having trouble building, and I think that he's doing it from Xcode.

Did you manage to build within Xcode, or are you using something like a MacPorts or Brew environment instead?

@KanedaFr
Copy link
Author

KanedaFr commented Mar 6, 2022

Hi,
Sorry for the late reply.

About mpfr, like i said in 3.x version, the source files are no longer on mpfr root folder but on a src sub folder.
Configuration of GCC 4.x was made for mpfr 2.x.
If you don't want or can't use the one installed on your system, but the source from the downloaded archive, you have to set the mpfr source and lib paths.

Yes, I use brew's GCC. Apple's GCC is a pre historic version.

Regards

@jbrandwood
Copy link
Owner

Thank you for the information!

Best wishes,

John

@jbrandwood
Copy link
Owner

FWIW, I just checked again, and mpfr3+ is building fine inside the GCC tree with the currently-in-testing GCC4.9, so I guess that they must have fixed something since GCC4.7 :-)

@KanedaFr
Copy link
Author

KanedaFr commented Mar 8, 2022

Great!
I was unable to find a clean way to handle the 2 options (--with-mpfr-include and --with-mpfr-lib) for every case.
If it's no longer needed, you don't need to edit the makefile.

I saw your last commit was about 4.9.4, should I try it ? or wait for official release ?

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