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

Duplicate header-only packages are installed #5807

Open
star-hengxing opened this issue Nov 9, 2024 · 5 comments
Open

Duplicate header-only packages are installed #5807

star-hengxing opened this issue Nov 9, 2024 · 5 comments
Labels

Comments

@star-hengxing
Copy link
Contributor

Xmake Version

dev

Operating System Version and Architecture

all

Describe Bug

set_runtimes("MD")
add_requires("fast_io", "eigen")
$ xmake f -c
in xmake-repo:
  -> eigen 3.4.0 [runtimes:"MD"]
please input: y (y/n/m)

fast_io headeronly kind set in package description.
eigen headeronly kind set in on_load.

Expected Behavior

Work.

Project Configuration

N/A

Additional Information and Error Logs

N/A

@waruqi
Copy link
Member

waruqi commented Nov 11, 2024

没懂 什么问题。我这可以么

in xmake-repo:
  -> fast_io 2024.3.31
  -> eigen 3.4.0 [runtimes:"MD"]

@Issues-translate-bot
Copy link

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


I don't understand what the problem is. Is this okay with me?

in xmake-repo:
  -> fast_io 2024.3.31
  ->eigen 3.4.0 [runtimes:"MD"]

@star-hengxing
Copy link
Contributor Author

  1. 把这两个包安装的版本全删了
  2. 第一次安装
$ xmake f -c
checking for platform ... windows
checking for architecture ... x64
checking for Microsoft Visual Studio (x64) version ... 2022
checking for Microsoft C/C++ Compiler (x64) version ... 19.41.34120
note: install or modify (m) these packages (pass -y to skip confirm)?
in xmake-repo:
  -> fast_io 2024.3.31
  -> eigen 3.4.0 [runtimes:"MT"]
please input: y (y/n/m)
y
  => download https://gitlab.com/libeigen/eigen/-/archive/3.4.0/eigen-3.4.0.tar.bz2 .. failed
  => clone https://gitee.com/qabeowjbtkwb/fast_io.git 2024.3.31 .. ok
  => install fast_io 2024.3.31 .. ok
  => install eigen 3.4.0 .. ok
  1. 添加 asan 后
$ xmake f -c
checking for platform ... windows
checking for architecture ... x64
checking for Microsoft Visual Studio (x64) version ... 2022
checking for Microsoft C/C++ Compiler (x64) version ... 19.41.34120
note: install or modify (m) these packages (pass -y to skip confirm)?
in xmake-repo:
  -> eigen 3.4.0 [runtimes:"MT", asan:y]
please input: y (y/n/m)

eigen 理论上不需要重新安装的。两个包区别就是一个在描述域设置的 headeronly kind,一个在 on_load

@waruqi
Copy link
Member

waruqi commented Nov 11, 2024

大概知道原因,但是比较难搞。 is_headeronly 在 on_load 之前就被调用了,用于参与计算 buildhash,在 on_load 去动态改 headeronly kind,滞后了。

@Issues-translate-bot
Copy link

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


I probably know the reason, but it's more difficult to do. is_headeronly is called before on_load to participate in the calculation of buildhash. It is dynamically changed after on_load, which lags behind.

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