Hi
I’m trying to run an optimized build of the xilinx24_1_aarch64 RCC platform on the ZCU104 devboard. The normal unoptimized build works fine, but when I try to install the xilinx24_1_aarch64-o version of OpenCPI the setup script fails with a segfault.
I build the platform using ocpiadmin --minimal install platform --optimize xilinx24_1_aarch64 on a Rocky 9 host.
Further testing shows that ocpirun (and others) exit almost instantly with a segfault. When I run ocpirun with gdbserver I can see it’s going wrong in OsMemset.cc os/linux/src/OsMemset.cc · develop · OpenCPI / OpenCPI · GitLab
This is most likely because the standard optmizations see that code and realise it’s a memset and replace it with a call to memset, unfortunately it’s in a function called memset and this causes recursion.
I think adding -fno-builtin-memset (and memcpy) should stop this but they don’t seem to be.
So I guess my question is has anyone else managed to get an optimized build of this RCC platform working?
Also the comment in that file is concerning, but that doesn’t appear to be the fault that I’m getting.
Thanks