ld: warning: ignoring file LIB, building for ARCH but attempting to link with file built for ARCH

作者在编译edk2/BaseTools时遇到链接错误,因多套编译环境(如LLVM14,16及gnuc)导致库文件不兼容。解决方法包括卸载部分编译工具或调整PATH环境变量。

错误重放

作者在编译edk2/BaseTools时出现以下问题:

➜  BaseTools uname -a
Darwin MacBook-Pro.local 22.5.0 Darwin Kernel Version 22.5.0: Thu Jun  8 22:22:22 PDT 2023; root:xnu-8796.121.3~7/RELEASE_X86_64 x86_64 #作者环境
······
➜  BaseTools make
······
clang++ -o ../bin/VfrCompile  AParser.o DLexerBase.o ATokenBuffer.o EfiVfrParser.o VfrLexer.o VfrSyntax.o VfrFormPkg.o VfrError.o VfrUtilityLib.o VfrCompiler.o -L../libs -lCommon
ld: warning: ignoring file ../libs/libCommon.a, building for macOS-x86_64 but attempting to link with file built for macOS-x86_64
Undefined symbols for architecture x86_64:
  "_DebugMsg", referenced from:
      CVfrCompiler::OptionInitialization(int, char**) in VfrCompiler.o
      CVfrCompiler::AdjustBin() in VfrCompiler.o
  "_Error", referenced from:
      CVfrErrorHandle::PrintMsg(unsigned int, char*, char const*, char const*) in VfrError.o
      CVfrErrorHandle::HandleError(EFI_VFR_RETURN_CODE, unsigned int, char*) in VfrError.o
      CVfrErrorHandle::HandleWarning(EFI_VFR_WARNING_CODE, unsigned int, char*) in VfrError.o
  "_GetUtilityStatus", referenced from:
      _main in VfrCompiler.o
  "_LongFilePath", referenced from:
      CVfrStringDB::GetVarStoreNameFormStringId(unsigned short) in VfrUtilityLib.o
      CVfrCompiler::PreProcess() in VfrCompiler.o
      CVfrCompiler::Compile() in VfrCompiler.o
      CVfrCompiler::GenBinary() in VfrCompiler.o
      CVfrCompiler::GenCFile() in VfrCompiler.o
      CVfrCompiler::GenRecordListFile() in VfrCompiler.o
  "_PrintMessage", referenced from:
      CVfrCompiler::DebugError(char*, unsigned int, unsigned int, char const*, char const*, ...) in VfrCompiler.o
  "_SetPrintLevel", referenced from:
      _main in VfrCompiler.o
  "_SetUtilityName", referenced from:
      CVfrCompiler::OptionInitialization(int, char**) in VfrCompiler.o
  "_StringToGuid", referenced from:
      CVfrCompiler::OptionInitialization(int, char**) in VfrCompiler.o
  "_VerboseMsg", referenced from:
      CVfrErrorHandle::PrintMsg(unsigned int, char*, char const*, char const*) in VfrError.o
  "_Warning", referenced from:
      CVfrErrorHandle::HandleWarning(EFI_VFR_WARNING_CODE, unsigned int, char*) in VfrError.o
ld: symbol(s) not found for architecture x86_64
clang-16: error: linker command failed with exit code 1 (use -v to see invocation)
make[2]: *** [GNUmakefile:45: ../bin/VfrCompile] Error 1

错误原因

该问题是由于程序需要../libs/libCommon.a但链接器ld无法链接libCommon.a导致的链接错误
经检查后发现由于作者电脑上安装了包括CommandLineTools llvm gnucc的3套编译环境,由于llvm-14 llvm-16 gnubinutils、语法和符号有所不同,所以导致了库文件不互相兼容的情况

解决方法

自行保留仅一套编译环境
以下仅供参考

brew unlink llvm binutils

export PATH=/usr/bin:/usr/sbin:/bin:/sbin
PS C:\Users\Administrator\Desktop> # 查看 E:\AI_System 目录的结构 PS C:\Users\Administrator\Desktop> Get-ChildItem E:\AI_System -Recurse -Depth 2 | Where-Object {$_.PSIsContainer} | Select-Object FullName FullName -------- E:\AI_System\agent E:\AI_System\AI_Core_Functional E:\AI_System\cache E:\AI_System\cognitive_arch E:\AI_System\config E:\AI_System\core E:\AI_System\data E:\AI_System\environment E:\AI_System\logs E:\AI_System\models E:\AI_System\model_cache E:\AI_System\model_manager E:\AI_System\model_server E:\AI_System\scripts E:\AI_System\security E:\AI_System\temp E:\AI_System\utils E:\AI_System\venv E:\AI_System\web_ui E:\AI_System\agent\affective_modules E:\AI_System\agent\cognitive_system E:\AI_System\agent\conscious_system E:\AI_System\agent\decision_system E:\AI_System\agent\generated_images E:\AI_System\agent\knowledge_system E:\AI_System\agent\models E:\AI_System\agent\tests E:\AI_System\agent\text_results E:\AI_System\agent\utils E:\AI_System\agent\__pycache__ E:\AI_System\agent\affective_modules\__pycache__ E:\AI_System\agent\conscious_system\cognitive E:\AI_System\agent\conscious_system\layers E:\AI_System\agent\conscious_system\logs E:\AI_System\agent\conscious_system\memory E:\AI_System\agent\conscious_system\perception E:\AI_System\agent\conscious_system\states E:\AI_System\agent\conscious_system\__pycache__ E:\AI_System\agent\decision_system\__pycache__ E:\AI_System\agent\models\__pycache__ E:\AI_System\agent\utils\__pycache__ E:\AI_System\cognitive_arch\__pycache__ E:\AI_System\config\__pycache__ E:\AI_System\core\__pycache__ E:\AI_System\data\environment E:\AI_System\environment\__pycache__ E:\AI_System\models\cache E:\AI_System\model_manager\__pycache__ E:\AI_System\model_server\agent_system E:\AI_System\model_server\config E:\AI_System\model_server\core E:\AI_System\model_server\generated_images E:\AI_System\model_server\models E:\AI_System\model_server\resources E:\AI_System\model_server\services E:\AI_System\model_server\ui_components E:\AI_System\model_server\utils E:\AI_System\model_server\__pycache__ E:\AI_System\model_server\agent_system\core E:\AI_System\model_server\agent_system\interaction E:\AI_System\model_server\agent_system\__pycache__ E:\AI_System\model_server\core\__pycache__ E:\AI_System\model_server\resources\icons E:\AI_System\model_server\resources\styles E:\AI_System\security\__pycache__ E:\AI_System\utils\__pycache__ E:\AI_System\venv\Include E:\AI_System\venv\Lib E:\AI_System\venv\Scripts E:\AI_System\venv\share E:\AI_System\venv\Lib\site-packages E:\AI_System\venv\share\man E:\AI_System\web_ui\# E:\AI_System\web_ui\flagged E:\AI_System\web_ui\static E:\AI_System\web_ui\templates E:\AI_System\web_ui\venv E:\AI_System\web_ui\__pycache__ E:\AI_System\web_ui\#\Include E:\AI_System\web_ui\#\Lib E:\AI_System\web_ui\#\Scripts E:\AI_System\web_ui\static\css E:\AI_System\web_ui\static\images E:\AI_System\web_ui\static\js E:\AI_System\web_ui\venv\Include E:\AI_System\web_ui\venv\Lib E:\AI_System\web_ui\venv\Scripts E:\AI_System\web_ui\venv\share PS C:\Users\Administrator\Desktop> PS C:\Users\Administrator\Desktop> # 特别检查是否有 core 目录 PS C:\Users\Administrator\Desktop> Get-ChildItem E:\AI_System\core -ErrorAction SilentlyContinue 目录: E:\AI_System\core Mode LastWriteTime Length Name ---- ------------- ------ ---- d----- 2025/8/17 10:32 __pycache__ -a---- 2025/8/17 0:05 6643 circuit_breaker.py -a---- 2025/8/17 10:31 2711 config.py -a---- 2025/8/17 0:05 3002 config_loader.py -a---- 2025/8/17 0:05 1214 decision_engine.py -a---- 2025/8/17 0:05 563 dependency_manager.py -a---- 2025/8/17 0:05 8464 environment.py -a---- 2025/8/17 0:05 195 environment_interface.py -a---- 2025/8/17 0:05 16338 exceptions.py -a---- 2025/8/17 0:05 3 genetic_code.py -a---- 2025/8/17 0:05 1375 metrics.py -a---- 2025/8/17 0:05 578 models.py -a---- 2025/8/17 23:58 1683 module_loader.py -a---- 2025/8/17 0:05 1380 relationship_manager.py -a---- 2025/8/17 0:05 10957 subsystem_registry.py -a---- 2025/8/17 0:05 1945 system_components.py -a---- 2025/8/17 2:20 5770 __init__.py PS C:\Users\Administrator\Desktop> PS C:\Users\Administrator\Desktop> # 检查是否有 model_loader.py 文件 PS C:\Users\Administrator\Desktop> Get-ChildItem E:\AI_System\core\model_loader.py -ErrorAction SilentlyContinue PS C:\Users\Administrator\Desktop> # 安装可能需要的额外依赖 PS C:\Users\Administrator\Desktop> python -m pip install modelscope # 根据警告信息,可能需要这个 WARNING: Ignoring invalid distribution -odelscope (e:\python310\lib\site-packages) Requirement already satisfied: modelscope in e:\python310\lib\site-packages (1.29.0) Requirement already satisfied: filelock in e:\python310\lib\site-packages (from modelscope) (3.18.0) Requirement already satisfied: requests>=2.25 in e:\python310\lib\site-packages (from modelscope) (2.32.4) Requirement already satisfied: setuptools in e:\python310\lib\site-packages (from modelscope) (80.9.0) Requirement already satisfied: tqdm>=4.64.0 in e:\python310\lib\site-packages (from modelscope) (4.67.1) Requirement already satisfied: urllib3>=1.26 in e:\python310\lib\site-packages (from modelscope) (2.5.0) Requirement already satisfied: charset_normalizer<4,>=2 in e:\python310\lib\site-packages (from requests>=2.25->modelscope) (3.4.2) Requirement already satisfied: idna<4,>=2.5 in e:\python310\lib\site-packages (from requests>=2.25->modelscope) (3.10) Requirement already satisfied: certifi>=2017.4.17 in e:\python310\lib\site-packages (from requests>=2.25->modelscope) (2025.8.3) Requirement already satisfied: colorama in e:\python310\lib\site-packages (from tqdm>=4.64.0->modelscope) (0.4.6) WARNING: Ignoring invalid distribution -odelscope (e:\python310\lib\site-packages) WARNING: Ignoring invalid distribution -odelscope (e:\python310\lib\site-packages) PS C:\Users\Administrator\Desktop> python -m pip install transformers[torch] # 确保 transformers 与 torch 兼容 WARNING: Ignoring invalid distribution -odelscope (e:\python310\lib\site-packages) Requirement already satisfied: transformers[torch] in e:\python310\lib\site-packages (4.31.0) Requirement already satisfied: filelock in e:\python310\lib\site-packages (from transformers[torch]) (3.18.0) Requirement already satisfied: huggingface-hub<1.0,>=0.14.1 in e:\python310\lib\site-packages (from transformers[torch]) (0.34.3) Requirement already satisfied: numpy>=1.17 in e:\python310\lib\site-packages (from transformers[torch]) (1.26.4) Requirement already satisfied: packaging>=20.0 in e:\python310\lib\site-packages (from transformers[torch]) (25.0) Requirement already satisfied: pyyaml>=5.1 in e:\python310\lib\site-packages (from transformers[torch]) (6.0.2) Requirement already satisfied: regex!=2019.12.17 in e:\python310\lib\site-packages (from transformers[torch]) (2025.7.34) Requirement already satisfied: requests in e:\python310\lib\site-packages (from transformers[torch]) (2.32.4) Requirement already satisfied: tokenizers!=0.11.3,<0.14,>=0.11.1 in e:\python310\lib\site-packages (from transformers[torch]) (0.13.3) Requirement already satisfied: safetensors>=0.3.1 in e:\python310\lib\site-packages (from transformers[torch]) (0.5.3) Requirement already satisfied: tqdm>=4.27 in e:\python310\lib\site-packages (from transformers[torch]) (4.67.1) Requirement already satisfied: torch!=1.12.0,>=1.9 in e:\python310\lib\site-packages (from transformers[torch]) (2.0.1) Requirement already satisfied: accelerate>=0.20.3 in e:\python310\lib\site-packages (from transformers[torch]) (0.21.0) Requirement already satisfied: fsspec>=2023.5.0 in e:\python310\lib\site-packages (from huggingface-hub<1.0,>=0.14.1->transformers[torch]) (2025.7.0) Requirement already satisfied: typing-extensions>=3.7.4.3 in e:\python310\lib\site-packages (from huggingface-hub<1.0,>=0.14.1->transformers[torch]) (4.14.1) Requirement already satisfied: psutil in e:\python310\lib\site-packages (from accelerate>=0.20.3->transformers[torch]) (7.0.0) Requirement already satisfied: sympy in e:\python310\lib\site-packages (from torch!=1.12.0,>=1.9->transformers[torch]) (1.13.3) Requirement already satisfied: networkx in e:\python310\lib\site-packages (from torch!=1.12.0,>=1.9->transformers[torch]) (3.4.2) Requirement already satisfied: jinja2 in e:\python310\lib\site-packages (from torch!=1.12.0,>=1.9->transformers[torch]) (3.1.6) Requirement already satisfied: colorama in e:\python310\lib\site-packages (from tqdm>=4.27->transformers[torch]) (0.4.6) Requirement already satisfied: MarkupSafe>=2.0 in e:\python310\lib\site-packages (from jinja2->torch!=1.12.0,>=1.9->transformers[torch]) (2.1.5) Requirement already satisfied: charset_normalizer<4,>=2 in e:\python310\lib\site-packages (from requests->transformers[torch]) (3.4.2) Requirement already satisfied: idna<4,>=2.5 in e:\python310\lib\site-packages (from requests->transformers[torch]) (3.10) Requirement already satisfied: urllib3<3,>=1.21.1 in e:\python310\lib\site-packages (from requests->transformers[torch]) (2.5.0) Requirement already satisfied: certifi>=2017.4.17 in e:\python310\lib\site-packages (from requests->transformers[torch]) (2025.8.3) Requirement already satisfied: mpmath<1.4,>=1.1.0 in e:\python310\lib\site-packages (from sympy->torch!=1.12.0,>=1.9->transformers[torch]) (1.3.0) WARNING: Ignoring invalid distribution -odelscope (e:\python310\lib\site-packages) WARNING: Ignoring invalid distribution -odelscope (e:\python310\lib\site-packages) PS C:\Users\Administrator\Desktop> python -m pip install accelerate # 用于模型加速 WARNING: Ignoring invalid distribution -odelscope (e:\python310\lib\site-packages) Requirement already satisfied: accelerate in e:\python310\lib\site-packages (0.21.0) Requirement already satisfied: numpy>=1.17 in e:\python310\lib\site-packages (from accelerate) (1.26.4) Requirement already satisfied: packaging>=20.0 in e:\python310\lib\site-packages (from accelerate) (25.0) Requirement already satisfied: psutil in e:\python310\lib\site-packages (from accelerate) (7.0.0) Requirement already satisfied: pyyaml in e:\python310\lib\site-packages (from accelerate) (6.0.2) Requirement already satisfied: torch>=1.10.0 in e:\python310\lib\site-packages (from accelerate) (2.0.1) Requirement already satisfied: filelock in e:\python310\lib\site-packages (from torch>=1.10.0->accelerate) (3.18.0) Requirement already satisfied: typing-extensions in e:\python310\lib\site-packages (from torch>=1.10.0->accelerate) (4.14.1) Requirement already satisfied: sympy in e:\python310\lib\site-packages (from torch>=1.10.0->accelerate) (1.13.3) Requirement already satisfied: networkx in e:\python310\lib\site-packages (from torch>=1.10.0->accelerate) (3.4.2) Requirement already satisfied: jinja2 in e:\python310\lib\site-packages (from torch>=1.10.0->accelerate) (3.1.6) Requirement already satisfied: MarkupSafe>=2.0 in e:\python310\lib\site-packages (from jinja2->torch>=1.10.0->accelerate) (2.1.5) Requirement already satisfied: mpmath<1.4,>=1.1.0 in e:\python310\lib\site-packages (from sympy->torch>=1.10.0->accelerate) (1.3.0) WARNING: Ignoring invalid distribution -odelscope (e:\python310\lib\site-packages) WARNING: Ignoring invalid distribution -odelscope (e:\python310\lib\site-packages) PS C:\Users\Administrator\Desktop> python -m pip install sentencepiece # 用于文本处理 WARNING: Ignoring invalid distribution -odelscope (e:\python310\lib\site-packages) Requirement already satisfied: sentencepiece in e:\python310\lib\site-packages (0.2.0) WARNING: Ignoring invalid distribution -odelscope (e:\python310\lib\site-packages) WARNING: Ignoring invalid distribution -odelscope (e:\python310\lib\site-packages) PS C:\Users\Administrator\Desktop> python -m pip install protobuf # 协议缓冲区支持 WARNING: Ignoring invalid distribution -odelscope (e:\python310\lib\site-packages) Requirement already satisfied: protobuf in e:\python310\lib\site-packages (6.31.1) WARNING: Ignoring invalid distribution -odelscope (e:\python310\lib\site-packages) WARNING: Ignoring invalid distribution -odelscope (e:\python310\lib\site-packages) PS C:\Users\Administrator\Desktop> # 查看项目是否有配置文件 PS C:\Users\Administrator\Desktop> Get-ChildItem E:\AI_System\*.json -ErrorAction SilentlyContinue PS C:\Users\Administrator\Desktop> Get-ChildItem E:\AI_System\*.yaml -ErrorAction SilentlyContinue PS C:\Users\Administrator\Desktop> Get-ChildItem E:\AI_System\*.env -ErrorAction SilentlyContinue 目录: E:\AI_System Mode LastWriteTime Length Name ---- ------------- ------ ---- -a---- 2025/8/11 23:18 971 .env -a---- 2025/8/8 18:10 158 EAI_System.env PS C:\Users\Administrator\Desktop> PS C:\Users\Administrator\Desktop> # 查看项目是否有 README 或说明文档 PS C:\Users\Administrator\Desktop> Get-ChildItem E:\AI_System\README* -ErrorAction SilentlyContinue PS C:\Users\Administrator\Desktop> Get-ChildItem E:\AI_System\*.md -ErrorAction SilentlyContinue PS C:\Users\Administrator\Desktop> # 修复损坏的包安装 PS C:\Users\Administrator\Desktop> python -m pip install --upgrade pip WARNING: Ignoring invalid distribution -odelscope (e:\python310\lib\site-packages) Requirement already satisfied: pip in e:\python310\lib\site-packages (25.2) WARNING: Ignoring invalid distribution -odelscope (e:\python310\lib\site-packages) WARNING: Ignoring invalid distribution -odelscope (e:\python310\lib\site-packages) PS C:\Users\Administrator\Desktop> python -m pip check WARNING: Ignoring invalid distribution -odelscope (e:\python310\lib\site-packages) WARNING: Ignoring invalid distribution -odelscope (e:\python310\lib\site-packages) opencv-python 4.12.0.88 has requirement numpy<2.3.0,>=2; python_version >= "3.9", but you have numpy 1.26.4. torchaudio 2.8.0+cpu has requirement torch==2.8.0, but you have torch 2.0.1. torchvision 0.23.0+cpu has requirement torch==2.8.0, but you have torch 2.0.1. PS C:\Users\Administrator\Desktop> python -m pip install --force-reinstall modelscope WARNING: Ignoring invalid distribution -odelscope (e:\python310\lib\site-packages) Collecting modelscope Downloading modelscope-1.29.0-py3-none-any.whl.metadata (40 kB) Collecting filelock (from modelscope) Downloading filelock-3.19.1-py3-none-any.whl.metadata (2.1 kB) Collecting requests>=2.25 (from modelscope) Downloading requests-2.32.5-py3-none-any.whl.metadata (4.9 kB) Collecting setuptools (from modelscope) Downloading setuptools-80.9.0-py3-none-any.whl.metadata (6.6 kB) Collecting tqdm>=4.64.0 (from modelscope) Downloading tqdm-4.67.1-py3-none-any.whl.metadata (57 kB) Collecting urllib3>=1.26 (from modelscope) Downloading urllib3-2.5.0-py3-none-any.whl.metadata (6.5 kB) Collecting charset_normalizer<4,>=2 (from requests>=2.25->modelscope) Downloading charset_normalizer-3.4.3-cp310-cp310-win_amd64.whl.metadata (37 kB) Collecting idna<4,>=2.5 (from requests>=2.25->modelscope) Downloading idna-3.10-py3-none-any.whl.metadata (10 kB) Collecting certifi>=2017.4.17 (from requests>=2.25->modelscope) Downloading certifi-2025.8.3-py3-none-any.whl.metadata (2.4 kB) Collecting colorama (from tqdm>=4.64.0->modelscope) Downloading colorama-0.4.6-py2.py3-none-any.whl.metadata (17 kB) Downloading modelscope-1.29.0-py3-none-any.whl (5.9 MB) ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 5.9/5.9 MB 83.5 kB/s 0:00:59 Downloading requests-2.32.5-py3-none-any.whl (64 kB) Downloading charset_normalizer-3.4.3-cp310-cp310-win_amd64.whl (107 kB) Downloading idna-3.10-py3-none-any.whl (70 kB) Downloading urllib3-2.5.0-py3-none-any.whl (129 kB) Downloading certifi-2025.8.3-py3-none-any.whl (161 kB) Downloading tqdm-4.67.1-py3-none-any.whl (78 kB) Downloading colorama-0.4.6-py2.py3-none-any.whl (25 kB) Downloading filelock-3.19.1-py3-none-any.whl (15 kB) Downloading setuptools-80.9.0-py3-none-any.whl (1.2 MB) ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 1.2/1.2 MB 127.6 kB/s 0:00:08 WARNING: Ignoring invalid distribution -odelscope (e:\python310\lib\site-packages) Installing collected packages: urllib3, setuptools, idna, filelock, colorama, charset_normalizer, certifi, tqdm, requests, modelscope Attempting uninstall: urllib3 Found existing installation: urllib3 2.5.0 Uninstalling urllib3-2.5.0: Successfully uninstalled urllib3-2.5.0 Attempting uninstall: setuptools Found existing installation: setuptools 80.9.0 Uninstalling setuptools-80.9.0: Successfully uninstalled setuptools-80.9.0 Attempting uninstall: idna Found existing installation: idna 3.10 Uninstalling idna-3.10: Successfully uninstalled idna-3.10 Attempting uninstall: filelock Found existing installation: filelock 3.18.0 Uninstalling filelock-3.18.0: Successfully uninstalled filelock-3.18.0 Attempting uninstall: colorama Found existing installation: colorama 0.4.6 Uninstalling colorama-0.4.6: Successfully uninstalled colorama-0.4.6 Attempting uninstall: charset_normalizer Found existing installation: charset-normalizer 3.4.2 Uninstalling charset-normalizer-3.4.2: Successfully uninstalled charset-normalizer-3.4.2 ━━━━━━━━━━━━━━━━╺━━━━━━━━━━━━━━━━━━━━━━━ 4/10 [colorama] WARNING: The script normalizer.exe is installed in 'E:\Python310\Scripts' which is not on PATH. Consider adding this directory to PATH or, if you prefer to suppress this warning, use --no-warn-script-location. Attempting uninstall: certifi Found existing installation: certifi 2025.8.3 Uninstalling certifi-2025.8.3: Successfully uninstalled certifi-2025.8.3 Attempting uninstall: tqdm Found existing installation: tqdm 4.67.1 Uninstalling tqdm-4.67.1: Successfully uninstalled tqdm-4.67.1 ━━━━━━━━━━━━━━━━━━━━━━━━━━━━╺━━━━━━━━━━━ 7/10 [tqdm] WARNING: The script tqdm.exe is installed in 'E:\Python310\Scripts' which is not on PATH. Consider adding this directory to PATH or, if you prefer to suppress this warning, use --no-warn-script-location. Attempting uninstall: requests Found existing installation: requests 2.32.4 Uninstalling requests-2.32.4: Successfully uninstalled requests-2.32.4 Attempting uninstall: modelscope Found existing installation: modelscope 1.29.0 Uninstalling modelscope-1.29.0: Successfully uninstalled modelscope-1.29.0 ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━╺━━━ 9/10 [modelscope] WARNING: The script modelscope.exe is installed in 'E:\Python310\Scripts' which is not on PATH. Consider adding this directory to PATH or, if you prefer to suppress this warning, use --no-warn-script-location. WARNING: Ignoring invalid distribution -odelscope (e:\python310\lib\site-packages) ERROR: pip's dependency resolver does not currently take into account all the packages that are installed. This behaviour is the source of the following dependency conflicts. torchaudio 2.8.0+cpu requires torch==2.8.0, but you have torch 2.0.1 which is incompatible. torchvision 0.23.0+cpu requires torch==2.8.0, but you have torch 2.0.1 which is incompatible. Successfully installed certifi-2025.8.3 charset_normalizer-3.4.3 colorama-0.4.6 filelock-3.18.0 idna-3.10 modelscope-1.29.0 requests-2.32.5 setuptools-80.9.0 tqdm-4.67.1 urllib3-2.5.0 PS C:\Users\Administrator\Desktop> PS C:\Users\Administrator\Desktop> # 或者尝试清理并重新安装所有依赖 PS C:\Users\Administrator\Desktop> python -m pip freeze > requirements.txt WARNING: No metadata found in e:\python310\lib\site-packages WARNING: Ignoring invalid distribution -odelscope (e:\python310\lib\site-packages) PS C:\Users\Administrator\Desktop> python -m pip uninstall -r requirements.txt -y Found existing installation: absl-py 2.3.1 Uninstalling absl-py-2.3.1: Successfully uninstalled absl-py-2.3.1 Found existing installation: accelerate 0.21.0 Uninstalling accelerate-0.21.0: Successfully uninstalled accelerate-0.21.0 Found existing installation: addict 2.4.0 Uninstalling addict-2.4.0: Successfully uninstalled addict-2.4.0 Found existing installation: aiofiles 23.2.1 Uninstalling aiofiles-23.2.1: Successfully uninstalled aiofiles-23.2.1 Found existing installation: altair 5.5.0 Uninstalling altair-5.5.0: Successfully uninstalled altair-5.5.0 Found existing installation: annotated-types 0.7.0 Uninstalling annotated-types-0.7.0: Successfully uninstalled annotated-types-0.7.0 Found existing installation: anyio 4.9.0 Uninstalling anyio-4.9.0: Successfully uninstalled anyio-4.9.0 Found existing installation: attrs 25.3.0 Uninstalling attrs-25.3.0: Successfully uninstalled attrs-25.3.0 Found existing installation: basicsr 1.4.2 Uninstalling basicsr-1.4.2: Successfully uninstalled basicsr-1.4.2 Found existing installation: bidict 0.23.1 Uninstalling bidict-0.23.1: Successfully uninstalled bidict-0.23.1 Found existing installation: blinker 1.9.0 Uninstalling blinker-1.9.0: Successfully uninstalled blinker-1.9.0 Found existing installation: Brotli 1.1.0 Uninstalling Brotli-1.1.0: Successfully uninstalled Brotli-1.1.0 Found existing installation: certifi 2025.8.3 Uninstalling certifi-2025.8.3: Successfully uninstalled certifi-2025.8.3 Found existing installation: cffi 1.17.1 Uninstalling cffi-1.17.1: Successfully uninstalled cffi-1.17.1 Found existing installation: chardet 4.0.0 Uninstalling chardet-4.0.0: Successfully uninstalled chardet-4.0.0 Found existing installation: charset-normalizer 3.4.3 Uninstalling charset-normalizer-3.4.3: Successfully uninstalled charset-normalizer-3.4.3 Found existing installation: click 8.2.1 Uninstalling click-8.2.1: Successfully uninstalled click-8.2.1 Found existing installation: colorama 0.4.6 Uninstalling colorama-0.4.6: Successfully uninstalled colorama-0.4.6 Found existing installation: contourpy 1.3.2 Uninstalling contourpy-1.3.2: Successfully uninstalled contourpy-1.3.2 Found existing installation: cryptography 41.0.2 Uninstalling cryptography-41.0.2: Successfully uninstalled cryptography-41.0.2 Found existing installation: cycler 0.12.1 Uninstalling cycler-0.12.1: Successfully uninstalled cycler-0.12.1 Found existing installation: Deprecated 1.2.18 Uninstalling Deprecated-1.2.18: Successfully uninstalled Deprecated-1.2.18 Found existing installation: diffusers 0.19.3 Uninstalling diffusers-0.19.3: Successfully uninstalled diffusers-0.19.3 Found existing installation: diskcache 5.6.3 Uninstalling diskcache-5.6.3: Successfully uninstalled diskcache-5.6.3 Found existing installation: dnspython 2.7.0 Uninstalling dnspython-2.7.0: Successfully uninstalled dnspython-2.7.0 Found existing installation: einops 0.8.1 Uninstalling einops-0.8.1: Successfully uninstalled einops-0.8.1 Found existing installation: eventlet 0.40.2 Uninstalling eventlet-0.40.2: Successfully uninstalled eventlet-0.40.2 Found existing installation: exceptiongroup 1.3.0 Uninstalling exceptiongroup-1.3.0: Successfully uninstalled exceptiongroup-1.3.0 Found existing installation: fastapi 0.116.1 Uninstalling fastapi-0.116.1: Successfully uninstalled fastapi-0.116.1 Found existing installation: ffmpy 0.6.1 Uninstalling ffmpy-0.6.1: Successfully uninstalled ffmpy-0.6.1 WARNING: No metadata found in e:\python310\lib\site-packages Found existing installation: filelock 3.18.0 error: uninstall-no-record-file × Cannot uninstall filelock 3.18.0 ╰─> The package's contents are unknown: no RECORD file was found for filelock. hint: You might be able to recover from this via: pip install --force-reinstall --no-deps filelock==3.18.0 PS C:\Users\Administrator\Desktop> python -m pip install -r requirements.txt WARNING: Ignoring invalid distribution -odelscope (e:\python310\lib\site-packages) Processing e:\ai_temp\basicsr-1.4.2 (from -r requirements.txt (line 9)) ERROR: basicsr@ file:///E:/ai_temp/BasicSR-1.4.2 from file:///E:/ai_temp/BasicSR-1.4.2 (from -r requirements.txt (line 9)) does not appear to be a Python project: neither 'setup.py' nor 'pyproject.toml' found. PS C:\Users\Administrator\Desktop> # 将项目根目录添加到 Python 路径 PS C:\Users\Administrator\Desktop> $env:PYTHONPATH = "E:\AI_System" PS C:\Users\Administrator\Desktop> PS C:\Users\Administrator\Desktop> # 然后尝试运行服务器 PS C:\Users\Administrator\Desktop> python server.py E:\Python310\python.exe: can't open file 'C:\\Users\\Administrator\\Desktop\\server.py': [Errno 2] No such file or directory PS C:\Users\Administrator\Desktop> # 创建虚拟环境 PS C:\Users\Administrator\Desktop> python -m venv venv PS C:\Users\Administrator\Desktop> PS C:\Users\Administrator\Desktop> # 激活虚拟环境 PS C:\Users\Administrator\Desktop> .\venv\Scripts\activate.ps1 (venv) PS C:\Users\Administrator\Desktop> (venv) PS C:\Users\Administrator\Desktop> # 在虚拟环境中安装依赖 (venv) PS C:\Users\Administrator\Desktop> pip install flask transformers torch numpy pandas scikit-learn Collecting flask Downloading flask-3.1.2-py3-none-any.whl (103 kB) ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 103.3/103.3 kB 10.2 kB/s eta 0:00:00 Collecting transformers Downloading transformers-4.55.3-py3-none-any.whl (11.3 MB) ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 11.3/11.3 MB 12.0 kB/s eta 0:00:00 WARNING: Retrying (Retry(total=4, connect=None, read=None, redirect=None, status=None)) after connection broken by 'ReadTimeoutError("HTTPSConnectionPool(host='pypi.org', port=443): Read timed out. (read timeout=15)")': /simple/torch/ Collecting torch Downloading torch-2.8.0-cp310-cp310-win_amd64.whl (241.4 MB) ━━━━━╸━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 34.8/241.4 MB 16.8 kB/s eta 3:25:30
08-22
vnc链接黑屏,Dec 1 16:08:00 node2 journal[3194128]: gsd-wacom: Fatal IO error 11 (Resource temporarily unavailable) on X server :1. Dec 1 16:08:00 node2 journal[3194161]: gsd-media-keys: Fatal IO error 11 (Resource temporarily unavailable) on X server :1. Dec 1 16:08:00 node2 org.gtk.vfs.Daemon[3193754]: A connection to the bus can't be made Dec 1 16:08:00 node2 org.a11y.Bus[3193754]: X connection to :1 broken (explicit kill or server shutdown). Dec 1 16:08:00 node2 gnome-session[3193739]: gnome-session-binary[3193739]: WARNING: Lost name on bus: org.gnome.SessionManager Dec 1 16:08:00 node2 journal[3194162]: gsd-keyboard: Fatal IO error 11 (Resource temporarily unavailable) on X server :1. Dec 1 16:08:00 node2 gnome-session-binary[3193739]: WARNING: Lost name on bus: org.gnome.SessionManager Dec 1 16:08:00 node2 tracker-miner-fs.desktop[3194308]: Received signal:15->'Terminated' Dec 1 16:08:00 node2 tracker-miner-apps.desktop[3194307]: Received signal:15->'Terminated' Dec 1 16:08:00 node2 tracker-miner-apps.desktop[3194307]: OK Dec 1 16:08:00 node2 journal[3194151]: gsd-clipboard: Fatal IO error 11 (Resource temporarily unavailable) on X server :1. Dec 1 16:08:00 node2 tracker-miner-fs.desktop[3194308]: OK Dec 1 16:08:00 node2 journal[3194127]: gsd-xsettings: Fatal IO error 11 (Resource temporarily unavailable) on X server :1. Dec 1 16:08:00 node2 journal[3194146]: gsd-color: Fatal IO error 11 (Resource temporarily unavailable) on X server :1. Dec 1 16:08:00 node2 journal[3194107]: gsd-power: Fatal IO error 11 (Resource temporarily unavailable) on X server :1. Dec 1 16:08:00 node2 cupsd[4302]: REQUEST localhost - - "POST / HTTP/1.1" 200 151 Cancel-Subscription successful-ok Dec 1 16:08:00 node2 cupsd[4302]: REQUEST localhost - - "POST / HTTP/1.1" 200 151 Cancel-Subscription client-error-not-found Dec 1 16:08:00 node2 journal[3194108]: Source ID 3 was not found when attempting to remove it Dec 1 16:08:00 node2 journal[3194308]: Error while sending AddMatch() message: The connection is closed Dec 1 16:08:00 node2 journal[3194308]: Error while sending AddMatch() message: The connection is closed Dec 1 16:08:00 node2 journal[3194308]: Error while sending AddMatch() message: The connection is closed Dec 1 16:08:00 node2 gnome-session[3193739]: Unable to init server: Could not connect: Connection refused Dec 1 16:08:00 node2 journal[3328590]: Cannot open display: Dec 1 16:08:00 node2 org.freedesktop.Tracker1[3193754]: Received signal:15->'Terminated' Dec 1 16:08:00 node2 org.freedesktop.Tracker1[3193754]: OK Dec 1 16:08:01 node2 systemd[1]: Started Session 74848 of user root. Dec 1 16:08:01 node2 systemd[1]: session-74848.scope: Succeeded. Dec 1 16:08:15 node2 su[3328613]: (to msk) root on pts/0 Dec 1 16:09:00 node2 journal[3194194]: Service not used for 60 seconds. Shutting down.. Dec 1 16:09:00 node2 systemd[1]: geoclue.service: Succeeded. Dec 1 16:09:01 node2 systemd[1]: Started Session 74849 of user root. Dec 1 16:09:01 node2 systemd[1]: session-74849.scope: Succeeded. Dec 1 16:10:01 node2 systemd[1]: Started Session 74850 of user root. Dec 1 16:10:01 node2 systemd[1]: Starting system activity accounting tool... Dec 1 16:10:01 node2 systemd[1]: sysstat-collect.service: Succeeded. Dec 1 16:10:01 node2 systemd[1]: Started system activity accounting tool. Dec 1 16:10:01 node2 systemd[1]: session-74850.scope: Succeeded. Dec 1 16:10:16 node2 dbus-daemon[3328913]: [session uid=0 pid=3328911] Activating service name='org.freedesktop.systemd1' requested by ':1.0' (uid=0 pid=3328955 comm="systemctl --user import-environment DISPLAY XAUTHO") Dec 1 16:10:16 node2 dbus-daemon[3328913]: [session uid=0 pid=3328911] Activated service 'org.freedesktop.systemd1' failed: Process org.freedesktop.systemd1 exited with status 1 Dec 1 16:10:16 node2 dbus-daemon[3328913]: [session uid=0 pid=3328911] Activating service name='org.freedesktop.systemd1' requested by ':1.3' (uid=0 pid=3328903 comm="/usr/libexec/gnome-session-binary ") Dec 1 16:10:16 node2 dbus-daemon[3328913]: [session uid=0 pid=3328911] Activated service 'org.freedesktop.systemd1' failed: Process org.freedesktop.systemd1 exited with status 1 Dec 1 16:10:16 node2 dbus-daemon[3328913]: [session uid=0 pid=3328911] Activating service name='org.a11y.Bus' requested by ':1.4' (uid=0 pid=3328974 comm="/usr/libexec/gnome-session-check-accelerated ") Dec 1 16:10:16 node2 dbus-daemon[3328913]: [session uid=0 pid=3328911] Successfully activated service 'org.a11y.Bus' Dec 1 16:10:16 node2 org.a11y.Bus[3328913]: dbus-daemon[3329017]: Activating service name='org.a11y.atspi.Registry' requested by ':1.0' (uid=0 pid=3328974 comm="/usr/libexec/gnome-session-check-accelerated ") Dec 1 16:10:16 node2 dbus-daemon[3328913]: [session uid=0 pid=3328911] Activating service name='org.gtk.vfs.Daemon' requested by ':1.6' (uid=0 pid=3328974 comm="/usr/libexec/gnome-session-check-accelerated ") Dec 1 16:10:16 node2 org.a11y.Bus[3328913]: dbus-daemon[3329017]: Successfully activated service 'org.a11y.atspi.Registry' Dec 1 16:10:16 node2 org.a11y.Bus[3328913]: SpiRegistry daemon is running with well-known name - org.a11y.atspi.Registry Dec 1 16:10:16 node2 dbus-daemon[3328913]: [session uid=0 pid=3328911] Successfully activated service 'org.gtk.vfs.Daemon' Dec 1 16:10:16 node2 dbus-daemon[3328913]: [session uid=0 pid=3328911] Activating service name='org.freedesktop.systemd1' requested by ':1.11' (uid=0 pid=3328903 comm="/usr/libexec/gnome-session-binary ") Dec 1 16:10:16 node2 dbus-daemon[3328913]: [session uid=0 pid=3328911] Activated service 'org.freedesktop.systemd1' failed: Process org.freedesktop.systemd1 exited with status 1 Dec 1 16:10:16 node2 dbus-daemon[3328913]: [session uid=0 pid=3328911] Activating service name='org.freedesktop.systemd1' requested by ':1.13' (uid=0 pid=3328903 comm="/usr/libexec/gnome-session-binary ") Dec 1 16:10:16 node2 dbus-daemon[3328913]: [session uid=0 pid=3328911] Activated service 'org.freedesktop.systemd1' failed: Process org.freedesktop.systemd1 exited with status 1 Dec 1 16:10:16 node2 dbus-daemon[3328913]: [session uid=0 pid=3328911] Activating service name='org.freedesktop.systemd1' requested by ':1.15' (uid=0 pid=3328903 comm="/usr/libexec/gnome-session-binary ") Dec 1 16:10:16 node2 dbus-daemon[3328913]: [session uid=0 pid=3328911] Activated service 'org.freedesktop.systemd1' failed: Process org.freedesktop.systemd1 exited with status 1 Dec 1 16:10:16 node2 dbus-daemon[3328913]: [session uid=0 pid=3328911] Activating service name='org.freedesktop.systemd1' requested by ':1.17' (uid=0 pid=3328903 comm="/usr/libexec/gnome-session-binary ") Dec 1 16:10:16 node2 dbus-daemon[3328913]: [session uid=0 pid=3328911] Activated service 'org.freedesktop.systemd1' failed: Process org.freedesktop.systemd1 exited with status 1 Dec 1 16:10:16 node2 dbus-daemon[3328913]: [session uid=0 pid=3328911] Activating service name='org.freedesktop.systemd1' requested by ':1.19' (uid=0 pid=3328903 comm="/usr/libexec/gnome-session-binary ") Dec 1 16:10:16 node2 dbus-daemon[3328913]: [session uid=0 pid=3328911] Activated service 'org.freedesktop.systemd1' failed: Process org.freedesktop.systemd1 exited with status 1 Dec 1 16:10:16 node2 dbus-daemon[3328913]: [session uid=0 pid=3328911] Activating service name='org.freedesktop.systemd1' requested by ':1.20' (uid=0 pid=3328903 comm="/usr/libexec/gnome-session-binary ") Dec 1 16:10:16 node2 dbus-daemon[3328913]: [session uid=0 pid=3328911] Activated service 'org.freedesktop.systemd1' failed: Process org.freedesktop.systemd1 exited with status 1 Dec 1 16:10:16 node2 gnome-keyring-pkcs11.desktop[3329062]: GNOME_KEYRING_CONTROL=/root/.cache/keyring-TA7WG3 Dec 1 16:10:16 node2 dbus-daemon[3328913]: [session uid=0 pid=3328911] Activating service name='org.freedesktop.systemd1' requested by ':1.20' (uid=0 pid=3328903 comm="/usr/libexec/gnome-session-binary ") Dec 1 16:10:16 node2 dbus-daemon[3328913]: [session uid=0 pid=3328911] Activated service 'org.freedesktop.systemd1' failed: Process org.freedesktop.systemd1 exited with status 1 Dec 1 16:10:16 node2 gnome-keyring-secrets.desktop[3329059]: GNOME_KEYRING_CONTROL=/root/.cache/keyring-TA7WG3 Dec 1 16:10:16 node2 gnome-keyring-ssh.desktop[3329060]: GNOME_KEYRING_CONTROL=/root/.cache/keyring-TA7WG3 Dec 1 16:10:16 node2 gnome-keyring-ssh.desktop[3329060]: SSH_AUTH_SOCK=/root/.cache/keyring-TA7WG3/ssh Dec 1 16:10:16 node2 dbus-daemon[3328913]: [session uid=0 pid=3328911] Activating service name='org.freedesktop.systemd1' requested by ':1.20' (uid=0 pid=3328903 comm="/usr/libexec/gnome-session-binary ") Dec 1 16:10:16 node2 dbus-daemon[3328913]: [session uid=0 pid=3328911] Activated service 'org.freedesktop.systemd1' failed: Process org.freedesktop.systemd1 exited with status 1 Dec 1 16:10:16 node2 org.gnome.Shell.desktop[3329077]: Xlib: extension "DPMS" missing on display ":2". Dec 1 16:10:16 node2 org.gnome.Shell.desktop[3329077]: Xlib: extension "DPMS" missing on display ":2". Dec 1 16:10:16 node2 journal[3329077]: Unset XDG_SESSION_ID, getCurrentSessionProxy() called outside a user session. Asking logind directly. Dec 1 16:10:16 node2 journal[3329077]: Will monitor session 74711 Dec 1 16:10:16 node2 dbus-daemon[3328913]: [session uid=0 pid=3328911] Activating service name='org.freedesktop.portal.IBus' requested by ':1.25' (uid=0 pid=3329163 comm="ibus-daemon --xim --panel disable ") Dec 1 16:10:16 node2 dbus-daemon[3328913]: [session uid=0 pid=3328911] Successfully activated service 'org.freedesktop.portal.IBus' Dec 1 16:10:16 node2 dbus-daemon[3328913]: [session uid=0 pid=3328911] Activating service name='org.freedesktop.impl.portal.PermissionStore' requested by ':1.24' (uid=0 pid=3329077 comm="/usr/bin/gnome-shell ") Dec 1 16:10:16 node2 dbus-daemon[3328913]: [session uid=0 pid=3328911] Successfully activated service 'org.freedesktop.impl.portal.PermissionStore' Dec 1 16:10:16 node2 dbus-daemon[3328913]: [session uid=0 pid=3328911] Activating service name='org.gnome.Shell.CalendarServer' requested by ':1.24' (uid=0 pid=3329077 comm="/usr/bin/gnome-shell ") Dec 1 16:10:16 node2 dbus-daemon[3328913]: [session uid=0 pid=3328911] Activating service name='org.gnome.evolution.dataserver.Sources5' requested by ':1.31' (uid=0 pid=3329192 comm="/usr/libexec/gnome-shell-calendar-server ") Dec 1 16:10:16 node2 dbus-daemon[3328913]: [session uid=0 pid=3328911] Activating service name='org.gnome.OnlineAccounts' requested by ':1.32' (uid=0 pid=3329198 comm="/usr/libexec/evolution-source-registry ") Dec 1 16:10:16 node2 dbus-daemon[3328913]: [session uid=0 pid=3328911] Successfully activated service 'org.gnome.evolution.dataserver.Sources5' Dec 1 16:10:16 node2 dbus-daemon[3328913]: [session uid=0 pid=3328911] Successfully activated service 'org.gnome.Shell.CalendarServer' Dec 1 16:10:16 node2 dbus-daemon[2203]: [system] Activating via systemd: service name='org.freedesktop.GeoClue2' unit='geoclue.service' requested by ':1.155415' (uid=0 pid=3329077 comm="/usr/bin/gnome-shell ") Dec 1 16:10:16 node2 systemd[1]: Starting Location Lookup Service... Dec 1 16:10:16 node2 journal[3329077]: Telepathy is not available, chat integration will be disabled. Dec 1 16:10:16 node2 journal[3329204]: goa-daemon version 3.28.2 starting Dec 1 16:10:16 node2 dbus-daemon[3328913]: [session uid=0 pid=3328911] Activating service name='org.gnome.Identity' requested by ':1.34' (uid=0 pid=3329204 comm="/usr/libexec/goa-daemon ") Dec 1 16:10:16 node2 dbus-daemon[3328913]: [session uid=0 pid=3328911] Activating service name='org.gtk.vfs.UDisks2VolumeMonitor' requested by ':1.24' (uid=0 pid=3329077 comm="/usr/bin/gnome-shell ") Dec 1 16:10:16 node2 dbus-daemon[3328913]: [session uid=0 pid=3328911] Successfully activated service 'org.gnome.OnlineAccounts' Dec 1 16:10:16 node2 dbus-daemon[3328913]: [session uid=0 pid=3328911] Successfully activated service 'org.gnome.Identity' Dec 1 16:10:16 node2 journal[3329215]: GoaKerberosIdentityManager: Using polling for change notification for credential cache type 'KCM' Dec 1 16:10:16 node2 dbus-daemon[3328913]: [session uid=0 pid=3328911] Successfully activated service 'org.gtk.vfs.UDisks2VolumeMonitor' Dec 1 16:10:16 node2 dbus-daemon[3328913]: [session uid=0 pid=3328911] Activating service name='org.gtk.vfs.MTPVolumeMonitor' requested by ':1.24' (uid=0 pid=3329077 comm="/usr/bin/gnome-shell ") Dec 1 16:10:16 node2 dbus-daemon[3328913]: [session uid=0 pid=3328911] Successfully activated service 'org.gtk.vfs.MTPVolumeMonitor' Dec 1 16:10:16 node2 dbus-daemon[3328913]: [session uid=0 pid=3328911] Activating service name='org.gtk.vfs.GPhoto2VolumeMonitor' requested by ':1.24' (uid=0 pid=3329077 comm="/usr/bin/gnome-shell ") Dec 1 16:10:16 node2 dbus-daemon[3328913]: [session uid=0 pid=3328911] Successfully activated service 'org.gtk.vfs.GPhoto2VolumeMonitor' Dec 1 16:10:17 node2 dbus-daemon[3328913]: [session uid=0 pid=3328911] Activating service name='org.gtk.vfs.AfcVolumeMonitor' requested by ':1.24' (uid=0 pid=3329077 comm="/usr/bin/gnome-shell ") Dec 1 16:10:17 node2 org.gtk.vfs.AfcVolumeMonitor[3328913]: Volume monitor alive Dec 1 16:10:17 node2 dbus-daemon[3328913]: [session uid=0 pid=3328911] Successfully activated service 'org.gtk.vfs.AfcVolumeMonitor' Dec 1 16:10:17 node2 dbus-daemon[3328913]: [session uid=0 pid=3328911] Activating service name='org.gtk.vfs.GoaVolumeMonitor' requested by ':1.24' (uid=0 pid=3329077 comm="/usr/bin/gnome-shell ") Dec 1 16:10:17 node2 dbus-daemon[3328913]: [session uid=0 pid=3328911] Successfully activated service 'org.gtk.vfs.GoaVolumeMonitor' Dec 1 16:10:17 node2 pulseaudio.desktop[3329256]: W: [pulseaudio] main.c: This program is not intended to be run as root (unless --system is specified). Dec 1 16:10:17 node2 org.gnome.Shell.desktop[3329077]: Xlib: extension "DPMS" missing on display ":2". Dec 1 16:10:17 node2 dbus-daemon[2203]: [system] Activating via systemd: service name='org.bluez' unit='dbus-org.bluez.service' requested by ':1.155424' (uid=0 pid=3329285 comm="/usr/bin/pulseaudio --start ") Dec 1 16:10:17 node2 journal[3329291]: Loading NVML: libnvidia-ml.so: cannot open shared object file: No such file or directory Dec 1 16:10:17 node2 dbus-daemon[2203]: [system] Activating via systemd: service name='org.freedesktop.hostname1' unit='dbus-org.freedesktop.hostname1.service' requested by ':1.155433' (uid=0 pid=3329252 comm="/usr/libexec/gsd-rfkill ") Dec 1 16:10:17 node2 org.gnome.SettingsDaemon.Keyboard.desktop[3329299]: error: XDG_RUNTIME_DIR not set in the environment. Dec 1 16:10:17 node2 systemd[1]: Starting Hostname Service... Dec 1 16:10:17 node2 org.gnome.SettingsDaemon.Mouse.desktop[3329303]: error: XDG_RUNTIME_DIR not set in the environment. Dec 1 16:10:17 node2 dbus-daemon[3328913]: [session uid=0 pid=3328911] Activating service name='org.gnome.evolution.dataserver.Calendar7' requested by ':1.31' (uid=0 pid=3329192 comm="/usr/libexec/gnome-shell-calendar-server ") Dec 1 16:10:17 node2 dbus-daemon[2203]: [system] Activating via systemd: service name='org.freedesktop.locale1' unit='dbus-org.freedesktop.locale1.service' requested by ':1.155437' (uid=0 pid=3329299 comm="/usr/libexec/gsd-keyboard ") Dec 1 16:10:17 node2 dbus-daemon[3328913]: [session uid=0 pid=3328911] Activating service name='org.freedesktop.systemd1' requested by ':1.44' (uid=0 pid=3329254 comm="/usr/libexec/gsd-sharing ") Dec 1 16:10:17 node2 journal[3329254]: Failed to StopUnit service: GDBus.Error:org.freedesktop.DBus.Error.Spawn.ChildExited: Process org.freedesktop.systemd1 exited with status 1 Dec 1 16:10:17 node2 dbus-daemon[3328913]: [session uid=0 pid=3328911] Activated service 'org.freedesktop.systemd1' failed: Process org.freedesktop.systemd1 exited with status 1 Dec 1 16:10:17 node2 journal[3329254]: Failed to StopUnit service: GDBus.Error:org.freedesktop.DBus.Error.Spawn.ChildExited: Process org.freedesktop.systemd1 exited with status 1 Dec 1 16:10:17 node2 journal[3329254]: Failed to StopUnit service: GDBus.Error:org.freedesktop.DBus.Error.Spawn.ChildExited: Process org.freedesktop.systemd1 exited with status 1 Dec 1 16:10:17 node2 journal[3329254]: Failed to StopUnit service: GDBus.Error:org.freedesktop.DBus.Error.Spawn.ChildExited: Process org.freedesktop.systemd1 exited with status 1 Dec 1 16:10:17 node2 systemd[1]: Starting Locale Service... Dec 1 16:10:17 node2 dbus-daemon[2203]: [system] Successfully activated service 'org.freedesktop.GeoClue2' Dec 1 16:10:17 node2 systemd[1]: Started Location Lookup Service. Dec 1 16:10:17 node2 vmware-user.desktop[3329355]: vmware-user: could not open /proc/fs/vmblock/dev Dec 1 16:10:17 node2 vmware-user.desktop[3329355]: Error: /usr/bin/vmtoolsd must be run inside a virtual machine on a VMware hypervisor product. Dec 1 16:10:17 node2 dbus-daemon[3328913]: [session uid=0 pid=3328911] Activating service name='org.freedesktop.Tracker1' requested by ':1.60' (uid=0 pid=3329361 comm="gdbus call -e -d org.freedesktop.DBus -o /org/free") Dec 1 16:10:17 node2 gnome-session-binary[3328903]: Entering running state Dec 1 16:10:17 node2 dbus-daemon[3328913]: [session uid=0 pid=3328911] Successfully activated service 'org.freedesktop.Tracker1' Dec 1 16:10:17 node2 tracker-store.desktop[3329361]: (uint32 1,) Dec 1 16:10:17 node2 dbus-daemon[3328913]: [session uid=0 pid=3328911] Successfully activated service 'org.gnome.evolution.dataserver.Calendar7' Dec 1 16:10:17 node2 NetworkManager[2206]: <info> [1764576617.1924] agent-manager: agent[1eaebaa131647e84,:1.155415/org.gnome.Shell.NetworkAgent/0]: agent registered Dec 1 16:10:17 node2 journal[3329077]: Error looking up permission: GDBus.Error:org.freedesktop.portal.Error.NotFound: No entry for geolocation Dec 1 16:10:17 node2 dbus-daemon[3328913]: [session uid=0 pid=3328911] Activating service name='ca.desrt.dconf' requested by ':1.70' (uid=0 pid=3329409 comm="/usr/libexec/evolution-calendar-factory-subprocess") Dec 1 16:10:17 node2 journal[3329353]: enabled plugins: desktop-categories, fwupd, os-release, packagekit, packagekit-local, packagekit-offline, packagekit-proxy, packagekit-refresh, packagekit-upgrade, packagekit-url-to-app, shell-extensions, appstream, desktop-menu-path, flatpak, hardcoded-blacklist, hardcoded-popular, modalias, packagekit-refine, rewrite-resource, odrs, packagekit-history, provenance, systemd-updates, generic-updates, packagekit-refine-repos, provenance-license, icons, key-colors, key-colors-metadata Dec 1 16:10:17 node2 journal[3329353]: disabled plugins: dummy, fedora-langpacks, fedora-pkgdb-collections, repos Dec 1 16:10:17 node2 dbus-daemon[3328913]: [session uid=0 pid=3328911] Activating service name='org.gnome.evolution.dataserver.AddressBook9' requested by ':1.70' (uid=0 pid=3329409 comm="/usr/libexec/evolution-calendar-factory-subprocess") Dec 1 16:10:17 node2 dbus-daemon[3328913]: [session uid=0 pid=3328911] Successfully activated service 'ca.desrt.dconf' Dec 1 16:10:17 node2 journal[3329286]: no xrandr-VGA-1 device found: Failed to find output xrandr-VGA-1 Dec 1 16:10:17 node2 dbus-daemon[3328913]: [session uid=0 pid=3328911] Successfully activated service 'org.gnome.evolution.dataserver.AddressBook9' Dec 1 16:10:17 node2 dbus-daemon[2203]: [system] Activating via systemd: service name='org.freedesktop.fwupd' unit='fwupd.service' requested by ':1.155445' (uid=0 pid=3329353 comm="/usr/bin/gnome-software --gapplication-service ") Dec 1 16:10:17 node2 systemd[1]: Starting Firmware update daemon... Dec 1 16:10:17 node2 dbus-daemon[2203]: [system] Successfully activated service 'org.freedesktop.hostname1' Dec 1 16:10:17 node2 systemd[1]: Started Hostname Service. Dec 1 16:10:17 node2 cupsd[4302]: REQUEST localhost - - "POST / HTTP/1.1" 200 360 Create-Printer-Subscriptions successful-ok Dec 1 16:10:17 node2 dbus-daemon[2203]: [system] Successfully activated service 'org.freedesktop.locale1' Dec 1 16:10:17 node2 systemd[1]: Started Locale Service. Dec 1 16:10:17 node2 fwupd[3329449]: 08:10:17:0535 FuDeviceList ignoring device 7d29f2075dcafb4488b40c73f199cf46bb76bddb [optionrom:(null)] existing device ce4c74a5188d5b9cdb1e72ed32dad2d313c1c999 [optionrom:(null)] already exists Dec 1 16:10:17 node2 gnome-shell[3329077]: GNOME Shell started at Mon Dec 01 2025 16:10:17 GMT+0800 (CST) Dec 1 16:10:17 node2 dbus-daemon[2203]: [system] Successfully activated service 'org.freedesktop.fwupd' Dec 1 16:10:17 node2 systemd[1]: Started Firmware update daemon. Dec 1 16:10:17 node2 PackageKit[4929]: uid 0 is trying to obtain org.freedesktop.packagekit.system-sources-refresh auth (only_trusted:0) Dec 1 16:10:17 node2 PackageKit[4929]: uid 0 obtained auth for org.freedesktop.packagekit.system-sources-refresh Dec 1 16:10:21 node2 journal[3329207]: Failed to query location: Error resolving &ldquo;location.services.mozilla.com”: Name or service not known Dec 1 16:10:37 node2 journal[4929]: LRO_MIRRORLISTURL processing failed: Curl error (6): Couldn't resolve host name for http://mirrorlist.centos.org/?release=8&arch=x86_64&repo=extras&infra=stock [Could not resolve host: mirrorlist.centos.org] Dec 1 16:10:42 node2 dbus-daemon[2203]: [system] Failed to activate service 'org.bluez': timed out (service_start_timeout=25000ms) Dec 1 16:10:42 node2 pulseaudio[3329285]: GetManagedObjects() failed: org.freedesktop.DBus.Error.NoReply: Did not receive a reply. Possible causes include: the remote application did not send a reply, the message bus security policy blocked the reply, the reply timeout expired, or the network connection was broken. Dec 1 16:10:47 node2 systemd[1]: systemd-localed.service: Succeeded. Dec 1 16:10:47 node2 systemd[1]: systemd-hostnamed.service: Succeeded. Dec 1 16:11:01 node2 systemd[1]: Started Session 74851 of user root. Dec 1 16:11:01 node2 systemd[1]: session-74851.scope: Succeeded. Dec 1 16:11:51 node2 journal[4929]: LRO_MIRRORLISTURL processing failed: Curl error (6): Couldn't resolve host name for http://mirrorlist.centos.org/?release=8&arch=x86_64&repo=extras&infra=stock [Could not resolve host: mirrorlist.centos.org] Dec 1 16:12:01 node2 systemd[1]: Started Session 74852 of user root. Dec 1 16:12:01 node2 systemd[1]: session-74852.scope: Succeeded. Dec 1 16:13:01 node2 systemd[1]: Started Session 74853 of user root. Dec 1 16:13:01 node2 systemd[1]: session-74853.scope: Succeeded. Dec 1 16:14:01 node2 systemd[1]: Started Session 74854 of user root. Dec 1 16:14:01 node2 systemd[1]: session-74854.scope: Succeeded. Dec 1 16:14:18 node2 journal[4929]: LRO_METALINKURL processing failed: Curl error (6): Couldn't resolve host name for https://mirrors.fedoraproject.org/metalink?repo=epel-modular-8&arch=x86_64&infra=stock&content=centos [Could not resolve host: mirrors.fedoraproject.org] Dec 1 16:14:30 node2 journal[3329077]: gnome-shell: Fatal IO error 11 (Resource temporarily unavailable) on X server :2. Dec 1 16:14:30 node2 org.gtk.vfs.Daemon[3328913]: A connection to the bus can't be made Dec 1 16:14:30 node2 gnome-session[3328903]: gnome-session-binary[3328903]: WARNING: Lost name on bus: org.gnome.SessionManager Dec 1 16:14:30 node2 org.gnome.Shell.CalendarServer[3328913]: gnome-shell-calendar-server[3329192]: Lost (or failed to acquire) the name org.gnome.Shell.CalendarServer - exiting Dec 1 16:14:30 node2 tracker-miner-apps.desktop[3329359]: Received signal:15->'Terminated' Dec 1 16:14:30 node2 tracker-miner-apps.desktop[3329359]: OK Dec 1 16:14:30 node2 gnome-session-binary[3328903]: WARNING: Lost name on bus: org.gnome.SessionManager Dec 1 16:14:30 node2 tracker-miner-fs.desktop[3329360]: Received signal:15->'Terminated' Dec 1 16:14:30 node2 journal[3329360]: Owner of volume monitor org.gtk.vfs.UDisks2VolumeMonitor disconnected from the bus; removing drives/volumes/mounts Dec 1 16:14:30 node2 tracker-miner-fs.desktop[3329360]: OK Dec 1 16:14:30 node2 journal[3329360]: Owner of volume monitor org.gtk.vfs.MTPVolumeMonitor disconnected from the bus; removing drives/volumes/mounts Dec 1 16:14:30 node2 journal[3329360]: Owner of volume monitor org.gtk.vfs.GPhoto2VolumeMonitor disconnected from the bus; removing drives/volumes/mounts Dec 1 16:14:30 node2 journal[3329360]: Owner of volume monitor org.gtk.vfs.AfcVolumeMonitor disconnected from the bus; removing drives/volumes/mounts Dec 1 16:14:30 node2 journal[3329360]: Owner of volume monitor org.gtk.vfs.GoaVolumeMonitor disconnected from the bus; removing drives/volumes/mounts Dec 1 16:14:30 node2 systemd[3326885]: root-.gvfs.mount: Succeeded. Dec 1 16:14:30 node2 systemd[3319485]: root-.gvfs.mount: Succeeded. Dec 1 16:14:30 node2 journal[3329360]: Error while sending AddMatch() message: The connection is closed Dec 1 16:14:30 node2 journal[3329360]: Error while sending AddMatch() message: The connection is closed Dec 1 16:14:30 node2 journal[3329360]: Error while sending AddMatch() message: The connection is closed Dec 1 16:14:30 node2 cupsd[4302]: REQUEST localhost - - "POST / HTTP/1.1" 200 152 Cancel-Subscription successful-ok Dec 1 16:14:30 node2 cupsd[4302]: REQUEST localhost - - "POST / HTTP/1.1" 200 152 Cancel-Subscription client-error-not-found Dec 1 16:14:30 node2 journal[3329251]: Source ID 3 was not found when attempting to remove it Dec 1 16:14:30 node2 journal[3329249]: gsd-power: Fatal IO error 11 (Resource temporarily unavailable) on X server :2. Dec 1 16:14:30 node2 journal[3329268]: gsd-xsettings: Fatal IO error 11 (Resource temporarily unavailable) on X server :2. Dec 1 16:14:30 node2 journal[3329271]: gsd-wacom: Fatal IO error 11 (Resource temporarily unavailable) on X server :2. Dec 1 16:14:30 node2 journal[3329288]: gsd-clipboard: Fatal IO error 11 (Resource temporarily unavailable) on X server :2. Dec 1 16:14:30 node2 journal[3329296]: gsd-media-keys: Fatal IO error 11 (Resource temporarily unavailable) on X server :2. Dec 1 16:14:30 node2 journal[3329299]: gsd-keyboard: Fatal IO error 11 (Resource temporarily unavailable) on X server :2. Dec 1 16:14:30 node2 journal[3329286]: gsd-color: Fatal IO error 11 (Resource temporarily unavailable) on X server :2. Dec 1 16:14:30 node2 gnome-session[3328903]: gnome-session-binary[3328903]: WARNING: App 'org.gnome.SettingsDaemon.Clipboard.desktop' exited with code 1 Dec 1 16:14:30 node2 gnome-session-binary[3328903]: WARNING: App 'org.gnome.SettingsDaemon.Clipboard.desktop' exited with code 1 Dec 1 16:14:30 node2 gnome-session[3328903]: gnome-session-binary[3328903]: WARNING: App 'org.gnome.SettingsDaemon.Power.desktop' exited with code 1 Dec 1 16:14:30 node2 gnome-session-binary[3328903]: WARNING: App 'org.gnome.SettingsDaemon.Power.desktop' exited with code 1 Dec 1 16:14:30 node2 gnome-session-binary[3328903]: WARNING: App 'org.gnome.SettingsDaemon.Wacom.desktop' exited with code 1 Dec 1 16:14:30 node2 gnome-session[3328903]: gnome-session-binary[3328903]: WARNING: App 'org.gnome.SettingsDaemon.Wacom.desktop' exited with code 1 Dec 1 16:14:30 node2 gnome-session[3328903]: gnome-session-binary[3328903]: WARNING: App 'org.gnome.SettingsDaemon.Keyboard.desktop' exited with code 1 Dec 1 16:14:30 node2 gnome-session-binary[3328903]: WARNING: App 'org.gnome.SettingsDaemon.Keyboard.desktop' exited with code 1 Dec 1 16:14:30 node2 gnome-session[3328903]: gnome-session-binary[3328903]: WARNING: App 'org.gnome.SettingsDaemon.MediaKeys.desktop' exited with code 1 Dec 1 16:14:30 node2 gnome-session-binary[3328903]: WARNING: App 'org.gnome.SettingsDaemon.MediaKeys.desktop' exited with code 1 Dec 1 16:14:30 node2 org.freedesktop.Tracker1[3328913]: Received signal:15->'Terminated' Dec 1 16:14:30 node2 org.freedesktop.Tracker1[3328913]: OK Dec 1 16:14:30 node2 gnome-session[3328903]: gnome-session-binary[3328903]: WARNING: App 'org.gnome.SettingsDaemon.XSettings.desktop' exited with code 1 Dec 1 16:14:30 node2 gnome-session-binary[3328903]: WARNING: App 'org.gnome.SettingsDaemon.XSettings.desktop' exited with code 1 Dec 1 16:14:30 node2 gnome-session[3328903]: gnome-session-binary[3328903]: WARNING: App 'org.gnome.SettingsDaemon.Color.desktop' exited with code 1 Dec 1 16:14:30 node2 gnome-session-binary[3328903]: WARNING: App 'org.gnome.SettingsDaemon.Color.desktop' exited with code 1 Dec 1 16:14:30 node2 gnome-session[3328903]: Unable to init server: Could not connect: Connection refused Dec 1 16:14:30 node2 journal[3329759]: Cannot open display: Dec 1 16:14:52 node2 dbus-daemon[3329840]: [session uid=0 pid=3329838] Activating service name='org.freedesktop.systemd1' requested by ':1.0' (uid=0 pid=3329882 comm="systemctl --user import-environment DISPLAY XAUTHO") Dec 1 16:14:52 node2 dbus-daemon[3329840]: [session uid=0 pid=3329838] Activated service 'org.freedesktop.systemd1' failed: Process org.freedesktop.systemd1 exited with status 1 Dec 1 16:14:52 node2 dbus-daemon[3329840]: [session uid=0 pid=3329838] Activating service name='org.freedesktop.systemd1' requested by ':1.3' (uid=0 pid=3329830 comm="/usr/libexec/gnome-session-binary ") Dec 1 16:14:52 node2 dbus-daemon[3329840]: [session uid=0 pid=3329838] Activated service 'org.freedesktop.systemd1' failed: Process org.freedesktop.systemd1 exited with status 1 Dec 1 16:14:52 node2 dbus-daemon[3329840]: [session uid=0 pid=3329838] Activating service name='org.a11y.Bus' requested by ':1.4' (uid=0 pid=3329900 comm="/usr/libexec/gnome-session-check-accelerated ") Dec 1 16:14:52 node2 dbus-daemon[3329840]: [session uid=0 pid=3329838] Successfully activated service 'org.a11y.Bus' Dec 1 16:14:52 node2 org.a11y.Bus[3329840]: dbus-daemon[3329943]: Activating service name='org.a11y.atspi.Registry' requested by ':1.0' (uid=0 pid=3329900 comm="/usr/libexec/gnome-session-check-accelerated ") Dec 1 16:14:52 node2 dbus-daemon[3329840]: [session uid=0 pid=3329838] Activating service name='org.gtk.vfs.Daemon' requested by ':1.6' (uid=0 pid=3329900 comm="/usr/libexec/gnome-session-check-accelerated ") Dec 1 16:14:52 node2 org.a11y.Bus[3329840]: dbus-daemon[3329943]: Successfully activated service 'org.a11y.atspi.Registry' Dec 1 16:14:52 node2 org.a11y.Bus[3329840]: SpiRegistry daemon is running with well-known name - org.a11y.atspi.Registry Dec 1 16:14:52 node2 dbus-daemon[3329840]: [session uid=0 pid=3329838] Successfully activated service 'org.gtk.vfs.Daemon' Dec 1 16:14:52 node2 dbus-daemon[3329840]: [session uid=0 pid=3329838] Activating service name='org.freedesktop.systemd1' requested by ':1.11' (uid=0 pid=3329830 comm="/usr/libexec/gnome-session-binary ") Dec 1 16:14:52 node2 dbus-daemon[3329840]: [session uid=0 pid=3329838] Activated service 'org.freedesktop.systemd1' failed: Process org.freedesktop.systemd1 exited with status 1 Dec 1 16:14:52 node2 dbus-daemon[3329840]: [session uid=0 pid=3329838] Activating service name='org.freedesktop.systemd1' requested by ':1.13' (uid=0 pid=3329830 comm="/usr/libexec/gnome-session-binary ") Dec 1 16:14:52 node2 dbus-daemon[3329840]: [session uid=0 pid=3329838] Activated service 'org.freedesktop.systemd1' failed: Process org.freedesktop.systemd1 exited with status 1 Dec 1 16:14:52 node2 dbus-daemon[3329840]: [session uid=0 pid=3329838] Activating service name='org.freedesktop.systemd1' requested by ':1.15' (uid=0 pid=3329830 comm="/usr/libexec/gnome-session-binary ") Dec 1 16:14:52 node2 dbus-daemon[3329840]: [session uid=0 pid=3329838] Activated service 'org.freedesktop.systemd1' failed: Process org.freedesktop.systemd1 exited with status 1 Dec 1 16:14:52 node2 dbus-daemon[3329840]: [session uid=0 pid=3329838] Activating service name='org.freedesktop.systemd1' requested by ':1.17' (uid=0 pid=3329830 comm="/usr/libexec/gnome-session-binary ") Dec 1 16:14:52 node2 dbus-daemon[3329840]: [session uid=0 pid=3329838] Activated service 'org.freedesktop.systemd1' failed: Process org.freedesktop.systemd1 exited with status 1 Dec 1 16:14:52 node2 dbus-daemon[3329840]: [session uid=0 pid=3329838] Activating service name='org.freedesktop.systemd1' requested by ':1.19' (uid=0 pid=3329830 comm="/usr/libexec/gnome-session-binary ") Dec 1 16:14:52 node2 dbus-daemon[3329840]: [session uid=0 pid=3329838] Activated service 'org.freedesktop.systemd1' failed: Process org.freedesktop.systemd1 exited with status 1 Dec 1 16:14:52 node2 dbus-daemon[3329840]: [session uid=0 pid=3329838] Activating service name='org.freedesktop.systemd1' requested by ':1.20' (uid=0 pid=3329830 comm="/usr/libexec/gnome-session-binary ") Dec 1 16:14:52 node2 dbus-daemon[3329840]: [session uid=0 pid=3329838] Activated service 'org.freedesktop.systemd1' failed: Process org.freedesktop.systemd1 exited with status 1 Dec 1 16:14:52 node2 gnome-keyring-pkcs11.desktop[3329980]: GNOME_KEYRING_CONTROL=/root/.cache/keyring-HV2SG3 Dec 1 16:14:52 node2 dbus-daemon[3329840]: [session uid=0 pid=3329838] Activating service name='org.freedesktop.systemd1' requested by ':1.20' (uid=0 pid=3329830 comm="/usr/libexec/gnome-session-binary ") Dec 1 16:14:52 node2 dbus-daemon[3329840]: [session uid=0 pid=3329838] Activated service 'org.freedesktop.systemd1' failed: Process org.freedesktop.systemd1 exited with status 1 Dec 1 16:14:52 node2 gnome-keyring-secrets.desktop[3329977]: GNOME_KEYRING_CONTROL=/root/.cache/keyring-HV2SG3 Dec 1 16:14:52 node2 gnome-keyring-ssh.desktop[3329979]: GNOME_KEYRING_CONTROL=/root/.cache/keyring-HV2SG3 Dec 1 16:14:52 node2 gnome-keyring-ssh.desktop[3329979]: SSH_AUTH_SOCK=/root/.cache/keyring-HV2SG3/ssh Dec 1 16:14:52 node2 dbus-daemon[3329840]: [session uid=0 pid=3329838] Activating service name='org.freedesktop.systemd1' requested by ':1.20' (uid=0 pid=3329830 comm="/usr/libexec/gnome-session-binary ") Dec 1 16:14:52 node2 dbus-daemon[3329840]: [session uid=0 pid=3329838] Activated service 'org.freedesktop.systemd1' failed: Process org.freedesktop.systemd1 exited with status 1 Dec 1 16:14:52 node2 org.gnome.Shell.desktop[3329995]: Xlib: extension "DPMS" missing on display ":2". Dec 1 16:14:52 node2 org.gnome.Shell.desktop[3329995]: Xlib: extension "DPMS" missing on display ":2". Dec 1 16:14:52 node2 journal[3329995]: Unset XDG_SESSION_ID, getCurrentSessionProxy() called outside a user session. Asking logind directly. Dec 1 16:14:52 node2 journal[3329995]: Will monitor session 74711 Dec 1 16:14:52 node2 dbus-daemon[3329840]: [session uid=0 pid=3329838] Activating service name='org.freedesktop.portal.IBus' requested by ':1.25' (uid=0 pid=3330081 comm="ibus-daemon --xim --panel disable ") Dec 1 16:14:52 node2 dbus-daemon[3329840]: [session uid=0 pid=3329838] Activating service name='org.freedesktop.impl.portal.PermissionStore' requested by ':1.24' (uid=0 pid=3329995 comm="/usr/bin/gnome-shell ") Dec 1 16:14:52 node2 dbus-daemon[3329840]: [session uid=0 pid=3329838] Successfully activated service 'org.freedesktop.portal.IBus' Dec 1 16:14:52 node2 dbus-daemon[3329840]: [session uid=0 pid=3329838] Successfully activated service 'org.freedesktop.impl.portal.PermissionStore' Dec 1 16:14:52 node2 dbus-daemon[3329840]: [session uid=0 pid=3329838] Activating service name='org.gnome.Shell.CalendarServer' requested by ':1.24' (uid=0 pid=3329995 comm="/usr/bin/gnome-shell ") Dec 1 16:14:52 node2 dbus-daemon[3329840]: [session uid=0 pid=3329838] Activating service name='org.gnome.evolution.dataserver.Sources5' requested by ':1.31' (uid=0 pid=3330109 comm="/usr/libexec/gnome-shell-calendar-server ") Dec 1 16:14:53 node2 dbus-daemon[3329840]: [session uid=0 pid=3329838] Activating service name='org.gnome.OnlineAccounts' requested by ':1.32' (uid=0 pid=3330114 comm="/usr/libexec/evolution-source-registry ") Dec 1 16:14:53 node2 dbus-daemon[3329840]: [session uid=0 pid=3329838] Successfully activated service 'org.gnome.evolution.dataserver.Sources5' Dec 1 16:14:53 node2 dbus-daemon[3329840]: [session uid=0 pid=3329838] Successfully activated service 'org.gnome.Shell.CalendarServer' Dec 1 16:14:53 node2 journal[3329995]: Telepathy is not available, chat integration will be disabled. Dec 1 16:14:53 node2 dbus-daemon[3329840]: [session uid=0 pid=3329838] Activating service name='org.gtk.vfs.UDisks2VolumeMonitor' requested by ':1.24' (uid=0 pid=3329995 comm="/usr/bin/gnome-shell ")
最新发布
12-02
<think> 我们正在处理Makefile中的警告:"overriding recipe for target 'xxx'"和"ignoring old recipe for target 'xxx'",其中xxx是'@echo'和'ERROR'。根据引用[1][2][3][4][5],这个问题是由于在Makefile中重复定义了同一个目标(target)导致的。在Makefile中,同一个目标只能有一个recipe(即命令部分),如果多次定义,后面的会覆盖前面的,并产生警告。 引用[4]特别指出: (1) Makefile中允许存在同名的目标,但执行时会报警告,且靠后的同名目标会覆盖前面的同名目标。覆盖的规则是保留前一个目标的依赖关系,但丢弃前一个目标的命令,使用后一个目标的命令。 因此,解决这个问题的根本方法是消除重复的目标定义。 根据用户描述,警告涉及的目标是'@echo'和'ERROR'。这里有一个关键点:在Makefile中,目标通常是文件名或伪目标(例如all, clean等)。而'@echo'和'ERROR'看起来像是命令或者错误标签,但它们被当作了目标(target)来定义。 可能的原因: 1. 用户可能错误地将命令(如echo)作为目标(target)写在规则中。 2. 用户可能定义了多个同名的伪目标(例如,多次定义`@echo`或`ERROR`作为目标)。 然而,目标名中通常不会包含'@'符号,因为'@'在Makefile的命令部分用于抑制命令回显。所以,很可能是用户错误地书写了规则,导致本应是命令的部分被当成了目标。 例如,错误的写法可能是: @echo: @echo "Something" 然后在别处又写了: @echo: @echo "Something else" 或者,对于'ERROR'目标,可能是定义了一个处理错误的伪目标,但重复定义了。 另外,引用[2]中的示例显示: 在1.mk中定义了: all: @echo "this is command from 1.mk" 而在makefile中又定义了all目标,所以出现覆盖警告。 因此,我们需要检查Makefile中第14行和第32行(以及可能其他地方)对目标'@echo'和'ERROR'的定义。 解决步骤: 1. 定位重复定义: 打开Makefile,找到第14行和第32行,以及可能其他定义相同目标的地方。 2. 分析目标用途: - 如果'@echo'是一个误写的目标,那么应该修改规则,确保命令部分只在规则体内出现,而不是作为目标名。 - 如果'ERROR'是一个伪目标(例如用于错误处理),那么确保在整个Makefile中只定义一次。 3. 合并或删除重复定义: - 如果多次定义是必要的(比如在包含多个Makefile的情况下),考虑使用模式规则、条件判断或者将命令写成函数来避免重复。 - 如果重复定义是错误,删除多余的定义。 4. 使用伪目标声明: 对于伪目标(例如clean, all等),应该使用`.PHONY`来声明,但这并不能解决重复定义问题,但可以优化Makefile。 5. 检查包含关系: 如果Makefile包含了其他文件(使用`include`指令),那么可能是包含的文件和当前文件定义了相同的目标。需要检查并确保同一个目标只定义一次。 具体到用户的警告(目标为'@echo'和'ERROR'),由于这两个目标名比较特殊,我们需要考虑: - '@echo':这个目标名包含'@',可能是书写错误。通常,我们不会用'@'开头作为目标名。可能的情况是,用户本意是想写一个命令,却不小心将它写在了目标的位置。 例如,错误写法: @echo: # 这里本应是命令,却成了目标 ... 正确写法应该是将`@echo`作为命令,放在规则体内,目标应该是其他名字。 - 'ERROR':可能是用户自定义的伪目标,用于错误处理。如果重复定义,需要合并。 示例修正: 假设原Makefile中有如下重复定义: 第14行: @echo: @echo "Hello" 第32行: @echo: @echo "World" 则会出现覆盖警告。修正方法:删除其中一个,或者重新设计规则,避免同名目标。 另外,对于'ERROR'目标: 第14行: ERROR: @echo "Error occurred!" 第32行: ERROR: @exit 1 同样会出现覆盖警告。需要合并两个定义,或者只保留一个。 建议: 1. 检查第14行和第32行附近的规则,确认这两个目标定义的上下文。 2. 如果确实需要两个不同的操作,考虑使用不同的目标名,例如: ERROR1: ... ERROR2: ... 3. 如果两个定义是同一个意图,那么合并它们。 另外,引用[5]提到在Qt编译时出现类似警告,通常是由于qmake生成的Makefile和自定义规则冲突。如果用户使用了类似Qt的构建系统,可能需要检查自动生成的文件和自定义规则是否冲突。 总结:解决该警告的关键是消除重复定义的目标。 操作步骤: 1. 打开Makefile,定位到14行和32行。 2. 检查这两个位置定义的目标名(即冒号前面的单词)是否为`@echo`和`ERROR`。 3. 查看整个Makefile中是否还有其他地方定义了相同的目标。 4. 修改或删除重复定义。 注意:目标名中不应该包含'@'(除非有特殊需求),所以'@echo'很可能是一个书写错误。正确的做法是,目标名应该是合法的标识符(一般由字母、数字、下划线组成,不含特殊符号)。 如果用户无法修改这两行(例如,因为它们是自动生成的),那么可能需要考虑是否可以通过调整包含顺序或使用条件判断来解决。 由于用户没有提供具体的Makefile内容,我们只能给出一般性建议。 如果用户提供更多信息,我们可以给出更具体的修改方案。 相关问题: 1. 如何正确编写Makefile规则以避免目标重复? 2. Makefile中伪目标(.PHONY)的作用和使用方法? 3. 如何处理Makefile中包含多个文件导致的规则冲突? 4. Makefile中特殊字符(如@、-)在规则中的正确用法? </think> ### 解决Makefile中"overriding recipe for target"警告的方法 根据引用文献[1][3][4],**目标重复定义**是导致该警告的根本原因。在 Makefile 中,同一目标只能有一个规则(recipe),如果出现重复定义: 1. 后定义的规则会覆盖先定义的规则 2. 前一个规则的命令被丢弃(但依赖关系保留) 3. 生成警告信息: ``` Makefile:行号: warning: overriding recipe for target '目标名' Makefile:行号: warning: ignoring old recipe for target '目标名' ``` #### 📍 针对您的问题(涉及`@echo`和`ERROR`目标) **原因分析:** 1. `@echo`目标重复定义(第14行和第32行) 2. `ERROR`目标重复定义(位置未指定) 3. 可能的原因: - 同一Makefile中多次定义相同目标(引用[3][4]) - 包含的子Makefile中有冲突定义(引用[2]) - 自动生成规则冲突(Qt项目常见,引用[5]) #### 🔧 解决方法步骤: 1. **合并重复规则** ```makefile # 错误示例(重复定义) @echo: @echo "First message" @echo: dependency # 第32行 @echo "Second message" # 覆盖前一个 # 正确做法:合并为一个规则 @echo: dependency @echo "First message" @echo "Second message" ``` 2. **使用伪目标声明** ```makefile .PHONY: @echo ERROR # 声明为伪目标 @echo: # 第14行 @echo "Custom echo command" ERROR: # 错误处理目标 @echo "Error occurred"; exit 1 ``` 3. **处理包含冲突(若来自子Makefile)** ```makefile # 主Makefile include sub1.mk # 明确覆盖子文件中的定义 @echo: @echo "Overridden implementation" # 或禁用子文件中的定义 SUB_DEFINITIONS = no # 通过变量控制 include sub2.mk ``` 4. **Qt项目特殊处理(引用[5])** ```bash # 清理自动生成的文件 make distclean # 重新生成Makefile qmake -makefile ``` #### ️ 关键注意事项: 1. **目标命名规范**: - 避免使用特殊符号开头(如`@`),改用`echo_target`等有意义名称 - `ERROR`建议改为`error-handling`等明确名称 2. **依赖关系保留规则**(引用[4]): ```makefile # 前一个目标的依赖会被保留 target: dep1 # 该依赖会被保留 # 命令被丢弃 target: dep2 # 最终实际执行 @echo "Actual command" # 等价于:target: dep1 dep2 ``` 3. **调试建议**: ```bash make -n # 空运行显示所有命令 make -p # 打印所有规则和变量定义 ``` #### ✅ 验证修复效果 修复后警告应消失,且行为符合预期: ```bash $ make @echo # 输出合并后的消息 $ make ERROR # 执行错误处理逻辑 ``` > **经验提示**:在大型项目中,使用`include`指令时,建议在子Makefile中使用`ifndef GUARD_VARIABLE`条件判断防止重复包含(引用[2][5])。
评论
成就一亿技术人!
拼手气红包6.0元
还能输入1000个字符
 
红包 添加红包
表情包 插入表情
 条评论被折叠 查看
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值