[fpc-pascal] SPARC / Linux

Tomas Hajny XHajT03 at hajny.biz
Mon Apr 3 11:41:01 CEST 2017


On Mon, April 3, 2017 11:29, Mark Morgan Lloyd wrote:
> On 13/03/17 09:00, Pierre Free Pascal wrote:
 .
 .
> When I try to build the entire installation with GDB support I get
>
> ..
>         Linking bin/sparc-linux/fp
> The installer encountered the following error:
> External command
> "/usr/local/src/fpc/fpcbuild-3.0.2/fpcsrc/compiler/ppcsparc -Tlinux
> -FEbin/sparc-linux -FUunits/sparc-linux/
> -Fu/usr/local/src/fpc/fpcbuild-3.0.2/fpcsrc/rtl/units/sparc-linux/
> -Fu/usr/local/src/fpc/fpcbuild-3.0.2/fpcsrc/packages/rtl-extra/units/sparc-linux/
> -Fu/usr/local/src/fpc/fpcbuild-3.0.2/fpcsrc/packages/fv/units/sparc-linux/
> -Fu/usr/local/src/fpc/fpcbuild-3.0.2/fpcsrc/packages/rtl-console/units/sparc-linux/
> -Fu/usr/local/src/fpc/fpcbuild-3.0.2/fpcsrc/packages/chm/units/sparc-linux/
> -Fu/usr/local/src/fpc/fpcbuild-3.0.2/fpcsrc/packages/fcl-xml/units/sparc-linux/
> -Fu/usr/local/src/fpc/fpcbuild-3.0.2/fpcsrc/packages/fcl-base/units/sparc-linux/
> -Fu/usr/local/src/fpc/fpcbuild-3.0.2/fpcsrc/packages/fcl-res/units/sparc-linux/
> -Fu/usr/local/src/fpc/fpcbuild-3.0.2/fpcsrc/packages/rtl-objpas/units/sparc-linux/
> -Fu/usr/local/src/fpc/fpcbuild-3.0.2/fpcsrc/packages/iconvenc/units/sparc-linux/
> -Fu/usr/local/src/fpc/fpcbuild-3.0.2/fpcsrc/packages/regexpr/units/sparc-linux/
> -Fu/usr/local/src/fpc/fpcbuild-3.0.2/fpcsrc/packages/gdbint/units/sparc-linux/
> -Ficompiler -Fl -Ur -Xs -O2 -n -dRELEASE -Ur -dNOCATCH -dBrowserCol
> -dGDB -dsparc -Fu../compiler -Fu../compiler/sparc -Fu../compiler/targets
> -Fu../compiler/systems -Fi../compiler/sparc -Fi../compiler -Sg
> -Fl../libgdb/linux/sparc/ -Xd -viq fp.pas" failed with exit code 256.
> Console output:
> Target OS: Linux for SPARC
> Compiling fp.pas
> ..
> Writing Resource String Table file: fp.rsj
> Assembling fp
> Linking bin/sparc-linux/fp
> /usr/bin/ld: cannot find -lgcc
> fp.pas(582) Error: Error while linking
> fp.pas(582) Fatal: There were 1 errors compiling module, stopping
> Fatal: Compilation aborted
>
> make[3]: *** [all] Error 1
> make[3]: Leaving directory `/usr/local/src/fpc/fpcbuild-3.0.2/fpcsrc/ide'
> make[2]: *** [ide_all] Error 2
> make[2]: Leaving directory `/usr/local/src/fpc/fpcbuild-3.0.2/fpcsrc'
> make[1]: *** [build-stamp.sparc-linux] Error 2
> make[1]: Leaving directory `/usr/local/src/fpc/fpcbuild-3.0.2/fpcsrc'
> make: *** [fpcsrc/build-stamp.sparc-linux] Error 2
>
> I also tried
>
> GDB_V607=1 install/makepack
>
> Unless anybody (Martin?) has any suggestions, I propose to focus on
> building SPARC/Linux and SPARC/Solaris installation bundles without- for
> the moment at least- GDB, in the interest of making something available
> as quickly as possible.

Check where gcc.a is located and try to find out (by checking the passed
options / directories), why it is found when building fpcsrc but not when
doing the whole package? Possibly pass the respective -Fl to the build
process explicitly (depending on the used options, fpcsrc building might
use a reference in fpc.cfg)?

Tomas





More information about the fpc-pascal mailing list