Сборка Scipy из исходного кода для Windows Arm64 завершается ошибками ссылки lldPython

Программы на Python
Ответить Пред. темаСлед. тема
Anonymous
 Сборка Scipy из исходного кода для Windows Arm64 завершается ошибками ссылки lld

Сообщение Anonymous »

я использую сборку scipy из исходного кода
Во время выполнения
python -m pip install -r requirements/build.txt -r requirements/dev.txt
matplotlib содержит ошибку.
llvm 18.1.0rc
Я собрал Openblas из исходного кода для Arm64, указал путь к переменной среды PKG-CONFIG-PATH и вставил ее в папку сборки, созданную после первого сбоя ниже команды.
python dev.py build
lld-link: error: too many errors emitted, stopping now (use /errorlimit:0 to see all errors)
flang-new: error: linker command failed with exit code 1 (use -v to see invocation)
[60/1300] Compiling C object scipy/special/cython_special.cp312-win_arm64.pyd.p/meson-generated_cython_special.c.obj
ninja: build stopped: subcommand failed.
Build failed!

Я тоже вижу
-- Check for working Fortran compiler: C:/Program Files/LLVM/bin/flang-new.EXE
-- Check for working Fortran compiler: C:/Program Files/LLVM/bin/flang-new.EXE - broken
-- Configuring incomplete, errors occurred!

ERR:
CMake Error at C:/Program Files/CMake/share/cmake-3.31/Modules/CMakeTestFortranCompiler.cmake:59 (message):
The Fortran compiler

"C:/Program Files/LLVM/bin/flang-new.EXE"

is not able to compile a simple test program.

It fails with the following output:

Change Dir: 'C:/Users/USERNAME/Desktop/johndoe/scipy/build/meson-private/cmake_xsimd/CMakeFiles/CMakeScratch/TryCompile-0hh5mx'

Run Build Command(s): C:/Users/USERNAME/Desktop/johndoe/scipy/venv/Scripts/ninja.exe -v cmTC_b1f75
[1/4] C:\windows\system32\cmd.exe /C "C:\PROGRA~1\LLVM\bin\FLANG-~1.EXE -cpp -fms-runtime-lib=dll_dbg -E C:\Users\USERNAME\Desktop\johndoe\scipy\build\meson-private\cmake_xsimd\CMakeFiles\CMakeScratch\TryCompile-0hh5mx\testFortranCompiler.f > CMakeFiles\cmTC_b1f75.dir\testFortranCompiler.f-pp.f && "C:\Program Files\CMake\bin\cmake.exe" -E cmake_ninja_depends --tdi=CMakeFiles\cmTC_b1f75.dir\FortranDependInfo.json --lang=Fortran --src=CMakeFiles\cmTC_b1f75.dir\testFortranCompiler.f-pp.f --out=CMakeFiles\cmTC_b1f75.dir\testFortranCompiler.f-pp.f --dep=CMakeFiles\cmTC_b1f75.dir\testFortranCompiler.f-pp.f.d --obj=CMakeFiles\cmTC_b1f75.dir\testFortranCompiler.f.obj --ddi=CMakeFiles\cmTC_b1f75.dir\testFortranCompiler.f.obj.ddi --src-orig=C:\Users\USERNAME\Desktop\johndoe\scipy\build\meson-private\cmake_xsimd\CMakeFiles\CMakeScratch\TryCompile-0hh5mx\testFortranCompiler.f"
[2/4] "C:\Program Files\CMake\bin\cmake.exe" -E cmake_ninja_dyndep --tdi=CMakeFiles\cmTC_b1f75.dir\FortranDependInfo.json --lang=Fortran --dd=CMakeFiles\cmTC_b1f75.dir\Fortran.dd @CMakeFiles\cmTC_b1f75.dir\Fortran.dd.rsp
[3/4] C:\PROGRA~1\LLVM\bin\FLANG-~1.EXE -IC:\Users\USERNAME\Desktop\johndoe\scipy\build\meson-private\cmake_xsimd\CMakeFiles\CMakeScratch\TryCompile-0hh5mx -fms-runtime-lib=dll_dbg -ffixed-line-length-72 -o CMakeFiles\cmTC_b1f75.dir\testFortranCompiler.f.obj -c CMakeFiles\cmTC_b1f75.dir\testFortranCompiler.f-pp.f
[4/4] C:\windows\system32\cmd.exe /C "cd . && "C:\Program Files\CMake\bin\cmake.exe" -E vs_link_exe --msvc-ver=1941 --intdir=CMakeFiles\cmTC_b1f75.dir --rc=rc --mt="" --manifests -- C:\PROGRA~1\LLVM\bin\lld-link.exe /nologo CMakeFiles\cmTC_b1f75.dir\testFortranCompiler.f.obj /out:cmTC_b1f75.exe /implib:cmTC_b1f75.lib /pdb:cmTC_b1f75.exe.dbg /version:0.0 /machine:ARM64 /debug /INCREMENTAL /subsystem:console -libpath:"C:/Program Files/Microsoft Visual Studio/2022/Community/VC/Tools/MSVC/14.41.34120/lib/arm64" -libpath:"C:/Program Files/Microsoft Visual Studio/2022/Community/VC/Tools/MSVC/14.41.34120/atlmfc/lib/arm64" -libpath:"C:/Program Files (x86)/Windows Kits/10/Lib/10.0.22621.0/ucrt/arm64" -libpath:"C:/Program Files (x86)/Windows Kits/10/Lib/10.0.22621.0/um/arm64" -libpath:"C:/Program Files/LLVM/lib" -libpath:"C:/Program Files/LLVM/lib/clang/18/lib/windows" && cd ."
FAILED: cmTC_b1f75.exe
C:\windows\system32\cmd.exe /C "cd . && "C:\Program Files\CMake\bin\cmake.exe" -E vs_link_exe --msvc-ver=1941 --intdir=CMakeFiles\cmTC_b1f75.dir --rc=rc --mt="" --manifests -- C:\PROGRA~1\LLVM\bin\lld-link.exe /nologo CMakeFiles\cmTC_b1f75.dir\testFortranCompiler.f.obj /out:cmTC_b1f75.exe /implib:cmTC_b1f75.lib /pdb:cmTC_b1f75.exe.dbg /version:0.0 /machine:ARM64 /debug /INCREMENTAL /subsystem:console -libpath:"C:/Program Files/Microsoft Visual Studio/2022/Community/VC/Tools/MSVC/14.41.34120/lib/arm64" -libpath:"C:/Program Files/Microsoft Visual Studio/2022/Community/VC/Tools/MSVC/14.41.34120/atlmfc/lib/arm64" -libpath:"C:/Program Files (x86)/Windows Kits/10/Lib/10.0.22621.0/ucrt/arm64" -libpath:"C:/Program Files (x86)/Windows Kits/10/Lib/10.0.22621.0/um/arm64" -libpath:"C:/Program Files/LLVM/lib" -libpath:"C:/Program Files/LLVM/lib/clang/18/lib/windows" && cd ."
RC Pass 1: command "rc /fo CMakeFiles\cmTC_b1f75.dir/manifest.res CMakeFiles\cmTC_b1f75.dir/manifest.rc" failed (exit code 0) with the following output:
no such file or directory
ninja: build stopped: subcommand failed.



Подробнее здесь: https://stackoverflow.com/questions/791 ... ink-errors
Реклама
Ответить Пред. темаСлед. тема

Быстрый ответ

Изменение регистра текста: 
Смайлики
:) :( :oops: :roll: :wink: :muza: :clever: :sorry: :angel: :read: *x)
Ещё смайлики…
   
К этому ответу прикреплено по крайней мере одно вложение.

Если вы не хотите добавлять вложения, оставьте поля пустыми.

Максимально разрешённый размер вложения: 15 МБ.

  • Похожие темы
    Ответы
    Просмотры
    Последнее сообщение

Вернуться в «Python»