You are not logged in.
fpc is a free pascal compiler.
I downloaded about a 10 years old source, targeting Intel 32, and possibly other 32 bits, cpu. It has:
fpc -S2cgi -O1 -gl -WG -vewnhi -l -Fu/usr/lib/lazarus/lcl/units/$ARCH-$OS/ -Fu/usr/lib/lazarus/lcl/units/$ARCH-$OS/ -Fu/usr/lib/lazarus/lcl/units/$ARCH-$OS/gtk2/ -Fu/usr/lib/lazarus/packager/units/$ARCH-$OS/ -Fu. -o./magnifier -dLCL -dLCLgtk2 magnifier.dpr
For which I get:
Target architecture: x86_64
Target operating system: linux
Hint: Start of reading config file /etc/fpc.cfg
Hint: End of reading config file /etc/fpc.cfg
Error: Illegal parameter: -WG
Hint: -? writes help pages
Error: /usr/bin/ppcx64 returned an error exitcode
Indeed I am trying to build it, as is, by a 64 bits Intel cpu.
Other than -gw, which generates DWARF debugging information, what might have been requested by -WG? The project might have been designed with Delphi on Windows, but the authors have ported it years ago to 32 bits Linux and Apple. For Linux they require Lazarus.
Have you get more hints for building 32 bits pascal software to, and by, 64 bits machine?
Since you might have some knowledge about fpc or lazarus, you might want to look at a related lazarus-gtk2: Can't find unit LazFileUtils used by Gtk2Int bug I opened.
Last edited by regid (2018-10-25 18:57:21)
powerofforreboot.efi (AUR): Utilities to be used from within a UEFI boot manager or shell.
Offline
Comments are still requested, though it could be I found part of the answers:
-WG is still unclear.
google gave me FPC message: Can not find unit. Which was helping finding
/usr/lib/lazarus/components/lazutils/
So adding
-Fu/usr/lib/lazarus/components/lazutils/
to magnifier-3.4/make.sh fpc command seem to solve the build problem.
powerofforreboot.efi (AUR): Utilities to be used from within a UEFI boot manager or shell.
Offline