[fpc-devel] Can't run i386-linux tests
J. Gareth Moreton
gareth at moreton-family.com
Fri Jun 13 19:09:16 CEST 2025
Good news - fixed it! After studying the full log more closely, I
learnt which configuration file it was reading (~/.fpc.cfg), and found
the problem.
For some reason, all of the directories listed "-Fuusr//lib..." etc.
instead of "-Fu/usr/lib...". I think I accidentally typed the root
directory incorrectly in the install script (I had installed Lazarus to
fix a bug in a 32-bit implementation of my next big update, and had to
reinstall FPC 3.2.2 due to Lazarus using an older version).
Thanks for the advice with OPT="-vwnihut" Pierre, and apologies to
everyone who had to put up with this in their Inboxes! Still, it might
serve to be a useful future reference.
Gareth aka. Kit
On 13/06/2025 17:09, J. Gareth Moreton via fpc-devel wrote:
> The reason why you didn't get the ZIP is because I forgot to attach
> the bloody thing!! Oops. Here it is.
>
> However, if it doesn't attach, in the interin, these are the relevant
> lines from the log:
>
> Searching file redir.pp... found
> (REDIR) Adding dependency: REDIR depends on UNIX
> (REDIR) Load from REDIR (implementation) unit PROCESS
> (PROCESS) Loading unit PROCESS
> Unitsearch: process.ppu
> Searching file process.ppu... not found
> Searching file PROCESS.PPU... not found
> Unitsearch: units/i386-linux/process.ppu
> Searching file units/i386-linux/process.ppu... not found
> Searching file units/i386-linux/PROCESS.PPU... not found
> Unitsearch: process.pp
> Searching file process.pp... not found
> Searching file PROCESS.PP... not found
> Unitsearch: process.pas
> Searching file process.pas... not found
> Searching file PROCESS.PAS... not found
> Unitsearch: /usr/lib/fpc/3.2.2/units/i386-linux/rtl/process.ppu
> Searching file /usr/lib/fpc/3.2.2/units/i386-linux/rtl/process.ppu...
> not found
> Searching file /usr/lib/fpc/3.2.2/units/i386-linux/rtl/PROCESS.PPU...
> not found
> Unitsearch: /usr/lib/fpc/3.2.2/units/i386-linux/rtl/process.pp
> Searching file /usr/lib/fpc/3.2.2/units/i386-linux/rtl/process.pp...
> not found
> Searching file /usr/lib/fpc/3.2.2/units/i386-linux/rtl/PROCESS.PP...
> not found
> Unitsearch: /usr/lib/fpc/3.2.2/units/i386-linux/rtl/process.pas
> Searching file /usr/lib/fpc/3.2.2/units/i386-linux/rtl/process.pas...
> not found
> Searching file /usr/lib/fpc/3.2.2/units/i386-linux/rtl/PROCESS.PAS...
> not found
> Unitsearch: /usr/lib/fpc/3.2.2/process.ppu
> Searching file /usr/lib/fpc/3.2.2/process.ppu... not found
> Searching file /usr/lib/fpc/3.2.2/PROCESS.PPU... not found
> Unitsearch: /usr/lib/fpc/3.2.2/process.pp
> Searching file /usr/lib/fpc/3.2.2/process.pp... not found
> Searching file /usr/lib/fpc/3.2.2/PROCESS.PP... not found
> Unitsearch: /usr/lib/fpc/3.2.2/process.pas
> Searching file /usr/lib/fpc/3.2.2/process.pas... not found
> Searching file /usr/lib/fpc/3.2.2/PROCESS.PAS... not found
> Unitsearch: process.pp
> Searching file process.pp... not found
> Searching file PROCESS.PP... not found
> Unitsearch: process.pas
> Searching file process.pas... not found
> Searching file PROCESS.PAS... not found
> Unitsearch: /usr/lib/fpc/3.2.2/units/i386-linux/rtl/process.pp
> Searching file /usr/lib/fpc/3.2.2/units/i386-linux/rtl/process.pp...
> not found
> Searching file /usr/lib/fpc/3.2.2/units/i386-linux/rtl/PROCESS.PP...
> not found
> Unitsearch: /usr/lib/fpc/3.2.2/units/i386-linux/rtl/process.pas
> Searching file /usr/lib/fpc/3.2.2/units/i386-linux/rtl/process.pas...
> not found
> Searching file /usr/lib/fpc/3.2.2/units/i386-linux/rtl/PROCESS.PAS...
> not found
> Unitsearch: /usr/lib/fpc/3.2.2/process.pp
> Searching file /usr/lib/fpc/3.2.2/process.pp... not found
> Searching file /usr/lib/fpc/3.2.2/PROCESS.PP... not found
> Unitsearch: /usr/lib/fpc/3.2.2/process.pas
> Searching file /usr/lib/fpc/3.2.2/process.pas... not found
> Searching file /usr/lib/fpc/3.2.2/PROCESS.PAS... not found
> redir.pp(119,3) Fatal: Can't find unit process used by Redir
> Fatal: Compilation aborted
> Makefile:2080: recipe for target 'redir.ppu' failed
> make[3]: *** [redir.ppu] Error 1
> make[3]: Leaving directory '/home/curious/Documents/fpc-opts/tests/utils'
> Makefile:2611: recipe for target 'utils' failed
> make[2]: *** [utils] Error 2
> make[2]: Leaving directory '/home/curious/Documents/fpc-opts/tests'
> Makefile:2880: recipe for target 'allexectests' failed
> make[1]: *** [allexectests] Error 2
> make[1]: Leaving directory '/home/curious/Documents/fpc-opts/tests'
> Makefile:3027: recipe for target 'full' failed
> make: *** [full] Error 2
>
> Gareth aka. Kit
>
> On 13/06/2025 15:56, Tomas Hajny via fpc-devel wrote:
>> On 2025-06-13 16:04, J. Gareth Moreton via fpc-devel wrote:
>>
>>
>> Hi Gareth,
>>
>>> Here's the full log (as a ZIP since the raw text file is over 100kB
>>> in size).
>>>
>>> I did do a search of "process.*" in the "/usr/lib/fpc/3.2.2" directory
>>> and only found "process.ppu", "process.o" and "process.rsj" in the
>>> "units/i386-linux/fcl-process" subdirectory - no source file. Do I
>>> need to manually add "/usr/lib/fpc/3.2.2/units/i386-linux/fcl-process"
>>> as a unit directory?
>>
>> I didn't get the log either, but yes, as Pierre already pointed out,
>> you should have something like
>> "-Fu/usr/lib/fpc/3.2.2/units/i386-linux/*" in your fpc.cfg (either
>> the system-wide one, or the local one in your home directory), and
>> then it should work for you.
>>
>> Tomas
>>
>>
>>
>>>
>>> On 13/06/2025 13:14, Pierre Muller via fpc-devel wrote:
>>>> Could you please add OPT="-vwnihut" to the make call?
>>>>
>>>> It probably has a problem with the process unit from release
>>>> installation...
>>>> But I would like to confirm that this is indeed the issue.
>>>>
>>>> Pierre
>>>>
>>>> Le 13/06/2025 à 13:08, J. Gareth Moreton via fpc-devel a écrit :
>>>>> Hi Pierre,
>>>>>
>>>>> Here attached is the log of me running 'make' for the test suite. It
>>>>> doesn't matter how far back I go in the commit history or what
>>>>> compiler
>>>>> options I specify - it falls over at the same point.
>>>>>
>>>>> Gareth aka. Kit
>>>>>
>>>>> On 13/06/2025 07:22, Pierre Muller via fpc-devel wrote:
>>>>>> Hi Gareth,
>>>>>>
>>>>>> your email is not detailed enough so that we can really help you.
>>>>>>
>>>>>> Using a compiler:
>>>>>> TEST_OPT=~/Documents/fpc-opts/compiler/ppc386
>>>>>> as option is certainly not working...
>>>>>>
>>>>>> But your error is probably due to an installation issue.
>>>>>>
>>>>>> The dotest program will be compiled using your
>>>>>> default Free Pascal installation, and it is highly likely
>>>>>> that your release compiler is not correctly set up.
>>>>>>
>>>>>> Are you able to use your release compiler?
>>>>>>
>>>>>> If you use a regular user installation, do you have a $HOME/.fpc.cfg
>>>>>> present
>>>>>> that will allow the compiler to find the installed units?
>>>>>>
>>>>>> Could you send a full log of the failing make command?
>>>>>>
>>>>>> Pierre
>>>>>>
>>>>>> Le 12/06/2025 à 08:27, J. Gareth Moreton via fpc-devel a écrit :
>>>>>>> Hi everyone,
>>>>>>>
>>>>>>> There seems to be a problem on i386-linux on the trunk in that I
>>>>>>> can't
>>>>>>> run the test suite. After successfully building the compiler, I
>>>>>>> then go
>>>>>>> to the "tests" subdirectory and run "make clean full
>>>>>>> TEST_OPT=~/Documents/fpc-opts/compiler/ppc386" and get the
>>>>>>> following
>>>>>>> error:
>>>>>>>
>>>>>>> Compiling redir.pp
>>>>>>> redir.pp(119,3) Fatal: Can't find unit process used by Redir
>>>>>>>
>>>>>>> Notably this doesn't occur under i386-win32.
>>>>>>>
>>>>>>> Gareth aka. Kit
>>>>>>>
>>>>>>>
>>>>>>
>>>>>> _______________________________________________
>>>>>> fpc-devel maillist - fpc-devel at lists.freepascal.org
>>>>>> https://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-devel
>>>>>>
>>>>>
>>>>>
>>>>> _______________________________________________
>>>>> fpc-devel maillist - fpc-devel at lists.freepascal.org
>>>>> https://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-devel
>>>>
>>>> _______________________________________________
>>>> fpc-devel maillist - fpc-devel at lists.freepascal.org
>>>> https://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-devel
>>>>
>>>
>>> --
>>> This email has been checked for viruses by Avast antivirus software.
>>> www.avast.com
>>> _______________________________________________
>>> fpc-devel maillist - fpc-devel at lists.freepascal.org
>>> https://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-devel
>> _______________________________________________
>> fpc-devel maillist - fpc-devel at lists.freepascal.org
>> https://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-devel
>>
>
> _______________________________________________
> fpc-devel maillist - fpc-devel at lists.freepascal.org
> https://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-devel
More information about the fpc-devel
mailing list