[
https://issues.apache.org/jira/browse/ARROW-17830?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17608977#comment-17608977
]
Jin Shang edited comment on ARROW-17830 at 9/25/22 6:35 AM:
------------------------------------------------------------
After some digging I found out there's a bug with Conda's packaging of LLVM on
windows.
LLVM's target `LLVMDebugInfoPDB` has a dependency on this file
"${LIBPDB_LINK_FOLDERS}diaguids.lib"
([https://github.com/llvm/llvm-project/blob/main/llvm/lib/DebugInfo/PDB/CMakeLists.txt#L17)].
I downloaded Conda's llvmdev package for windows
[win-64/llvmdev-15.0.1-h0f93eaf_0.tar.bz2
|https://anaconda.org/conda-forge/llvmdev/15.0.1/download/win-64/llvmdev-15.0.1-h0f93eaf_0.tar.bz2]from:
[https://anaconda.org/conda-forge/llvmdev/files|https://anaconda.org/conda-forge/llvmdev/files.]
In the file `Library/lib/cmake/LLVMExports.cmake` line 410, it writes:
{code:java}
set_target_properties(LLVMDebugInfoPDB PROPERTIES INTERFACE_LINK_LIBRARIES
"C:/Program Files (x86)/Microsoft Visual Studio/2019/Enterprise/DIA
SDK/lib/amd64/diaguids.lib;LLVMBinaryFormat;LLVMObject;LLVMSupport;LLVMDebugInfoCodeView;LLVMDebugInfoMSF")
{code}
The full path is specified instead of using CMake vars. Apparently Conda
packaged it on a platform with VS2019 Enterprise installed.
I am not familiar with Conda at all. Any idea where I should report this bug
to? CC [~lidavidm] [~apitrou] [~kou]
-For now I will disable Gandiva build on AppVeyor.-
For now I will pin LLVM's version to 14 on AppVeyor per kou's suggestion.
was (Author: JIRAUSER295132):
After some digging I found out there's a bug with Conda's packaging of LLVM on
windows.
LLVM's target `LLVMDebugInfoPDB` has a dependency on this file
"${LIBPDB_LINK_FOLDERS}diaguids.lib"
([https://github.com/llvm/llvm-project/blob/main/llvm/lib/DebugInfo/PDB/CMakeLists.txt#L17)].
I downloaded Conda's llvmdev package for windows
[win-64/llvmdev-15.0.1-h0f93eaf_0.tar.bz2
|https://anaconda.org/conda-forge/llvmdev/15.0.1/download/win-64/llvmdev-15.0.1-h0f93eaf_0.tar.bz2]from:
[https://anaconda.org/conda-forge/llvmdev/files|https://anaconda.org/conda-forge/llvmdev/files.]
In the file `Library/lib/cmake/LLVMExports.cmake` line 410, it writes:
{code:java}
set_target_properties(LLVMDebugInfoPDB PROPERTIES INTERFACE_LINK_LIBRARIES
"C:/Program Files (x86)/Microsoft Visual Studio/2019/Enterprise/DIA
SDK/lib/amd64/diaguids.lib;LLVMBinaryFormat;LLVMObject;LLVMSupport;LLVMDebugInfoCodeView;LLVMDebugInfoMSF")
{code}
The full path is specified instead of using CMake vars. Apparently Conda
packaged it on a platform with VS2019 Enterprise installed.
I am not familiar with Conda at all. Any idea where I should report this bug
to? CC [~lidavidm] [~apitrou] [~kou]
For now I will disable Gandiva build on AppVeyor.
> [C++][Gandiva] AppVeyor Windows builds failing due to 'diaguids.lib'
> --------------------------------------------------------------------
>
> Key: ARROW-17830
> URL: https://issues.apache.org/jira/browse/ARROW-17830
> Project: Apache Arrow
> Issue Type: Bug
> Components: C++, C++ - Gandiva
> Reporter: David Li
> Assignee: Jin Shang
> Priority: Major
> Labels: pull-request-available
> Time Spent: 1h 20m
> Remaining Estimate: 0h
>
> Observed in AppVeyor across a few PRs
> {noformat}
> (arrow) C:\projects\arrow\cpp\build>cmake --build . --target install --config
> Release || exit /B
> ninja: error: 'C:/Program Files (x86)/Microsoft Visual
> Studio/2019/Enterprise/DIA SDK/lib/amd64/diaguids.lib', needed by
> 'release/gandiva.dll', missing and no known rule to make it
> {noformat}
--
This message was sent by Atlassian Jira
(v8.20.10#820010)