[LLVMdev] bug report - libsanitizer compilation fail

Kostya Serebryany kcc at google.com
Tue Oct 7 11:39:15 PDT 2014


A patch is welcome, but  2.6.37 is way too old and chances are that
something else will be broken there too.

On Tue, Oct 7, 2014 at 7:10 AM, Yury Gribov <y.gribov at samsung.com> wrote:

> On 10/07/2014 01:24 PM, Daniel Doron wrote:
>
>> Hi,
>>
>> I am sending this bug report here because I can't register an account
>> in bugzilla...
>>
>> gcc version: gcc-linaro-4.9-2014.09 (I checked also the main repo git,
>> the code is the same)
>> kernel: 2.6.37
>>
>> "home/daniel/Downloads/.build/src/gcc-custom/libsanitizer/
>> sanitizer_common/sanitizer_platform_limits_posix.cc:675:43:
>> error: 'EVIOCGPROP' was not declared in this scope"
>>
>> This happens when compiling with kernel 2.6.37 headers.
>>
>> #if EV_VERSION > (0x010000)
>>    unsigned IOCTL_EVIOCGKEYCODE_V2 = EVIOCGKEYCODE_V2;
>>    unsigned IOCTL_EVIOCGPROP = EVIOCGPROP(0);
>>    unsigned IOCTL_EVIOCSKEYCODE_V2 = EVIOCSKEYCODE_V2;
>> #else
>>    unsigned IOCTL_EVIOCGKEYCODE_V2 = IOCTL_NOT_PRESENT;
>>    unsigned IOCTL_EVIOCGPROP = IOCTL_NOT_PRESENT;
>>    unsigned IOCTL_EVIOCSKEYCODE_V2 = IOCTL_NOT_PRESENT;
>> #endif
>>
>>
>> although in kernel 2.6.37 the EV_VERSION is indeed > (0x010000) the
>> EVIOCGPROP define is missing and only appears in 2.6.38 onwards.
>>
>
> Added Kostya.
>
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20141007/fc4dab4a/attachment.html>


More information about the llvm-dev mailing list