[debian-mysql] Help with MariaDB 10.5 cross-building?
Helmut Grohne
helmut at subdivi.de
Mon Feb 20 19:03:46 GMT 2023
Hi Otto and Daniel,
please avoid mailing me on cross compilation questions directly.
Instead, please mail debian-cross at lists.debian.org. This reaches a wider
audience and increases your chances for a timely response. Thanks.
On Fri, Feb 17, 2023 at 03:14:18PM +0700, Daniel Black wrote:
> As uca-dump is a build helper it appears to have been built.
>
> The dependencies in strings/CMakeLists.txt make it look like uca-dump
> is a build dep of GenUnicodeDataSource via the ADD_CUSTOM_COMMAND
> dependency.
>
> It's on reporting "not found" error rather than a "executate format
> error" where I'd normally suggest the cross compilation appears to be
> built without CMAKE_CROSS_COMPILING_EMULATOR
> set.
This explanation is spot-on, but it doesn't quite tell how to fix it
yet.
We can see that mariadb already has a native build pass and exports
tools to be used in the cross build. I suppose, uca-dump was added
rather recently and was missed here. The big question though is whether
uca-dump actually behaves the same on all architectures. Would it be
possible for you to run it on various systems and compare the resulting
header? Usually the important comparisons are big endian vs little
endian and 32bit vs 64bit, which amounts to 3 builds if done right.
Another approach is dumping the resulting header to the build log and
uploading a thus modified package to experimental. Then one can scrape
the header from the build logs.
If one assumes that uca-dump behaves the same on different
architectures, then fixing this issue is a relatively simple matter of
adding it to exported executables. I'm attaching a patch for your
convenience. Please only apply it after verifying that its output is
indeed architecture-independent.
Helmut
-------------- next part --------------
A non-text attachment was scrubbed...
Name: cross.patch
Type: text/x-diff
Size: 872 bytes
Desc: not available
URL: <http://alioth-lists.debian.net/pipermail/pkg-mysql-maint/attachments/20230220/4ceb71ce/attachment.patch>
More information about the pkg-mysql-maint
mailing list