Troubleshooting MC
This page lists the most common problems encoutered with the NA62 MC code, along with more or less general solutions.
Code compilation
Shared object portability issue. In
Generator/GNUmakefile
and
Beam/GNUmakefile
, define a new variable
CMCLIBNAME
, just above the existing
CMCLIB
definition:
CMCLIBNAME := libcmc.so
CMCLIB := $(CMCDIR)/libcmc.so
and then the target:
Generator: $(CMCLIB)
$(CMCLIB): $(OBJF) $(OBJC) $(COMMONOBJ) $(OBJCC)
$(FC) -shared -Wl,-soname,$(CMCLIBNAME) -o $(CMCLIB) $^
This way the .so is linked w/o the full path, which ensures portability of the executable.