Re: [fpc-pascal] Link on another host - how to collect and copy all files?

2021-12-13 Thread Joost van der Sluis via fpc-pascal



Op 13-12-2021 om 18:27 schreef Jonas Maebe via fpc-pascal:

On 13/12/2021 18:02, Joost van der Sluis via fpc-pascal wrote:
I've got into troubles with a dynamic library on Linux. It uses 
pthreads but on the target system glibc 2.24 is used, while on my 
development machine 2.34 is being used. I've tried to copy the 
libc-libraries from the target system to my host and uxe -Xr -Xd, but 
it does not work.


You'd mainly need -XR in that case.


I'll try that one as well..

Does someone has a tool of other good trick to copy everything to the 
target machine, and link there?


(I almost started to add a separate option to the compiler to create a 
script do this, but there must be some other way to do this)


There is already an option for this: -st . I don't know how well it 
works though.


I've tried -sT but it didn't do much, except for fixing the path-names 
for the target. But -st does more. Good to know that it is for exactly 
this purpose. I'll see if I can manage to get it to work.


Regards,

Joost.
___
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
https://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal


Re: [fpc-pascal] Link on another host - how to collect and copy all files?

2021-12-13 Thread Jonas Maebe via fpc-pascal

On 13/12/2021 18:02, Joost van der Sluis via fpc-pascal wrote:
I've got into troubles with a dynamic library on Linux. It uses pthreads 
but on the target system glibc 2.24 is used, while on my development 
machine 2.34 is being used. I've tried to copy the libc-libraries from 
the target system to my host and uxe -Xr -Xd, but it does not work.


You'd mainly need -XR in that case.

Does someone has a tool of other good trick to copy everything to the 
target machine, and link there?


(I almost started to add a separate option to the compiler to create a 
script do this, but there must be some other way to do this)


There is already an option for this: -st . I don't know how well it 
works though.



Jonas
___
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
https://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal


[fpc-pascal] Link on another host - how to collect and copy all files?

2021-12-13 Thread Joost van der Sluis via fpc-pascal


Hi all,

I've got into troubles with a dynamic library on Linux. It uses pthreads 
but on the target system glibc 2.24 is used, while on my development 
machine 2.34 is being used. I've tried to copy the libc-libraries from 
the target system to my host and uxe -Xr -Xd, but it does not work.


I guess that it is getting complicated because in the old glibc version 
applications are linked to pthreads, while in this newer version the 
link is made against libc itself.


Now I want to copy all files that are used by the link-script to the 
target, and link there. But.. there are really a lot of files involved. 
(And the paths in ppas.sh and link.res are absolute paths?)


Does someone has a tool of other good trick to copy everything to the 
target machine, and link there?


(I almost started to add a separate option to the compiler to create a 
script do this, but there must be some other way to do this)


Regards,

Joost.

ps: I can also compile on the target, but my goal is to try different 
compiler versions. I can not install those on the target machine.

___
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
https://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal