# Internal Compiler Error building vtk on Windows

**URL:** https://discourse.vtk.org/t/internal-compiler-error-building-vtk-on-windows/2423
**Category:** Support
**Created:** [January 14, 2020, 7:33pm UTC](https://discourse.vtk.org/t/internal-compiler-error-building-vtk-on-windows/2423 "2020-01-14T19:33:36Z")
**Posts on this page:** 9
**Page:** 1

<div class="post-metadata">

### Author: ![scotsman60](https://discourse.vtk.org/user_avatar/discourse.vtk.org/scotsman60/32/6000_2.png) [@scotsman60](https://discourse.vtk.org/u/scotsman60)
#### Post date: [January 14, 2020, 7:33pm UTC](https://discourse.vtk.org/t/internal-compiler-error-building-vtk-on-windows/2423/1 "2020-01-14T19:33:36Z")

</div>

Hello,

I am building vtk from git clone on Windows using VS2017 and I’m getting a ‘C1001 - An internal compiler error has occurred in the compiler’ error in tracer.hpp while building the IOMotionFX project.

The error is in line 212 of tracer.hpp (\*\*\* below)

```
template< template< typename... > class Action, typename Iterator, typename Input, typename... States >
            static auto apply( const Iterator& begin, const Input& in, States&&... st )
               ***-> decltype( Base< Rule >::template apply< Action >( begin, in, st... ) )***
            {
               std::cerr << in.position() << " apply " << internal::demangle< Rule >() << std::endl;
               return Base< Rule >::template apply< Action >( begin, in, st... );
            }

```

Any ideas on how to solve this problem?

Thanks in advance,

Doug

---

<div class="post-metadata">

### Author: ![ben.boeckel](https://discourse.vtk.org/letter_avatar_proxy/v4/letter/b/ea5d25/32.png) [@ben.boeckel](https://discourse.vtk.org/u/ben.boeckel)
#### Post date: [January 14, 2020, 9:13pm UTC](https://discourse.vtk.org/t/internal-compiler-error-building-vtk-on-windows/2423/2 "2020-01-14T21:13:01Z")

</div>

Cc: @utkarshayachit @RobertMaynard

---

<div class="post-metadata">

### Author: ![RobertMaynard](https://discourse.vtk.org/user_avatar/discourse.vtk.org/robertmaynard/32/24_2.png) [@RobertMaynard](https://discourse.vtk.org/u/RobertMaynard)
#### Post date: [January 14, 2020, 9:48pm UTC](https://discourse.vtk.org/t/internal-compiler-error-building-vtk-on-windows/2423/3 "2020-01-14T21:48:47Z")

</div>

Interesting. I will see if I can reproduce.

Can you provide the exact VS2017 version you are using @scotsman60

---

<div class="post-metadata">

### Author: ![RobertMaynard](https://discourse.vtk.org/user_avatar/discourse.vtk.org/robertmaynard/32/24_2.png) [@RobertMaynard](https://discourse.vtk.org/u/RobertMaynard)
#### Post date: [January 14, 2020, 10:10pm UTC](https://discourse.vtk.org/t/internal-compiler-error-building-vtk-on-windows/2423/4 "2020-01-14T22:10:09Z")

</div>

So it looks like this was an issue in pegtl that was fixed in the 2.8.0 release. This release was brought into into VTK by MR #5627 ([https://gitlab.kitware.com/vtk/vtk/merge\_requests/5627/](https://gitlab.kitware.com/vtk/vtk/merge_requests/5627/)).

Your best bet it is to apply that set of changes to your VTK 8.2 release ( I presume ) or use VTK master

---

<div class="post-metadata">

### Author: ![scotsman60](https://discourse.vtk.org/user_avatar/discourse.vtk.org/scotsman60/32/6000_2.png) [@scotsman60](https://discourse.vtk.org/u/scotsman60)
#### Post date: [January 15, 2020, 8:09pm UTC](https://discourse.vtk.org/t/internal-compiler-error-building-vtk-on-windows/2423/5 "2020-01-15T20:09:19Z")

</div>

Robert - I’m using VS2017 15.5.4

---

<div class="post-metadata">

### Author: ![scotsman60](https://discourse.vtk.org/user_avatar/discourse.vtk.org/scotsman60/32/6000_2.png) [@scotsman60](https://discourse.vtk.org/u/scotsman60)
#### Post date: [January 15, 2020, 8:12pm UTC](https://discourse.vtk.org/t/internal-compiler-error-building-vtk-on-windows/2423/6 "2020-01-15T20:12:32Z")

</div>

Thanks Robert.

I’m pretty sure it’s a clone of VTK master from last week that I’m working on. I’ll pull the latest and check.

Doug

---

<div class="post-metadata">

### Author: ![scotsman60](https://discourse.vtk.org/user_avatar/discourse.vtk.org/scotsman60/32/6000_2.png) [@scotsman60](https://discourse.vtk.org/u/scotsman60)
#### Post date: [January 16, 2020, 9:30pm UTC](https://discourse.vtk.org/t/internal-compiler-error-building-vtk-on-windows/2423/7 "2020-01-16T21:30:31Z")

</div>

@RobertMaynard - I just rebuilt using the VTK master branch and experienced the same compiler error.

I’ll take a look at the merge you identified next - however I’m wondering if I’m the only one experiencing this problem or not…

Doug

---

<div class="post-metadata">

### Author: ![RobertMaynard](https://discourse.vtk.org/user_avatar/discourse.vtk.org/robertmaynard/32/24_2.png) [@RobertMaynard](https://discourse.vtk.org/u/RobertMaynard)
#### Post date: [January 20, 2020, 5:04pm UTC](https://discourse.vtk.org/t/internal-compiler-error-building-vtk-on-windows/2423/8 "2020-01-20T17:04:08Z")

</div>

We have VS 2015 test machines, but I am not seeing any 2017 or 2019 testers. @Dave_DeMarle Is that correct?

---

<div class="post-metadata">

### Author: ![Dave\_DeMarle](https://discourse.vtk.org/user_avatar/discourse.vtk.org/dave_demarle/32/6_2.png) [@Dave\_DeMarle](https://discourse.vtk.org/u/Dave_DeMarle)
#### Post date: [January 20, 2020, 7:40pm UTC](https://discourse.vtk.org/t/internal-compiler-error-building-vtk-on-windows/2423/9 "2020-01-20T19:40:19Z")

</div>

We are only testing 2015 currently on vtk via the machine named “mun”.  
At the ParaView level “tylo” also tests 2015 but “nemesis” adds a 2019 builder.
