This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: Requirements on Binutils and Linux kernel for GCC + Libsanitizer (was: Re: Bootstrap broken on x86_64 Linux?)
- From: FX <fxcoudert at gmail dot com>
- To: GCC Development <gcc at gcc dot gnu dot org>
- Cc: Konstantin Serebryany <konstantin dot s dot serebryany at gmail dot com>, Tobias Burnus <burnus at net-b dot de>, Kostya Serebryany <kcc at google dot com>, Dmitry Vyukov <dvyukov at google dot com>, Dodji Seketeli <dodji at redhat dot com>, Jakub Jelinek <jakub at redhat dot com>
- Date: Sun, 10 Nov 2013 19:34:31 +0100
- Subject: Re: Requirements on Binutils and Linux kernel for GCC + Libsanitizer (was: Re: Bootstrap broken on x86_64 Linux?)
- Authentication-results: sourceware.org; auth=none
- References: <BB73D69C-56DB-410B-9E8D-B66F2652A2D9 at gmail dot com> <DC9CBACA-ACD2-490D-8355-8F68186C4E55 at gmail dot com> <527F5D05 dot 1020601 at net-b dot de> <A83B7A88-A3DD-472C-90E9-913F2B194B6F at gmail dot com> <CAGQ9bdzQX6A1R-EvhqUDypNVgaquc0C3zqUM3fkVE7xSz70R9w at mail dot gmail dot com> <CAGQ9bdw4cLRJGbbMD+vTkg5RPNKsM6kU6e+OfM6emUqMRk5RbQ at mail dot gmail dot com>
> Unfortunately, we are not able to keep up with the old kernels.
> Two possible ways to go:
> - disable libsanitizer on older kernels
> - someone needs to work with us in upstream repository (llvm) to keep the code old-kernel-compatible
(It appears to be not only kernel, but binutils.)
I think, at least the following should be done:
- identify and document the minimal requirements
- test for necessary features at compilation time (we have full autoconf, presence of crucial headers should be tested) and issue a meaningful error message if they are not found
- ideally, but I know it is more work: disable libsanitizer automatically from toplevel configure if requirements are not met
This is what is done for dependencies of all default parts of the compiler, as far as I can tell.
FX