Le 21/05/2025 à 14:48, andrew--- via R-package-devel a écrit :
Hi all,
I'm currently having difficulty replicating an ODR violation that is being
raised by the gcc-asan check here:
https://www.stats.ox.ac.uk/pub/bdr/memtests/gcc-ASAN/RcppPlanc/00install.out.
Perhaps weirder, it seems to be triggered by an inclusion of
armadillo_bits/constants.hpp in both my shared object and the Rcpp binding
library-which seems like something that shouldn't be raising any issues.
Seemingly, yes. ODR stands for _One_ Definition Rule so if you define
the same thing in two different libs then raising issue sounds legitimate.
I suppose one possible solution could be incorporating the content of
libnmflib.so (and all other libs your build) directly in RcppPlanc.so
and cleaning them afterward.
Hoping it helps,
Serguei.
Dirk, you wouldn't happen to have seen this before?
-Andrew Robbins
______________________________________________
R-package-devel@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-package-devel
______________________________________________
R-package-devel@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-package-devel