[fpc-pascal] SPARC / Linux

Mark Morgan Lloyd markMLl.fpc-pascal at telemetry.co.uk
Mon Apr 3 11:29:24 CEST 2017


On 13/03/17 09:00, Pierre Free Pascal wrote:
>> -----Message d'origine-----> De : fpc-pascal [mailto:fpc-pascal-bounces at lists.freepascal.org] De la> part de Mark Morgan Lloyd> Envoyé : lundi 13 mars 2017 09:11> À : fpc-pascal at lists.freepascal.org> Objet : Re: [fpc-pascal] SPARC / Linux> > On 13/03/17 06:30, Pierre Free Pascal wrote:> > Hi Mark,> > if you mean build a native installer for 32-btsparc-linux, I can tell> you want you need to do:> > I'm used to building it for my own use. I'll take a look at your> instructions for versions later than 2.6.2, since even getting 2.6.4 or> 3.0.0 available would be progress. Time permitting :-(
>   I would also be interested in those other versions,if you succeed in building them. > > a libgdb installation to enable GDB inside FP IDE,which (if you do> not have> > I've found libgdb to be a problem on several platforms, it's not> maintained actively.You are breaking my heart...I am trying to maintain the internal GDB support for FP IDE,but even if I am a member of the GDB maintainer team,this is a huge task, which I never really have time to fulfill.
>   I have no access to any sparc machine, thus it is even moredifficult to maintain such targets.

For both SPARC/Linux and SPARC/Solaris I'm able to build the fpcsrc 
stuff without GDB. In both cases I can build the entire installation 
bundle, again without GDB.

For SPARC/Linux I can build fpcsrc with GDB_V607 which is the version of 
the library I've been using for many years. I've not tried this yet with 
SPARC/Solaris.

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.

-- 
Mark Morgan Lloyd
markMLl .AT. telemetry.co .DOT. uk

[Opinions above are the author's, not those of his employers or colleagues]



More information about the fpc-pascal mailing list