http://bugs.winehq.org/show_bug.cgi?id=26688
Summary: Risen requires vcrun2005 Product: Wine Version: 1.3.17 Platform: x86 OS/Version: Linux Status: UNCONFIRMED Severity: normal Priority: P2 Component: msvcrt AssignedTo: wine-bugs@winehq.org ReportedBy: xvachon@gmail.com
The game outputs no missing functions and mscodescan reveals nothing either, yet the game complains about vcrun2005. winetricks vcrun2005 works around it
xavier@xavier /wine/risen/drive_c/jeu/bin $ wine Risen.exe fixme:actctx:parse_depend_manifests Could not find dependent assembly L"Microsoft.VC80.OpenMP" (8.0.50727.762) fixme:actctx:parse_depend_manifests Could not find dependent assembly L"Microsoft.VC80.CRT" (8.0.50727.762) err:module:import_dll Library vcomp.dll (which is needed by L"C:\jeu\bin\Engine.dll") not found err:module:import_dll Library Engine.dll (which is needed by L"C:\jeu\bin\Risen.exe") not found err:module:import_dll Loading library Engine.dll (which is needed by L"C:\jeu\bin\Game.dll") failed (error c0000018). fixme:actctx:parse_depend_manifests Could not find dependent assembly L"Microsoft.VC80.CRT" (8.0.50727.762) err:module:import_dll Library Game.dll (which is needed by L"C:\jeu\bin\Risen.exe") not found err:module:import_dll Loading library Engine.dll (which is needed by L"C:\jeu\bin\Importer.dll") failed (error c0000018). err:module:import_dll Loading library Game.dll (which is needed by L"C:\jeu\bin\Importer.dll") failed (error c0000018). err:module:import_dll Library vcomp.dll (which is needed by L"C:\jeu\bin\Importer.dll") not found err:module:import_dll Library Importer.dll (which is needed by L"C:\jeu\bin\Risen.exe") not found err:module:LdrInitializeThunk Main exe initialization for L"C:\jeu\bin\Risen.exe" failed, status c0000135
http://bugs.winehq.org/show_bug.cgi?id=26688
--- Comment #1 from Austin English austinenglish@gmail.com 2011-04-08 13:09:44 CDT --- Created an attachment (id=33990) --> (http://bugs.winehq.org/attachment.cgi?id=33990) stub
Does this help?
http://bugs.winehq.org/show_bug.cgi?id=26688
--- Comment #2 from Xavier Vachon xvachon@gmail.com 2011-04-08 13:25:15 CDT --- (In reply to comment #1)
Created an attachment (id=33990)
--> (http://bugs.winehq.org/attachment.cgi?id=33990) [details]
stub
Does this help?
The game will need a bit more than just a stub.
wine: Call from 0x7ed75952 to unimplemented function vcomp.dll.omp_init_lock, aborting
http://bugs.winehq.org/show_bug.cgi?id=26688
Austin English austinenglish@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Keywords| |download Status|UNCONFIRMED |NEW URL| |http://www.bigdownload.com/ | |games/risen/pc/risen-demo/ CC| |austinenglish@gmail.com Ever Confirmed|0 |1
--- Comment #3 from Austin English austinenglish@gmail.com 2011-04-08 14:01:42 CDT --- I see the same in the demo. Hacking up mscodescan a bit, I see it wants: ./Importer.dll imports following stub symbols: vcomp:_vcomp_enter_critsect vcomp:_vcomp_for_static_end vcomp:_vcomp_for_static_simple_init vcomp:_vcomp_fork vcomp:_vcomp_leave_critsect vcomp:omp_destroy_lock vcomp:omp_init_lock vcomp:omp_test_lock vcomp:omp_unset_lock
./Engine.dll imports following stub symbols: vcomp:omp_unset_lock
http://bugs.winehq.org/show_bug.cgi?id=26688
Austin English austinenglish@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Summary|Risen requires vcrun2005 |Risen needs 10 functions | |from vcomp.dll
--- Comment #4 from Austin English austinenglish@gmail.com 2011-04-11 13:35:04 CDT --- A stub vcomp is now in: http://source.winehq.org/git/wine.git/commitdiff/dd2159c6e3fe9579ad14748e0f3...
http://bugs.winehq.org/show_bug.cgi?id=26688
GyB gyebro69@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |gyebro69@gmail.com
--- Comment #5 from GyB gyebro69@gmail.com 2011-04-16 13:18:25 CDT --- Bully: Scholarship Edition also requires some of those functions:
./Bully.exe imports following stub symbols: vcomp:_vcomp_for_static_end vcomp:_vcomp_for_static_simple_init vcomp:_vcomp_fork
Wine-1.3.18
http://bugs.winehq.org/show_bug.cgi?id=26688
Austin English austinenglish@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Attachment #33990|0 |1 is obsolete| |
http://bugs.winehq.org/show_bug.cgi?id=26688
André H. nerv@dawncrow.de changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |nerv@dawncrow.de
--- Comment #6 from André H. nerv@dawncrow.de 2012-02-13 15:28:12 CST --- Hugin [1] is also affected of that. (At least it's bundled enblend and enfuse tools [2])
I had success with a simple stub for _vcomp_fork but this need some more testing and isn't a good idea in codefreeze, so i'll test some more and get back here. btw: the openmp function might be implementable with libgomp...
i'll have a look at all that
[1] http://hugin.sourceforge.net/ [2] http://enblend.sourceforge.net/
http://bugs.winehq.org/show_bug.cgi?id=26688
--- Comment #7 from André H. nerv@dawncrow.de 2012-02-15 14:21:58 CST --- Created attachment 38894 --> http://bugs.winehq.org/attachment.cgi?id=38894 fork stub/hack
Could you please test the patch, for enblend/enfuse it seems to be enough. if you need vcomp100.dll.so simply make a copy of vcomp.dll.so thx
http://bugs.winehq.org/show_bug.cgi?id=26688
Austin English austinenglish@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- URL|http://www.bigdownload.com/ |http://www.gamershell.com/d |games/risen/pc/risen-demo/ |ownload_51644.shtml
--- Comment #8 from Austin English austinenglish@gmail.com 2012-02-15 17:58:46 CST --- (In reply to comment #7)
Created attachment 38894 [details] fork stub/hack
Could you please test the patch, for enblend/enfuse it seems to be enough. if you need vcomp100.dll.so simply make a copy of vcomp.dll.so thx
wine: Call from 0x7b83aec2 to unimplemented function vcomp.dll.omp_init_lock, aborting
http://bugs.winehq.org/show_bug.cgi?id=26688
André H. nerv@dawncrow.de changed:
What |Removed |Added ---------------------------------------------------------------------------- Attachment #38894|0 |1 is obsolete| |
--- Comment #9 from André H. nerv@dawncrow.de 2012-02-16 09:53:06 CST --- Created attachment 38910 --> http://bugs.winehq.org/attachment.cgi?id=38910 fork stub/hack 2
this includes lock routines forwarded to libgomp...
http://bugs.winehq.org/show_bug.cgi?id=26688
--- Comment #10 from André H. nerv@dawncrow.de 2012-02-16 10:54:42 CST --- (In reply to comment #5)
Bully: Scholarship Edition also requires some of those functions:
./Bully.exe imports following stub symbols: vcomp:_vcomp_for_static_end vcomp:_vcomp_for_static_simple_init vcomp:_vcomp_fork
Wine-1.3.18
Gyb: For you the first hack should still work.
http://bugs.winehq.org/show_bug.cgi?id=26688
--- Comment #11 from Austin English austinenglish@gmail.com 2012-02-16 13:00:51 CST --- (In reply to comment #9)
Created attachment 38910 [details] fork stub/hack 2
this includes lock routines forwarded to libgomp...
fixme:vcomp:VCOMP_omp_init_lock (0x7e5cbf8): stub wine: Call from 0x7b83aec2 to unimplemented function vcomp.dll._vcomp_enter_critsect, aborting fixme:dbghelp:elf_search_auxv can't find symbol in module fixme:dbghelp:MiniDumpWriteDump NIY MiniDumpScanMemory
http://bugs.winehq.org/show_bug.cgi?id=26688
--- Comment #12 from GyB gyebro69@gmail.com 2012-02-16 13:23:17 CST --- (In reply to comment #10)
(In reply to comment #5)
Bully: Scholarship Edition also requires some of those functions:
./Bully.exe imports following stub symbols: vcomp:_vcomp_for_static_end vcomp:_vcomp_for_static_simple_init vcomp:_vcomp_fork
Wine-1.3.18
Gyb: For you the first hack should still work.
Hi André,
The first patch is enough to start Bully: Scholarship Edition.
With the patch applied I see a lot of
fixme:vcomp:VCOMP__vcomp_fork (1, 3, 0x402610, ...): stub
messages in the terminal. They're probably harmless. Extensive testing of the game is almost impossible because of bug #26802.
http://bugs.winehq.org/show_bug.cgi?id=26688
André H. nerv@dawncrow.de changed:
What |Removed |Added ---------------------------------------------------------------------------- Attachment #38910|0 |1 is obsolete| |
--- Comment #13 from André H. nerv@dawncrow.de 2012-02-17 08:52:13 CST --- Created attachment 38925 --> http://bugs.winehq.org/attachment.cgi?id=38925 fork stub/hack 3
OK, Austin please try this, hope that's it ;)
http://bugs.winehq.org/show_bug.cgi?id=26688
André H. nerv@dawncrow.de changed:
What |Removed |Added ---------------------------------------------------------------------------- Attachment #38894|1 |0 is obsolete| |
http://bugs.winehq.org/show_bug.cgi?id=26688
--- Comment #14 from Austin English austinenglish@gmail.com 2012-02-17 14:30:38 CST --- (In reply to comment #13)
Created attachment 38925 [details] fork stub/hack 3
OK, Austin please try this, hope that's it ;)
No longer crashes, but hangs at: fixme:vcomp:VCOMP_omp_init_lock (0x7e5cbf8): stub
http://bugs.winehq.org/show_bug.cgi?id=26688
André H. nerv@dawncrow.de changed:
What |Removed |Added ---------------------------------------------------------------------------- Attachment #38925|0 |1 is obsolete| |
--- Comment #15 from André H. nerv@dawncrow.de 2012-03-04 08:38:50 CST --- Created attachment 39185 --> http://bugs.winehq.org/attachment.cgi?id=39185 fork stub/hack 4
OK, Austin please try this
http://bugs.winehq.org/show_bug.cgi?id=26688
--- Comment #16 from Austin English austinenglish@gmail.com 2012-03-05 13:24:50 CST --- (In reply to comment #15)
Created attachment 39185 [details] fork stub/hack 4
OK, Austin please try this
Doesn't apply: patch -p1 < ~/vcomp-hack4 patching file dlls/vcomp/Makefile.in patching file dlls/vcomp/main.c Hunk #2 FAILED at 66. 1 out of 2 hunks FAILED -- saving rejects to file dlls/vcomp/main.c.rej patching file dlls/vcomp/vcomp.spec Hunk #2 succeeded at 66 with fuzz 2.
http://bugs.winehq.org/show_bug.cgi?id=26688
André H. nerv@dawncrow.de changed:
What |Removed |Added ---------------------------------------------------------------------------- Attachment #39185|0 |1 is obsolete| |
--- Comment #17 from André H. nerv@dawncrow.de 2012-03-05 13:47:07 CST --- Created attachment 39206 --> http://bugs.winehq.org/attachment.cgi?id=39206 fork stub/hack 4.1
oops
http://bugs.winehq.org/show_bug.cgi?id=26688
--- Comment #18 from Austin English austinenglish@gmail.com 2012-03-05 16:03:16 CST --- (In reply to comment #17)
Created attachment 39206 [details] fork stub/hack 4.1
oops
Works. Though it seems to cause some delays in loading resources, e.g., one of the splash screens was red for a few seconds until the resource loaded, but was fine with native.
http://bugs.winehq.org/show_bug.cgi?id=26688
Alistair Leslie-Hughes leslie_alistair@hotmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |leslie_alistair@hotmail.com
http://bugs.winehq.org/show_bug.cgi?id=26688
Wylda wylda@volny.cz changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |wylda@volny.cz
--- Comment #19 from Wylda wylda@volny.cz 2012-05-06 15:12:06 CDT ---
Heroes of iron 3 crashes under wine-1.5.3 without vcrun2005's native vcomp.dll:
wine: Call from 0x7b83b9c2 to unimplemented function vcomp.dll._vcomp_enter_critsect, aborting
http://bugs.winehq.org/show_bug.cgi?id=26688
Jay jaynobyl@gmx.de changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |jaynobyl@gmx.de
http://bugs.winehq.org/show_bug.cgi?id=26688
--- Comment #20 from Jay jaynobyl@gmx.de 2012-06-25 16:21:58 CDT --- I set all overrides to "Builtin" and Risen 1.10 worked with Wine 1.5.7 on Ubuntu 12.04 64bit. Can somedbody confirm that with a clean prefix install?
http://bugs.winehq.org/show_bug.cgi?id=26688
--- Comment #21 from Austin English austinenglish@gmail.com 2012-06-25 20:03:46 CDT --- (In reply to comment #20)
I set all overrides to "Builtin" and Risen 1.10 worked with Wine 1.5.7 on Ubuntu 12.04 64bit. Can somedbody confirm that with a clean prefix install?
Wine's vcomp is a complete stub, so either you didn't set it to builtin or that version of Risen isn't calling vcomp (you can use +module/+loaddll to verify that).
http://bugs.winehq.org/show_bug.cgi?id=26688
--- Comment #22 from Jay jaynobyl@gmx.de 2012-07-24 06:16:46 CDT --- Very strange: After updating wine to 1.5.9 the error of #1 occurs to me. Probably my wine installation didn't handle the overrides correctly. So all in all: Bug confirmed :-)
http://bugs.winehq.org/show_bug.cgi?id=26688
Dan Kegel dank@kegel.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Attachment #38894|0 |1 is obsolete| | Attachment #39206|0 |1 is obsolete| |
--- Comment #23 from Dan Kegel dank@kegel.com 2012-08-02 15:17:33 CDT --- Created attachment 41246 --> http://bugs.winehq.org/attachment.cgi?id=41246 Slightly improved stubs
Here's a slightly improved vcomp stub that, oddly, seems to make risen demo happy. For now, all I'm trying to do is run everything serially, without hacks. It still lacks a _vcomp_fork; I'll try to add that when I get a chance.
http://bugs.winehq.org/show_bug.cgi?id=26688
Dan Kegel dank@kegel.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Attachment #41246|0 |1 is obsolete| |
--- Comment #24 from Dan Kegel dank@kegel.com 2012-08-04 13:49:05 CDT --- Created attachment 41274 --> http://bugs.winehq.org/attachment.cgi?id=41274 Support simple for loops serially
This successfully runs simple for loops compiled with vc2005 and vc2008.
http://bugs.winehq.org/show_bug.cgi?id=26688
Dan Kegel dank@kegel.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Attachment #41274|0 |1 is obsolete| |
--- Comment #25 from Dan Kegel dank@kegel.com 2012-08-05 20:43:49 CDT --- Created attachment 41291 --> http://bugs.winehq.org/attachment.cgi?id=41291 Expanded stubs - handles a bit more of test11.c
I'm running the test from http://bcook.cs.georgiasouthern.edu/openmp.html and adding stubs as I run into unimplemented functions.
http://bugs.winehq.org/show_bug.cgi?id=26688
--- Comment #26 from Dan Kegel dank@kegel.com 2012-08-05 20:44:47 CDT --- Created attachment 41292 --> http://bugs.winehq.org/attachment.cgi?id=41292 Test program - source
http://bugs.winehq.org/show_bug.cgi?id=26688
--- Comment #27 from Dan Kegel dank@kegel.com 2012-08-05 20:51:03 CDT --- Created attachment 41293 --> http://bugs.winehq.org/attachment.cgi?id=41293 Test program - 32 bit executable built with vc2008
After the above attachment, mscodescan says the following stubs may need fleshing out before test11.exe is happy: vcomp:_vcomp_atomic_add_i4 vcomp:_vcomp_atomic_add_r4 vcomp:_vcomp_atomic_add_r8 vcomp:_vcomp_atomic_and_i4 vcomp:_vcomp_atomic_div_i4 vcomp:_vcomp_atomic_div_r4 vcomp:_vcomp_atomic_div_r8 vcomp:_vcomp_atomic_mul_i4 vcomp:_vcomp_atomic_mul_r4 vcomp:_vcomp_atomic_mul_r8 vcomp:_vcomp_atomic_or_i4 vcomp:_vcomp_atomic_sub_i4 vcomp:_vcomp_atomic_sub_r4 vcomp:_vcomp_atomic_sub_r8 vcomp:_vcomp_atomic_xor_i4 vcomp:_vcomp_barrier vcomp:_vcomp_copyprivate_broadcast vcomp:_vcomp_copyprivate_receive vcomp:_vcomp_flush vcomp:_vcomp_for_dynamic_init vcomp:_vcomp_for_dynamic_next vcomp:_vcomp_for_static_init vcomp:_vcomp_ordered_begin vcomp:_vcomp_ordered_end vcomp:_vcomp_ordered_loop_end vcomp:_vcomp_reduction_i4 vcomp:_vcomp_sections_init vcomp:_vcomp_sections_next
http://bugs.winehq.org/show_bug.cgi?id=26688
Dan Kegel dank@kegel.com changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |dank@kegel.com
http://bugs.winehq.org/show_bug.cgi?id=26688
Dan Kegel dank@kegel.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Attachment #41291|0 |1 is obsolete| |
--- Comment #28 from Dan Kegel dank@kegel.com 2012-08-12 16:45:59 CDT --- Created attachment 41349 --> http://bugs.winehq.org/attachment.cgi?id=41349 Updated vcomp_fork, plus more atomic ops stubs
_vcomp_fork has to push a variable number of args, but is not allowed to clean up the stack for its caller, so it has to copy the args. Can't pass a va_list because that's the wrong level of indirection; it would pass a pointer to the first argument rather than a copy of all the arguments.
http://bugs.winehq.org/show_bug.cgi?id=26688
Dan Kegel dank@kegel.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Attachment #41349|0 |1 is obsolete| |
--- Comment #29 from Dan Kegel dank@kegel.com 2012-08-18 17:52:47 CDT --- Created attachment 41412 --> http://bugs.winehq.org/attachment.cgi?id=41412 Handles section directives
I added a first try at supporting sections. Passes a trivial test app.
http://bugs.winehq.org/show_bug.cgi?id=26688
Dan Kegel dank@kegel.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Attachment #41412|0 |1 is obsolete| |
--- Comment #30 from Dan Kegel dank@kegel.com 2012-08-18 22:17:27 CDT --- Created attachment 41414 --> http://bugs.winehq.org/attachment.cgi?id=41414 Handles dynamic for loops
This handles trivial upwards and downward dynamic for loops. It probably needs tests.
http://bugs.winehq.org/show_bug.cgi?id=26688
Dan Kegel dank@kegel.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Attachment #41414|0 |1 is obsolete| |
--- Comment #31 from Dan Kegel dank@kegel.com 2012-09-01 11:03:08 CDT --- Created attachment 41547 --> http://bugs.winehq.org/attachment.cgi?id=41547 Adds test for _vcomp_atomic_add_i*
http://bugs.winehq.org/show_bug.cgi?id=26688
Dan Kegel dank@kegel.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Keywords| |patch
--- Comment #32 from Dan Kegel dank@kegel.com 2012-09-01 12:18:08 CDT --- I'm keeping the latest version of the patch at https://code.google.com/p/winezeug/source/browse/trunk/vcomp.patch now rather than attaching it to this bug every time I make a change.
http://bugs.winehq.org/show_bug.cgi?id=26688
Dan Kegel dank@kegel.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Component|msvcrt |vcomp
http://bugs.winehq.org/show_bug.cgi?id=26688
Andrey Gusev andrey.goosev@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |andrey.goosev@gmail.com
--- Comment #33 from Andrey Gusev andrey.goosev@gmail.com 2013-10-10 08:51:37 CDT --- Still doesn't launches with
wine: Call from 0x7b83b2d2 to unimplemented function vcomp.dll.omp_init_lock, aborting
in 1.7.3
https://bugs.winehq.org/show_bug.cgi?id=26688
Anastasius Focht focht@gmx.net changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |focht@gmx.net Summary|Risen needs 10 functions |Risen crashes on |from vcomp.dll |unimplemented function | |vcomp.dll.omp_init_lock
--- Comment #34 from Anastasius Focht focht@gmx.net --- Hello folks,
refining summary to target a specific vcomp stub (comment #2). We should avoid multiple vcomp 'meta' bugs.
$ wine --version wine-1.7.13-100-gfcae016
Regards
https://bugs.winehq.org/show_bug.cgi?id=26688
hanska2@luukku.com changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |hanska2@luukku.com
--- Comment #35 from hanska2@luukku.com --- Still stub 1.7.24
https://bugs.winehq.org/show_bug.cgi?id=26688
Andrey Gusev andrey.goosev@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Summary|Risen crashes on |Multiple games crashes on |unimplemented function |unimplemented function |vcomp.dll.omp_init_lock |vcomp.dll.omp_init_lock | |(Risen, Hearts of Iron III | |demo)
https://bugs.winehq.org/show_bug.cgi?id=26688
Andrey Gusev andrey.goosev@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Fixed by SHA1| |a283d14b3d96af634833b1afbe2 | |286cc70ef6fbb Status|NEW |RESOLVED Resolution|--- |FIXED
--- Comment #36 from Andrey Gusev andrey.goosev@gmail.com --- Fixed by commit http://source.winehq.org/git/wine.git/commit/a283d14b3d96af634833b1afbe2286c...
https://bugs.winehq.org/show_bug.cgi?id=26688
Alexandre Julliard julliard@winehq.org changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|RESOLVED |CLOSED
--- Comment #37 from Alexandre Julliard julliard@winehq.org --- Closing bugs fixed in 1.7.50.
https://bugs.winehq.org/show_bug.cgi?id=26688
Jay jaynobyl@gmx.de changed:
What |Removed |Added ---------------------------------------------------------------------------- CC|jaynobyl@gmx.de |