Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

failing to build EbsdLib #11

Open
elena-pascal opened this issue Jul 18, 2019 · 8 comments
Open

failing to build EbsdLib #11

elena-pascal opened this issue Jul 18, 2019 · 8 comments

Comments

@elena-pascal
Copy link

I'm on Ubuntu 19.04
At the cmake step in Debug I get:

[ 95%] Performing configure step for 'EbsdLib'
-- EbsdLib configure command succeeded.  See also /home/elena/EMsoft/EMsoft_SDK/superbuild/EbsdLib/Stamp/Debug/EbsdLib-configure-*.log
[ 96%] Performing build step for 'EbsdLib'
CMake Error at /home/elena/EMsoft/EMsoft_SDK/superbuild/EbsdLib/Stamp/Debug/EbsdLib-build-Debug.cmake:16 (message):
  Command failed: 2

   'make'

  See also

    /home/elena/EMsoft/EMsoft_SDK/superbuild/EbsdLib/Stamp/Debug/EbsdLib-build-*.log

make[2]: *** [CMakeFiles/EbsdLib.dir/build.make:113: /home/elena/EMsoft/EMsoft_SDK/superbuild/EbsdLib/Stamp/Debug/EbsdLib-build] Error 1
make[1]: *** [CMakeFiles/Makefile2:296: CMakeFiles/EbsdLib.dir/all] Error 2
make: *** [Makefile:84: all] Error 2

Here are the log file
EbsdLib-build-err.log
EbsdLib-build-out.log

It might be unrelated, but is the path meant to be going .../EbsdLib/Source/EbsdLib/Source/EbsdLib/... or did I do something wrong?

@elena-pascal
Copy link
Author

I actually read the log and it suggested to add #include <memory> in:

  • Math/Matrix.h
  • Texture/TexturePreset.h
  • Core/DataArray.hpp
  • Utilities/LambertUtilities.h

And that seemed to quiet it. Why is this an issue only for me, that I don't understand.

@marcdegraef
Copy link
Collaborator

marcdegraef commented Jul 19, 2019 via email

@elena-pascal
Copy link
Author

That's a flag in the EMsoft build right? Where it does seem to be off by default for me. I couldn't really find in the SDK build.

I will try running things with a downgraded gcc package.

@marcdegraef
Copy link
Collaborator

marcdegraef commented Jul 19, 2019 via email

@hakonanes
Copy link
Contributor

hakonanes commented Sep 24, 2019

So, I get the same error on Ubuntu 19.04 (cmake version 3.13.4 and GNU Make 4.2.1) when running cmake both on Debug and Release:

[ 75%] Performing build step for 'EbsdLib'
-- CLFortran build command succeeded.  See also /home/hakon/kode/emsoft/EMsoft_SDK/superbuild/CLFortran/Stamp/Release/CLFortran-build-*.log
[ 76%] Performing install step for 'CLFortran'
CMake Error at /home/hakon/kode/emsoft/EMsoft_SDK/superbuild/EbsdLib/Stamp/Release/EbsdLib-build-Release.cmake:16 (message):
  Command failed: 2

   'make'

  See also

    /home/hakon/kode/emsoft/EMsoft_SDK/superbuild/EbsdLib/Stamp/Release/EbsdLib-build-*.log


make[2]: *** [CMakeFiles/EbsdLib.dir/build.make:113: /home/hakon/kode/emsoft/EMsoft_SDK/superbuild/EbsdLib/Stamp/Release/EbsdLib-build] Error 1
make[1]: *** [CMakeFiles/Makefile2:296: CMakeFiles/EbsdLib.dir/all] Error 2
make[1]: *** Waiting for unfinished jobs....
-- bcls configure command succeeded.  See also /home/hakon/kode/emsoft/EMsoft_SDK/superbuild/bcls/Stamp/Release/bcls-configure-*.log
[ 78%] Performing build step for 'bcls'
-- CLFortran install command succeeded.  See also /home/hakon/kode/emsoft/EMsoft_SDK/superbuild/CLFortran/Stamp/Release/CLFortran-install-*.log
[ 80%] Completed 'CLFortran'
-- bcls build command succeeded.  See also /home/hakon/kode/emsoft/EMsoft_SDK/superbuild/bcls/Stamp/Release/bcls-build-*.log
[ 84%] Built target CLFortran
[ 86%] Performing install step for 'bcls'
-- bcls install command succeeded.  See also /home/hakon/kode/emsoft/EMsoft_SDK/superbuild/bcls/Stamp/Release/bcls-install-*.log
[ 87%] Completed 'bcls'
[ 92%] Built target bcls
make: *** [Makefile:84: all] Error 2

However, the suggested log file tells me this:

In file included from /home/hakon/kode/emsoft/EMsoft_SDK/superbuild/EbsdLib/Source/EbsdLib/Source/EbsdLib/LaueOps/CubicOps.cpp:52:
/home/hakon/kode/emsoft/EMsoft_SDK/superbuild/EbsdLib/Source/EbsdLib/Source/EbsdLib/OrientationMath/OrientationTransforms.hpp:48:10: fatal error: Eigen/Core: Fila eller mappa finnes ikke
 #include <Eigen/Core>
          ^~~~~~~~~~~~
compilation terminated.
make[5]: *** [CMakeFiles/EbsdLib.dir/build.make:193: CMakeFiles/EbsdLib.dir/Source/EbsdLib/LaueOps/CubicOps.cpp.o] Error 1
make[5]: *** Waiting for unfinished jobs....
In file included from /home/hakon/kode/emsoft/EMsoft_SDK/superbuild/EbsdLib/Source/EbsdLib/Source/EbsdLib/LaueOps/LaueOps.cpp:44:
/home/hakon/kode/emsoft/EMsoft_SDK/superbuild/EbsdLib/Source/EbsdLib/Source/EbsdLib/OrientationMath/OrientationTransforms.hpp:48:10: fatal error: Eigen/Core: Fila eller mappa finnes ikke
 #include <Eigen/Core>
          ^~~~~~~~~~~~
compilation terminated.
make[5]: *** [CMakeFiles/EbsdLib.dir/build.make:180: CMakeFiles/EbsdLib.dir/Source/EbsdLib/LaueOps/LaueOps.cpp.o] Error 1
make[4]: *** [CMakeFiles/Makefile2:73: CMakeFiles/EbsdLib.dir/all] Error 2
make[3]: *** [Makefile:141: all] Error 2

Is the path to the Eigen/Core directory wrong?

@hakonanes
Copy link
Contributor

Well, compiling Debug type now works, I'm not sure why I got the above error message before and not now...

@Max-EDFLMT
Copy link

I experience a similar problem when running cmake on Debian 9 (Debug and Release)

Scanning dependencies of target EbsdLib
[  2%] Building CXX object CMakeFiles/EbsdLib.dir/Source/EbsdLib/LaueOps/CubicOps.cpp.o
[  5%] Building CXX object CMakeFiles/EbsdLib.dir/Source/EbsdLib/LaueOps/CubicLowOps.cpp.o
[  7%] Building CXX object CMakeFiles/EbsdLib.dir/Source/EbsdLib/LaueOps/HexagonalOps.cpp.o
[ 10%] Building CXX object CMakeFiles/EbsdLib.dir/Source/EbsdLib/LaueOps/HexagonalLowOps.cpp.o
[ 12%] Building CXX object CMakeFiles/EbsdLib.dir/Source/EbsdLib/LaueOps/OrthoRhombicOps.cpp.o
[ 15%] Building CXX object CMakeFiles/EbsdLib.dir/Source/EbsdLib/LaueOps/TrigonalOps.cpp.o
[ 17%] Building CXX object CMakeFiles/EbsdLib.dir/Source/EbsdLib/LaueOps/TrigonalLowOps.cpp.o
[ 20%] Building CXX object CMakeFiles/EbsdLib.dir/Source/EbsdLib/LaueOps/TetragonalOps.cpp.o
[ 23%] Building CXX object CMakeFiles/EbsdLib.dir/Source/EbsdLib/LaueOps/TriclinicOps.cpp.o
[ 25%] Building CXX object CMakeFiles/EbsdLib.dir/Source/EbsdLib/LaueOps/MonoclinicOps.cpp.o
[ 28%] Building CXX object CMakeFiles/EbsdLib.dir/Source/EbsdLib/LaueOps/TetragonalLowOps.cpp.o
[ 30%] Building CXX object CMakeFiles/EbsdLib.dir/Source/EbsdLib/Utilities/ComputeStereographicProjection.cpp.o
CMakeFiles/EbsdLib.dir/build.make:465 : la recette pour la cible « CMakeFiles/EbsdLib.dir/Source/EbsdLib/Utilities/ComputeStereographicProjection.cpp.o » a échouée
CMakeFiles/Makefile2:77 : la recette pour la cible « CMakeFiles/EbsdLib.dir/all » a échouée
Makefile:140 : la recette pour la cible « all » a échouée

Seems like their is a compatibility problem with variables types (wrong called python version ?). Like @elena-pascal , I noticed the unusual path ...EbsdLib/Source/EbsdLib/Source... Could it be a problem ?

I attached my err file which is a bit different from above-mentioned cases in case someone already solved this issue.
Otherwise, any advice is welcome !
EbsdLib-build-err.log

Maxime

@imikejackson
Copy link
Collaborator

There are 2 parts to work around these issues. EbsdLib is ONLY needed if you are building Workbench. If you are building Workbench then you also need Qt5. There is a logic statement in the EMsoftSuperbuild that states if you are NOT installing Qt5, then DON’T install EbsdLib. So for building the SDK you need the following in your CMake invocation:

 cmake -DINSTALL_QT5=OFF

After the SDK builds, you then need to turn OFF the EMsoftWorkbench when you build EMsoft itself. When you configure EMsoft for building you need to pass in the argument:
cmake -DEMsoft_ENABLE_EMsoftWorkbench=OFF

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants