joosthooz commented on PR #13820:
URL: https://github.com/apache/arrow/pull/13820#issuecomment-1209452113

   Ok, I'll close the other PR then, and let's focus on this. I'm seeing some 
errors in pytest, but I'm also getting those on the comment that I've branched 
off of. But more concerning is this error in a Windows build here 
https://ci.appveyor.com/project/ApacheSoftwareFoundation/arrow/builds/44413284/job/ic6l7a0ehrnpk21g#L2654
 :
   ```
   FAILED: lib.cp38-win_amd64.pyd 
   cmd.exe /C "cd . && C:\Miniconda37-x64\envs\arrow\Library\bin\cmake.exe -E 
vs_link_dll --intdir=CMakeFiles\lib.dir 
--rc=C:\PROGRA~2\WI3CF2~1\10\bin\100183~1.0\x64\rc.exe 
--mt=C:\PROGRA~2\WI3CF2~1\10\bin\100183~1.0\x64\mt.exe --manifests  -- 
C:\PROGRA~2\MIB055~1\2017\COMMUN~1\VC\Tools\MSVC\1416~1.270\bin\Hostx64\x64\link.exe
 /nologo CMakeFiles\lib.dir\lib.cpp.obj  /out:lib.cp38-win_amd64.pyd 
/implib:lib.lib /pdb:lib.pdb /dll /version:0.0 /machine:x64  
/NODEFAULTLIB:LIBCMT /INCREMENTAL:NO  
C:\Miniconda37-x64\envs\arrow\libs\python38.lib  
C:\Miniconda37-x64\envs\arrow\Library\lib\arrow.lib  
C:\Miniconda37-x64\envs\arrow\Library\lib\arrow_python.lib  kernel32.lib 
user32.lib gdi32.lib winspool.lib shell32.lib ole32.lib oleaut32.lib uuid.lib 
comdlg32.lib advapi32.lib  && cd ."
   LINK: command 
"C:\PROGRA~2\MIB055~1\2017\COMMUN~1\VC\Tools\MSVC\1416~1.270\bin\Hostx64\x64\link.exe
 /nologo CMakeFiles\lib.dir\lib.cpp.obj /out:lib.cp38-win_amd64.pyd 
/implib:lib.lib /pdb:lib.pdb /dll /version:0.0 /machine:x64 
/NODEFAULTLIB:LIBCMT /INCREMENTAL:NO 
C:\Miniconda37-x64\envs\arrow\libs\python38.lib 
C:\Miniconda37-x64\envs\arrow\Library\lib\arrow.lib 
C:\Miniconda37-x64\envs\arrow\Library\lib\arrow_python.lib kernel32.lib 
user32.lib gdi32.lib winspool.lib shell32.lib ole32.lib oleaut32.lib uuid.lib 
comdlg32.lib advapi32.lib /MANIFEST 
/MANIFESTFILE:lib.cp38-win_amd64.pyd.manifest" failed (exit code 1120) with the 
following output:
      Creating library lib.lib and object lib.exp
   lib.cpp.obj : error LNK2019: unresolved external symbol "class 
std::shared_ptr<class std::function<class arrow::Result<class 
std::shared_ptr<class arrow::io::InputStream> > __cdecl(class 
std::shared_ptr<class arrow::io::InputStream>)> > __cdecl 
arrow::py::MakeStreamTransformFunc(struct 
arrow::py::TransformInputStreamVTable,struct _object *)" 
(?MakeStreamTransformFunc@py@arrow@@YA?AV?$shared_ptr@V?$function@$$A6A?AV?$Result@V?$shared_ptr@VInputStream@io@arrow@@@std@@@arrow@@V?$shared_ptr@VInputStream@io@arrow@@@std@@@Z@std@@@std@@UTransformInputStreamVTable@12@PEAU_object@@@Z)
 referenced in function "class std::shared_ptr<class std::function<class 
arrow::Result<class std::shared_ptr<class arrow::io::InputStream> > 
__cdecl(class std::shared_ptr<class arrow::io::InputStream>)> > __cdecl 
__pyx_f_7pyarrow_3lib_make_streamwrap_func(struct _object *,struct _object *)" 
(?__pyx_f_7pyarrow_3lib_make_streamwrap_func@@YA?AV?$shared_ptr@V?$function@$$A6A?AV?$Result@V?$shared_ptr@VInputStream@i
 
o@arrow@@@std@@@arrow@@V?$shared_ptr@VInputStream@io@arrow@@@std@@@Z@std@@@std@@PEAU_object@@0@Z)
   lib.cp38-win_amd64.pyd : fatal error LNK1120: 1 unresolved externals
   ```
   It seems like the linker is not able to locate the added C++ function 
`arrow::py::MakeStreamTransformFunc` when called from the generated cython 
code. I do notice that the namespace in C++ is just `arrow`, not `arrow::py`, 
but the same goes for `MakeTransformInputStream` so I don't know why the 
discrepancy should cause problems for one but not the other.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: github-unsubscr...@arrow.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org

Reply via email to