Forum > Options

cross386 broken FIXED

(1/1)

lazer:
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  [+][-]window.onload = function(){var x1 = document.getElementById("main_content_section"); if (x1) { var x = document.getElementsByClassName("geshi");for (var i = 0; i < x.length; i++) { x[i].style.maxHeight='none'; x[i].style.height = Math.min(x[i].clientHeight+15,306)+'px'; x[i].style.resize = "vertical";}};} ---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  [+][-]window.onload = function(){var x1 = document.getElementById("main_content_section"); if (x1) { var x = document.getElementsByClassName("geshi");for (var i = 0; i < x.length; i++) { x[i].style.maxHeight='none'; x[i].style.height = Math.min(x[i].clientHeight+15,306)+'px'; x[i].style.resize = "vertical";}};} ---fpc -vFree Pascal Compiler version 3.3.1 [2022/10/22] for x86_64Copyright (c) 1993-2022 by Florian Klaempfl and others  which ppcross386/bin/ppcross386  ppcrossx64 -vFree Pascal Compiler version 3.3.1 [2022/10/22] for x86_64Copyright (c) 1993-2022 by Florian Klaempfl and others  ppcross386 -vFree Pascal Compiler version 3.3.1 [2022/10/22] for i386Copyright (c) 1993-2022 by Florian Klaempfl and others 
--- Code: Pascal  [+][-]window.onload = function(){var x1 = document.getElementById("main_content_section"); if (x1) { var x = document.getElementsByClassName("geshi");for (var i = 0; i < x.length; i++) { x[i].style.maxHeight='none'; x[i].style.height = Math.min(x[i].clientHeight+15,306)+'px'; x[i].style.resize = "vertical";}};} --- ls -ail `which ppcross386`1462230 lrwxrwxrwx. 1 root root 35 Oct 27 10:40 /bin/ppcross386 -> /usr/local/lib/fpc/3.3.1/ppcross386 
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  [+][-]window.onload = function(){var x1 = document.getElementById("main_content_section"); if (x1) { var x = document.getElementsByClassName("geshi");for (var i = 0; i < x.length; i++) { x[i].style.maxHeight='none'; x[i].style.height = Math.min(x[i].clientHeight+15,306)+'px'; x[i].style.resize = "vertical";}};} ---make crossinstall OS_TARGET=win32 CPU_TARGET=i386 INSTALL_PREFIX=/usr/local  Entering directory '~/FPCSource/packages'./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 Installing package a52Installation package a52 for target i386-win32 succeededInstalling package aspellInstallation package aspell for target i386-win32 succeededInstalling package bzip2Installation package bzip2 for target i386-win32 succeededInstalling package cairoInstallation package cairo for target i386-win32 succeededInstalling package cdromInstallation package cdrom for target i386-win32 succeededInstalling package chm  etc etc  
TIA.

lazer:
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

Navigation

[0] Message Index

Go to full version