Error when using make auto on version 3.6.0 (OS RedHat)

Submitted by mschramm on Tue, 01/31/2017 - 00:37

When using the make auto, I receive the following error;

[mschramm@mschramm-precision-tower-5810 src]$ make auto
mv: cannot stat `style_contact_model.tmp': No such file or directory
ls: cannot access /usr/include/vtk*: No such file or directory
make[1]: Entering directory `/home/mschramm/LIGGGHTS/LIGGGHTS_3.6.0/LIGGGHTS-PUBLIC/src/Obj_auto'
Makefile:468: *** Could not obtain VTK_MAJOR_VERSION. Stop.
make[1]: Leaving directory `/home/mschramm/LIGGGHTS/LIGGGHTS_3.6.0/LIGGGHTS-PUBLIC/src/Obj_auto'
make: *** [auto] Error 2

I was able to compile using make fedora with no problems.

Redhat version is 6.8 (Santiago)
Kernel Linux 2.6.32-642.13.1.el6.x86_64

I know it's an older version, but I need this version until I can hack another program into working under Redhat 7.

Let me know if you would like any other information.

arnom's picture

arnom | Tue, 01/31/2017 - 15:20

Hi,

Can you tell me where VTK is installed? In particular, did you install it via your package manager or did you compile it yourself?

Best regards,
Arno

DCS team member & LIGGGHTS(R) core developer

mschramm | Thu, 02/02/2017 - 23:18

Hello,
I tried uninstalling re-installing vtk and I ended up with a new error. Good news though, it did find the vtk.

[mschramm@mschramm-precision-tower-5810 src]$ make auto
mv: cannot stat `style_contact_model.tmp': No such file or directory
make[1]: Entering directory `/home/mschramm/LIGGGHTS/LIGGGHTS_3.6.0/LIGGGHTS-PUBLIC/src/Obj_auto'
Makefile:554: *** Unsupported VTK version VTK_MAJOR_VERSION.VTK_MINOR_VERSION. Stop.
make[1]: Leaving directory `/home/mschramm/LIGGGHTS/LIGGGHTS_3.6.0/LIGGGHTS-PUBLIC/src/Obj_auto'
make: *** [auto] Error 2

Is there a specific version of vtk that i should be looking for?

arnom's picture

arnom | Mon, 02/06/2017 - 10:28

Hi,
can you send me the output of the following:

TMPINC=`ls -d /usr/include/vtk* | tail -n 1` && echo -e '#include \n #define XSTR(x) STR(x) \n #define STR(x) #x \n #pragma message XSTR(VTK_MAJOR_VERSION)' > /tmp/auto-debug && g++ -I$TMPINC -xc++ /tmp/auto-debug

This assumes that you are using g++ as c++ compiler, if not please change it accordingly.

DCS team member & LIGGGHTS(R) core developer

arnom's picture

arnom | Mon, 02/06/2017 - 10:36

Also regarding the version anything from 5.* to 7.* should work fine. The error is already quite weird as it should not say VTK_MAJOR_VERSION.VTK_MINOR_VERSION but insteady 7.1 or something similar. So I suspect that your output of my version testing routine must be different for some reason. That's also why I'd like to see the output of the above command (which is essentially my version testing script)

DCS team member & LIGGGHTS(R) core developer

mschramm | Mon, 02/06/2017 - 21:07

[mschramm@mschramm-precision-tower-5810 Documents]$ TMPINC=`ls -d /usr/include/vtk* | tail -n 1` && echo -e '#include \n #define XSTR(x) STR(x) \n #define STR(x) #x \n #pragma message XSTR(VTK_MAJOR_VERSION)' > /tmp/auto-debug && g++ -I$TMPINC -xc++ /tmp/auto-debug
/tmp/auto-debug:1:10: error: #include expects "FILENAME" or
/tmp/auto-debug:4: note: #pragma message: VTK_MAJOR_VERSION
[mschramm@mschramm-precision-tower-5810 Documents]$

arnom's picture

arnom | Mon, 02/20/2017 - 12:59

Sorry, I had a typo in that example.

TMPINC=`ls -d /usr/include/vtk* | tail -n 1` && echo -e '#include \n #define XSTR(x) STR(x) \n #define STR(x) #x \n #pragma message XSTR(VTK_MAJOR_VERSION)' > /tmp/auto-debug && g++ -I$TMPINC -xc++ /tmp/auto-debug

I had subscribed to this thread but unfortunately I did not get an email. As I'm very interested in fixing this bug before the next release. Please write an email to our official address office@dcs-computing.com and ask for it to be forwarded to me. Then we can get in touch directly and avoid further delays.

Thanks,
Arno

DCS team member & LIGGGHTS(R) core developer

mschramm | Tue, 02/21/2017 - 18:10

Hello,

No problems

I have sent an email with the output of the command also

[mschramm@mschramm-precision-tower-5810 Desktop]$ TMPINC=`ls -d /usr/include/vtk* | tail -n 1` && echo -e '#include \n #define XSTR(x) STR(x) \n #define STR(x) #x \n #pragma message XSTR(VTK_MAJOR_VERSION)' > /tmp/auto-debug && g++ -I$TMPINC -xc++ /tmp/auto-debug
/tmp/auto-debug:1:10: error: #include expects "FILENAME" or
/tmp/auto-debug:4:40: note: #pragma message: VTK_MAJOR_VERSION
#pragma message XSTR(VTK_MAJOR_VERSION)
^
/tmp/auto-debug:3:18: note: in definition of macro ‘STR’
#define STR(x) #x
^
/tmp/auto-debug:4:18: note: in expansion of macro ‘XSTR’
#pragma message XSTR(VTK_MAJOR_VERSION)

Daniel Queteschiner | Wed, 02/22/2017 - 04:39

Are you sure you installed the VTK development headers and not just the binaries?

arnom's picture

arnom | Wed, 02/22/2017 - 15:26

Okay, for some reason the forum software removed a part of my code. Sorry about that. I got your email, so I will reply there.

DCS team member & LIGGGHTS(R) core developer

deepakpawar.2310 | Wed, 06/28/2017 - 19:07

When using the "make linux" I got the following error;

pawar@pawar:~/LIGGGHTS-PUBLIC/src$ make linux
mv: cannot stat 'style_contact_model.tmp': No such file or directory
make[1]: Entering directory '/home/pawar/LIGGGHTS-PUBLIC/src/Obj_linux'
icc -O -DLAMMPS_GZIP -DLAMMPS_JPEG -DMPICH_SKIP_MPICXX -DFFT_FFTW -c velocity.cpp
make[1]: icc: Command not found
Makefile:100: recipe for target 'velocity.o' failed
make[1]: *** [velocity.o] Error 127
make[1]: Leaving directory '/home/pawar/LIGGGHTS-PUBLIC/src/Obj_linux'
Makefile:72: recipe for target 'linux' failed
make: *** [linux] Error 2

same kind for "make auto" as well.

I am trying to build a LIGGGHTS(R)-PUBLIC executable

Suggest me possible solution for the above error .

Thanks

arnom's picture

arnom | Thu, 06/29/2017 - 08:47

Hi, can you please post the output for make auto? make linux is probably not suitable for you.

DCS team member & LIGGGHTS(R) core developer

deepakpawar.2310 | Thu, 06/29/2017 - 13:19

HiI arnom

This is error i am getting on "make auto" command

pawar@pawar:~/LIGGGHTS-PUBLIC/src$ make auto

mv: cannot stat 'style_contact_model.tmp': No such file or directory
make[1]: Entering directory '/home/pawar/LIGGGHTS-PUBLIC/src/Obj_auto'
mpicxx -funroll-loops -fstrict-aliasing -Wall -Wno-unused-result -O2 -fPIC -I/usr/include/vtk-5.8 -DLAMMPS_VTK -c dump_custom_vtm.cpp
In file included from /usr/include/c++/5/backward/strstream:50:0,
from /usr/include/vtk-5.8/vtkIOStream.h:112,
from /usr/include/vtk-5.8/vtkSystemIncludes.h:40,
from /usr/include/vtk-5.8/vtkIndent.h:24,
from /usr/include/vtk-5.8/vtkObjectBase.h:43,
from /usr/include/vtk-5.8/vtkSmartPointerBase.h:26,
from /usr/include/vtk-5.8/vtkSmartPointer.h:23,
from dump_mesh.h:54,
from dump_custom_vtm.h:55,
from dump_custom_vtm.cpp:50:
/usr/include/c++/5/backward/backward_warning.h:32:2: warning: #warning This file includes at least one deprecated or antiquated header which may be removed without further notice at a future date. Please use a non-deprecated interface with equivalent functionality instead. For a listing of replacement headers and interfaces, consult the file backward_warning.h. To disable this warning use -Wno-deprecated. [-Wcpp]
#warning \
^
dump_custom_vtm.cpp:79:41: fatal error: vtkXMLPMultiBlockDataWriter.h: No such file or directory
compilation terminated.
Makefile:751: recipe for target 'dump_custom_vtm.o' failed
make[1]: *** [dump_custom_vtm.o] Error 1
make[1]: Leaving directory '/home/pawar/LIGGGHTS-PUBLIC/src/Obj_auto'
Makefile:72: recipe for target 'auto' failed
make: *** [auto] Error 2

Need your suggestions

Thanks

arnom's picture

arnom | Thu, 06/29/2017 - 13:30

You are missing some specialized part of vtk that allows parallel writing. What operating system are you using?

On Ubuntu (or Debian) you can use
atp-file search vtkXMLPMultiBlockDataWriter.h

to look for packages that provide this file. In my case (Ubuntu 16.04) it would be libvtk6-dev which I would need to install.

DCS team member & LIGGGHTS(R) core developer

deepakpawar.2310 | Fri, 06/30/2017 - 07:22

Hiii armon

I m using Ubuntu 16.04 and tried to run apt-file search vtkXMLPMultiBlockDataWriter.h command as well.

but getting the same error as mentioned above.

arnom's picture

arnom | Fri, 06/30/2017 - 09:06

If you are running ubuntu 16.04 can you run:
sudo apt-get install libvtk6.2 libvtk6-dev
and then try again?
If it still does not work please post the output of the installation above and of the make command

DCS team member & LIGGGHTS(R) core developer

MatHub | Sun, 11/03/2019 - 08:36

Hey!

Apparently I´ve got the same problem. I manually installed VTK and adjusted the paths, but it also returns

Makefile:815: *** 'Could not obtain VTK_MAJOR_VERSION. As AUTOINSTALL_VTK is not set to "ON" we cannot continue'. Stop.

I tried your suggestion with atp-file search vtkXMLPMultiBlockDataWriter.h but it returns a list:
libvtk6-dev: /usr/include/vtk-6.3/vtkXMLPMultiBlockDataWriter.h
libvtk7-dev: /usr/include/vtk-7.1/vtkXMLPMultiBlockDataWriter.h
paraview-dev: /usr/include/paraview/vtkXMLPMultiBlockDataWriter.h
vtk6-doc: /usr/share/doc/vtk6-doc/html/classvtkXMLPMultiBlockDataWriter.html
vtk7-doc: /usr/share/doc/vtk7-doc/html/classvtkXMLPMultiBlockDataWriter.html

I thought maybe I did something wrong when installing vtk (Autoinstall doesn´t work), but I´ve done it twice now exactly as described in the documentation.

Do you have any more suggestions on how to deal with this?