Hi guys,
Still not succeeding to compile for my rpi.
I tried to copy the archive libtirc.a to my ubuntu /usr/lib64 with no success.
I understand later on that it is related to cross compiler which is located in my case in :
/home/pwrp/pi/ToolChain/x-tools/aarch64-rpi3-linux-gnu/aarch64-rpi3-linux-gnu/
So I copied the lib into :
/home/pwrp/pi/ToolChain/x-tools/aarch64-rpi3-linux-gnu/aarch64-rpi3-linux-gnu/lib/
as this is what looks like best to Claes suggestion but now the error message is totally different:
** Plc program link errors for arm64_linux node plc_plcsimbl_0001_plc
/home/pwrp/pi/ToolChain/x-tools/aarch64-rpi3-linux-gnu/bin/../lib/gcc/aarch64-rpi3-linux-gnu/14.1.0/../../../../aarch64-rpi3-linux-gnu/bin/ld.bfd: /usr/pwr61/os_linux/hw_arm64/exp/lib/libpwr_rt.a(rt_io_m_pncontrollersoftingpnak.o): in function `__gnu_cxx::__is_single_threaded()':
/usr/aarch64-linux-gnu/include/c++/11/ext/atomicity.h:52:(.text._ZNSt16_Sp_counted_baseILN9__gnu_cxx12_Lock_policyE2EE10_M_releaseEv[_ZNSt16_Sp_counted_baseILN9__gnu_cxx12_Lock_policyE2EE10_M_releaseEv]+0x20): undefined reference to `__libc_single_threaded'
/home/pwrp/pi/ToolChain/x-tools/aarch64-rpi3-linux-gnu/bin/../lib/gcc/aarch64-rpi3-linux-gnu/14.1.0/../../../../aarch64-rpi3-linux-gnu/bin/ld.bfd: /usr/aarch64-linux-gnu/include/c++/11/ext/atomicity.h:52:(.text._ZNSt16_Sp_counted_baseILN9__gnu_cxx12_Lock_policyE2EE10_M_releaseEv[_ZNSt16_Sp_counted_baseILN9__gnu_cxx12_Lock_policyE2EE10_M_releaseEv]+0x24): undefined reference to `__libc_single_threaded'
/home/pwrp/pi/ToolChain/x-tools/aarch64-rpi3-linux-gnu/bin/../lib/gcc/aarch64-rpi3-linux-gnu/14.1.0/../../../../aarch64-rpi3-linux-gnu/bin/ld.bfd: /usr/aarch64-linux-gnu/include/c++/11/ext/atomicity.h:52:(.text._ZNSt16_Sp_counted_baseILN9__gnu_cxx12_Lock_policyE2EE10_M_releaseEv[_ZNSt16_Sp_counted_baseILN9__gnu_cxx12_Lock_policyE2EE10_M_releaseEv]+0xdc): undefined reference to `__libc_single_threaded'
/home/pwrp/pi/ToolChain/x-tools/aarch64-rpi3-linux-gnu/bin/../lib/gcc/aarch64-rpi3-linux-gnu/14.1.0/../../../../aarch64-rpi3-linux-gnu/bin/ld.bfd: /usr/aarch64-linux-gnu/include/c++/11/ext/atomicity.h:52:(.text._ZNSt16_Sp_counted_baseILN9__gnu_cxx12_Lock_policyE2EE10_M_releaseEv[_ZNSt16_Sp_counted_baseILN9__gnu_cxx12_Lock_policyE2EE10_M_releaseEv]+0xe0): undefined reference to `__libc_single_threaded'
/home/pwrp/pi/ToolChain/x-tools/aarch64-rpi3-linux-gnu/bin/../lib/gcc/aarch64-rpi3-linux-gnu/14.1.0/../../../../aarch64-rpi3-linux-gnu/bin/ld.bfd: /usr/aarch64-linux-gnu/include/c++/11/ext/atomicity.h:52:(.text._ZNSt16_Sp_counted_baseILN9__gnu_cxx12_Lock_policyE2EE15_M_add_ref_copyEv[_ZNSt16_Sp_counted_baseILN9__gnu_cxx12_Lock_policyE2EE15_M_add_ref_copyEv]+0x20): undefined reference to `__libc_single_threaded'
/home/pwrp/pi/ToolChain/x-tools/aarch64-rpi3-linux-gnu/bin/../lib/gcc/aarch64-rpi3-linux-gnu/14.1.0/../../../../aarch64-rpi3-linux-gnu/bin/ld.bfd: /usr/pwr61/os_linux/hw_arm64/exp/lib/libpwr_rt.a(rt_io_m_pncontrollersoftingpnak.o):/usr/aarch64-linux-gnu/include/c++/11/ext/atomicity.h:52: more undefined references to `__libc_single_threaded' follow
collect2: error: ld returned 1 exit status
%GSX-F-CCERROR, Error from c compiler or linker
Don t know if I m getting closer or am totally off road...
Hope someone can help me a bit..
Thanks in advance
Snarf