problem facing in the installtion of xband8.6 using gfortran compiler - fortran

I am trying to install xband8.6 using gfortran compiler. I am facing some issues that I am not able to get. Please have a look:
<xband>: using xband path /home/user/psharma/XBANDS/xband_8.6
<xband>: OSTYPE = Linux
<xband>: calling wish from /usr/bin/wish
The symmetry program /home/user/psharma/XBANDS/xband_8.6/findsym_linux-gnu is created now.
rm -f *.o findsym ../findsym_linux-gnu
gfortran -O0 -g -Wall -fbounds-check -fbacktrace -c strdef.f
f951: Warning: Nonconforming tab character in column 1 of line 396 [-Wtabs]
f951: Warning: Nonconforming tab character in column 1 of line 397 [-Wtabs]
f951: Warning: Nonconforming tab character in column 1 of line 398 [-Wtabs]
f951: Warning: Nonconforming tab character in column 1 of line 690 [-Wtabs]
strdef.f:51:72:
Error: Type mismatch in argument ‘tau’ at (1); passed INTEGER(4) to REAL(8)
make: *** [makefile:23: strdef.o] Error 1
/bin/cp: cannot stat 'findsym': No such file or directory
chmod: cannot access '/home/user/psharma/XBANDS/xband_8.6/findsym_linux-gnu': No such file or directory
I am trying to install xband8.6 using gfortran. I am not getting the error. I need some suggestion to install it.

Related

error when building veins_inet: unexpected token

I have a Windows 10 PC where I installed Veins 5.0 following the tutorial and therefore I have installed OMNeT++ 5.6.1. I have also INET 4.2.0 that has been installed after opening the OMNeT IDE for the first time. I can open successfully the simulations from OMNeT++, Veins and INET. Nevertheless, when it comes to build the veins_project of veins/subprojects I get the following error:
10:48:52 **** Incremental Build of configuration gcc-release for project veins_inet ****
make MODE=release all
make[1]: Entering directory '/c/src/veins-veins-5.0/subprojects/veins_inet/src'
veins_inet/VeinsInetApplicationBase.cc
/bin/sh: -c: line 0: syntax error near unexpected token `('
/bin/sh: -c: line 0: `clang++ -c -std=c++11 -O3 -DNDEBUG=1 -MMD -MP -MF ../out/clang-release/src/veins_inet/VeinsInetApplicationBase.o.d -isystem /usr/include -isystem /mingw64/include -Wno-deprecated-register -Wno-unused-function -fno-omit-frame-pointer -DXMLPARSER=libxml -DPREFER_QTENV -DWITH_QTENV -DWITH_PARSIM -DWITH_NETBUILDER -DWITH_OSG -DWITH_OSGEARTH -DVEINS_INET_EXPORT -DINET_IMPORT -DVEINS_IMPORT -DVEINS_INET_EXPORT -I"C:/src/veins-veins-5.0/subprojects/veins_inet/src" -I"C:/src/veins-veins-5.0/src" -I"C:/src/inet4/src" -I. -IC:/Universidad/2019-2020 (Master)/1B - Quadrimestre Primavera/TFM/OMNET/inet/src -IC:/src/veins-veins-5.0/src -I. -IC:/src/omnetpp-5.6.1/include -o ../out/clang-release/src/veins_inet/VeinsInetApplicationBase.o veins_inet/VeinsInetApplicationBase.cc'
make[1]: *** [Makefile:153: ../out/clang-release/src/veins_inet/VeinsInetApplicationBase.o] Error 1
make[1]: Leaving directory '/c/src/veins-veins-5.0/subprojects/veins_inet/src'
make: *** [Makefile:36: all] Error 2
"make MODE=release all" terminated with exit code 2. Build might be incomplete.
10:48:53 Build Failed. 2 errors, 0 warnings. (took 942ms)
Does anyone experience something similar?
It's clear the problem is in your command line
clang++ -c -std=c++11 ... -IC:/Universidad/2019-2020 (Master)/1B ...
Don't put parentheses or spaces in folder names. It's only likely to lead to confusion.

How to install flite for epitran on Windows

I'm trying to use python's package epitran https://pypi.org/project/epitran/0.10/ on windows which returns the IPA representation of words. For english, as the website says, I need to install flite from here http://tts.speech.cs.cmu.edu/awb/flite-2.0.5-current.tar.bz2.
After some research on the web I have gotten to download the file and trying installing it using cygwin.
I also changed both instances of cp -pd to cp -pR as epitran's website and this Error installing flite on Mac OSX suggested.
So far I've executed the following lines in my cygwin terminal.
$ tar xjf flite-2.0.5-current.tar.bz2
$ cd flite-2.0.5-current
But when I execute this:
$ ./configure && make
I get the following error
gcc -I. -DCST_AUDIO_NONE -I../../include -g -O2 -Wall -c auclient.c -o ../../build/x86_64-cygwin/obj/src/audio/auclient.o
In file included from auclient.c:46:0:
../../include/cst_file.h: In function 'c99_vsnprintf':
../../include/cst_file.h:108:20: warning: implicit declaration of function '_vsnprintf_s' [-Wimplicit-function-declaration]
count = _vsnprintf_s(str, size, _TRUNCATE, format, ap);
^~~~~~~~~~~~
../../include/cst_file.h:108:44: error: '_TRUNCATE' undeclared (first use in this function)
count = _vsnprintf_s(str, size, _TRUNCATE, format, ap);
^~~~~~~~~
../../include/cst_file.h:108:44: note: each undeclared identifier is reported only once for each function it appears in
make[2]: *** [../../config/common_make_rules:105: ../../build/x86_64-cygwin/obj/src/audio/auclient.o] Error 1
make[1]: *** [../config/common_make_rules:133: ../build/x86_64-cygwin/obj/src/.make_build_dirs] Error 2
make: *** [config/common_make_rules:133: build/x86_64-cygwin/obj//.make_build_dirs] Error 2
I basically have no idea what I'm doing and what the error might be since I have 0 experience with C++ or Linux so I'd be really grateful if someone gave me some help

gfortran compilation error: FORM specifier in OPEN statement at (1) has invalid value 'print'

I am trying to compile an old Fortran 77 code (.f file) using GNU gfortran (configured with gcc 4.8.1) on a mac 10.8 and I am getting this error even on using -std=legacy flag.
gfortran -std=legacy -o grdsp96 grdsp96.f
grdsp96.f:1872.72:
open (1,file=dfile(i),access='append',form='print')
1
Error: FORM specifier in OPEN statement at (1) has invalid value 'print'
grdsp96.f:2052.72:
open (1,file=dfile(i),status='unknown',form='print')
1
Error: FORM specifier in OPEN statement at (1) has invalid value 'print'
make: *** [all] Error 1
How to fix this ? Thanks.

/bin/sh: -c: line 0: syntax error near unexpected token `(' and other strange errors

I have a very strange error compiling my C++ code.
Situation: I have a big project that uses PCL, OpenCV, VTK, ANN... and is actually working on Linux.
Now, I'm trying to set up the project in MAC OSX but there are some problems. I installed all needed libraries, and it seems that all dependencies are linked but when I try to compile the project some strange errors appears:
/bin/sh: -c: line 0: syntax error near unexpected token `('
/bin/sh: -c: line 0: `/Library/Developer/CommandLineTools/usr/bin/c++ -DDISABLE_OPENNI -DEIGEN_USE_NEW_STDVECTOR -DEIGEN_YES_I_KNOW_SPARSE_MODULE_IS_NOT_STABLE_YET -DFLANN_STATIC -DvtkDomainsChemistry_AUTOINIT="1(vtkDomainsChemistryOpenGL2)" -DvtkRenderingContext2D_AUTOINIT="1(vtkRenderingContextOpenGL2)" -DvtkRenderingCore_AUTOINIT="3(vtkInteractionStyle,vtkRenderingFreeType,vtkRenderingOpenGL2)" -DvtkRenderingVolume_AUTOINIT="1(vtkRenderingVolumeOpenGL2)" -pg -g -I/usr/local/include/vtk-6.3 -I/usr/local/lib/ann_1.1.2/include -I/usr/local/include/pcl-1.6 -I/usr/local/include/eigen3 -I/usr/local/include -I/usr/local/Cellar/flann/1.8.4_1/include -I/usr/local/include/opencv vtkDomainsChemistry_AUTOINIT=1(vtkDomainsChemistryOpenGL2) vtkRenderingContext2D_AUTOINIT=1(vtkRenderingContextOpenGL2) vtkRenderingCore_AUTOINIT=3(vtkInteractionStyle,vtkRenderingFreeType,vtkRenderingOpenGL2) vtkRenderingVolume_AUTOINIT=1(vtkRenderingVolumeOpenGL2) -msse4.1 -mfpmath=sse -o CMakeFiles/Pipeline.dir/main.cpp.o -c /Users/ferran/ViCOROB/PROJECTS/Pipeline/main.cpp'
make[3]: /bin/sh: -c: line 0: syntax error near unexpected token `('
/bin/sh: -c: line 0: `/Library/Developer/CommandLineTools/usr/bin/c++ -DDISABLE_OPENNI -DEIGEN_USE_NEW_STDVECTOR -DEIGEN_YES_I_KNOW_SPARSE_MODULE_IS_NOT_STABLE_YET -DFLANN_STATIC -DvtkDomainsChemistry_AUTOINIT="1(vtkDomainsChemistryOpenGL2)" -DvtkRenderingContext2D_AUTOINIT="1(vtkRenderingContextOpenGL2)" -DvtkRenderingCore_AUTOINIT="3(vtkInteractionStyle,vtkRenderingFreeType,vtkRenderingOpenGL2)" -DvtkRenderingVolume_AUTOINIT="1(vtkRenderingVolumeOpenGL2)" -pg -g -I/usr/local/include/vtk-6.3 -I/usr/local/lib/ann_1.1.2/include -I/usr/local/include/pcl-1.6 -I/usr/local/include/eigen3 -I/usr/local/include -I/usr/local/Cellar/flann/1.8.4_1/include -I/usr/local/include/opencv vtkDomainsChemistry_AUTOINIT=1(vtkDomainsChemistryOpenGL2) vtkRenderingContext2D_AUTOINIT=1(vtkRenderingContextOpenGL2) vtkRenderingCore_AUTOINIT=3(vtkInteractionStyle,vtkRenderingFreeType,vtkRenderingOpenGL2) vtkRenderingVolume_AUTOINIT=1(vtkRenderingVolumeOpenGL2) -msse4.1 -mfpmath=sse -o CMakeFiles/Pipeline.dir/data.cpp.o -c /Users/ferran/ViCOROB/PROJECTS/Pipeline/data.cpp'
*** [CMakeFiles/Pipeline.dir/main.cpp.o] Error 2
make[3]: *** Waiting for unfinished jobs....
make[3]: *** [CMakeFiles/Pipeline.dir/data.cpp.o] Error 2
make[2]: *** [CMakeFiles/Pipeline.dir/all] Error 2
make[1]: *** [CMakeFiles/Pipeline.dir/rule] Error 2
I searched through the Internet, but I couldn't find any reference for this specific problem.
Any suggestion?

Vikit_common - Installation failed - Raspberry Pi 2 B

I'm working an a project of drone and I'm having an issue with my Raspberry Pi 2 B. When I'm trying to install vikit_common, I've this on screen :
pi#raspberrypi ~/workspace/rpg_vikit/vikit_common/build $ cmake ..
-- Eigen found (include: /usr/include/eigen3)
-- Configuring done
-- Generating done
-- Build files have been written to: /home/pi/workspace/rpg_vikit/vikit_common/build
pi#raspberrypi ~/workspace/rpg_vikit/vikit_common/build $ make
[ 7%] Building CXX object CMakeFiles/vikit_common.dir/src/atan_camera.cpp.o
cc1plus: error: bad value (native) for -march switch
cc1plus: error: unrecognized command line option ‘-mmmx’
cc1plus: error: unrecognized command line option ‘-msse’
cc1plus: error: unrecognized command line option ‘-msse’
cc1plus: error: unrecognized command line option ‘-msse2’
cc1plus: error: unrecognized command line option ‘-msse3’
cc1plus: error: unrecognized command line option ‘-mssse3’
cc1plus: error: bad value (native) for -march switch
cc1plus: error: unrecognized command line option ‘-mmmx’
cc1plus: error: unrecognized command line option ‘-msse’
cc1plus: error: unrecognized command line option ‘-msse’
cc1plus: error: unrecognized command line option ‘-msse2’
cc1plus: error: unrecognized command line option ‘-msse3’
cc1plus: error: unrecognized command line option ‘-mssse3’
CMakeFiles/vikit_common.dir/build.make:57: recipe for target 'CMakeFiles/vikit_common.dir/src/atan_camera.cpp.o' failed
make[2]: *** [CMakeFiles/vikit_common.dir/src/atan_camera.cpp.o] Error 1
CMakeFiles/Makefile2:168: recipe for target 'CMakeFiles/vikit_common.dir/all' failed
make[1]: *** [CMakeFiles/vikit_common.dir/all] Error 2
Makefile:116: recipe for target 'all' failed
make: *** [all] Error 2
I have Cmake installed (sudo apt-get cmake), Gcc (4.6.3) and OpenCV.
How can I solve the problem ?
Apparently you have an incorrect cmake configuration
A quick gcc 4.6.3 man says
-march=
This specifies the name of the target ARM architecture. GCC uses this name to determine what kind of instructions it can use when
generating assembly code. This option can be used in conjunction with
or instead of the `-mcpu=' option. Permissable names are: ‘armv2’, ‘armv2a’, ‘armv3’, ‘armv3m’, ‘armv4’,‘armv4t’, ‘armv5’, ‘armv5t’, ‘armv5e’, ‘armv5te’, ‘armv6’, ‘armv6j’, ‘armv6t2’,‘armv6z’, ‘armv6zk’, ‘armv6-m’, ‘armv7’, ‘armv7-a’, ‘armv7-r’, ‘armv7-m’,‘iwmmxt’, ‘iwmmxt2’, ‘ep9312’
Firstly looks like you have a wrong value for -march.
So check your cmake configuration