[sage-devel] Re: Linker failure for gap_packages on arm64 macOS 15.3

2025-02-01 Thread Dima Pasechnik
The most meaningful fix is to upgrade GAP to 4.14.1, where this should not happen. See https://github.com/sagemath/sage/issues/39421 On Wednesday, January 29, 2025 at 10:16:23 AM UTC-6 marc@gmail.com wrote: > Wish Sage 10.6beta4 On an M1 macOS 15.3 system with CommandLineTools > 16.2.0.0.1

Re: [sage-devel] Re: Linker failure for gap_packages on arm64 macOS 15.3

2025-01-29 Thread Marc Culler
Correction: The first two bullets were for arm, not for intel. I.e. On macOS, arm64: * the gap executable loads libgap in SageMath 10.4, 10.5 and 10.6. * crypting.so loads libgap in SageMath 10.4 and 10.6 but not 10.5. On macOS x86_64 : * the gap executable loads libgap in SageMath 10.4, 10.5

Re: [sage-devel] Re: Linker failure for gap_packages on arm64 macOS 15.3

2025-01-29 Thread Marc Culler
On macOS, with both arm64: and x86_64 * the gap executable loads libgap in SageMath 10.4, 10.5 and 10.6. * crypting.so loads libgap in SageMath 10.4 and 10.6 but not 10.5. On macOS x86_64 : * the gap executable loads libgap in SageMath 10.4, 10.5 and 10.6. * crypting.so loads libgap in SageMath

Re: [sage-devel] Re: Linker failure for gap_packages on arm64 macOS 15.3

2025-01-29 Thread Dima Pasechnik
On Wed, Jan 29, 2025 at 4:35 PM Marc Culler wrote: > > Looking back at the failed command I actually think this is a clang bug which > has nothing to do with GAP. The relevant option is: > -bundle_loader /private/var/tmp/sage-10.6-current/local/bin/gap > I think that option is broken in the late

Re: [sage-devel] Re: Linker failure for gap_packages on arm64 macOS 15.3

2025-01-29 Thread Dima Pasechnik
On Wed, Jan 29, 2025 at 3:16 PM Antonio Rojas wrote: > > See > https://web.archive.org/web/20201218114127/https://trac.sagemath.org/ticket/27372 > for some previous discussion about this This discussion in #27372 (more up to date copy: https://github.com/sagemath/sage/issues/27372) is misleadin

Re: [sage-devel] Re: Linker failure for gap_packages on arm64 macOS 15.3

2025-01-29 Thread Antonio Rojas
See https://web.archive.org/web/20201218114127/https://trac.sagemath.org/ticket/27372 for some previous discussion about this El miércoles, 29 de enero de 2025 a las 21:43:36 UTC+1, marc@gmail.com escribió: > On Wed, Jan 29, 2025 at 1:33 PM Dima Pasechnik wrote: > >> >> libgap is not re

Re: [sage-devel] Re: Linker failure for gap_packages on arm64 macOS 15.3

2025-01-29 Thread Marc Culler
On Wed, Jan 29, 2025 at 1:33 PM Dima Pasechnik wrote: > > libgap is not really involved here; > cypring's GAP kernel module > (that's what's compiled here) can be loaded either in libgap, or in > gap executable - and the latter > isn't linked to libgap. I am no expert in GAP. But the code in

Re: [sage-devel] Re: Linker failure for gap_packages on arm64 macOS 15.3

2025-01-29 Thread Dima Pasechnik
On Wed, Jan 29, 2025 at 11:52 AM Marc Culler wrote: > > I don't have time for that right now. But I will provide a patch for the > 1-line fix that I used: > > diff --git a/build/pkgs/gap_packages/spkg-install.in > b/build/pkgs/gap_packages/spkg-install.in > index 7005cc3d322..157e093d86b 100644

Re: [sage-devel] Re: Linker failure for gap_packages on arm64 macOS 15.3

2025-01-29 Thread Dima Pasechnik
On Wed, Jan 29, 2025 at 11:39 AM Marc Culler wrote: > > The missing symbols are defined in libgap and I was able to build > gap_packages after adding -lgap to LDFLAGS in spkg-install.in. yes, I can reproduce this with the latest beta5, on Apple clang version 16.0.0 (clang-1600.0.26.4), on an arm6

Re: [sage-devel] Re: Linker failure for gap_packages on arm64 macOS 15.3

2025-01-29 Thread Marc Culler
I don't have time for that right now. But I will provide a patch for the 1-line fix that I used: diff --git a/build/pkgs/gap_packages/spkg-install.in b/build/pkgs/gap_packages/spkg-install.in index 7005cc3d322..157e093d86b 100644 --- a/build/pkgs/gap_packages/spkg-install.in +++ b/build/pkgs/gap_

[sage-devel] Re: Linker failure for gap_packages on arm64 macOS 15.3

2025-01-29 Thread Marc Culler
The missing symbols are defined in libgap and I was able to build gap_packages after adding -lgap to LDFLAGS in spkg-install.in. - Marc On Wednesday, January 29, 2025 at 10:16:23 AM UTC-6 Marc Culler wrote: > Wish Sage 10.6beta4 On an M1 macOS 15.3 system with CommandLineTools > 16.2.0.0.1.173