Cannot cross-compile from Linux to Solaris-SPARC ?

classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|

Cannot cross-compile from Linux to Solaris-SPARC ?

AlexeyT
Linux x64.
Free Pascal Compiler version 3.2.0-beta-r41315 [2019/02/16] for x86_64
Installed cross-compiler to Solaris-SPARC, using fpcupdeluxe 1.6.2y.
I got such errors on compiling my project. what it means? maybe I must
update FPC to trunk?

Error: /home/user/fpcupdeluxe/cross/bin/sparc-solaris/sparc-solaris-gar:
creating
/home/user/cuda/synedit/atsynedit/lib/sparc-solaris/libpatsynedit_edits.a
Error: /home/user/fpcupdeluxe/cross/bin/sparc-solaris/sparc-solaris-gar:
creating
/home/user/cuda/synedit/atsynedit/lib/sparc-solaris/libpatsynedit_register.a
Error: /home/user/fpcupdeluxe/cross/bin/sparc-solaris/sparc-solaris-gar:
creating /home/user/cuda/cuda/app/lib/sparc-solaris/libpform_choose_theme.a
..
Error: /home/user/fpcupdeluxe/cross/bin/sparc-solaris/sparc-solaris-gar:
creating /home/user/cuda/cuda/app/lib/sparc-solaris/libpformmain.a
Error: /home/user/fpcupdeluxe/cross/bin/sparc-solaris/sparc-solaris-gar:
creating /home/user/cuda/cuda/app/lib/sparc-solaris/libpcudatext.a
..
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

--
Regards,
Alexey

_______________________________________________
fpc-pascal maillist  -  [hidden email]
https://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal
Reply | Threaded
Open this post in threaded view
|

Re: Cannot cross-compile from Linux to Solaris-SPARC ?

Joost van der Sluis
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.

_______________________________________________
fpc-pascal maillist  -  [hidden email]
https://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal
Reply | Threaded
Open this post in threaded view
|

Re: Cannot cross-compile from Linux to Solaris-SPARC ?

AlexeyT
In reply to this post by AlexeyT
So it was the issue of missing of fpcupdeluxe helper files (libs are not
uploaded to fpcupdeluxe site)

--
Regards,
Alexey

_______________________________________________
fpc-pascal maillist  -  [hidden email]
https://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal