Recent

Author Topic: [Solved] Cannot build cross compiler from Linux x64 to FreeBSD i386  (Read 2027 times)

AlexTP

  • Hero Member
  • *****
  • Posts: 2401
    • UVviewsoft
Quote
The project uses target OS=freebsd and CPU=i386.
The system.ppu for this target was not found in the FPC binary directories.
Make sure fpc is installed correctly for this target and the fpc.cfg contains the right directories.

This is shown by IDE now, after I updraded FPC to 'fixes' (3.2.3) and did "Update all cross compilers" in fpcUpDeluxe.

Log
Quote
Fpcupdeluxe: FPC cross-builder: Building compiler for freebsd-i386.
fpcupdeluxe: WARNING: Skipping cross-compiler clean step: compiler seems to be up to date !!
fpcupdeluxe: info: FPC i386-freebsd cross-builder: Detected source version FPC (source): 3.2.3
fpcupdeluxe: info: FPC i386-freebsd cross-builder: Using compiler with version: 3.2.3
fpcupdeluxe: WARNING: Skipping cross-compiler build step: compiler seems to be up to date !!
fpcupdeluxe: Start of compile error summary.
unxfunc.inc(54,15) Error: Wrong number of parameters specified for call to "FpPipe"
fpcupdeluxe: Start of compile error summary.
oscdeclh.inc(53,15) Error: Found declaration: FpPipe(var TFilDes):LongInt; CDecl;
fpcupdeluxe: Start of compile error summary.
unix.pp(1247) Fatal: There were 2 errors compiling module, stopping
oscdeclh.inc(53,15) Error: Found declaration: FpPipe(var TFilDes):LongInt; CDecl;
fpcupdeluxe: Start of compile error summary.
Fatal: Compilation aborted
unix.pp(1247) Fatal: There were 2 errors compiling module, stopping
fpcupdeluxe: Start of compile error summary.
fpcupdeluxe: ERROR: FPCCrossInstaller (BuildModuleCustom: FPC): Running cross compiler fpc /usr/bin/make for i386-freebsd failed with an error code.
fpcupdeluxe: Done !!
Failure during update of cross-compiler !!

« Last Edit: August 22, 2022, 04:57:01 pm by AlexTP »

abouchez

  • Full Member
  • ***
  • Posts: 111
    • Synopse
Re: Cannot build cross compiler from Linux x64 to FreeBSD i386
« Reply #1 on: August 22, 2022, 12:07:20 pm »
I guess your issue request at https://github.com/LongDirtyAnimAlf/fpcupdeluxe/issues/532 is a better place to get a response than a new thread here.

Also note that there is a fpcupdeluxe thread in this forum at https://forum.lazarus.freepascal.org/index.php/topic,27211.0.html

marcov

  • Administrator
  • Hero Member
  • *
  • Posts: 11448
  • FPC developer.
Re: Cannot build cross compiler from Linux x64 to FreeBSD i386
« Reply #2 on: August 22, 2022, 12:43:54 pm »
If you use non standard options like -dFPC_USE_LIBC please annotate it with your error message.

Current recommended way is to bootstrap 3.2.2 -> Fixes once with -dFPC_USE_LIBC and then once without, yielding a native syscall version again.

marcov

  • Administrator
  • Hero Member
  • *
  • Posts: 11448
  • FPC developer.
Re: Cannot build cross compiler from Linux x64 to FreeBSD i386
« Reply #3 on: August 22, 2022, 01:24:15 pm »
Try again with f341baeaa783fff4b50cec8757e3b7a85837bfd7 from main applied.

If it works, I'll merge it back to fixes.

AlexTP

  • Hero Member
  • *****
  • Posts: 2401
    • UVviewsoft
Re: Cannot build cross compiler from Linux x64 to FreeBSD i386
« Reply #4 on: August 22, 2022, 04:55:50 pm »
@marcov
Yes, it works. Thanks for your constant support!

marcov

  • Administrator
  • Hero Member
  • *
  • Posts: 11448
  • FPC developer.
Re: Cannot build cross compiler from Linux x64 to FreeBSD i386
« Reply #5 on: August 22, 2022, 05:46:29 pm »
@marcov
Yes, it works. Thanks for your constant support!

Thanks, merged.

 

TinyPortal © 2005-2018