[fpc-pascal] Cannot cross-compile from Linux to Solaris-SPARC ?

Joost van der Sluis joost at cnoc.nl
Thu Oct 3 12:16:32 CEST 2019


Op 03-10-2019 om 06:18 schreef Alexey Tor.:

> Error: /home/user/fpcupdeluxe/cross/bin/sparc-solaris/sparc-solaris-gld: 
> cannot find -lm
> Error: /home/user/fpcupdeluxe/cross/bin/sparc-solaris/sparc-solaris-gld: 
> cannot find -lc
> Error: /home/user/fpcupdeluxe/cross/bin/sparc-solaris/sparc-solaris-gld: 
> cannot find -lmd5
> Error: /home/user/fpcupdeluxe/cross/bin/sparc-solaris/sparc-solaris-gld: 
> cannot find -laio
> Error: /home/user/fpcupdeluxe/cross/bin/sparc-solaris/sparc-solaris-gld: 
> cannot find -lrt
> Error: /home/user/fpcupdeluxe/cross/bin/sparc-solaris/sparc-solaris-gld: 
> cannot find -lpthread
> Error: /home/user/fpcupdeluxe/cross/bin/sparc-solaris/sparc-solaris-gld: 
> cannot find -ldl
> Error: /home/user/fpcupdeluxe/cross/bin/sparc-solaris/sparc-solaris-gld: 
> cannot find -lgdk-x11-2.0
> Error: /home/user/fpcupdeluxe/cross/bin/sparc-solaris/sparc-solaris-gld: 
> cannot find -lX11
> Error: /home/user/fpcupdeluxe/cross/bin/sparc-solaris/sparc-solaris-gld: 
> cannot find -lgdk_pixbuf-2.0
> Error: /home/user/fpcupdeluxe/cross/bin/sparc-solaris/sparc-solaris-gld: 
> cannot find -lgtk-x11-2.0
> Error: /home/user/fpcupdeluxe/cross/bin/sparc-solaris/sparc-solaris-gld: 
> cannot find -lgobject-2.0
> Error: /home/user/fpcupdeluxe/cross/bin/sparc-solaris/sparc-solaris-gld: 
> cannot find -lglib-2.0
> Error: /home/user/fpcupdeluxe/cross/bin/sparc-solaris/sparc-solaris-gld: 
> cannot find -lgthread-2.0
> Error: /home/user/fpcupdeluxe/cross/bin/sparc-solaris/sparc-solaris-gld: 
> cannot find -lgmodule-2.0
> Error: /home/user/fpcupdeluxe/cross/bin/sparc-solaris/sparc-solaris-gld: 
> cannot find -lpango-1.0
> Error: /home/user/fpcupdeluxe/cross/bin/sparc-solaris/sparc-solaris-gld: 
> cannot find -lcairo
> Error: /home/user/fpcupdeluxe/cross/bin/sparc-solaris/sparc-solaris-gld: 
> cannot find -latk-1.0
> Error: /home/user/fpcupdeluxe/cross/bin/sparc-solaris/sparc-solaris-gld: 
> cannot find -lc
> cudatext.lpr(31,32) Error: Error while linking

The compiler failed to find libc, libm, libmd5, libaoi, librt, 
libpthread, libdl, libetcetc.

I see you are cross-compiling, so I guess that you do not have these 
libraries available on the host-system, as you should.

btw: fpcupdeluxe is a third party tool. I do not know how it works etc. 
Maybe better to do the cross-compile yourself and tell us what you did 
or contact the fpcupdeluxe people. (For example: what was the command 
line to build fpc?)

Regards,

Joost.



More information about the fpc-pascal mailing list