xmake-io / xmake-repo

📦 An official xmake package repository
https://xrepo.xmake.io
Apache License 2.0
685 stars 396 forks source link

conda与xmake存在某些共存问题,可能会导致对libstdc++的undefined reference链接错误 #4951

Closed jyshaobing closed 2 months ago

jyshaobing commented 2 months ago

Xmake 版本

2.8.3

操作系统版本和架构

Ubuntu20.04

描述问题

在系统中存在conda环境时,假如某个库依赖于python3.x且刚好对其进行了链接,会导致conda的lib目录被加入链接-L参数内,这会导致libstdc++的链接出现错误

期待的结果

避免出现这样的问题,对于python应该

工程配置

常规配置,使用了clang-16,conda为miniconda

附加信息和错误日志

image

Issues-translate-bot commented 2 months ago

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


Xmake version

2.8.3

Operating system version and architecture

Ubuntu20.04

Describe the problem

When there is a conda environment in the system, if a library depends on python3.

Expected results

To avoid such problems, python should

Project configuration

Conventional configuration, using clang-16, conda is miniconda

Additional information and error logs

image