mssql-docker icon indicating copy to clipboard operation
mssql-docker copied to clipboard

Get the error message "The C compiler encountered a failure. The exit code was 2"

Open edwardkuo opened this issue 6 years ago • 2 comments

I use this version to build a sql server for windows container. When I create a in memory table, I got this error message

Msg 41313, Level 16, State 1, Line 0 The C compiler encountered a failure. The exit code was 2.

If I use this version https://hub.docker.com/r/microsoft/mssql-server-windows-developer, I don't get this error message.

I am not sure what's different ?

"https://hub.docker.com/r/microsoft/mssql-server-windows-developer," SQL Version is "Microsoft SQL Server 2017 (RTM-CU3-GDR) (KB4052987) - 14.0.3015.40 (X64) Dec 22 2017 16:13:22 Copyright (C) 2017 Microsoft Corporation Developer Edition (64-bit) on Windows Server 2016 Datacenter 10.0 (Build 14393: ) (Hypervisor)"

This sql version of this dockerfile is Microsoft SQL Server 2017 (RTM) - 14.0.1000.169 (X64) Aug 22 2017 17:04:49 Copyright (C) 2017 Microsoft Corporation Developer Edition (64-bit) on Windows Server Datacenter 10.0 (Build 18363: ) (Hypervisor)

edwardkuo avatar Apr 17 '20 06:04 edwardkuo

CL.exe fails inside windows container (inside a mapped volume with hyperV isolation) due to this issue: https://github.com/docker/for-win/issues/829

chinhang avatar Jun 26 '20 17:06 chinhang

Hello, how did you solve it? I have the same problem with Sql Server 2017 Enterprice

LSaez1973 avatar Feb 23 '24 23:02 LSaez1973