You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I guess the problem is that ar is being given the absolute paths of each object file, and the path to the directory that MacPorts builds happen in is rather long to begin with. Could the Makefile call ar with relative paths to the objects, perhaps even just the filenames?
On macOS there is an issue with length of
ar
arguments: I get an errorar: Argument list too long
.I made a fix, but it is quite ugly :)
I had to split the target here: https://github.com/macports/macports-ports/blob/1c8cb98aa54e71148f4a5c416a6c82adb20f5a00/math/AlphaSparse/files/0010-Makefile.tail-split-lib-target-to-fix-ar-error.patch
And also re-shuffle files from plain/kernel: https://github.com/macports/macports-ports/blob/1c8cb98aa54e71148f4a5c416a6c82adb20f5a00/math/AlphaSparse/Portfile#L42
Can it be fixed in a neater way?
The text was updated successfully, but these errors were encountered: