-
-
Notifications
You must be signed in to change notification settings - Fork 12.6k
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
fpc not installing on macOS 10.12 #5732
Comments
Reproducible, see #5488. I believe it's an upstream issue. They need to acknowledge 10.12 as a valid target. |
Edited title so that people don't go |
I think we should put a @AntonShiryaev I would appreciate it if you can contact the upstream about the 10.12 situation. Please drop a link here if you open an issue on a public issue tracker or post to a mailing list with an archive. |
I just checked and fpc installed from the official image works flawlessly on 10.12. No update to the actual code is necessary. Do you mean fpc by upstream? Because that's almost certainly abandonware. |
The dmg was built on an earlier macOS release. The build products could certainly work on 10.12; it's compiling on 10.12 that's a problem. But I'll see if it's easy to patch. Give me some time.
Last (major) release in November 2015; why are you convinced it's abandonware? |
I see. |
Okay, I looked into it, it's the bootstrap binary that's causing the trouble. Unless there's another way to build it that doesn't involve the bootstrap (I bet there is), I doubt we can rescue it without upstream involvement.
Cool, thanks. |
Reported here. But even if somebody notices and fixes this, they might not release an update anytime soon, going by their track record with 3.1. |
You might be able to convince @ilovezfs to port the El Cap bottle to Sierra (I ran |
Considering the fact that fpc's bug tracker reports version 3.1.1 as being released 2015-11-26, and the version downloadable from brew and their official website is 3.0, I doubt there's much point to relying on upstream for fixes. I would have contacted @ilovezfs, but they have not provided an email address, so unless they see this issue, I doubt they can be of assistance as well. |
No, @ilovezfs is a fellow Homebrew maintainer. |
Yes, I got that. What I meant is that there is little chance of an upstream fix for the issue I opened here reaching anyone. |
Let me make it clear:
That's something we can easily do on our side. Just need a decision. |
That's our decision.
Yeah I'm looking for a 3.1.1 download but can't find it. |
Anyway, (at least the first) problem isn't so much the 3.1.1 release, but rather the 2.6.4 bootstrap binary which doesn't work on 10.12. I'll look into whether we can bypass that after lunch. |
Source code and some builds of 3.1.1 can be downloaded here, but I'm not sure if that's the release or also has all changes made since 2015-11-26. The build dates are recent, though. |
The issue has been updated and a workaround has been provided. I'm not sure whether it can be integrated into Homebrew, though. |
I can't comment on that resolved issue. If you could, please let them know the bootstrap binary doesn't work on 10.12 due to certain libraries moved from
Someone else documented the issue in http://www.pilotlogic.com/sitejoom/index.php/forum/macos-development/3669-cannot-build-fpc-or-ide-on-macos-sierra. |
I repeated your comment more or less verbatim. The fact that someone is responding to the issues at all is somewhat reassuring. |
Interestingly, after you commented, I can comment too now. Update. I see, the status changed to "feedback". |
@zmwangx FreePascal bug tracker has a new commentary the maintainer. I've checked and the library that's missing is indeed present in /usr/lib on my machine, although it may have had FreePascal installed on it at some point in the past. |
@ilovezfs Actually I have (Looks like when I last checked I misread, ran |
Yes, I do. I'm pretty sure I wouldn't be able to even run Homebrew otherwise. I think you need to respond to FreePascal's bug tracker about this, since the maintainer misunderstood the underlying issue. |
Well I'm asking @ilovezfs because it was him who got the I'm pretty sure this is a misunderstanding, and we can set diff --git a/Formula/fpc.rb b/Formula/fpc.rb
index 6f0791f..326d885 100644
--- a/Formula/fpc.rb
+++ b/Formula/fpc.rb
@@ -22,6 +22,7 @@ class Fpc < Formula
resource("bootstrap").stage { fpc_bootstrap.install Dir["*"] }
fpc_compiler = fpc_bootstrap/"ppcuniversal"
+ ENV["MACOSX_DEPLOYMENT_TARGET"] = "10.9"
system "make", "build", "PP=#{fpc_compiler}"
system "make", "install", "PP=#{fpc_compiler}", "PREFIX=#{prefix}"
and verify it works. By the way, I can't comment on the issue because it has been marked as resolved again. |
I'm afraid I'm not entirely certain how to apply your patch, could you please elaborate? |
I've reopened the issue. |
curl -L https://github.com/Homebrew/homebrew-core/pull/5745.diff | git -C "$(brew --repo homebrew/core)" apply
HOMEBREW_NO_AUTOUPDATE=1 brew install -s fpc
git -C "$(brew --repo homebrew/core)" checkout . |
I pasted the whole workaround into a shell script and ran it, and it appears to be compiling. I'll report how it goes. |
There is no Homebrew DSL for requiring the CLT. Things need to be able to build with Xcode alone ;) |
Hi, I installed fpc using your-like method: http://qiita.com/cielavenir/items/069101b97cf22b889bb5#fpc By the way, I do have |
(Googling does find |
Upstream says building and using We should either throw without CLT, or if there's enough demand or a consensus, add a DSL for requiring CLT. That's 10–100 times more lightweight than the Xcode requirement. |
Can you/they elaborate a bit more on why? We had a DSL previously but a CLT requirement is almost always a sign of an upstream buildsystem bug. |
They just need to look for the relevant files in #{sdk}/usr/lib instead of /usr/lib. The requirement is goofy. It was fixable by simply using our el cap bottle as bootstrapper instead of their outdated one. Since Jenkins has CLT installed, we opted for this lighter weight solution but you can see #5741 for a complete fix that renders the CLT unnecessary. |
Bug reports:
FreePascal (formula is "fpc") does not compile on macOS 10.12, reporting 10.12 as an invalid build target parameter.
Gist-log: https://gist.github.com/4de22f53767976bcbdde4a328c500df5

The text was updated successfully, but these errors were encountered: