# Internal compiler error and cannot open input file named vtkioss-9.2.lib on windows

**URL:** https://discourse.vtk.org/t/internal-compiler-error-and-cannot-open-input-file-named-vtkioss-9-2-lib-on-windows/11543
**Category:** Support
**Tags:** code
**Created:** [May 26, 2023, 12:48am UTC](https://discourse.vtk.org/t/internal-compiler-error-and-cannot-open-input-file-named-vtkioss-9-2-lib-on-windows/11543 "2023-05-26T00:48:01Z")
**Posts on this page:** 9
**Page:** 1

<div class="post-metadata">

### Author: ![zhuofalin](https://discourse.vtk.org/user_avatar/discourse.vtk.org/zhuofalin/32/7146_2.png) [@zhuofalin](https://discourse.vtk.org/u/zhuofalin)
#### Post date: [May 26, 2023, 12:48am UTC](https://discourse.vtk.org/t/internal-compiler-error-and-cannot-open-input-file-named-vtkioss-9-2-lib-on-windows/11543/1 "2023-05-26T00:48:01Z")

</div>

I am compiling VTK on the window10 machine, and have encountered several problems. _[Environment: window10, vs2022, cmake]_

1. **Internal compiler error.**

```auto
Severity	Code	Description	Project	File	Line	Suppression State
Error	C1001	Internal compiler error.	ioss	D:\software\tool\vtk\VTK-9.2.6\ThirdParty\fmt\vtkfmt\vtkfmt\ostream.h	34	

```

2. **cannot open input file named vtkioss-9.2.lib.**

```auto
Severity	Code	Description	Project	File	Line	Suppression State
Error	LNK1181	cannot open input file '..\..\lib\Release\vtkioss-9.2.lib'	IOIOSS	D:\software\tool\vtk\VTK_build\IO\IOSS\LINK	1	

```

Can you help me? Thank you!

---

<div class="post-metadata">

### Author: ![mwestphal](https://discourse.vtk.org/user_avatar/discourse.vtk.org/mwestphal/32/19_2.png) [@mwestphal](https://discourse.vtk.org/u/mwestphal)
#### Post date: [May 26, 2023, 7:08am UTC](https://discourse.vtk.org/t/internal-compiler-error-and-cannot-open-input-file-named-vtkioss-9-2-lib-on-windows/11543/2 "2023-05-26T07:08:11Z")

</div>

You may want to try buidling with ninja instead of vs directly, if that helps.

---

<div class="post-metadata">

### Author: ![zhuofalin](https://discourse.vtk.org/user_avatar/discourse.vtk.org/zhuofalin/32/7146_2.png) [@zhuofalin](https://discourse.vtk.org/u/zhuofalin)
#### Post date: [May 26, 2023, 8:58am UTC](https://discourse.vtk.org/t/internal-compiler-error-and-cannot-open-input-file-named-vtkioss-9-2-lib-on-windows/11543/3 "2023-05-26T08:58:16Z")

</div>

thanks for your reply & help. 😍 But: There are some errors like:

```auto
D:\software\tool\vtk\VTK-9.2.6\ThirdParty\ioss\vtkioss\Ioss_Region.C(444): warning C4127: 条件表达式是常量
D:\software\tool\vtk\VTK-9.2.6\ThirdParty\fmt\vtkfmt\vtkfmt/ostream.h(34): fatal error C1001: 内部编译器错误。

```

after When i do:

```auto
cmake -G "Ninja" D:\software\tool\vtk\VTK-9.2.6
cmake --build .

```

what should i do ? 😂

---

<div class="post-metadata">

### Author: ![adamrankin](https://discourse.vtk.org/user_avatar/discourse.vtk.org/adamrankin/32/247_2.png) [@adamrankin](https://discourse.vtk.org/u/adamrankin)
#### Post date: [May 26, 2023, 2:58pm UTC](https://discourse.vtk.org/t/internal-compiler-error-and-cannot-open-input-file-named-vtkioss-9-2-lib-on-windows/11543/4 "2023-05-26T14:58:36Z")

</div>

I am also experiencing this error. Only started happening after updating to latest VS2022 v143 compiler package.

Edit: I was able to workaround by disabling the compilation of the IOSS module.

---

<div class="post-metadata">

### Author: ![zhuofalin](https://discourse.vtk.org/user_avatar/discourse.vtk.org/zhuofalin/32/7146_2.png) [@zhuofalin](https://discourse.vtk.org/u/zhuofalin)
#### Post date: [May 27, 2023, 2:16am UTC](https://discourse.vtk.org/t/internal-compiler-error-and-cannot-open-input-file-named-vtkioss-9-2-lib-on-windows/11543/5 "2023-05-27T02:16:00Z")

</div>

Wow, thanks a lot for your reply and help, I have now solved these issues, i.e. the compilation is successful.  
And **thanks for contributing!** @mwestphal @adamrankin 🤝

---

<div class="post-metadata">

### Author: ![Patrick\_Ciebilski](https://discourse.vtk.org/user_avatar/discourse.vtk.org/patrick_ciebilski/32/7316_2.png) [@Patrick\_Ciebilski](https://discourse.vtk.org/u/Patrick_Ciebilski)
#### Post date: [June 21, 2023, 10:00am UTC](https://discourse.vtk.org/t/internal-compiler-error-and-cannot-open-input-file-named-vtkioss-9-2-lib-on-windows/11543/6 "2023-06-21T10:00:19Z")

</div>

Hi, I have the same Problem. Could you please tell me your solution?

---

<div class="post-metadata">

### Author: ![chan\_yibin](https://discourse.vtk.org/user_avatar/discourse.vtk.org/chan_yibin/32/8110_2.png) [@chan\_yibin](https://discourse.vtk.org/u/chan_yibin)
#### Post date: [December 7, 2023, 1:04am UTC](https://discourse.vtk.org/t/internal-compiler-error-and-cannot-open-input-file-named-vtkioss-9-2-lib-on-windows/11543/7 "2023-12-07T01:04:02Z")

</div>

Hi, I also have the same Problem. Could you please tell me your solution?

---

<div class="post-metadata">

### Author: ![zhuofalin](https://discourse.vtk.org/user_avatar/discourse.vtk.org/zhuofalin/32/7146_2.png) [@zhuofalin](https://discourse.vtk.org/u/zhuofalin)
#### Post date: [October 26, 2024, 7:47am UTC](https://discourse.vtk.org/t/internal-compiler-error-and-cannot-open-input-file-named-vtkioss-9-2-lib-on-windows/11543/8 "2024-10-26T07:47:46Z")

</div>

Sorry for replying to you at this time /(ㄒoㄒ)/~~ I don’t know if you have solved the problem at present. 😇  
**method** :  
You need to use [this document](https://docs.vtk.org/en/latest/build_instructions/index.html) and [ninja tool](https://ninja-build.org/) to compile and build.  
**result** :  
you can get debug & release mode for Your VTK.  
**Best wishes & Upup**

---

<div class="post-metadata">

### Author: ![zhuofalin](https://discourse.vtk.org/user_avatar/discourse.vtk.org/zhuofalin/32/7146_2.png) [@zhuofalin](https://discourse.vtk.org/u/zhuofalin)
#### Post date: [October 26, 2024, 7:49am UTC](https://discourse.vtk.org/t/internal-compiler-error-and-cannot-open-input-file-named-vtkioss-9-2-lib-on-windows/11543/9 "2024-10-26T07:49:21Z")

</div>

Sorry for replying to you at this time /(ㄒoㄒ)/~~ I don’t know if you have solved the problem at present. 😇  
**Method** :  
You need to use [this document](https://docs.vtk.org/en/latest/build_instructions/index.html) and [ninja tool](https://ninja-build.org/) to compile and build.  
**Result** :  
you can get debug & release mode for Your VTK.  
**Best wishes & Upup**
