15 Commits

Author SHA1 Message Date
Khem Raj e3ab0d2439 libcereal: Fix build with clang-19
Signed-off-by: Khem Raj <raj.khem@gmail.com>
2024-09-10 18:28:31 -07:00
Khem Raj bc5c3e48c1 libcereal: Disable c++11-narrowing-const-reference warning as error
Clang 18 is fussy about it

Fixes

unittests/map.hpp:65:25: error: non-constant-expression cannot be narrowed from type 'typename std::enable_if<std::is_integral<char>::value && sizeof(char) == sizeof(char), char>::type' (aka 'char') to 'const signed char' in initializer list [-Wc++11-narrowing-const-reference]

Signed-off-by: Khem Raj <raj.khem@gmail.com>
2024-02-09 09:52:15 -08:00
Martin Jansa 21f956598d recipes: drop ${SRCPV} usage
* Drop SRCPV similarly like oe-core did in:
  https://git.openembedded.org/openembedded-core/commit/?h=nanbield&id=843f82a246a535c353e08072f252d1dc78217872

* SRCPV is deferred now from PV to PKGV since:
  https://git.openembedded.org/openembedded-core/commit/?h=nanbield&id=a8e7b0f932b9ea69b3a218fca18041676c65aba0

Signed-off-by: Martin Jansa <martin.jansa@gmail.com>
2024-02-09 09:52:12 -08:00
Khem Raj 8eb74815c2 libcereal: Fix TMPDIR leaking into debug_str section
Fixes errors like
File /usr/lib/libcereal/ptest/tests/.debug/test_unordered_map in package libcereal-dbg contains reference to TMPDIR

Signed-off-by: Khem Raj <raj.khem@gmail.com>
2023-04-17 17:54:25 -07:00
Khem Raj 611f2921dc libcereal: Use -idirafter instead of -isystem
Signed-off-by: Khem Raj <raj.khem@gmail.com>
2023-01-21 10:02:02 -08:00
Khem Raj ed18e545c9 libcereal,poco: Link with -latomic on ppc32 as well
Signed-off-by: Khem Raj <raj.khem@gmail.com>
2023-01-04 15:33:58 -08:00
Khem Raj 2922f01139 libcereal: Do not use uniform_int_distribution<char> template
Signed-off-by: Khem Raj <raj.khem@gmail.com>
2022-09-05 22:49:34 -07:00
Khem Raj f3d8e41b9d libcereal: Enable for glibc/ppc
The error is not observed with glibc latest clang 14

Signed-off-by: Khem Raj <raj.khem@gmail.com>
2022-04-30 07:39:08 -07:00
Khem Raj 33f4142dff libcereal: Link libatomics with gcc as well
Since gcc-12, gcc is also emitting calls to 64bit atomics

Fixes
unittests/CMakeFiles/test_atomic.dir/atomic.cpp.o:/usr/include/c++/12.0.1/atomic:285: more undefined references to `__atomic_load_8' follow
collect2: error: ld returned 1 exit status
Signed-off-by: Khem Raj <raj.khem@gmail.com>
2022-04-19 08:22:50 -07:00
Khem Raj 35ea4b37ba libcereal: Disable on ppc/ppc64
It does not support 128-bit long doubles

Signed-off-by: Khem Raj <raj.khem@gmail.com>
2022-04-10 10:05:35 -07:00
Khem Raj 668ed5c5c9 libcereal: Link in libatomic on rv32 for ptests
Signed-off-by: Khem Raj <raj.khem@gmail.com>
2022-04-10 10:05:35 -07:00
Khem Raj a3f218e9db libcereal: Link libatomics on mips for ptests
clang/mips emits calls to atomic builtins which it expects from C
runtime perhaps but compiler-rt does not provide them so link in
libatomics

Fixes
atomic.cpp:(.text._ZN6cereal12Inpu
tArchiveINS_16JSONInputArchiveELj0EE7processIRNSt3__16atomicIdEEEEvOT_[_ZN6cereal12InputArchiveINS_16JSONInputArchiveELj0EE7processIRNSt3__16atomicIdEEEEvOT_]+0x10c): undefined reference to `__atomic_store_8'

Signed-off-by: Khem Raj <raj.khem@gmail.com>
2022-03-11 11:20:55 -08:00
Khem Raj 1f372ad6c5 libcereal: Disable Werror with ptests
skip portability tests on 64bit targets since we do not have 32bit
multilib enabled in compiler

Signed-off-by: Khem Raj <raj.khem@gmail.com>
2022-03-11 08:00:40 -08:00
Mingli Yu 045fe61e30 libcereal: add ptest support
Add ptest support.

Signed-off-by: Mingli Yu <mingli.yu@windriver.com>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
2022-03-11 07:57:51 -08:00
Wang Mingyu 7243835dab libcereal: upgrade 1.3.1 -> 1.3.2
This is a minor bug fix and build enhancement release for cereal.
The primary reason for this release is to correctly increment the version for
cereal in include/cereal/version.hpp.

Bug fixes and enhancements
--------------------------
Make doxygen docs reproducible
Add CMake options for building doc and sandbox
Correct patch version for 1.3.2

Signed-off-by: Wang Mingyu <wangmy@fujitsu.com>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
2022-03-07 09:27:53 -08:00