-
-
Notifications
You must be signed in to change notification settings - Fork 12.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
ghostscript: Fix build error on Apple silicon #58493
Conversation
Does this happen with the |
No Seems that ghostscript is built with its own rules at https://github.com/ArtifexSoftware/ghostpdl/blob/3244573621b1daa2997fbea0c13ce7f891b42203/base/png.mak
Looks for me that there is no configuration to use external libpng. |
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. |
94dd1f2
to
ff2ec87
Compare
Rebased with master branch |
It looks like it's possible to avoid building against vendored libpng if make is called as |
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. |
Has this been reported upstream, and how are they fixing the issue? |
Reported upstream: https://bugs.ghostscript.com/show_bug.cgi?id=703095 The build mechanism actually knows how to handle this, but it's being tripped by not detecting the build triplet correctly. We should patch to include the latest config.guess and config.sub from https://git.savannah.gnu.org/gitweb/?p=config.git I confirm this makes the build pass. |
When build ghostscript on Apple silicon, it fails about compiling arm neon code with following message. ``` ==> make install Last 15 lines from /Users/watson/Library/Logs/Homebrew/ghostscript/02.make: clang: error: linker command failed with exit code 1 (use -v to see invocation) make: *** [bin/gpcl6] Error 1 make: *** Waiting for unfinished jobs.... Undefined symbols for architecture arm64: "_png_init_filter_functions_neon", referenced from: _png_read_filter_row in pngrutil.o ld: symbol(s) not found for architecture arm64 clang: error: linker command failed with exit code 1 (use -v to see invocation) make: *** [bin/gs] Error 1 Undefined symbols for architecture arm64: "_png_init_filter_functions_neon", referenced from: _png_read_filter_row in pngrutil.o ld: symbol(s) not found for architecture arm64 clang: error: linker command failed with exit code 1 (use -v to see invocation) make: *** [bin/gxps] Error 1 ``` This patch updates the config.guess and config.sub files, so the build triplet is correctly detected
ff2ec87
to
281f7c0
Compare
brew install --build-from-source <formula>
, where<formula>
is the name of the formula you're submitting?brew test <formula>
, where<formula>
is the name of the formula you're submitting?brew audit --strict <formula>
(after doingbrew install <formula>
)?When build ghostscript on Apple silicon, it fails about compiling arm neon code with following message.
This patch will disable compiling arm neon of libpng bundled in ghostscript.
Related to Homebrew/brew#7857