-
Notifications
You must be signed in to change notification settings - Fork 154
Open
Description
<arm_neon.h>
is defined by a spec that ARM releases, and implemented by compilers. It is not a "real" header file. This happen with either included first.
[2/244] Building CXX object CMakeFiles/zig.dir/src/tokenizer.cpp.o
FAILED: CMakeFiles/zig.dir/src/tokenizer.cpp.o
/usr/bin/c++ -I../deps/lld/include -I/usr/lib/llvm-8/include -I../deps/SoftFloat-3e/source/include -I../ -I. -I../src -I../deps/SoftFloat-3e-prebuilt -I../deps/SoftFloat-3e/source/8086 -g -std=c++11 -Werror -Wall -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -D__STDC_LIMIT_MACROS -D_GNU_SOURCE -fno-exceptions -fno-rtti -Werror=strict-prototypes -Werror=old-style-definition -Werror=type-limits -Wno-missing-braces -MD -MT CMakeFiles/zig.dir/src/tokenizer.cpp.o -MF CMakeFiles/zig.dir/src/tokenizer.cpp.o.d -o CMakeFiles/zig.dir/src/tokenizer.cpp.o -c ../src/tokenizer.cpp
In file included from ../src/utf8/range2-neon.c:10,
from ../src/utf8/utf8.h:4,
from ../src/tokenizer.cpp:11:
/usr/lib/gcc/aarch64-linux-gnu/8/include/arm_neon.h:72:16: error: conflicting declaration ‘typedef __fp16 float16_t’
typedef __fp16 float16_t;
^~~~~~~~~
In file included from ../deps/SoftFloat-3e/source/include/softfloat.h:51,
from ../src/softfloat.hpp:12,
from ../src/util.hpp:36,
from ../src/list.hpp:11,
from ../src/buffer.hpp:11,
from ../src/tokenizer.hpp:11,
from ../src/tokenizer.cpp:8:
../deps/SoftFloat-3e/source/include/softfloat_types.h:50:32: note: previous declaration as ‘typedef struct float16_t float16_t’
typedef struct { uint16_t v; } float16_t;
^~~~~~~~~
In file included from ../src/utf8/range2-neon.c:10,
from ../src/utf8/utf8.h:4,
from ../src/tokenizer.cpp:11:
/usr/lib/gcc/aarch64-linux-gnu/8/include/arm_neon.h:73:15: error: conflicting declaration ‘typedef float float32_t’
typedef float float32_t;
^~~~~~~~~
In file included from ../deps/SoftFloat-3e/source/include/softfloat.h:51,
from ../src/softfloat.hpp:12,
from ../src/util.hpp:36,
from ../src/list.hpp:11,
from ../src/buffer.hpp:11,
from ../src/tokenizer.hpp:11,
from ../src/tokenizer.cpp:8:
../deps/SoftFloat-3e/source/include/softfloat_types.h:51:32: note: previous declaration as ‘typedef struct float32_t float32_t’
typedef struct { uint32_t v; } float32_t;
^~~~~~~~~
In file included from ../src/utf8/range2-neon.c:10,
from ../src/utf8/utf8.h:4,
from ../src/tokenizer.cpp:11:
/usr/lib/gcc/aarch64-linux-gnu/8/include/arm_neon.h:74:16: error: conflicting declaration ‘typedef double float64_t’
typedef double float64_t;
^~~~~~~~~
In file included from ../deps/SoftFloat-3e/source/include/softfloat.h:51,
from ../src/softfloat.hpp:12,
from ../src/util.hpp:36,
from ../src/list.hpp:11,
from ../src/buffer.hpp:11,
from ../src/tokenizer.hpp:11,
from ../src/tokenizer.cpp:8:
../deps/SoftFloat-3e/source/include/softfloat_types.h:52:32: note: previous declaration as ‘typedef struct float64_t float64_t’
typedef struct { uint64_t v; } float64_t;
^~~~~~~~~
Perhaps softfloat does not work with <arm_neon.h>
, in which case a preprocessor #error
should give a more helpful error.
Metadata
Metadata
Assignees
Labels
No labels