Recent

Author Topic: cross386 broken FIXED  (Read 1659 times)

lazer

  • Full Member
  • ***
  • Posts: 215
cross386 broken FIXED
« on: November 01, 2022, 04:32:08 pm »
Hi,

I have a project built and running under linux.  I set project options to build for win64 (default target) and it compiles fine. Now I try to build for i386 and I'm getting the old chestnut:

Code: Pascal  [Select][+][-]
  1. fcllaz.pas(11,3) Error: Cannot find db used by fcllaz of package FCL.

When I swap target it says there's no fpc.cfg.  Clearly there is because I've run two separte builds already.


I'm building from recent master for both fpc and lazarus.

Lazarus 2.3.0 (rev main-2_3-2165-gc63984efd6) FPC 3.3.1 x86_64-linux-gtk2
Code: Pascal  [Select][+][-]
  1. fpc -v
  2. Free Pascal Compiler version 3.3.1 [2022/10/22] for x86_64
  3. Copyright (c) 1993-2022 by Florian Klaempfl and others
  4.  
  5.  which ppcross386
  6. /bin/ppcross386
  7.  
  8.  ppcrossx64 -v
  9. Free Pascal Compiler version 3.3.1 [2022/10/22] for x86_64
  10. Copyright (c) 1993-2022 by Florian Klaempfl and others
  11.  
  12.  ppcross386 -v
  13. Free Pascal Compiler version 3.3.1 [2022/10/22] for i386
  14. Copyright (c) 1993-2022 by Florian Klaempfl and others
  15.  
Code: Pascal  [Select][+][-]
  1.  ls -ail `which ppcross386`
  2. 1462230 lrwxrwxrwx. 1 root root 35 Oct 27 10:40 /bin/ppcross386 -> /usr/local/lib/fpc/3.3.1/ppcross386
  3.  

I had this working at one point but during multiple reinstallations it seems to have gone astray.


I just reran the installation process from my notes to be sure. Same result.

Code: Pascal  [Select][+][-]
  1. make crossinstall OS_TARGET=win32 CPU_TARGET=i386 INSTALL_PREFIX=/usr/local
  2.  
  3.  Entering directory '~/FPCSource/packages'
  4. ./fpmake install --localunitdir=.. --os=win32 --cpu=i386 -o -Twin32 -o -Pi386 -o -XPi386-win32- -o -Ur -o -Xs -o -O2 -o -n -o -di386 -o -dRELEASE --compiler=~/FPCSource/compiler/ppcross386 -bu -scp --prefix=/usr/local --baseinstalldir=/usr/local/lib/fpc/3.3.1
  5. Installing package a52
  6. Installation package a52 for target i386-win32 succeeded
  7. Installing package aspell
  8. Installation package aspell for target i386-win32 succeeded
  9. Installing package bzip2
  10. Installation package bzip2 for target i386-win32 succeeded
  11. Installing package cairo
  12. Installation package cairo for target i386-win32 succeeded
  13. Installing package cdrom
  14. Installation package cdrom for target i386-win32 succeeded
  15. Installing package chm
  16.  
  17.  
  18. etc etc
  19.  

TIA.
« Last Edit: November 01, 2022, 06:49:25 pm by lazer »

lazer

  • Full Member
  • ***
  • Posts: 215
Re: cross386 broken
« Reply #1 on: November 01, 2022, 06:49:12 pm »
OK,  I found it. The fpc.cfg was set correctly to /usr/local/lib for #IFDEF CPU64 but the else was still pointing to /usr/lib

 

TinyPortal © 2005-2018