Forum > macOS / Mac OS X

Cannot rebuild v2.0.0RC2 IDE under macOS 10.14.1 [SOLVED]

(1/2) > >>

carl_caulkett:
macOS 10.14.1 Mojave
Lazarus v2.0.0RC2
FPC 2.0.4

Hello, after a gap of a few months I've just tried to upgrade my copy of Lazarus to v2.0.0RC2. I've just tried to rebuild my IDE, but I'm getting the following message...

Any ideas what the problem might be?

I should point out that I have updated Xcode to Version 10.1 (10B61) in the last couple of days to enable my latest version of Golang to be installed. I would be most displeased if this move meant that Lazarus wouldn't operate properly.

Jonas Maebe:
You need to upgrade to FPC 3.0.4a.

carl_caulkett:
I sorted out the problem by a series of steps...

1. I uninstalled Xcode completely.
2. I reinstalled Xcode from the AppStore
3. I ran `sudo ln -s /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/lib/crt1.10.5.o  /usr/lib/crt1.10.5.o` from the command line.
4. I ran `sudo ln -s /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/lib/crt1.o  /usr/lib/crt1.o` from the command line.
5. I used `fpc hello.pas` where `hello.pas` contained just

--- Code: Pascal  [+][-]window.onload = function(){var x1 = document.getElementById("main_content_section"); if (x1) { var x = document.getElementsByClassName("geshi");for (var i = 0; i < x.length; i++) { x[i].style.maxHeight='none'; x[i].style.height = Math.min(x[i].clientHeight+15,306)+'px'; x[i].style.resize = "vertical";}};} ---begin  writeln('hello');end. to confirm that steps 3 and 4 worked.
6. I rebuilt the IDE using `Tools -> Build Lazarus with Profile: Normal IDE`
7. Breathed huge sigh of relief when all of my previous installed packages and IDE changes were restored!

Big thanks to @laguna who provided the forum post which provided step 3 and from which I was able to suss out step 4.

carl_caulkett:

--- Quote from: Jonas Maebe on December 05, 2018, 10:31:52 pm ---You need to upgrade to FPC 3.0.4a.

--- End quote ---

Interesting. Would that remove the need for the steps that I described in my previous post?

Jonas Maebe:

--- Quote from: carl_caulkett on December 05, 2018, 10:38:38 pm ---
--- Quote from: Jonas Maebe on December 05, 2018, 10:31:52 pm ---You need to upgrade to FPC 3.0.4a.

--- End quote ---

Interesting. Would that remove the need for the steps that I described in my previous post?

--- End quote ---
Yes.

Navigation

[0] Message Index

[#] Next page

Go to full version