Re: Fink for Ventura / Xcode 15?
Hanspeter Niederstrasser <[email protected]>
| Newsgroups | gmane.os.apple.fink.general |
|---|---|
| Organization | Snaggled Works |
| Message-ID | <[email protected]> |
On 9/23/23 1:01 PM, Scott Hannahs via Fink-users wrote: >> On Feb 26, 2023, at 9:37 PM, Hanspeter Niederstrasser <[email protected]> wrote: >> >> On 11/10/22 12:52 PM, Scott Hannahs via Fink-users wrote: >>> It has been mentioned here a couple of times. Here are my Fink notes on installing in Big Sur but it is the same for Monterey and I think it also works on Ventura but haven’t tried that. There is also a note on running on M1 Macs that works for me. >>> -Scott >>> Fink Notes >>> Installation on Big Sur >>> mkdir ~/src >>> cd ~/src >>> git clone https://github.com/TheSin-/fink >>> cd fink >>> git checkout dpkg1.16 >>> ./bootstrap >>> To run on M1 CPUs: >>> Copy Terminal.app to ~/Applications and rename Terminal-Rosetta.app >>> Get info on Terminal-Rosetta >>> Check box to “Open with Rosetta” >>> Use this version of Terminal to install and run Fink and installed files. >> >> This is an old thread, but wanted to mention that as of early January 2023, the dpkg1.16 branch from TheSin- knows about Apple silicon. So it's no longer necessary to run Terminal under Rosetta. >> >> If you don't have Fink installed (or you want to install to a new tree), follow the above instructions through the `./bootstrap` command. >> >> If you already have a git checkout and want to update it, cd to the right directory and run `git pull` to fetch the latest code. You can then run `./inject.pl` to update an existing Fink install. >> >> HOWEVER (very important), I don't know what will happen if you try to run the updated Fink on an M1/M2 system that was originally set up as being x86_64 emulation and has now been converted to run natively. My guess is that something will break. If that's the case, I would recommend starting from scratch as true arm64 w/out Rosetta's emulation. >> >> Hanspeter > > Hanspeter, > > This is good news. I missed that notation of the merge. Here is the sequence of commands I used: >> % git clone https://github.com/fink/fink >> >> Cloning into 'fink'... >> remote: Enumerating objects: 36399, done. >> remote: Counting objects: 100% (1009/1009), done. >> remote: Compressing objects: 100% (485/485), done. >> remote: Total 36399 (delta 582), reused 927 (delta 518), pack-reused 35390 >> Receiving objects: 100% (36399/36399), 11.87 MiB | 26.59 MiB/s, done. >> Resolving deltas: 100% (23933/23933), done. >> % cd fink >> % git checkout master >> Already on 'master' >> Your branch is up to date with 'origin/master'. >> % sudo ./bootstrap > > > However, this sequence doesn’t work on MacOS 13.6 / Xcode 15.0 for installing a new fink. It seems that the C compiler is determined to be non-working! Xcode and CLT are both version 15.0. And build jobs is set to 1. > >> ./configure --prefix=/opt/sw/bootstrap --with-finkvirtuals=/opt/sw/bootstrap/bin/fink-virtual-pkgs --with-dpkg-env-script=/opt/sw/bootstrap/bin/init.sh --disable-dselect --disable-start-stop-daemon --with-admindir=/opt/sw/var/lib/dpkg --mandir=/opt/sw/bootstrap/share/man --infodir=/opt/sw/bootstrap/share/info --sysconfdir=/opt/sw/bootstrap/etc --sbindir=/opt/sw/bootstrap/sbin --localstatedir=/opt/sw/var --with-zlib --without-liblzma --with-bz2 --srcdir=/opt/sw/src/fink.build/dpkg-bootstrap-1.19.7-1/dpkg-1.19.7 --build=x86_64-apple-darwin --disable-linker-optimisations --with-dpkg-deb-compressor=gzip PERL_LIBDIR=/opt/sw/bootstrap/lib/perl5 PERL=/usr/bin/perl TAR=/opt/sw/bootstrap/bin/tar >> configure: WARNING: unrecognized options: --with-finkvirtuals, --with-zlib, --with-bz2, --disable-linker-optimisations >> checking for gcc... gcc >> checking whether the C compiler works... no >> configure: error: in `/opt/sw/src/fink.build/dpkg-bootstrap-1.19.7-1/dpkg-1.19.7': >> configure: error: C compiler cannot create executables >> See `config.log' for more details >> ### execution of ./configure failed, exit code 77 >> phase compiling: dpkg-bootstrap-1.19.7-1 failed >> ... >> Also include the following system information: >> Package manager version: 0.45.99.git >> Distribution version: selfupdate-point (bootstrap), 13.0, x86_64 >> Trees: local/main stable/main >> Xcode.app: 15.0 >> Xcode command-line tools: 15.0.0.0.1.1694021235 >> Max. Fink build jobs: 1 > > > I ran bootstrap as root ie “sudo ./bootstrap”, when building dpkg configure seems to claim that gcc can NOT create an executable??? There are some other warnings that configure does not seem to recognize some options. I have emphasized both lines above. The config.log file in "/opt/sw/src/fink.build/dpkg-bootstrap-1.19.7-1/dpkg-1.19.7” ends with the following lines: > >> target_alias='' >> >> ## ----------- ## >> ## confdefs.h. ## >> ## ----------- ## >> >> /* confdefs.h */ >> #define PACKAGE_NAME "dpkg" >> #define PACKAGE_TARNAME "dpkg" >> #define PACKAGE_VERSION "1.19.7" >> #define PACKAGE_STRING "dpkg 1.19.7" >> #define PACKAGE_BUGREPORT "[email protected]" >> #define PACKAGE_URL "https://wiki.debian.org/Teams/Dpkg" >> >> configure: exit 77 > > Any hints as to why this is happening? Did Xcode/CLT 15 screw things up again? They seem to have the executables in the normal path. >> % cc --version >> Apple clang version 15.0.0 (clang-1500.0.40.1) >> Target: x86_64-apple-darwin22.6.0 >> Thread model: posix >> InstalledDir: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin You want a part earlier in config.log. Search for the string "checking whether the C compiler works" and then read down for the actual error that led configure to declare "C compiler cannot create executables". Also, there's been a couple updates to deal with macOS 13.6 and 12.7 in git, so make sure you have git checkout that's up to date (via git pull). Hanspeter -- Ad Astra _______________________________________________ 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