The main comment I’ll make is that what you are trying to do should generally work. If you are attempting to rebuild Xyce with --enable-sharabl, in a directory where is was previously built without it, I’d suggest starting from a completely clean build in a new directory.