# Building failure Windows

**URL:** <https://community.mrtrix.org/t/building-failure-windows/1004>\
**Category:** Uncategorized\
**Tags:** installation, windows, error\
**Created:** [July 4, 2017, 10:37am UTC](https://community.mrtrix.org/t/building-failure-windows/1004 "2017-07-04T10:37:01Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![Daniel\_Saad](https://community.mrtrix.org/letter_avatar_proxy/v4/letter/d/ecae2f/32.png) [@Daniel\_Saad](https://community.mrtrix.org/u/Daniel_Saad)\
**Post date:** [July 4, 2017, 10:37am UTC](https://community.mrtrix.org/t/building-failure-windows/1004/1 "2017-07-04T10:37:01Z")

</div>

Hello all,

Failing to build using MSYS2 on Windows. Configuring is ok.

$ ./configure

MRtrix build type requested: release

Detecting OS: windows  
Looking for compiler [g++]: g++.exe (Rev1, Built by MSYS2 project) 7.1.0  
Checking for C++11 compliance: ok  
Checking for ::max\_align\_t: ok  
Checking for std::max\_align\_t: ok  
Detecting pointer size: 64 bit  
Detecting byte order: little-endian  
Checking for variable-length array support: yes  
Checking for non-POD variable-length array support: yes  
Checking for zlib compression library: 1.2.11  
Checking for TIFF library: LIBTIFF, Version 4.0.8  
Checking for Eigen 3 library: 3.3.3  
Checking JSON for Modern C++ requirements: OK  
Checking shared library generation: yes  
Checking for Qt moc: moc (version 4.8.7)  
Checking for Qt qmake: qmake (version 4.8.7)  
Checking for Qt rcc: rcc (version 4.8.7)  
Checking for Qt: 4.8.7

writing configuration to file ‘./config’: ok

Build Error:

ERROR: ( 8/498) [CC] tmp/src/gui/mrview/tool/fixel/legacy.o

g++ -c -std=c++11 -pthread -DMRTRIX\_WINDOWS -mms-bitfields -Wa,-mbig-obj -DMRTRIX\_WORD64 -DMRTRIX\_TIFF\_SUPPORT -Wall -O3 -DNDEBUG -Isrc -I./core -Icmd -isystem /mingw64/include/eigen3 -DEIGEN\_DONT\_PARALLELIZE -pipe -march=nocona -mtune=core2 -frtti -fexceptions -mthreads -Wall -Wextra -DUNICODE -DQT\_DLL -DQT\_NO\_DEBUG -DQT\_SVG\_LIB -DQT\_OPENGL\_LIB -DQT\_GUI\_LIB -DQT\_CORE\_LIB -DQT\_THREAD\_SUPPORT -DQT\_NEEDS\_QMAIN -isystem /mingw64/include/qt4/QtCore -isystem /mingw64/include/qt4/QtGui -isystem /mingw64/include/qt4/QtOpenGL -isystem /mingw64/include/qt4/QtSvg -isystem /mingw64/include/qt4 -isystem /mingw64/include/qt4/ActiveQt -isystem release -isystem /mingw64/share/qt4/mkspecs/default src/gui/mrview/tool/fixel/legacy.cpp -o tmp/src/gui/mrview/tool/fixel/legacy.o

failed with output

In file included from ./core/mrtrix.h:36:0,  
from ./core/cmdline\_option.h:27,  
from ./core/app.h:27,  
from ./core/header.h:21,  
from src/gui/mrview/tool/fixel/base\_fixel.h:20,  
from src/gui/mrview/tool/fixel/legacy.h:18,  
from src/gui/mrview/tool/fixel/legacy.cpp:15:  
/tmp/tmpm5ls9zno

The build error appears on a different file each time. I originally used Qt5 as per the instructions however recently tried using Qt4 to see if it made any difference, it didnt.

Any suggestions?

Thanks  
Daniel

---

<div class="post-metadata">

**Author:** ![jdtournier](https://community.mrtrix.org/user_avatar/community.mrtrix.org/jdtournier/32/2594_2.png) [@jdtournier](https://community.mrtrix.org/u/jdtournier)\
**Post date:** [July 4, 2017, 11:08pm UTC](https://community.mrtrix.org/t/building-failure-windows/1004/2 "2017-07-04T23:08:35Z")

</div>

OK, I can replicate this issue on my laptop - probably down to the latest version of `gcc` being stricter than previously. It’s a trivial fix, and will hopefully be available relatively quickly once the change has been through our testing and review process.

There will probably still be a bunch of warnings, but these can be safely ignored. I’ll probably get round to fixing them at some point, but that will require a bit of thought…

---

<div class="post-metadata">

**Author:** ![Daniel\_Saad](https://community.mrtrix.org/letter_avatar_proxy/v4/letter/d/ecae2f/32.png) [@Daniel\_Saad](https://community.mrtrix.org/u/Daniel_Saad)\
**Post date:** [July 5, 2017, 9:24am UTC](https://community.mrtrix.org/t/building-failure-windows/1004/3 "2017-07-05T09:24:24Z")

</div>

Thank you very much.

---

<div class="post-metadata">

**Author:** ![Daniel\_Saad](https://community.mrtrix.org/letter_avatar_proxy/v4/letter/d/ecae2f/32.png) [@Daniel\_Saad](https://community.mrtrix.org/u/Daniel_Saad)\
**Post date:** [July 5, 2017, 11:02am UTC](https://community.mrtrix.org/t/building-failure-windows/1004/4 "2017-07-05T11:02:33Z")

</div>

Will I need to do any updates? Or is it a case of waiting for the fix to be processed?

---

<div class="post-metadata">

**Author:** ![jdtournier](https://community.mrtrix.org/user_avatar/community.mrtrix.org/jdtournier/32/2594_2.png) [@jdtournier](https://community.mrtrix.org/u/jdtournier)\
**Post date:** [July 5, 2017, 11:28am UTC](https://community.mrtrix.org/t/building-failure-windows/1004/5 "2017-07-05T11:28:25Z")

</div>

Sorry, yes the [fix has now been merged](https://github.com/MRtrix3/mrtrix3/pull/1035), you can try updating with:

```
git pull
./build

```

Seems to work fine on my laptop.
