[openssl-dev] MSVC 2015 internal compiler error

Gisle Vanem gvanem at yahoo.no
Sat Jan 16 10:42:52 UTC 2016


While building OpenSSL from today's git-repo:

ssl\d1_srtp.c : fatal error C1001: An internalerror has occurred in the compiler.
(compiler file 'f:\dd\vctools\compiler\utc\src\p2\main.c', line 246)
 To work around this problem, try simplifying or changing the program near the locations listed above.
Please choose the Technical Support command on the Visual C++
 Help menu, or open the Technical Support help file for more information

INTERNAL COMPILER ERROR in 'f:\gv\VC_2015\bin\cl.exe'
    Please choose the Technical Support command on the Visual C++
    Help menu, or open the Technical Support help file for more information

-----

Seems to be related to:
  typedef const char *OPENSSL_CSTRING;

in safestack.h Changing this into:

  #ifdef _MSC_VER
  typedef       char *OPENSSL_CSTRING;
  #else
  typedef const char *OPENSSL_CSTRING;
  #endif

helps, but triggers the same internal compiler error later on.

It suspect the compiler sees 'const const *x' in some
places. So I assume that's the trigger for this fault.

Details:
  Microsoft (R) C/C++ Optimizing Compiler Version 19.00.23026 for x86
  on Win-10 build 10240.

-- 
--gv



More information about the openssl-dev mailing list