Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

mysql: rework #4982

Merged
merged 25 commits into from
Aug 30, 2024
Merged

mysql: rework #4982

merged 25 commits into from
Aug 30, 2024

Conversation

star-hengxing
Copy link
Contributor

No description provided.

@heheda123123
Copy link
Contributor

加油

@Issues-translate-bot
Copy link

Bot detected the issue body's language is not English, translate it automatically.


come on

@star-hengxing
Copy link
Contributor Author

@waruqi binary package 的 target arch 永远是 host arch?感觉怪怪的。
我这里单独搞了一个 binary 包来构建一些 host tool 给 mysql 交叉编译,但因为这个问题失败了

@waruqi
Copy link
Member

waruqi commented Aug 29, 2024

@waruqi binary package 的 target arch 永远是 host arch?感觉怪怪的。 我这里单独搞了一个 binary 包来构建一些 host tool 给 mysql 交叉编译,但因为这个问题失败了

binary/toolchain package 都是固定 当前 host 的 arch ,target arch 又没法运行。

packages/m/mysql/xmake.lua Outdated Show resolved Hide resolved
@Issues-translate-bot
Copy link

Bot detected the issue body's language is not English, translate it automatically.


@waruqi The target arch of binary package is always the host arch? It feels weird.
I made a separate binary package here to build some host tools for cross-compiling mysql, but it failed because of this problem.

@star-hengxing
Copy link
Contributor Author

binary/toolchain package 都是固定 当前 host 的 arch ,target arch 又没法运行。

看 log,binary package 的 deps 是用 arm64 来构建,但自己却是 x64 导致链接失败了

@star-hengxing
Copy link
Contributor Author

我在本地测试 linux 交叉编译怎么传递参数。目前环境与 xmake-io/xmake#902 一样

$ xmake l scripts/test.lua --shallow -v -p linux -a arm64-v8a --toolchain=aarch64-linux-gnu mysql
error: the toolchain aarch64-linux-gnu not found!
error: execv(xmake f -c -v --plat=linux --arch=arm64-v8a --toolchain=aarch64-linux-gnu) failed(255)

@waruqi
Copy link
Member

waruqi commented Aug 30, 2024

我在本地测试 linux 交叉编译怎么传递参数。目前环境与 xmake-io/xmake#902 一样

$ xmake l scripts/test.lua --shallow -v -p linux -a arm64-v8a --toolchain=aarch64-linux-gnu mysql
error: the toolchain aarch64-linux-gnu not found!
error: execv(xmake f -c -v --plat=linux --arch=arm64-v8a --toolchain=aarch64-linux-gnu) failed(255)

你这是指定的 aarch64-linux-gnu toolchain ,这个 toolchain 你没定义,当然找不到,得全局定义到 xmakerc 里。

而且交叉编译,直接 -p cross --sdk= 不就好了么。。

@waruqi
Copy link
Member

waruqi commented Aug 30, 2024

参考下

xmake l ./scripts/test.lua -D -p cross --toolchain=muslcc --sdk=`pwd`/${{ matrix.cross }}-cross

@Issues-translate-bot
Copy link

Bot detected the issue body's language is not English, translate it automatically.


For reference,

xmake l ./scripts/test.lua -D -p cross --toolchain=muslcc --sdk=`pwd`/${{ matrix.cross }}-cross

@star-hengxing star-hengxing marked this pull request as ready for review August 30, 2024 07:30
packages/m/mysql/patch.lua Outdated Show resolved Hide resolved
packages/m/mysql/patch.lua Outdated Show resolved Hide resolved
@waruqi
Copy link
Member

waruqi commented Aug 30, 2024

那就先这样吧。

@waruqi waruqi merged commit f5f4c6f into dev Aug 30, 2024
65 checks passed
@waruqi waruqi deleted the mysql branch August 30, 2024 13:33
@Issues-translate-bot
Copy link

Bot detected the issue body's language is not English, translate it automatically.


So let’s do this for now.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants