[Rd] gcc ubsan alignement test --minimal gcc version?
Prof Brian Ripley
ripley at stats.ox.ac.uk
Wed Oct 14 10:10:43 CEST 2015
On 13/10/2015 14:46, kaveh wrote:
> Dear All,
> I'm trying to implement the section of the manual pertaining to the
> gcc-ubsan test
> carried by CRAN on my local computer (ubuntu 14.04):
> I was wondering whether someone could tell what the minimal version
> of the gcc tool chain needed to run the gcc-ASAN and gcc-UBSAN
> tests on ones local computer is. CRAN seems to use gcc 5.2.0 to do
> these tests,
> but the current version of gcc shipped with ubuntu is 4.9.2 (to be
> updated to
> 5.1.0 with the 15.10 release latter this month).
> I hope this is the correct list to post this.
The correct thing to do is to read the manual (either the R manual or
your gcc manual). The R manual says
'AddressSanitizer (‘ASan’) is a tool with similar aims to the memory
checker in valgrind. It is available with suitable builds of gcc 4.8.0
or clang 3.1 and later on common Linux and OS X platforms.'
'‘UBSanitizer’ is a tool for C/C++ source code selected by
-fsanitize=undefined in suitable builds of clang, and GCC as from 4.9.0.'
Note that including these capabilities and their runtimes is optional at
least for clang (until recently Apple omitted them), so you need to
check your own system's documentation.
Brian D. Ripley, ripley at stats.ox.ac.uk
Emeritus Professor of Applied Statistics, University of Oxford
1 South Parks Road, Oxford OX1 3TG, UK
More information about the R-devel