[Pkg-pascal-devel] Bug#1011318: fp terminal ide does not compile hello world

Steve Greenburg beethoven3322 at hotmail.com
Fri May 20 02:02:02 BST 2022


Package: fp-ide
Version: 3.2.2

When I run 'fp' without arguments from the package fp-ide (free pascal compiler) I get the borland-style IDE terminal. Then I type in the following hello world program, save as hello.pas, then hit alt-F9 to compile. However I get an error that a unit (the pascal term for a library?) is not available, rather than it compiling the file.

begin                                                                                                 
   writeln('hello world');                                                                            
end.

(1,1) Fatal: Can't find unit system used by Program                                                  ▲
(0) Fatal: Compilation aborted 

(Note the period after the 'end' keyword.) However the unit files are available. In fact if I add the following line to the Options->Directories->Unit Directories submenu then the compilation succeeds (fp creates a temporary cfg file in the current directory with the new path):
/usr/lib/x86_64-linux-gnu/fpc/3.2.2/units/x86_64-linux/*

The config file is /etc/fpc.cfg and it mentions the above path but with symbols. For example it has '$fpcversion' instead of '3.2.2'. Strangely the 'fpc' compiler itself uses this file but has no problems. I have tested this on latest debian testing. I'm not sure how to fix the problem in fp itself however other than through the GUI or why it's not using the fpc.cfg file properly.

-Steve


More information about the Pkg-pascal-devel mailing list