as beremiz-ide will use open62541's library for compiling PLC projects and both should have been compiled with same gcc.