# Error in FreeFEM 4.14 installation on Apple M3

**URL:** https://community.freefem.org/t/error-in-freefem-4-14-installation-on-apple-m3/2844
**Category:** FreeFEM installation
**Created:** [December 21, 2023, 11:11pm UTC](https://community.freefem.org/t/error-in-freefem-4-14-installation-on-apple-m3/2844 "2023-12-21T23:11:15Z")
**Posts on this page:** 6
**Page:** 1

<div class="post-metadata">

### Author: ![KBarrett](https://avatars.discourse-cdn.com/v4/letter/k/96bed5/32.png) [@KBarrett](https://community.freefem.org/u/KBarrett)
#### Post date: [December 21, 2023, 11:11pm UTC](https://community.freefem.org/t/error-in-freefem-4-14-installation-on-apple-m3/2844/1 "2023-12-21T23:11:15Z")

</div>

Hello, I am trying to install FreeFEM v4.14 on my Mac (OS Sonoma 14.1 on M3 Max) and everything seems to compile successfully:

 ![image](https://canada1.discourse-cdn.com/flex030/uploads/freefem/original/2X/8/808ceba67d4db450f0a762a99a962d8ee4415e63.png)

But when I do `make -j16 check`, 9 examples fail. The test-suite.log is attached for reference.  
[test-suite.log](https://community.freefem.org/uploads/short-url/ibyB72SoZUkrz4rUKy4RMQ6mBp8.log) (53.5 KB)

Can someone please explain what the issue could be and how I can successfully install. Thanks.

Regards,  
Kaela

---

<div class="post-metadata">

### Author: ![frederichecht](https://yyz2.discourse-cdn.com/flex030/user_avatar/community.freefem.org/frederichecht/32/15_2.png) [@frederichecht](https://community.freefem.org/u/frederichecht)
#### Post date: [December 24, 2023, 4:01pm UTC](https://community.freefem.org/t/error-in-freefem-4-14-installation-on-apple-m3/2844/2 "2023-12-24T16:01:44Z")

</div>

I sorry, I have compile freefem 4.14 under ventura, and the version work!  
I can not say something , but on sonoma I have big problem with fortran.

Can you launch a buggus case under lldb to see where is the problem (in with library).

---

<div class="post-metadata">

### Author: ![prj](https://avatars.discourse-cdn.com/v4/letter/p/ecae2f/32.png) [@prj](https://community.freefem.org/u/prj)
#### Post date: [December 24, 2023, 4:54pm UTC](https://community.freefem.org/t/error-in-freefem-4-14-installation-on-apple-m3/2844/3 "2023-12-24T16:54:02Z")

</div>

Deinstall GSL and it will work alright.

---

<div class="post-metadata">

### Author: ![KBarrett](https://avatars.discourse-cdn.com/v4/letter/k/96bed5/32.png) [@KBarrett](https://community.freefem.org/u/KBarrett)
#### Post date: [December 25, 2023, 6:56pm UTC](https://community.freefem.org/t/error-in-freefem-4-14-installation-on-apple-m3/2844/4 "2023-12-25T18:56:48Z")

</div>

Hi prj,

I tried that, and tried reinstalling the FreeFem dependencies and redoing the the FF compilation:

 ![image](https://canada1.discourse-cdn.com/flex030/uploads/freefem/original/2X/b/be132f17dc2c294a3c6b41a42a4f6d5e45185082.jpeg)

but now I keep getting this error when I do `make -j16`

 ![image](https://canada1.discourse-cdn.com/flex030/uploads/freefem/original/2X/1/104896ddec4798fb5e31e4704591f919a6d10ed3.jpeg)

My initial thought is that the issue might be a library linking problem, because I see `ld: warning: dylib (/usr/local/ff-petsc/r/lib/libparpack.dylib) was built for newer macOS version (14.1) than being linked (14.0)` when I `make petsc-slepc`. So I tried including the argument `cflags=-mmacosx-version-min=14.0` (based on what I saw on other online forums) in the configuration, but that doesn’t work. I’ve attached my config.log for reference.

Please advise. Thanks.

- Kaela.  
[config.log](https://community.freefem.org/uploads/short-url/oEdlTY5Wmhu0K70nWX0c9qY8R4I.log) (151.8 KB)

---

<div class="post-metadata">

### Author: ![KBarrett](https://avatars.discourse-cdn.com/v4/letter/k/96bed5/32.png) [@KBarrett](https://community.freefem.org/u/KBarrett)
#### Post date: [December 29, 2023, 9:53pm UTC](https://community.freefem.org/t/error-in-freefem-4-14-installation-on-apple-m3/2844/5 "2023-12-29T21:53:59Z")

</div>

Hi prj & Frédéric,

I solved the issue I had installing my FF on Mac OS Sonoma (14.1), and thought it good to share here for anyone who might have a similar issue (and perhaps something for the FF dev team to look into).

As previously mentioned, I had multiple library linking warnings when trying to ‘make’ FF, then failure. Upon further investigation, the root of the issue seems to be the new Xcode 15 linker ([Xcode 15 Release Notes | Apple Developer Documentation](https://developer.apple.com/documentation/xcode-release-notes/xcode-15-release-notes#Linking)). I modified the FF Makefile to set the linker to the classic linker (`LDFLAGS = -ld_classic`) instead of the new default Xcode linker. Apparently you can also use the flag `-ld64` to request the classic linker.

The FF build was successful and passed the make checks after this adjustment. The linker still prints many warnings but they are harmless. This modification might be important because older versions of Xcode cannot run on macOS Sonoma, so you don’t have much of a choice if your computer is new.

Hope this helps someone.  
Kaela.

---

<div class="post-metadata">

### Author: ![prj](https://avatars.discourse-cdn.com/v4/letter/p/ecae2f/32.png) [@prj](https://community.freefem.org/u/prj)
#### Post date: [December 30, 2023, 6:55am UTC](https://community.freefem.org/t/error-in-freefem-4-14-installation-on-apple-m3/2844/6 "2023-12-30T06:55:35Z")

</div>

You need to use this flag (`LDFLAGS=-Wl,-ld_classic`) since Xcode 15. It was supposed to be fixed by Apple in version 15.1, but it still isn’t. Maybe it will be OK with Xcode 15.2 (which beta was released this December).
