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

python作为依赖被安装时安装错误 #5835

Open
MMitsuha opened this issue Nov 25, 2024 · 4 comments
Open

python作为依赖被安装时安装错误 #5835

MMitsuha opened this issue Nov 25, 2024 · 4 comments
Labels

Comments

@MMitsuha
Copy link

Xmake 版本

v2.9.6+20241030

操作系统版本和架构

Darwin 24.0.0 Darwin Kernel Version 24.0.0: Tue Sep 24 23:37:25 PDT 2024; root:xnu-11215.1.12~1/RELEASE_ARM64_T6030 arm64

描述问题

当python被当作依赖在Mac上安装时,报错,附加信息处是xmake f -y -c -vD的输出,运行repo install python同样会发生错误

期待的结果

安装成功

工程配置

add_rules("mode.debug", "mode.release")

set_project("m0n1t0r-ui")
set_version("0.0.1", {build = "%Y%m%d%H%M"})
set_license("LGPL-3.0")

includes("xmake")

target("m0n1t0r-ui")
    set_kind("binary")
    set_languages("c++20")

    add_rules("config.dynamic_mode")
    add_rules("qt.widgetapp")

    add_includedirs("include")
    add_headerfiles("include/**/*.h")
    add_files("src/**/*.cpp")
    add_files("src/main.cpp")

    add_packages("openh264")              -- 这行依赖的python导致的错误

    -- add qt ui file
    add_files("src/**/*.ui")

    -- add files with Q_OBJECT meta (only for qt.moc)
    add_files("include/**/*.h")

    add_frameworks("QtNetwork", "QtWidgets", "QtGui", "QtCore", "QtWebSockets")

附加信息和错误日志

build.log

@MMitsuha MMitsuha added the bug label Nov 25, 2024
@Issues-translate-bot
Copy link

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


Title: Installation error when python is installed as a dependency

@waruqi waruqi transferred this issue from xmake-io/xmake Nov 26, 2024
@waruqi
Copy link
Member

waruqi commented Nov 26, 2024

/opt/homebrew/opt/llvm/bin/llvm-profdata merge -output="/Users/mitsuha/.xmake/cache/packages/2411/p/python/3.13.0/source/code.profclangd" "/Users/mitsuha/.xmake/cache/packages/2411/p/python/3.13.0/source"/*.profclangr

我没 mac arm64 环境,看错误执行这里跪了,具体原因不明,你可以自己调下 python 那个包的编译

os.vrunv("make", {"-j4", "PYTHONAPPSDIR=" .. package:installdir()})

话说为啥 python 还会去执行 llvm-profdata 这个,有点怪。

@Issues-translate-bot
Copy link

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


Title: Installation error when python is installed as a dependency

@Issues-translate-bot
Copy link

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


/opt/homebrew/opt/llvm/bin/llvm-profdata merge -output="/Users/mitsuha/.xmake/cache/packages/2411/p/python/3.13.0/source/code.profclangd" "/Users/mitsuha/.xmake/cache/packages/2411/p/python/3.13.0/source"/*.profclangr

I don’t have a mac arm64 environment. I’m sorry to see the error in the execution. The specific reason is unknown. You can adjust the compilation of the python package yourself.

os.vrunv("make", {"-j4", "PYTHONAPPSDIR=" .. package:installdir()})

It's a bit strange why python still executes llvm-profdata.

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

No branches or pull requests

3 participants