Skip to content

GAP: "make install" can fail on OS X #40106

@jhpalmieri

Description

@jhpalmieri

Environment

  • OS: OS X 15.4.1
  • Apple M2 chip (Mac mini), also Apple M1 Max chip (Mac studio)
  • Sage Version: 10.7.beta3

With the most recent Xcode, make gap fails when GAP runs its make install step:

[spkg-install] gcc         -pthread -lpthread -L/Users/jpalmier/Sage/TESTING/sage-10.7.beta2/local/lib -L/Users/jpalmier/Sage/TESTING/sage-10.7.beta2/local/lib  build/obj/build/main.c.o  -lgmp -lz -lreadline     -L/Users/jpalmier/Sage/TESTING/sage-10.7.beta2/local/var/tmp/sage/build/gap-4.14.0/src -lgap -o build/gap-install
[spkg-install] error: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/install_name_tool: changing install names or rpaths can't be redone for: build/gap-install (for architecture arm64) because larger updated load commands do not fit (the program must be relinked, and you may need to use -headerpad or -headerpad_max_install_names)

Log files are attached below.

Steps To Reproduce

On two separate OS X machines, most recent (as of May '25) OS and Xcode:

  • make configure && ./configure && make gap fails, with error as given above.

Adding -Wl,-headerpad_max_install_names to LDFLAGS seems to fix this. It would be good to understand what is failing — is it just an undertested make install procedure for GAP, for example?

Config log

config.log

Package logs

gap-4.14.0.log

Additional Information

No response

Checklist

  • I have searched the existing issues for a bug report that matches the one I want to file, without success.
  • I have read the documentation and troubleshoot guide

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions