FiveTech Support Forums

FiveWin / Harbour / xBase community
Board index FiveMac / FivePhone (iPhone, iPad) compiling program on M1 chip
Posts: 166
Joined: Wed Nov 25, 2015 07:13 PM
compiling program on M1 chip
Posted: Tue Mar 22, 2022 09:28 AM
Hello,
I have bought a new laptop with a M1-chip. Now when I run 'make' I get the following error:
Code (fw): Select all Collapse
xcrun: error: unable to load libxcrun (dlopen(/Applications/Xcode.app/Contents/Developer/usr/lib/libxcrun.dylib, 0x0005): tried: '/Applications/Xcode.app/Contents/Developer/usr/lib/libxcrun.dylib' (mach-o file, but is an incompatible architecture (have 'x86_64', need 'arm64e')), '/usr/lib/libxcrun.dylib' (no such file)).

How can I build a program on a M1 chip.
Kind regards,



René Koot
Posts: 44158
Joined: Thu Oct 06, 2005 05:47 PM
Re: compiling program on M1 chip
Posted: Tue Mar 22, 2022 11:22 AM

Dear René,

We are going to check it

Is there a chance that you could provide me remote access to your M1 mac ?

regards, saludos

Antonio Linares
www.fivetechsoft.com
Posts: 44158
Joined: Thu Oct 06, 2005 05:47 PM
Re: compiling program on M1 chip
Posted: Tue Mar 22, 2022 05:14 PM

Dear Rene,

It seems as you restored xcode from Time Machine, thats why it does not work as it is, and a new xcode installation is required (M1 architecture is arm)

Once finished, we will rebuild Harbour and FiveMac and it should be working fine again :)

regards, saludos

Antonio Linares
www.fivetechsoft.com
Posts: 1956
Joined: Fri Oct 07, 2005 07:08 PM
Re: compiling program on M1 chip
Posted: Sun Dec 24, 2023 10:56 AM
plantenkennis wrote:Hello,
I have bought a new laptop with a M1-chip. Now when I run 'make' I get the following error:
Code (fw): Select all Collapse
xcrun: error: unable to load libxcrun (dlopen(/Applications/Xcode.app/Contents/Developer/usr/lib/libxcrun.dylib, 0x0005): tried: '/Applications/Xcode.app/Contents/Developer/usr/lib/libxcrun.dylib' (mach-o file, but is an incompatible architecture (have 'x86_64', need 'arm64e')), '/usr/lib/libxcrun.dylib' (no such file)).
How can I build a program on a M1 chip.
Hello Rene, I want to communicate with you that you are developing in mac and fivewin, my email is gusmavf at gmail dot com. thanks.
FWH 21.02
Harbour 3.2.0dev (r2104281802)
Copyright (c) 1999-2021, https://harbour.github.io/

Continue the discussion