The initial build of openmodelica package fails, if no library file libomcgc.so is present on the system. Strangely in this case ldd gives the path to the library twice, once as not found and once with the correct path in the build directory. Up to now only placing libomcgc.so in the system folder during compilation made a successful build process possible.