If this were the case I don't think that I'd be having problems replicating it.





________________________________________
From: Serguei Sokol <serguei.so...@gmail.com>
Sent: Wednesday, May 21, 2025 9:21 AM
To: and...@robbinsa.me <and...@robbinsa.me>; R Package Development 
<r-package-devel@r-project.org>
Subject: Re: [R-pkg-devel] gcc-asan replication for armadillo


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

Reply via email to