Re: Fink on BS with M1 cpu

Alexander Hansen <[email protected]>
Newsgroups gmane.os.apple.fink.general
Message-ID <[email protected]>

> On Jul 25, 2021, at 14:09, Scott Hannahs <[email protected]> wrote:
> 
> 
> 
>> On Jul 25, 2021, at 11:30 AM, Hanspeter Niederstrasser <[email protected] <mailto:[email protected]>> wrote:
>> 
>> On 7/25/21 9:25 AM, Alexander Hansen wrote:
>>>> On Jul 22, 2021, at 3:13 AM, Hanspeter Niederstrasser <[email protected] <mailto:[email protected]>> wrote:
>>>> 
>>>> On 7/17/21 6:35 PM, Scott Hannahs via Fink-users wrote:
>>>>> I know that there are sever problems with running Fink on Big Sur and the issues are beyond my talents to fix the database corruption problem.  But there is a method of installing a dpkg update and bootstrapping Fink on Big Sur. However that does not seem to work for me to install Fink on Big Sur with a new laptop with the M1 processor.
>>>>> Is there are procedure for installing Fink.  I am willing to test debug a few packages but I am stumped on how to proceed.  Simply trying to run fink under rosetta 2 fails since it does not translate some plugins.
>>>>> Can't load '/opt/sw/lib/perl5/5.30.2/darwin-thread-multi-2level/auto/List/Util/Util.bundle' for module List::Util: dlopen(/opt/sw/lib/perl5/5.30.2/darwin-thread-multi-2level/auto/List/Util/Util.bundle, 0x0001): could not use '/opt/sw/lib/perl5/5.30.2/darwin-thread-multi-2level/auto/List/Util/Util.bundle' because it is not a compatible arch at /System/Library/Perl/5.30/XSLoader.pm line 96.
>>>>>  at /opt/sw/lib/perl5/5.30.2/darwin-thread-multi-2level/List/Util.pm line 24.
>>>>> Compilation failed in require at /opt/sw/lib/perl5/5.30.2/darwin-thread-multi-2level/Scalar/Util.pm line 23.
>>>>> Just a question if anyone has gotten past this point.
>>>> 
>>>> The M1 CPU will require more work in getting Fink working (similar to the PPC -> intel transition a decade ago). Like you saw, Rosetta can't translate everything. Right now, I believe only one Fink core person has an M1 machine. I don't know if he's been able to do anything with getting Fink working either bootstrapping or running an existing installation.
>>>> 
>>>> Hanspeter
>>>> 
>>>> 
>>> I haven’t, no.  Let me know where the actual download location for a fink that kind of works on Big Sur is, and I can give it a try.
>> 
>> https://github.com/nieder/fink/tree/dpkg1.16 <https://github.com/nieder/fink/tree/dpkg1.16>
>> 
>> This is the latest that has bits for x86_64 Big Sur. So far, there are no changes committed anywhere that I'm aware of for M1.
>> 
>> Hanspeter
> 
> Right, that is what I used and ran into a problem of wrong architecture.  However, using this hint to make a terminal use Rosetta for all its calls and set the arch to i386, I have Fink running.
> https://dev.to/courier/tips-and-tricks-to-setup-your-apple-m1-for-development-547g <https://dev.to/courier/tips-and-tricks-to-setup-your-apple-m1-for-development-547g>
> 
> Now the trick is to make fink have a call for Arch to all the gcc calls that uses arm64,i386.  This should make all the fink binaries fat.  Then switch over to running fink in the regular terminal.
> 
> -Scott
> 

Thanks for the link.  I may just fork that and add additional remotes (like to thesin’s branch and to the official repository) so that I can keep up with upstream changes and push out anything that I come up with.

This may have changed but I have a recollection that back in the 10.5 days universal builds needed separate i386 and ppc runs, and got stitched together at the end.  That fact, along with the fact that fat builds seemed to be not sufficiently reliable at that time, led us not to do universal builds in our packages.   IIRC our old (even then) dpkg didn’t do multi architecture packages, but dpkg1.16+ can.  

Honestly, I think Big Sur even on Intel is a big enough change that we should just bite the bullet and not worry about an upgrade strategy (if that’s being worked on).

—akh

_______________________________________________
Fink-users mailing list
[email protected]
List archive:
https://sourceforge.net/p/fink/mailman/fink-users/
Subscription management:
https://lists.sourceforge.net/lists/listinfo/fink-users
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.