Welcome, Guest
Username: Password: Remember me
CodeTyphon Cross-Build Development, discussions and problems
  • Page:
  • 1

TOPIC:

CrossBuild Win32-MacOS 5 years 10 months ago #11656

  • Md. Shariful Alam Khan
  • Md. Shariful Alam Khan's Avatar Topic Author
  • Offline
  • Junior Member
  • Junior Member
  • Posts: 111
  • Thank you received: 0
Can any one please guide me step by step for CrossBuild Win32->MacOS(Sierra, High Sierra)?

Please Log in or Create an account to join the conversation.

CrossBuild Win32-MacOS 5 years 10 months ago #11657

  • Sternas Stefanos
  • Sternas Stefanos's Avatar
  • Offline
  • Moderator
  • Moderator
  • Ex Pilot, M.Sc, Ph.D
  • Posts: 4502
  • Thank you received: 1096
Sir

We have problem with MacOS and Solaris OS as crossbuild targets.
We don't provide "System Libraries" for these OSes,
it's OS license subject

If you find "System Libraries" for MacOS (and Solaris OS)
the cross build procedure is the same like any other crossbuild target

PS: Windows OS as crossbuild target from Unix Host don't need "System Libraries".
PilotLogic Architect and Core Programmer

Please Log in or Create an account to join the conversation.

Last edit: by Sternas Stefanos.

CrossBuild Win32-MacOS 5 years 5 months ago #12681

  • Premysl Beran
  • Premysl Beran's Avatar
  • Offline
  • Junior Member
  • Junior Member
  • Posts: 48
  • Thank you received: 0
Hi Sternas,

I found the ToolChain for the Win to MacOS on the server. So, I downloaded and tried to compile. The first step finished with success. I have all the x86_64(i386)-darwin-*.exe files. But the second and third steps finish with error (see below). The error occurred when x86_64(i386)-darwin-clang.exe was not found. It seems it is not related to the system libraries. These are needed for linking when compiling the executable. How can I solve this problem?

Thanks for the help.

With best regards

Premek

CT6.4, Win10
[INFO]: !!! Cross compiler Executable ppcross386.exe for win32, Build OK. !!!
 
----------------------------------------------------------------
       Stage 2: Build All Units and Packages  
----------------------------------------------------------------

C:/codetyphon/fpc/fpc32/bin/i386-win32/make -C rtl all
make[1]: Entering directory 'C:/codetyphon/fpcsrc/rtl'
C:/codetyphon/fpc/fpc32/bin/i386-win32/make -C darwin all
make[2]: Entering directory 'C:/codetyphon/fpcsrc/rtl/darwin'
C:/codetyphon/fpc/fpc32/bin/i386-win32/gmkdir.exe -p C:/codetyphon/fpcsrc/rtl/units/i386-darwin

ppcross386.exe -dNOMOUSE -Ur -dFPC_USE_LIBC -Tdarwin -XPi386-darwin- -Xr -Ur -Xs -O2 -n -Fi../inc -Fi../i386 -Fi../unix -Fi../bsd -Fi../bsd/i386 -Fi../darwin/i386 -FE. -FUC:/codetyphon/fpcsrc/rtl/units/i386-darwin -di386 -dRELEASE  -Us -Sg ../bsd/system

ppcross386.exe -dNOMOUSE -Ur -dFPC_USE_LIBC -Tdarwin -XPi386-darwin- -Xr -Ur -Xs -O2 -n -Fi../inc -Fi../i386 -Fi../unix -Fi../bsd -Fi../bsd/i386 -Fi../darwin/i386 -FE. -FUC:/codetyphon/fpcsrc/rtl/units/i386-darwin -di386 -dRELEASE  -Us -Sg ../bsd/system
system.pp(387) Error: Assembler i386-darwin-clang.exe not found, switching to external assembling
system.pp(387) Fatal: There were 1 errors compiling module, stopping
Fatal: Compilation aborted
make[2]: *** [Makefile:2863: system.ppu] Error 1
make[2]: Leaving directory 'C:/codetyphon/fpcsrc/rtl/darwin'
make[1]: *** [Makefile:2511: darwin_all] Error 2
make[1]: Leaving directory 'C:/codetyphon/fpcsrc/rtl'
make: *** [Makefile:2606: rtl] Error 2
 
----------------------------------------------------------------
       Stage 3: Install All Units and Packages  
----------------------------------------------------------------

C:/codetyphon/fpc/fpc32/bin/i386-win32/make -C rtl install
make[1]: Entering directory 'C:/codetyphon/fpcsrc/rtl'
C:/codetyphon/fpc/fpc32/bin/i386-win32/make -C darwin all
make[2]: Entering directory 'C:/codetyphon/fpcsrc/rtl/darwin'
ppcross386.exe -dNOMOUSE -Ur -dFPC_USE_LIBC -Tdarwin -XPi386-darwin- -Xr -Ur -Xs -O2 -n -Fi../inc -Fi../i386 -Fi../unix -Fi../bsd -Fi../bsd/i386 -Fi../darwin/i386 -FE. -FUC:/codetyphon/fpcsrc/rtl/units/i386-darwin -di386 -dRELEASE  -Us -Sg ../bsd/system

ppcross386.exe -dNOMOUSE -Ur -dFPC_USE_LIBC -Tdarwin -XPi386-darwin- -Xr -Ur -Xs -O2 -n -Fi../inc -Fi../i386 -Fi../unix -Fi../bsd -Fi../bsd/i386 -Fi../darwin/i386 -FE. -FUC:/codetyphon/fpcsrc/rtl/units/i386-darwin -di386 -dRELEASE  -Us -Sg ../bsd/system
system.pp(387) Error: Assembler i386-darwin-clang.exe not found, switching to external assembling
system.pp(387) Fatal: There were 1 errors compiling module, stopping
Fatal: Compilation aborted
make[2]: *** [Makefile:2863: system.ppu] Error 1
make[2]: Leaving directory 'C:/codetyphon/fpcsrc/rtl/darwin'
make[1]: *** [Makefile:2511: darwin_all] Error 2
make[1]: Leaving directory 'C:/codetyphon/fpcsrc/rtl'
make: *** [Makefile:2580: rtl_install] Error 2

Please Log in or Create an account to join the conversation.

CrossBuild Win32-MacOS 5 years 5 months ago #12683

  • Sternas Stefanos
  • Sternas Stefanos's Avatar
  • Offline
  • Moderator
  • Moderator
  • Ex Pilot, M.Sc, Ph.D
  • Posts: 4502
  • Thank you received: 1096
1) i386-darwin-clang.exe don't exits in your OS Libraries
you must find this file.

2) My suggestion is to try and LAB CT 6.6, has better MacOS support
PilotLogic Architect and Core Programmer

Please Log in or Create an account to join the conversation.

CrossBuild Win32-MacOS 5 years 5 months ago #12685

  • Premysl Beran
  • Premysl Beran's Avatar
  • Offline
  • Junior Member
  • Junior Member
  • Posts: 48
  • Thank you received: 0
1) I suppose that the file "i386-darwin-clang.exe" should be created during the first stage of CrossBuild ToolChain. Or it is a part of the windows system? It should have the *.exe extension, so it is not related with MacOS libraries. I searched for it in the whole Windows system disk and I didn't find it.

2) I just tried it with CT 6560 and I've got the same problem. Not able to cross-build this ToolChain.

Please Log in or Create an account to join the conversation.

  • Page:
  • 1