Error with configuration when building MRtrix3

Hi there - I’m quite new to MRtrix3 and have been trying to follow the documentation. I have been installing on MSYS (‘MinGW-w64 Win64 Shell’). I’ve come across an error during the build step after I put ./configure (the error appeared after the ‘detecting pointer size’ part).

I’m not too sure how to fix this error as I’m new to this, any help would be greatly appreciated.

Here was the configure log:


REPORT: 
MRtrix build type requested: release version
REPORT: Detecting OS: windows

REPORT: Looking for compiler [g++]:
EXEC <<
CMD: g++ --version
EXIT: 0
STDOUT:
g++.exe (Rev3, Built by MSYS2 project) 12.1.0
Copyright (C) 2022 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.  There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
>>


REPORT: g++.exe (Rev3, Built by MSYS2 project) 12.1.0

REPORT: Checking for C++11 compliance:

COMPILE /tmp/tmpoj8af1ea.cpp:
---

#include <cstddef>
struct Base {
    Base (int);
};
struct Derived : Base {
    using Base::Base;
};

int main() {
  Derived D (int); // check for contructor inheritance
  return 0;
}

---
EXEC <<
CMD: g++ -c -std=c++11 -DMRTRIX_BUILD_TYPE="release version" -pthread -DMRTRIX_WINDOWS -mms-bitfields -Wa,-mbig-obj -D_FILE_OFFSET_BITS=64 /tmp/tmpoj8af1ea.cpp -o /tmp/tmpoj8af1ea.o
EXIT: 0
>>

EXEC <<
CMD: g++ /tmp/tmpoj8af1ea.o -Wl,--sort-common,--as-needed -pthread -Wl,--allow-multiple-definition -o a.out
EXIT: 0
>>

EXEC <<
CMD: ./a.out
EXIT: 0
>>


REPORT: ok

REPORT: Checking shared library generation:
EXEC <<
CMD: g++ -c -std=c++11 -DMRTRIX_BUILD_TYPE="release version" -pthread -DMRTRIX_WINDOWS -mms-bitfields -Wa,-mbig-obj -D_FILE_OFFSET_BITS=64 /tmp/tmpteh0283h.cpp -o /tmp/tmpteh0283h.o
EXIT: 0
>>

EXEC <<
CMD: g++ /tmp/tmpteh0283h.o -shared -Wl,--sort-common,--as-needed -pthread -Wl,--allow-multiple-definition -o test.dll
EXIT: 0
>>


REPORT: ok

REPORT: Detecting pointer size:

COMPILE /tmp/tmpa46v4ybh.cpp:
---

#include <iostream>
int main() {
  std::cout << sizeof(void*);
  return (0);
}

---
EXEC <<
CMD: g++ -c -std=c++11 -DMRTRIX_BUILD_TYPE="release version" -pthread -DMRTRIX_WINDOWS -mms-bitfields -Wa,-mbig-obj -D_FILE_OFFSET_BITS=64 /tmp/tmpa46v4ybh.cpp -o /tmp/tmpa46v4ybh.o
EXIT: 0
>>

EXEC <<
CMD: g++ /tmp/tmpa46v4ybh.o -Wl,--sort-common,--as-needed -pthread -Wl,--allow-multiple-definition -o a.out
EXIT: 0
>>

EXEC <<
CMD: ./a.out
error invoking command "./a.out": Permission denied
>>


ERROR: unexpected exception of type RunError: 

  See the file 'configure.log' for details. If this doesn't help and you need
  further assistance, please post on the MRtrix3 community forum
  (http://community.mrtrix.org/), and make sure to include the full contents of
  the 'configure.log' file.

Thank you so much!

1 Like