のねのBlog

パソコンの問題や、ソフトウェアの開発で起きた問題など書いていきます。よろしくお願いします^^。

clang skia

external/clang/lib/includeにarm_neon.hをtouchしたら以下のエラーになった。
touchを消したら、エラーがなくなった。

$ mmm ./external/skia/
============================================
PLATFORM_VERSION_CODENAME=REL
PLATFORM_VERSION=4.4.2
TARGET_PRODUCT=aosp_hammerhead
TARGET_BUILD_VARIANT=userdebug
TARGET_BUILD_TYPE=release
TARGET_BUILD_APPS=
TARGET_ARCH=arm
TARGET_ARCH_VARIANT=armv7-a-neon
TARGET_CPU_VARIANT=krait
HOST_ARCH=x86
HOST_OS=linux
HOST_OS_EXTRA=Linux-3.13.0-27-generic-x86_64-with-Ubuntu-14.04-trusty
HOST_BUILD_TYPE=release
BUILD_ID=KOT49H
OUT_DIR=out
============================================
PRODUCT_COPY_FILES device/generic/goldfish/data/etc/apns-conf.xml:system/etc/apns-conf.xml ignored.
make: Entering directory `/home/m_fujii/KK442r1_org/android'
target thumb C++: libskia <= external/skia/src/core/SkBlitter_RGB16.cpp
external/skia/src/core/SkBlitter_RGB16.cpp:393:13: error: unknown type name 'uint32x4_t'; did you mean 'uint32_t'?
            uint32x4_t color, dev_lo, dev_hi;
            ^~~~~~~~~~
            uint32_t
bionic/libc/include/stdint.h:47:23: note: 'uint32_t' declared here
typedef __uint32_t    uint32_t;
                      ^
external/skia/src/core/SkBlitter_RGB16.cpp:394:13: error: unknown type name 'uint32x4_t'; did you mean 'uint32_t'?
            uint32x4_t wn1, wn2, tmp;
            ^~~~~~~~~~
            uint32_t
bionic/libc/include/stdint.h:47:23: note: 'uint32_t' declared here
typedef __uint32_t    uint32_t;
                      ^
external/skia/src/core/SkBlitter_RGB16.cpp:395:13: error: unknown type name 'uint32x4_t'; did you mean 'uint32_t'?
            uint32x4_t vmask_g16, vmask_ng16;
            ^~~~~~~~~~
            uint32_t
bionic/libc/include/stdint.h:47:23: note: 'uint32_t' declared here
typedef __uint32_t    uint32_t;
                      ^
external/skia/src/core/SkBlitter_RGB16.cpp:396:13: error: unknown type name 'uint16x8_t'; did you mean 'uint16_t'?
            uint16x8_t valpha, vdev;
            ^~~~~~~~~~
            uint16_t
bionic/libc/include/stdint.h:45:23: note: 'uint16_t' declared here
typedef __uint16_t    uint16_t;
                      ^
external/skia/src/core/SkBlitter_RGB16.cpp:397:13: error: unknown type name 'uint16x4_t'
            uint16x4_t odev_lo, odev_hi, valpha_lo, valpha_hi;
            ^
external/skia/src/core/SkBlitter_RGB16.cpp:400:25: error: use of undeclared identifier 'vdupq_n_u32'
            vmask_g16 = vdupq_n_u32(SK_G16_MASK_IN_PLACE);
                        ^
external/skia/src/core/SkBlitter_RGB16.cpp:401:26: error: use of undeclared identifier 'vdupq_n_u32'
            vmask_ng16 = vdupq_n_u32(~SK_G16_MASK_IN_PLACE);
                         ^
external/skia/src/core/SkBlitter_RGB16.cpp:402:21: error: use of undeclared identifier 'vdupq_n_u32'
            color = vdupq_n_u32(expanded32);
                    ^
external/skia/src/core/SkBlitter_RGB16.cpp:406:35: error: use of undeclared identifier 'vdupq_n_u16'
                valpha = vaddw_u8(vdupq_n_u16(1), vld1_u8(alpha));
                                  ^
external/skia/src/core/SkBlitter_RGB16.cpp:407:26: error: use of undeclared identifier 'vshrq_n_u16'
                valpha = vshrq_n_u16(valpha, 3);
                         ^
external/skia/src/core/SkBlitter_RGB16.cpp:408:17: error: use of undeclared identifier 'valpha_lo'; did you mean 'valpha'?
                valpha_lo = vget_low_u16(valpha);
                ^~~~~~~~~
                valpha
external/skia/src/core/SkBlitter_RGB16.cpp:396:24: note: 'valpha' declared here
            uint16x8_t valpha, vdev;
                       ^
external/skia/src/core/SkBlitter_RGB16.cpp:408:29: error: use of undeclared identifier 'vget_low_u16'
                valpha_lo = vget_low_u16(valpha);
                            ^
external/skia/src/core/SkBlitter_RGB16.cpp:409:17: error: use of undeclared identifier 'valpha_hi'; did you mean 'valpha'?
                valpha_hi = vget_high_u16(valpha);
                ^~~~~~~~~
                valpha
external/skia/src/core/SkBlitter_RGB16.cpp:396:24: note: 'valpha' declared here
            uint16x8_t valpha, vdev;
                       ^
external/skia/src/core/SkBlitter_RGB16.cpp:409:29: error: use of undeclared identifier 'vget_high_u16'
                valpha_hi = vget_high_u16(valpha);
                            ^
external/skia/src/core/SkBlitter_RGB16.cpp:412:24: error: use of undeclared identifier 'vld1q_u16'
                vdev = vld1q_u16(device);
                       ^
external/skia/src/core/SkBlitter_RGB16.cpp:413:36: error: use of undeclared identifier 'vget_low_u16'
                dev_lo = vmovl_u16(vget_low_u16(vdev));
                                   ^
external/skia/src/core/SkBlitter_RGB16.cpp:414:36: error: use of undeclared identifier 'vget_high_u16'
                dev_hi = vmovl_u16(vget_high_u16(vdev));
                                   ^
external/skia/src/core/SkBlitter_RGB16.cpp:417:50: error: use of undeclared identifier 'vshlq_n_u32'
                dev_lo = (dev_lo & vmask_ng16) | vshlq_n_u32(dev_lo & vmask_g16, 16);
                                                 ^
external/skia/src/core/SkBlitter_RGB16.cpp:418:50: error: use of undeclared identifier 'vshlq_n_u32'
                dev_hi = (dev_hi & vmask_ng16) | vshlq_n_u32(dev_hi & vmask_g16, 16);
                                                 ^
fatal error: too many errors emitted, stopping now [-ferror-limit=] 
20 errors generated.
make: *** [out/target/product/hammerhead/obj/SHARED_LIBRARIES/libskia_intermediates/src/core/SkBlitter_RGB16.o] Error 1
make: Leaving directory `/home/m_fujii/KK442r1_org/android'