[fpc-devel] FPC 3.0.2 for SPARC
Pierre Muller
pierre at freepascal.org
Fri May 5 17:55:43 CEST 2017
> gmake NOGDB=1 OPT='-V3.0.0 -O- -gl -Xn -vt' all
>
> but the full build is giving me a linking error.
>
> Following Pierre's instructions I'm using
>
> CHECKLIBGDB=no install/makepack
>
> which is eventually failing with
>
> /usr/local/src/fpc/fpcbuild-3.0.2/fpcsrc/compiler$
> /usr/local/bin/ppcsparc -Ur -Xs -O2 -n -Fusparc -Fusystems
> -Fu/usr/local/src/fpc/fpcbuild-3.0.2/fpcsrc/rtl/units/sparc-solaris
> -Fisparc -FE. -FUsparc/units/sparc-solaris -dRELEASE -dsparc -dGDB
> -dBROWSERLOG -Sew pp.pas
>
> /usr/bin/gld:built in linker script:21: syntax error
> pp.pas(238,36) Error: Error while linking
> pp.pas(238,36) Fatal: There were 1 errors compiling module, stopping
> Fatal: Compilation aborted
>
> I'm pretty sure I've come across this one before and that the cause is
> something like the wrong linker being invoked by the makefile, leave it
> with me so I can go through my notes.
>
> I'll be back ;-)
You probably need to add the -Xn option into the makepack script!
Pierre
More information about the fpc-devel
mailing list