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

Error: Util aarch64-apple-darwin19-strip not found, switching to external linking #743

Open
han-k59 opened this issue Feb 15, 2025 · 0 comments

Comments

@han-k59
Copy link

han-k59 commented Feb 15, 2025

This is the same problem as this closed issue (but not fixed issue):

#604

I'm trying in Linux (lubuntu 24) to cross compile a dynamic library for aarch64, Darwin. I have numerous times compiled successfully my other program to aarch64, Darwin using a fpcupdeluxe installation, but it doesn't work for this simple dynamic library. This is the error I get:

Hint: (11030) Start of reading config file /home/h/fpcupdeluxe/fpc/bin/x86_64-linux/fpc.cfg
Hint: (11031) End of reading config file /home/h/fpcupdeluxe/fpc/bin/x86_64-linux/fpc.cfg
Free Pascal Compiler version 3.2.2-r0d122c49 [2025/02/14] for aarch64
clang: warning: overriding '-mmacosx-version-min=10.8' option with '-target arm64-apple-macosx11.0.0' [-Woverriding-option]
Copyright (c) 1993-2021 by Florian Klaempfl and others
(1002) Target OS: Darwin for AArch64
(3104) Compiling test.lpr
(9009) Assembling test
(9015) Linking /home/h/test2/libtest.dylib
Error: (9016) Util aarch64-apple-darwin19-strip not found, switching to external linking
Fatal: (10026) There were 1 errors compiling module, stopping
Fatal: (1018) Compilation aborted
Error: /home/h/fpcupdeluxe/fpc/bin/x86_64-linux/ppcrossa64 returned an error exitcode

I have installed clang since it was first missing.
And this is the simple source:

library test;
{$mode objfpc} {$H+}

uses
  // needed for UpperCase
  SysUtils;

// library subroutine
function cvtString(strIn : string) : PChar; cdecl;
  begin
    cvtString := PChar(UpperCase(strIn));
  end;

// exported subroutine(s)
exports
  cvtString;
end.

Any idea how to get this fixed?

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

1 participant