[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Building master on Windows fails with undefined reference to `__buil
From: |
martin rudalics |
Subject: |
Re: Building master on Windows fails with undefined reference to `__builtin_assume_aligned' |
Date: |
Sun, 26 Jun 2016 11:00:42 +0200 |
>> ../../src/lisp.h:878:3: warning: implicit declaration of function
'__builtin_assume_aligned' [-Wimplicit-function-declaration]
>
> What version of GCC are you using?
gcc (GCC) 4.6.2
> What are the values of the C macros __GNUC__,
4
> __GNUC_MINOR__,
6
> and __GNUC_PATCHLEVEL__?
2
(as expected I believe).
> Currently, src/conf_post.h has this:
>
> # define __has_builtin___builtin_assume_aligned GNUC_PREREQ (4, 7, 0)
>
> which means the code assumes that GCC 4.7.0 and later support __builtin_assume_aligned
(I got this from the GCC NEWS files). Perhaps that "(4, 7, 0)" is too low and
needs to be increased a bit?
Something else must be at work here. Note that I do not get the errors
with CFLAGS='-O0 -g2 -gdwarf-2' (from my debug-build options).
martin