Update NDK compatlib for 4.1.2.
The replacement new failures present in newer versions are present here as well, with the following new issues: XPASS std/localization/locale.categories/category.numeric/locale.nm.put/facet.num.put.members/put_long_double.pass.cpp This is from the -NaN formatting fix in bionic. We previously had this wrong, and the upstream test is also wrong. There's currently an XFAIL for Android in this test because I haven't fixed the upstream test yet. After that is done, I'll need to teach the test runner how to XFAIL older Android versions... FAIL std/localization/locale.categories/category.ctype/facet.ctype.special/facet.ctype.char.dtor/dtor.pass.cpp dtor.pass.cpp:39: int main(): assertion "globalMemCounter.checkDeleteArrayCalledEq(1)" failed Haven't investigated this one yet. http://b/19412688 Note that this also needs the libgcc link ordering to be fixed in the build system, as we'll otherwise depend on libgcc symbols from libc that may or may not have been there. The build fix can't be submitted because the proper link order causes the libgcc unwinder to be used instead of the EHABI one: http://b/18471342 Bug: 18471532 Change-Id: Icf560485a9b8f5ebbe01e4458703e62ec94df5e1
This commit is contained in:
parent
9a9ea3a280
commit
a6395e1fd0
1 changed files with 56 additions and 6 deletions
|
@ -123,7 +123,6 @@ libc_bionic_ndk_src_files := \
|
|||
bionic/fpclassify.cpp \
|
||||
bionic/futimens.cpp \
|
||||
bionic/getcwd.cpp \
|
||||
bionic/getentropy_linux.c \
|
||||
bionic/gethostname.cpp \
|
||||
bionic/getpgrp.cpp \
|
||||
bionic/getpid.cpp \
|
||||
|
@ -200,7 +199,6 @@ libc_bionic_ndk_src_files := \
|
|||
bionic/strtold.cpp \
|
||||
bionic/stubs.cpp \
|
||||
bionic/symlink.cpp \
|
||||
bionic/sysconf.cpp \
|
||||
bionic/sysinfo.cpp \
|
||||
bionic/syslog.cpp \
|
||||
bionic/sys_siglist.c \
|
||||
|
@ -213,7 +211,6 @@ libc_bionic_ndk_src_files := \
|
|||
bionic/umount.cpp \
|
||||
bionic/unlink.cpp \
|
||||
bionic/utimes.cpp \
|
||||
bionic/vdso.cpp \
|
||||
bionic/wait.cpp \
|
||||
bionic/wchar.cpp \
|
||||
bionic/wctype.cpp \
|
||||
|
@ -230,6 +227,11 @@ libc_bionic_src_files += bionic/fork.cpp
|
|||
# dereferences.
|
||||
libc_bionic_src_files += bionic/getauxval.cpp
|
||||
|
||||
# These three require getauxval, which isn't available on older platforms.
|
||||
libc_bionic_src_files += bionic/getentropy_linux.c
|
||||
libc_bionic_src_files += bionic/sysconf.cpp
|
||||
libc_bionic_src_files += bionic/vdso.cpp
|
||||
|
||||
libc_cxa_src_files := \
|
||||
bionic/__cxa_guard.cpp \
|
||||
bionic/__cxa_pure_virtual.cpp \
|
||||
|
@ -326,10 +328,13 @@ libc_upstream_openbsd_gdtoa_src_files_64 := \
|
|||
$(libc_upstream_openbsd_gdtoa_src_files) \
|
||||
upstream-openbsd/lib/libc/gdtoa/strtorQ.c \
|
||||
|
||||
# These two depend on getentropy_linux.cpp, which isn't in libc_ndk.a.
|
||||
libc_upstream_openbsd_src_files := \
|
||||
upstream-openbsd/lib/libc/compat-43/killpg.c \
|
||||
upstream-openbsd/lib/libc/crypt/arc4random.c \
|
||||
upstream-openbsd/lib/libc/crypt/arc4random_uniform.c \
|
||||
|
||||
libc_upstream_openbsd_ndk_src_files := \
|
||||
upstream-openbsd/lib/libc/compat-43/killpg.c \
|
||||
upstream-openbsd/lib/libc/gen/alarm.c \
|
||||
upstream-openbsd/lib/libc/gen/ctype_.c \
|
||||
upstream-openbsd/lib/libc/gen/daemon.c \
|
||||
|
@ -797,6 +802,51 @@ $(eval $(call patch-up-arch-specific-flags,LOCAL_SRC_FILES,libc_netbsd_src_files
|
|||
include $(BUILD_STATIC_LIBRARY)
|
||||
|
||||
|
||||
# ========================================================
|
||||
# libc_openbsd_ndk.a - upstream OpenBSD C library code
|
||||
# that can be safely included in the libc_ndk.a (doesn't
|
||||
# contain any troublesome global data or constructors).
|
||||
# ========================================================
|
||||
#
|
||||
# These files are built with the openbsd-compat.h header file
|
||||
# automatically included.
|
||||
|
||||
include $(CLEAR_VARS)
|
||||
|
||||
LOCAL_SRC_FILES := $(libc_upstream_openbsd_ndk_src_files)
|
||||
ifneq (,$(filter $(TARGET_ARCH),x86 x86_64))
|
||||
# Clang has wrong long double size or LDBL_MANT_DIG, http://b/17163651.
|
||||
LOCAL_CLANG := false
|
||||
else
|
||||
LOCAL_CLANG := $(use_clang)
|
||||
endif
|
||||
|
||||
LOCAL_CFLAGS := \
|
||||
$(libc_common_cflags) \
|
||||
-Wno-sign-compare \
|
||||
-Wno-uninitialized \
|
||||
-Wno-unused-parameter \
|
||||
-include openbsd-compat.h \
|
||||
|
||||
LOCAL_CONLYFLAGS := $(libc_common_conlyflags)
|
||||
LOCAL_CPPFLAGS := $(libc_common_cppflags)
|
||||
LOCAL_C_INCLUDES := $(libc_common_c_includes) \
|
||||
$(LOCAL_PATH)/private \
|
||||
$(LOCAL_PATH)/upstream-openbsd/android/include \
|
||||
$(LOCAL_PATH)/upstream-openbsd/lib/libc/include \
|
||||
$(LOCAL_PATH)/upstream-openbsd/lib/libc/gdtoa/ \
|
||||
|
||||
LOCAL_MODULE := libc_openbsd_ndk
|
||||
LOCAL_ADDITIONAL_DEPENDENCIES := $(libc_common_additional_dependencies)
|
||||
LOCAL_CXX_STL := none
|
||||
LOCAL_SYSTEM_SHARED_LIBRARIES :=
|
||||
LOCAL_ADDRESS_SANITIZER := false
|
||||
LOCAL_NATIVE_COVERAGE := $(bionic_coverage)
|
||||
|
||||
$(eval $(call patch-up-arch-specific-flags,LOCAL_CFLAGS,libc_common_cflags))
|
||||
include $(BUILD_STATIC_LIBRARY)
|
||||
|
||||
|
||||
# ========================================================
|
||||
# libc_openbsd.a - upstream OpenBSD C library code
|
||||
# ========================================================
|
||||
|
@ -1100,12 +1150,11 @@ LOCAL_CFLAGS := $(libc_common_cflags) \
|
|||
LOCAL_WHOLE_STATIC_LIBRARIES := \
|
||||
libc_bionic_ndk \
|
||||
libc_cxa \
|
||||
libc_dns \
|
||||
libc_freebsd \
|
||||
libc_gdtoa \
|
||||
libc_malloc \
|
||||
libc_netbsd \
|
||||
libc_openbsd \
|
||||
libc_openbsd_ndk \
|
||||
libc_stack_protector \
|
||||
libc_syscalls \
|
||||
libc_tzcode \
|
||||
|
@ -1150,6 +1199,7 @@ LOCAL_WHOLE_STATIC_LIBRARIES := \
|
|||
libc_malloc \
|
||||
libc_netbsd \
|
||||
libc_openbsd \
|
||||
libc_openbsd_ndk \
|
||||
libc_pthread \
|
||||
libc_stack_protector \
|
||||
libc_syscalls \
|
||||
|
|
Loading…
Reference in a new issue