Note: These instructions are for i386 Linux; trying this on x64 Linux has failed. Update 2013-12-13: cross compiling from Linux for OS X no longer works at all for 10.8 and above. The compiler works fine but viable linker tools (cctools for linux) are not available for Linux anymore. Please adjust instructions if you find a solution for this.
make 'FPC=/home/rafael/fpcupdeluxe/fpcsrc/compiler/ppcrossx64' rtlclean rtl CYCLELEVEL=3make -C /home/rafael/fpcupdeluxe/fpcsrc/rtl cleanmake -C darwin cleanmake -C /home/rafael/fpcupdeluxe/fpcsrc/rtl 'OPT=-vw-n-h-l-d-u-t-p-c- ' allmake -C darwin all/home/rafael/fpcupdeluxe/fpcsrc/compiler/ppcrossx64 -dNOMOUSE -Ur -dFPC_USE_LIBC -Tdarwin -XPx86_64-apple-darwin15- -Xr -Ur -Xs -O2 -n -Fi../inc -Fi../x86_64 -Fi../unix -Fi../bsd -Fi../bsd/x86_64 -Fi../darwin/x86_64 -FD/home/rafael/fpcupdeluxe/cross/bin/x86-darwin -FE. -FU/home/rafael/fpcupdeluxe/fpcsrc/rtl/units/x86_64-darwin -vw-n-h-l-d-u-t-p-c- -dx86_64 -dRELEASE -XPx86_64-apple-darwin15- -Xd -Fl/home/rafael/fpcupdeluxe/cross/lib/x86-darwin/MacOSX10.11.sdk/usr/lib -Fl/home/rafael/fpcupdeluxe/cross/lib/x86-darwin/MacOSX10.11.sdk/usr/lib/system -Us -Sg ../bsd/system.pp/home/rafael/fpcupdeluxe/cross/bin/x86-darwin/x86_64-apple-darwin15-clang: /usr/lib/x86_64-linux-gnu/libstdc++.so.6: version `GLIBCXX_3.4.21' not found (required by /home/rafael/fpcupdeluxe/cross/bin/x86-darwin/x86_64-apple-darwin15-clang)system.pp(387) Error: Error while assembling exitcode 1system.pp(387) Fatal: There were 2 errors compiling module, stoppingFatal: Compilation abortedMakefile:2829: recipe for target 'system.ppu' failedmake[5]: *** [system.ppu] Error 1Makefile:2505: recipe for target 'darwin_all' failedmake[4]: *** [darwin_all] Error 2Makefile:4327: recipe for target 'rtl' failedmake[3]: *** Error 2Makefile:4229: recipe for target 'cycle' failedmake[2]: *** [cycle] Error 2Makefile:2908: recipe for target 'compiler_cycle' failedmake[1]: *** [compiler_cycle] Error 2Makefile:2940: recipe for target 'build-stamp.x86_64-darwin' failedmake: *** [build-stamp.x86_64-darwin] Error 2fpcupdeluxe: ERROR: FPCCrossInstaller (BuildModuleCustom: FPC): Running cross compiler fpc make all for x86_64-darwin failed with an error code.ERROR: Fpcupdeluxe fatal error !Building cross-tools failed ... ??? ... aborting.
May I ask if the cross-utils for linux were built using Ubuntu? If yes, I think they should be built using Debian. If you build with Debian, there is a high chance it will work in any debian based system, including Ubuntu unstable.
Quote from: cpicanco on October 16, 2017, 02:03:04 pmMay I ask if the cross-utils for linux were built using Ubuntu? If yes, I think they should be built using Debian. If you build with Debian, there is a high chance it will work in any debian based system, including Ubuntu unstable.You may easily run into dependency or even library compatibility problems if you build from Debian stable targeting Debian Testing or Unstable and derivatives like Ubuntu and Mint. Even backports on Debian stable may cause instability (as I experienced more than once).