Details
-
Bug
-
Status: Closed (View Workflow)
-
Major
-
Resolution: Fixed
-
5.5(EOL), 10.0(EOL), 10.1(EOL)
-
None
-
10.0.22
Description
See patches from this thread
- XtraDB aborts compilation when it cannot be compiled (unsupported system), even if XtraDB is disabled from cmake command line.
- InnoDB relies on CHECK_C_SOURCE_RUNS which doesn't work when cross-compiling
Attachments
Issue Links
- relates to
-
MDEV-9002 Build failure when crosscompiling for arm without atomics
-
- Closed
-
Hi
It seems BR2_ARCH_HAS_ATOMICS cannot be used, because for example on 32bits architectures some atomic operations may not be available even though BR2_ARCH_HAS_ATOMICS is set to true. Therefore your solution should be used.
However I just realised that CHECK_C_SOURCE_RUNS should never be invoked by this script in buildroot because it's enclosed in
IF(NOT CMAKE_CROSSCOMPILING)
[...]
ENDIF
(https://github.com/MariaDB/server/blob/10.1/storage/innobase/CMakeLists.txt, line #75).
Is -DCMAKE_CROSSCOMPILING supposed to passed when invoking cmake or is it supposed to be determined automatically?