compiling program on M1 chip

Post Reply
User avatar
plantenkennis
Posts: 166
Joined: Wed Nov 25, 2015 7:13 pm
Location: the Netherlands
Contact:

compiling program on M1 chip

Post by plantenkennis »

Hello,
I have bought a new laptop with a M1-chip. Now when I run 'make' I get the following error:

Code: Select all | Expand


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
User avatar
Antonio Linares
Site Admin
Posts: 42398
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain
Has thanked: 10 times
Been thanked: 47 times
Contact:

Re: compiling program on M1 chip

Post by Antonio Linares »

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
User avatar
Antonio Linares
Site Admin
Posts: 42398
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain
Has thanked: 10 times
Been thanked: 47 times
Contact:

Re: compiling program on M1 chip

Post by Antonio Linares »

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
User avatar
goosfancito
Posts: 1955
Joined: Fri Oct 07, 2005 7:08 pm

Re: compiling program on M1 chip

Post by goosfancito »

plantenkennis wrote:Hello,
I have bought a new laptop with a M1-chip. Now when I run 'make' I get the following error:

Code: Select all | Expand

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/
Post Reply