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

TOPIC:

Compile from macOS to Linux 64-bit 1 year 8 months ago #17124

  • Premysl Beran
  • Premysl Beran's Avatar Topic Author
  • Offline
  • Junior Member
  • Junior Member
  • Posts: 48
  • Thank you received: 0
Hello,

After updating to CT7.8 on Monteray (Intel), I tried to give it another try (I tried in the past from CT7.4) to make a cross-build from macOS to Linux 64-bit, and the try was unsuccessful. I was able to cross-build for Win64 and Linux 32-bits. All the executables seem to be there. Part of the error log when it stopped is listed below. 

So far, for Linux 64-bit, I compile my programs from Windows. Is there a way to make such a cross-build, or do I need to stick to my usual way? Thanks for your help and your awesome work on CT.

Premek
gmake[3]: Leaving directory "/usr/local/codetyphon/fpcsrc/compiler/utils"
/bin/rm -rf x86_64/units
/bin/rm -rf x86_64/bin
/bin/rm -f x86_64/*.o x86_64/*.ppu x86_64/*.rst x86_64/*.s x86_64/*.a x86_64/*.so x86_64/*.ppl
/bin/rm -f x86_64/ppc386 x86_64/ppc68k x86_64/ppcppc x86_64/ppcsparc x86_64/ppcarm x86_64/ppcarmeb x86_64/ppcx64 x86_64/ppcppc64 x86_64/ppcmips x86_64/ppcmipsel x86_64/ppcmips64 x86_64/ppcmips64el x86_64/ppcavr x86_64/ppcjvm x86_64/ppc8086 x86_64/ppca64 x86_64/ppcsparc64 x86_64/ppcrv32 x86_64/ppcrv64 x86_64/ppcxtensa x86_64/ppcz80 x86_64/ppcwasm32
/bin/rm -f ppcrossx64
gmake[2]: Leaving directory "/usr/local/codetyphon/fpcsrc/compiler"
/usr/local/bin/gmake 'FPC=/usr/local/codetyphon/fpcsrc/compiler/ppc' OS_TARGET=darwin EXENAME=ppcrossx64 CROSSBINDIR= BINUTILSPREFIX= CROSSCYCLEBOOTSTRAP=1 CYCLELEVEL=2 compiler
gmake[2]: Vstupuje se do adres'are "/usr/local/codetyphon/fpcsrc/compiler"
/bin/mkdir -p x86_64/units/x86_64-darwin
/bin/mkdir -p x86_64/bin/x86_64-darwin
/usr/local/codetyphon/fpcsrc/compiler/ppc -Ur -Xs -O2 -n -Fux86_64 -Fusystems -Fu/usr/local/codetyphon/fpcsrc/rtl/units/x86_64-darwin -Fix86_64 -FEx86_64/bin/x86_64-darwin -FUx86_64/units/x86_64-darwin -dRELEASE -XR/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk -dx86_64 -dGDB -Fux86 -Fix86 -Sew -o/usr/local/codetyphon/fpcsrc/compiler/ppcrossx64 pp.pas
gmake[2]: Leaving directory "/usr/local/codetyphon/fpcsrc/compiler"
gmake[1]: Leaving directory "/usr/local/codetyphon/fpcsrc/compiler"

[INFO]: !!! Cross compiler Executable ppcrossx64, Build OK. !!!


------------------------------------------------
       Stage 2: Build All Units and Packages
------------------------------------------------
/usr/local/bin/gmake -C rtl all
gmake[1]: Entering directory "/usr/local/codetyphon/fpcsrc/rtl"
/usr/local/bin/gmake -C linux all
gmake[2]: Entering directory "/usr/local/codetyphon/fpcsrc/rtl/linux"
/bin/mkdir -p /usr/local/codetyphon/fpcsrc/rtl/units/x86_64-linux
/usr/local/bin/gmake /usr/local/codetyphon/fpcsrc/rtl/units/x86_64-linux
gmake[3]: Entering directory "/usr/local/codetyphon/fpcsrc/rtl/linux"
gmake[3]: "/usr/local/codetyphon/fpcsrc/rtl/units/x86_64-linux" je aktu'aln'i.
gmake[3]: Leaving directory "/usr/local/codetyphon/fpcsrc/rtl/linux"
x86_64-linux-as --64 -o /usr/local/codetyphon/fpcsrc/rtl/units/x86_64-linux/abitag.o x86_64/abitag.as
gmake[2]: x86_64-linux-as: No such file or directory
gmake[2]: *** [Makefile:4463: abitag.o] Error 127
gmake[2]: Leaving directory "/usr/local/codetyphon/fpcsrc/rtl/linux"
gmake[1]: *** [Makefile:2322: linux_all] Error 2
gmake[1]: Leaving directory "/usr/local/codetyphon/fpcsrc/rtl"
gmake: *** [Makefile:3012: rtl] Error 2

------------------------------------------------
       Stage 3: Install All Units and Packages
------------------------------------------------
/usr/local/bin/gmake -C rtl install
gmake[1]: Entering directory "/usr/local/codetyphon/fpcsrc/rtl"
/usr/local/bin/gmake -C linux all

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

Compile from macOS to Linux 64-bit 1 year 8 months ago #17125

  • Sternas Stefanos
  • Sternas Stefanos's Avatar
  • Offline
  • Moderator
  • Moderator
  • Ex Pilot, M.Sc, Ph.D
  • Posts: 4506
  • Thank you received: 1100
Thanks Sir
please give us time to test and report here.
We will try to rebuild ALL GNU toolchains on MacOS
PilotLogic Architect and Core Programmer

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

Compile from macOS to Linux 64-bit 1 year 8 months ago #17126

  • Sternas Stefanos
  • Sternas Stefanos's Avatar
  • Offline
  • Moderator
  • Moderator
  • Ex Pilot, M.Sc, Ph.D
  • Posts: 4506
  • Thank you received: 1100
Sorry Sir
We make a lot of tests, but don't work and for us.

CodeTyphon CrossBuild Engine based to GNU GCC compiler.
MacOS use a special Clang build as GNU GCC.

We did try to install true GNU GCC from MacPorts,
but this is to far for us...


 
PilotLogic Architect and Core Programmer

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

Compile from macOS to Linux 64-bit 1 year 8 months ago #17127

  • Premysl Beran
  • Premysl Beran's Avatar Topic Author
  • Offline
  • Junior Member
  • Junior Member
  • Posts: 48
  • Thank you received: 0
Thank you, Stefanos, for your effort. I was only surprised that the Linux 32-bits worked.

I will keep my routine for building Linux executables from Windows. There so far, the cross-build has worked.

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

Compile from macOS to Linux 64-bit 1 year 8 months ago #17128

  • Sternas Stefanos
  • Sternas Stefanos's Avatar
  • Offline
  • Moderator
  • Moderator
  • Ex Pilot, M.Sc, Ph.D
  • Posts: 4506
  • Thank you received: 1100
Yes Linux 32 worked on MacOS

From Windows you can crossbuild a lot of "things"
-wasm32-wasi, wasm32-embedded,
-aarch64-win64
-ALL xxxx-android,
etc....
PilotLogic Architect and Core Programmer

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

Last edit: by Sternas Stefanos.
  • Page:
  • 1