Wine tells me unimplemented function when using libmxnet.dll

Questions about Wine on Linux
Post Reply
xiaozh
Level 1
Level 1
Posts: 6
Joined: Fri Jan 04, 2019 9:19 am

Wine tells me unimplemented function when using libmxnet.dll

Post by xiaozh » Fri Jan 04, 2019 9:49 am

I compile VS2015 C++ project to a exe and it works fine in Windows.

This project implement a feedforward layer of DNN, so its need MXNet C++ API. Here I use libmxnet.lib

Actually I find it also need openblas.dll. I pack this VS project into ZIP that everyone can download.(Google Drive https://drive.google.com/open?id=1s9yPt ... dKRLpUXAZZ)
This ZIP have the whole files, example is very simple DNN network.

In windows works fine
Image

In Ubuntu:

Image
002d:fixme:vcruntime:__telemetry_main_invoke_trigger ((nil))
./model/model2-symbol.json ... 002d:fixme:msvcp:_Locinfo__Locinfo_ctor_cat_cstr (0x23f740 1 C) semi-stub
002d:fixme:msvcp:_Locinfo__Locinfo_ctor_cat_cstr (0x23f200 1 C) semi-stub
3147 bytes
./model/model2-0000.params ... 674 bytes
[22:14:57] D:\Program Files (x86)\Jenkins\workspace\mxnet\mxnet\src\nnvm\legacy_json_util.cc:209: Loading symbol saved by previous version v0.12.0. Attempting to upgrade...
[22:14:57] D:\Program Files (x86)\Jenkins\workspace\mxnet\mxnet\src\nnvm\legacy_json_util.cc:217: Symbol successfully upgraded!
0039:fixme:kernelbase:AppPolicyGetThreadInitializationType 0xfffffffffffffffa, 0x1769fdd0
wine: Call from 0x7b44cbda to unimplemented function vcomp140.dll._vcomp_for_static_simple_init_i8, aborting

xiaozh
Level 1
Level 1
Posts: 6
Joined: Fri Jan 04, 2019 9:19 am

Re: Wine tells me unimplemented function when using libmxnet

Post by xiaozh » Sat Jan 05, 2019 8:11 am

The error of output has a very important information.
It tells me "Unhandled exception: unimplemented function vcomp140.dll._vcomp_for_static_simple_init_i8 called in 64-bit code (0x000000007b44cbda).".
I search the Internet and download the vcomp140.dll to the folder where exe stored.
Nothing changed.
I used Visual studio 2015 to compile this project, maybe the version of VS is too high than wine used?
How to solve this problem. Many Thanks!

User avatar
DarkShadow44
Level 7
Level 7
Posts: 941
Joined: Tue Nov 22, 2016 5:39 pm

Re: Wine tells me unimplemented function when using libmxnet

Post by DarkShadow44 » Sat Jan 05, 2019 9:33 am

We have a bugreport for this issue: https://bugs.winehq.org/show_bug.cgi?id=43546
Meanwhile, use "winetricks -q vcrun2015" to install the native runtime. This downloads the native vcomp140.dll and adds an according DLL override.

xiaozh
Level 1
Level 1
Posts: 6
Joined: Fri Jan 04, 2019 9:19 am

Re: Wine tells me unimplemented function when using libmxnet

Post by xiaozh » Wed Jan 23, 2019 6:47 am

Thank you ./winetricks -q vcrun2015 solved my question!

Post Reply