Skip to content
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

The build process fails on Intel-based macOS platforms #745

Open
HongLuDianXue opened this issue Feb 28, 2025 · 3 comments
Open

The build process fails on Intel-based macOS platforms #745

HongLuDianXue opened this issue Feb 28, 2025 · 3 comments

Comments

@HongLuDianXue
Copy link

I've attempted multiple times, but consistently receive the following error messages:

Image
       ......
       Compiling univint/src/vBLAS.pas
       Compiling univint/src/vDSP.pas
       Compiling univint/src/xattr.pas
       Compiling univint/src/GPCStrings.pas
       Compiling univint/src/MacOSAll.pas
[ 64%] Compiled package univint
make[1]: *** [packages_smart] Error 2
make: *** [build-stamp.x86_64-darwin] Error 2
The installer encountered the following error:
Error inside worker thread for package rtl-objpas: Compilation of "BuildUnit_rtl_objpas.pp" failed

fpcupdeluxe: ERROR: FPC Native Installer (BuildModule: FPC): Error running /usr/bin/make for FPC failed with exit code 512
. Details: .


ERROR: Fpcupdeluxe fatal error !
Sequencer (FPC): Failure running fpcupdeluxe: error executing sequence FPC
Sequencer (Default): Failure running fpcupdeluxe: error executing sequence Default
......
info: FPC Native Installer (GetModule: FPC): No FPC patches defined.
info: FPC Native Installer (BuildModule: FPC): Going to build FPC.
info: FPC Native Installer (BuildModule: FPC): Detected source version FPC (source): 3.2.2.
info: FPC Native Installer (BuildModule: FPC): To compile this FPC, we need (required) a compiler with version 3.2.0 or 3.2.2.
info: FPC Native Installer (BuildModule: FPC): Looking for a bootstrap compiler from Github FPCUP(deluxe) releases.
info: FPC Native Installer (BuildModule: FPC): Looking online for a FPCUP(deluxe) bootstrapper with name: fpcup-3_2_2-x86_64-darwin-ppcx64.
info: FPC Native Installer (BuildModule: FPC): Success: found a FPCUP(deluxe) bootstrapper with version 3.2.2.
info: FPC Native Installer (BuildModule: FPC): Got a bootstrap compiler from FPCUP(deluxe) provided bootstrapper binaries.
info: FPC Native Installer (BuildModule: FPC): Check if we already have a bootstrap compiler with version 3.2.2.
info: FPC Native Installer (BuildModule: FPC): No correct bootstrapper. Going to download new bootstrapper.
info: FPC Native Installer (GetFile): Downloading fpcup-3_2_2-x86_64-darwin-ppcx64.
info: FPC Native Installer (BuildModule: FPC): To compile this FPC, we will use a fresh compiler with version : 3.2.2.
info: FPC Native Installer (BuildModuleCustom: FPC): Using FPC bootstrap compiler with version: 3.2.2.
info: FPC Native Installer (BuildModuleCustom: FPC): Running CleanModule once more, due to previous clean failure.
info: FPC Native Installer (CleanModule: FPC): Running make distclean twice.
info: FPC Native Installer (CleanModule: FPC): Removal of stale build files and directories for x86_64-darwin. May take a while.
info: FPC Native Installer (BuildModule: FPC): Now building FPC.
Start of compile error summary.
rtl-objpas/units/x86_64-darwin/rtti.s:12:1: error: non-private labels cannot appear between .cfi_startproc / .cfi_endproc pairs
Start of compile error summary.
rtl-objpas/units/x86_64-darwin/rtti.s:6:1: error: previous .cfi_startproc was here
Start of compile error summary.
rtti.pp(4361) Error: Error while assembling exitcode 1
Start of compile error summary.
rtti.pp(4361) Fatal: There were 2 errors compiling module, stopping
rtti.pp(4361) Error: Error while assembling exitcode 1
Start of compile error summary.
Fatal: Compilation aborted
rtti.pp(4361) Fatal: There were 2 errors compiling module, stopping
Start of compile error summary.
Start of compile error summary.
ERROR: FPC Native Installer (BuildModule: FPC): Error running /usr/bin/make for FPC failed with exit code 512
. Details: .
fpcupdeluxe: Done !!
@HongLuDianXue
Copy link
Author

macOS version: 15.3.1 (24D70)

@rcla
Copy link
Contributor

rcla commented Feb 28, 2025

This is not a fpcupdeluxe problem, it is an FPC problem with the latest version of MAC OS (Sequoia)

It has been discussed on the forum:
https://forum.lazarus.freepascal.org/index.php/topic,69380.0.html
https://forum.lazarus.freepascal.org/index.php/topic,70164.0.html
https://forum.lazarus.freepascal.org/index.php/topic,68730.0.html

And in the FPC bug-tracker:
https://gitlab.com/freepascal.org/fpc/source/-/issues/41045

It has been fixed in the FPC trunk.
https://gitlab.com/freepascal.org/fpc/source/-/commit/e749c81040070d3e8cb0c070e6e63f2f9b54fef4

You have to wait for FPC to fix it in the "stable" branch or in the next version 3.2.4

@Wilko500
Copy link

Wilko500 commented Mar 2, 2025

I have just updated my 2015 MacBook Pro (macOS Monterey) to MacOs Sequoia 15.3.1 with Xcode 16.2. In testing I have experienced this problem. At first I suspected that the upgrade process was at fault, I had great difficulty in getting Xcode to install, and after many failed attempts I found this post.

I can confirm that I have successfully used FPCUpdeluxe to install trunk versions of FPC and Lazarus.

Lazarus version: 4.99
Lazarus revision: main_4_99-1435-g99f2947c48
Lazarus build date: 2025/03/02 22:40:41
Lazarus was compiled for x86_64-darwin
Lazarus was compiled with FPC 3.3.1

The additional observation I have is that the FPCUpdeluxe process took a very long time, about 3 time as long as it did on macOS Monterey. I was not expecting this so did not actually do any timings. It would be interesting to know if others have noticed this apparent slowness under Sequoia.

I am very grateful for the fix, thank you

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants