fpcres is not being built when building cross-compiler
Original Reporter info from Mantis: Sergey Organov
-
Reporter name: Sergey Organov
Original Reporter info from Mantis: Sergey Organov
- Reporter name: Sergey Organov
Description:
When building cross-compiler (from linux-x86_64 to linux-arm, didn't check if it's essential), fpcres utility is not being built nor installed, resulting in compile-time errors when resulting cross-compiler is used, unless native free pascal is installed as well on the same host, in which case fpcres is being run from that native installation when using cross-compiler.
The error itself is also somewhat misleading and looks like this:
(9009) Assembling jps2rin
jps2rin.pas(85) Error: (9021) resource compiler "/opt/cross/br/arm/6.2.0/usr/bin/arm-javad-linux-gnueabihf-fpcres"
not found, switching to external mode
jps2rin.pas(85) Fatal: (10026) There were 1 errors compiling module, stopping
Fatal: (1018) Compilation aborted
It's misleading as it neither explains what "external mode" is, nor finally tells that this "external mode", whatever it is, failed as well.
Moreover, once native FPC is installed on the same host, the cross-compiler not only starts to be operational, but this error disappears altogether, issuing no warning that compiler has used unrelated tool, maybe even of incompatible version (?), making the user believe that everything is fine and the problem harder to detect.
I think the set of host tools being built should likely depend only on the host type, not on the target type.
Mantis conversion info:
- Mantis ID: 38396
- OS: Linux
- OS Build: 5.4.0
- Platform: x86_64
- Version: 3.2.0