Menu

#167 2.10 compilation crash

2.10
closed
2020-07-16
2020-07-16
Alex
No

While trying to compile 2.10 Im getting what is pasted below. Ubuntu 18, gcc 9.3

[ 0%] Building CXX object CMakeFiles/wsclean-object.dir/image.cpp.o
[ 1%] Building CXX object CMakeFiles/wsclean-object.dir/imageweights.cpp.o
/opt/WSClean/build/wsclean-2.10/image.cpp:3:10: fatal error: ../serialostream.h: No such file or directory
3 | #include "../serialostream.h"
| ^~~~~~~~~~~~~~~~~~~~
compilation terminated.
CMakeFiles/wsclean-object.dir/build.make:198: recipe for target 'CMakeFiles/wsclean-object.dir/image.cpp.o' failed
make[2]: *** [CMakeFiles/wsclean-object.dir/image.cpp.o] Error 1
make[2]: *** Waiting for unfinished jobs....
In file included from /opt/WSClean/build/wsclean-2.10/imageweights.h:9,
from /opt/WSClean/build/wsclean-2.10/imageweights.cpp:1:
/opt/WSClean/build/wsclean-2.10/weightmode.h:7:10: fatal error: ../serialostream.h: No such file or directory
7 | #include "../serialostream.h"
| ^~~~~~~~~~~~~~~~~~~~
compilation terminated.
CMakeFiles/wsclean-object.dir/build.make:211: recipe for target 'CMakeFiles/wsclean-object.dir/imageweights.cpp.o' failed
make[2]: *** [CMakeFiles/wsclean-object.dir/imageweights.cpp.o] Error 1
CMakeFiles/Makefile2:106: recipe for target 'CMakeFiles/wsclean-object.dir/all' failed
make[1]: *** [CMakeFiles/wsclean-object.dir/all] Error 2
Makefile:148: recipe for target 'all' failed
make: *** [all] Error 2

Discussion

  • André Offringa

    André Offringa - 2020-07-16

    Hi Alex,

    Both master and the package have the file serialostream.h that your compilation complains about. Could it be that you checked out an intermediate version (just before the 2.10 release) ? If so could you either try the current master or the source tarball?

     
  • André Offringa

    André Offringa - 2020-07-16

    Then again, it turns out that if you do not build in build but in a dirstructure two dirs deep (or somewhere else), indeed these errors appeared. I've fixed now and uploaded a new tar.bz2. Thanks for reporting, Alex!

     
    • Alex

      Alex - 2020-07-16

      It worked now, thank you!

       
  • André Offringa

    André Offringa - 2020-07-16
    • status: open --> closed
    • assigned_to: André Offringa
    • Milestone: 2.9 --> 2.10