[fpc-devel]Linking problems with fpc cvs

Michael.VanCanneyt at Wisa.be Michael.VanCanneyt at Wisa.be
Tue May 6 15:03:36 CEST 2003


On Tue, 6 May 2003, Mattias Gaertner wrote:

> Hi,
>
> I have a linking problem with the current fpc cvs (fixed branch) under
> linux.
>
> For example doing a 'make linuxzip' results in the following linker error:
>
> [...]
> make -C net all
> make[5]: Entering directory `/home/[...]/108/fpc/fcl/net'
> [...]
> /home/[...]/108/fpc/compiler/ppc386 -XX -CX -Xs -OG2p3 -n -S2h
> -Fu/home/[...]/108/fpc/rtl/linux -Fu/home/[...]/108/fpc/packages/base/netdb
> -Fu/home/[...]/108/fpc/packages/base/libasync -FE../linux -di386 -dRELEASE
> mkxmlrpc.pp
> /usr/bin/ld: cannot find libppaswrite.a
> mkxmlrpc.pp(774) Error: Error while linking
> make[5]: *** [mkxmlrpc] Error 1
> make[5]: Leaving directory `/home/[...]/108/fpc/fcl/net'
> make[4]: *** [net_all] Error 2
> [...]
>
>
> The created fcl/linux/ppas.sh script:
>
> #!/bin/sh
> DoExitAsm ()
> { echo "An error occurred while assembling $1"; exit 1; }
> DoExitLink ()
> { echo "An error occurred while linking $1"; exit 1; }
> echo Linking ../linux/mkxmlrpc
> /usr/bin/ld    -s -L. -o ../linux/mkxmlrpc ../linux/link.res
> if [ $? != 0 ]; then DoExitLink ../linux/mkxmlrpc; fi
>
> The libppaswrite.a is in fcl/linux/, the same directory where ppash.sh is.
> The ppas.sh is executed with the same working directory as the compiler.
> Therefore the -L. can't find the library.
>
> Any ideas?

Yes, remove the -XX -CX -Xs options.
Then it should work fine (At least here it does).

Michael.




More information about the fpc-devel mailing list