[R-pkg-devel] gcc-asan replication for armadillo
    Serguei Sokol 
    @ergue|@@oko| @end|ng |rom gm@||@com
       
    Wed May 21 15:21:58 CEST 2025
    
    
  
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 using r-project.org mailing list
> https://stat.ethz.ch/mailman/listinfo/r-package-devel
    
    
More information about the R-package-devel
mailing list