You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Message registration: Same module appearing twice in the configuration file results in two copies to be stamped out #4835
I came across this while using --saveUsedModules, which happens to save modules that are core and not normally have to be included in ServerModules.cfg. That resulted in GenSymIO to appear both in my config file, and also a list somewhere in the registration infra where we list default modules. The infra was happy to go through GenSymIO twice, stamping out same functions twice quitely.
End result was a Chapel compiler error because of doubly-defined functions.
I ran a make in that directory and no compiler error occurred. Did this issue somehow get fixed since you posted it? Or can you tell me how to better reproduce this?
/home/engin/code/arkouda-clones/arkouda/src/registry/Commands.chpl:66: In module 'Commands':
/home/engin/code/arkouda-clones/arkouda/src/registry/Commands.chpl:83: error: cannot capture routine with name 'ark_reg_isPythonModuleSupported' because it is overloaded
/home/engin/code/arkouda-clones/arkouda/src/registry/Commands.chpl:76: note: declared here
/home/engin/code/arkouda-clones/arkouda/src/registry/Commands.chpl:465: note: declared here
That shows the redefinition.
The root issue here is that if you use the same module name twice in the module config file, and if that module uses attribute-based message registration, the framework stamps out functions twice.
I think this should be ignored, ideally with a warning issued just to make sure that the user is aware of it.
Activity
1RyanK commentedon Sep 17, 2025
I started a server with
--saveUsedModulesand ran the following:Now my
UsedModules.cfglooks like this:I ran a
makein that directory and no compiler error occurred. Did this issue somehow get fixed since you posted it? Or can you tell me how to better reproduce this?e-kayrakli commentedon Sep 17, 2025
Not focusing on
--saveUsedModules:I can't compile Arkouda built with
MyModules.cfg:with error message
That shows the redefinition.
The root issue here is that if you use the same module name twice in the module config file, and if that module uses attribute-based message registration, the framework stamps out functions twice.
I think this should be ignored, ideally with a warning issued just to make sure that the user is aware of it.
1RyanK commentedon Sep 17, 2025
I was also missing the switch to using a different modules file. That makes sense.
Make sure to register commands from modules only once (#4953)