Ask Your Question
0

VS 2015 internal error C1001 building the latest 3.0.0-dev release

asked 2015-11-13 12:37:37 -0600

Boogaloo gravatar image

updated 2015-11-13 19:41:20 -0600

The latest OpenCV 3.0-dev download at https://github.com/Itseez/opencv/arch... is causing an internal compiler error in VS Community 2015.

I am compiling on Windows 10 for 32-bit windows.

I can cmake and compile the latest OpenCV 3.0.0 download with VS 2015, so what's causing the problem with the -dev release?

1>------ Build started: Project: opencv_core, Configuration: Debug Win32 ------ 1> opencv_core_pch.cpp 1>E:\opencv-dev\build\modules\core\opencv_core_pch.cpp : fatal error C1001: An internal error has occurred in the compiler. 1> (compiler file 'f:\dd\vctools\compiler\utc\src\p2\main.c', line 246) 1> To work around this problem, try simplifying or changing the program near the locations listed above. 1> Please choose the Technical Support command on the Visual C++ 1> Help menu, or open the Technical Support help file for more information

Other people seem to be reporting the same or similar problem: http://stackoverflow.com/questions/33...

edit retag flag offensive close merge delete

Comments

I have encountered the same problem and now I have to use VS 2015 with OpenCV 3 compiled by VS 2013 and some code issue errors, for example ORB, SIFT and SURF feature detections.

tuannhtn gravatar imagetuannhtn ( 2015-11-14 02:04:00 -0600 )edit

Yes you´re right! I just compiled it with Visual Studio 2010, and it works, the 8 errors listing are caused by ambiguous calls to overloaded functions. One is on line 104 of perf_matching.cpp, pow(2,i), changing it to (int)pow((long double)2, i) resolved the call. Not sure which function would be fastest for two ints passed, maybe pow(2.f, (float)i). I'm surprised these problems are still there.

Boogaloo gravatar imageBoogaloo ( 2015-11-14 06:50:16 -0600 )edit

Can you give the full list of that 8 errors?

tuannhtn gravatar imagetuannhtn ( 2015-11-14 08:20:37 -0600 )edit

They were all simple ambibuous calls, apart from a call to "round" that wasn't included; I fixed them all and so they don´t list, so the best way would be to compile the original 3.0.0-dev master with VS 2010

Boogaloo gravatar imageBoogaloo ( 2015-11-15 08:54:33 -0600 )edit

1 answer

Sort by » oldest newest most voted
0

answered 2015-12-02 07:35:23 -0600

Today, after installing Update 1 of VS 2015, I have successfully built OpenCV 3.0-dev 64 bit (latest source code from github). So the internal compiler error was caused by a VS 2015 RTM's bug. Hope this help some one who wants to try OpenCV 3.0 with VS 2015.

edit flag offensive delete link more

Comments

Unfortunately, even with SP1 VS 2015 compiler is still crashing compiling the Install in debug. C1001's everywhere!

Boogaloo gravatar imageBoogaloo ( 2015-12-07 11:54:35 -0600 )edit

I do not know what version of VS you use. But I still succeeded when building OpenCV 3 (latest dev version from github with IPP 9 and TBB 4.4 Update 1) in debug mode.

tuannhtn gravatar imagetuannhtn ( 2015-12-09 09:17:33 -0600 )edit

What are you compiling it with? I used service pack 1 (just released) on Visual Studio 2015 Community. The compiler still has bugs and is crashing. Sp1 fixed some crashes, but not all. I am compiling OpenCV Dev with VS 2014 without problem.

Boogaloo gravatar imageBoogaloo ( 2015-12-09 09:33:52 -0600 )edit

VS 2015 enterprise with Update 1.

tuannhtn gravatar imagetuannhtn ( 2015-12-09 09:35:16 -0600 )edit

With it set to V140 not v100? Did you enable SSE4 AVX POPCNT etc?

Boogaloo gravatar imageBoogaloo ( 2015-12-09 12:40:03 -0600 )edit

Yes, v140, and I have tested with both SSE and AVX options (1st test with SSE only, 2nd test with AVX enable).

tuannhtn gravatar imagetuannhtn ( 2015-12-09 19:33:49 -0600 )edit

Strange, your version should be using the same compiler I imagine, so why the failure in my case? I´ll check it later and post back if I can find a solution.

Boogaloo gravatar imageBoogaloo ( 2015-12-10 06:44:22 -0600 )edit

Question Tools

1 follower

Stats

Asked: 2015-11-13 12:37:37 -0600

Seen: 1,295 times

Last updated: Dec 02 '15