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

Cross compiling from MacOS to iOS. Compiler is not found #740

Open
han-k59 opened this issue Feb 14, 2025 · 1 comment
Open

Cross compiling from MacOS to iOS. Compiler is not found #740

han-k59 opened this issue Feb 14, 2025 · 1 comment

Comments

@han-k59
Copy link

han-k59 commented Feb 14, 2025

I have Mac with a X86_64 cpu.

Note the following:

With fpcupdeluxe 2.04f I install cross compiling to

  1. aarch64 macOS =>is not seen by the compiler. See screenshot
  2. aarch64 iOS =>is not seen by the compiler. See screenshot

With fpcupdeluxe 2.04d I install cross compiling to

  1. aarch64 macOS=>works
  2. aarch64 iOS =>is not seen by the compiler. See screenshot

What goes wrong with the paths? Any idea how to fix this

Image

@han-k59
Copy link
Author

han-k59 commented Feb 21, 2025

Invoking the cross compiler form the command-line seems to work. But it is warning. No idea at this moment if it produces a working library:

macbookpro@MacBook-Pro-van-Apple lazarus % ./lazbuild ~/Documents/test/testlibrary.lpi -B
using config file /Users/macbookpro/Desktop/fpcupdeluxe/lazarus/lazarus.cfg
Hint: (lazarus) Build Project: nothing to do.
Hint: (11030) Start of reading config file /Users/macbookpro/Desktop/fpcupdeluxe/fpc/bin/x86_64-darwin/fpc.cfg
Hint: (11031) End of reading config file /Users/macbookpro/Desktop/fpcupdeluxe/fpc/bin/x86_64-darwin/fpc.cfg
Free Pascal Compiler version 3.2.2-r0d122c49 [2025/02/21] for aarch64
Copyright (c) 1993-2021 by Florian Klaempfl and others
(1002) Target OS: iOS for AArch64
(3104) Compiling testlibrary.lpr
(9009) Assembling testlibrary
(9015) Linking /Users/macbookpro/Documents/test/libtestlibrary.dylib
ld: warning: building for iOS, but linking in .tbd file (/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/lib//libc.tbd) built for macOS/Mac Catalyst
ld: warning: building for iOS, but linking in .tbd file (/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/lib/system/libcache.tbd) built for macOS/Mac Catalyst
ld: warning: building for iOS, but linking in .tbd file (/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/lib/system/libcommonCrypto.tbd) built for macOS/Mac Catalyst
ld: warning: building for iOS, but linking in .tbd file (/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/lib/system/libcompiler_rt.tbd) built for macOS
ld: warning: building for iOS, but linking in .tbd file (/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/lib/system/libcopyfile.tbd) built for macOS/Mac Catalyst
ld: warning: building for iOS, but linking in .tbd file (/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/lib/system/libcorecrypto.tbd) built for macOS/Mac Catalyst
ld: warning: building for iOS, but linking in .tbd file (/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/lib/system/libdispatch.tbd) built for macOS/Mac Catalyst
ld: warning: building for iOS, but linking in .tbd file (/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/lib/system/libdyld.tbd) built for macOS/Mac Catalyst
ld: warning: building for iOS, but linking in .tbd file (/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/lib/system/libkeymgr.tbd) built for macOS/Mac Catalyst
ld: warning: building for iOS, but linking in .tbd file (/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/lib/system/libmacho.tbd) built for macOS/Mac Catalyst
ld: warning: building for iOS, but linking in .tbd file (/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/lib/system/libquarantine.tbd) built for macOS/Mac Catalyst
ld: warning: building for iOS, but linking in .tbd file (/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/lib/system/libremovefile.tbd) built for macOS/Mac Catalyst
ld: warning: building for iOS, but linking in .tbd file (/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/lib/system/libsystem_asl.tbd) built for macOS/Mac Catalyst
ld: warning: building for iOS, but linking in .tbd file (/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/lib/system/libsystem_blocks.tbd) built for macOS/Mac Catalyst
ld: warning: building for iOS, but linking in .tbd file (/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/lib/system/libsystem_c.tbd) built for macOS/Mac Catalyst
ld: warning: building for iOS, but linking in .tbd file (/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/lib/system/libsystem_collections.tbd) built for macOS/Mac Catalyst
ld: warning: building for iOS, but linking in .tbd file (/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/lib/system/libsystem_configuration.tbd) built for macOS/Mac Catalyst
ld: warning: building for iOS, but linking in .tbd file (/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/lib/system/libsystem_containermanager.tbd) built for macOS/Mac Catalyst
ld: warning: building for iOS, but linking in .tbd file (/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/lib/system/libsystem_coreservices.tbd) built for macOS/Mac Catalyst
ld: warning: building for iOS, but linking in .tbd file (/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/lib/system/libsystem_darwin.tbd) built for macOS/Mac Catalyst
ld: warning: building for iOS, but linking in .tbd file (/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/lib/system/libsystem_dnssd.tbd) built for macOS/Mac Catalyst
ld: warning: building for iOS, but linking in .tbd file (/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/lib/system/libsystem_featureflags.tbd) built for macOS/Mac Catalyst
ld: warning: building for iOS, but linking in .tbd file (/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/lib/system/libsystem_info.tbd) built for macOS/Mac Catalyst
ld: warning: building for iOS, but linking in .tbd file (/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/lib/system/libsystem_kernel.tbd) built for macOS/Mac Catalyst
ld: warning: building for iOS, but linking in .tbd file (/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/lib/system/libsystem_m.tbd) built for macOS/Mac Catalyst
ld: warning: building for iOS, but linking in .tbd file (/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/lib/system/libsystem_malloc.tbd) built for macOS/Mac Catalyst
ld: warning: building for iOS, but linking in .tbd file (/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/lib/system/libsystem_networkextension.tbd) built for macOS/Mac Catalyst
ld: warning: building for iOS, but linking in .tbd file (/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/lib/system/libsystem_notify.tbd) built for macOS/Mac Catalyst
ld: warning: building for iOS, but linking in .tbd file (/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/lib/system/libsystem_platform.tbd) built for macOS/Mac Catalyst
ld: warning: building for iOS, but linking in .tbd file (/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/lib/system/libsystem_product_info_filter.tbd) built for macOS/Mac Catalyst
ld: warning: building for iOS, but linking in .tbd file (/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/lib/system/libsystem_pthread.tbd) built for macOS/Mac Catalyst
ld: warning: building for iOS, but linking in .tbd file (/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/lib/system/libsystem_sandbox.tbd) built for macOS/Mac Catalyst
ld: warning: building for iOS, but linking in .tbd file (/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/lib/system/libsystem_secinit.tbd) built for macOS/Mac Catalyst
ld: warning: building for iOS, but linking in .tbd file (/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/lib/system/libsystem_symptoms.tbd) built for macOS/Mac Catalyst
ld: warning: building for iOS, but linking in .tbd file (/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/lib/system/libsystem_trace.tbd) built for macOS/Mac Catalyst
ld: warning: building for iOS, but linking in .tbd file (/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/lib/system/libunwind.tbd) built for macOS/Mac Catalyst
ld: warning: building for iOS, but linking in .tbd file (/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/lib/system/libxpc.tbd) built for macOS/Mac Catalyst
(1008) 19 lines compiled, 0.7 sec
(1022) 2 hint(s) issued
macbookpro@MacBook-Pro-van-Apple lazarus %

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