Hi,
i want to install Garfield++ on my own computer which operation system is ubuntu 14.04.
i’ve installed the root analysis by using command in terminal. sudo apt-get install root-system
meanwhile,the gcc had been installed by using command.sudo apt-get install build-essential
the compiling was obeied the rules on the website. http://garfieldpp.web.cern.ch/garfieldpp/getting-started/I copy all the files under the trunk into a new folder named garfield which is under my home directory.the full directory is /home/hatiden/garfield,the directory of folder Heed is /home/hatiden/garfield/Heed.
the following is the process of compiling:
1.i open the garfield folder in terminal,and make a new folder named build.
2.i open the folder build in terminal,then i use command .cmake ..
3.make command are executed,when compile at the range of 12%.error occured.
the description of error is:(I’ve change gfortran into gcc in the makefile at line 19,the same error occured.i’ve try many times but error still occured.anyone can give me a hand to deal with it.)Thank you!
hatiden@ubuntu:~$ gedit ~/.bashrc
hatiden@ubuntu:~$ cd /home/hatiden/garfield/
hatiden@ubuntu:~/garfield$ ls
backup CMake Data garfroot.C~ Include makefile Object
build CMakeLists.txt garfroot.C Heed Library makefile~ Source
hatiden@ubuntu:~/garfield$ mkdir build
mkdir: cannot create directory ‘build’: File exists
hatiden@ubuntu:~/garfield$ cd build/
hatiden@ubuntu:~/garfield/build$ ls
CMakeCache.txt cmake_install.cmake GarfieldConfigVersion.cmake Makefile
CMakeFiles GarfieldConfig.cmake lib rootdict
hatiden@ubuntu:~/garfield/build$ rm -r *
hatiden@ubuntu:~/garfield/build$ ls
[b]hatiden@ubuntu:~/garfield/build$ cmake ..[/b]
-- The CXX compiler identification is GNU 4.8.2
-- The Fortran compiler identification is GNU
-- Check for working CXX compiler: /usr/bin/c++
-- Check for working CXX compiler: /usr/bin/c++ -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Check for working Fortran compiler: /usr/bin/gfortran
-- Check for working Fortran compiler: /usr/bin/gfortran -- works
-- Detecting Fortran compiler ABI info
-- Detecting Fortran compiler ABI info - done
-- Checking whether /usr/bin/gfortran supports Fortran 90
-- Checking whether /usr/bin/gfortran supports Fortran 90 -- yes
-- Check for ROOT_DICT_OUTPUT_DIR: /home/hatiden/garfield/build/rootdict
-- Check for ROOT_DICT_CINT_DEFINITIONS:
-- Check for ROOT_CONFIG_EXECUTABLE: /usr/bin/root-config
-- Check for ROOT (5.34.14)
-- Check for ROOT_EXECUTABLE: /usr/bin/root
-- Check for ROOT_CINT_EXECUTABLE: /usr/bin/rootcint
-- Check for ROOT_LIBRARIES: Core;Cint;RIO;Net;Hist;Graf;Graf3d;Gpad;Tree;Rint;Postscript;Matrix;Physics;MathCore;Thread
-- Check for ROOT_CORE_LIBRARY: /usr/lib/x86_64-linux-gnu/libCore.so -- ok
-- Check for ROOT_CINT_LIBRARY: /usr/lib/x86_64-linux-gnu/libCint.so -- ok
-- Check for ROOT_RIO_LIBRARY: /usr/lib/x86_64-linux-gnu/libRIO.so -- ok
-- Check for ROOT_NET_LIBRARY: /usr/lib/x86_64-linux-gnu/libNet.so -- ok
-- Check for ROOT_HIST_LIBRARY: /usr/lib/x86_64-linux-gnu/libHist.so -- ok
-- Check for ROOT_GRAF_LIBRARY: /usr/lib/x86_64-linux-gnu/libGraf.so -- ok
-- Check for ROOT_GRAF3D_LIBRARY: /usr/lib/x86_64-linux-gnu/libGraf3d.so -- ok
-- Check for ROOT_GPAD_LIBRARY: /usr/lib/x86_64-linux-gnu/libGpad.so -- ok
-- Check for ROOT_TREE_LIBRARY: /usr/lib/x86_64-linux-gnu/libTree.so -- ok
-- Check for ROOT_RINT_LIBRARY: /usr/lib/x86_64-linux-gnu/libRint.so -- ok
-- Check for ROOT_POSTSCRIPT_LIBRARY: /usr/lib/x86_64-linux-gnu/libPostscript.so -- ok
-- Check for ROOT_MATRIX_LIBRARY: /usr/lib/x86_64-linux-gnu/libMatrix.so -- ok
-- Check for ROOT_PHYSICS_LIBRARY: /usr/lib/x86_64-linux-gnu/libPhysics.so -- ok
-- Check for ROOT_MATHCORE_LIBRARY: /usr/lib/x86_64-linux-gnu/libMathCore.so -- ok
-- Check for ROOT_THREAD_LIBRARY: /usr/lib/x86_64-linux-gnu/libThread.so -- ok
-- Check for libdl.so: /usr/lib/x86_64-linux-gnu/libdl.so
-- Found ROOT: /usr/include/root
-- Check for ROOT_CONFIG_EXECUTABLE: /usr/bin/root-config
-- Check for ROOT (5.34.14)
-- Check for ROOT_EXECUTABLE: /usr/bin/root
-- Check for ROOT_CINT_EXECUTABLE: /usr/bin/rootcint
-- Check for ROOT_LIBRARIES: Core;Cint;RIO;Net;Hist;Graf;Graf3d;Gpad;Tree;Rint;Postscript;Matrix;Physics;MathCore;Thread
-- Check for ROOT_COMPONENT_LIBRARIES: Geom
-- Check for ROOT_CORE_LIBRARY: /usr/lib/x86_64-linux-gnu/libCore.so -- ok
-- Check for ROOT_CINT_LIBRARY: /usr/lib/x86_64-linux-gnu/libCint.so -- ok
-- Check for ROOT_RIO_LIBRARY: /usr/lib/x86_64-linux-gnu/libRIO.so -- ok
-- Check for ROOT_NET_LIBRARY: /usr/lib/x86_64-linux-gnu/libNet.so -- ok
-- Check for ROOT_HIST_LIBRARY: /usr/lib/x86_64-linux-gnu/libHist.so -- ok
-- Check for ROOT_GRAF_LIBRARY: /usr/lib/x86_64-linux-gnu/libGraf.so -- ok
-- Check for ROOT_GRAF3D_LIBRARY: /usr/lib/x86_64-linux-gnu/libGraf3d.so -- ok
-- Check for ROOT_GPAD_LIBRARY: /usr/lib/x86_64-linux-gnu/libGpad.so -- ok
-- Check for ROOT_TREE_LIBRARY: /usr/lib/x86_64-linux-gnu/libTree.so -- ok
-- Check for ROOT_RINT_LIBRARY: /usr/lib/x86_64-linux-gnu/libRint.so -- ok
-- Check for ROOT_POSTSCRIPT_LIBRARY: /usr/lib/x86_64-linux-gnu/libPostscript.so -- ok
-- Check for ROOT_MATRIX_LIBRARY: /usr/lib/x86_64-linux-gnu/libMatrix.so -- ok
-- Check for ROOT_PHYSICS_LIBRARY: /usr/lib/x86_64-linux-gnu/libPhysics.so -- ok
-- Check for ROOT_MATHCORE_LIBRARY: /usr/lib/x86_64-linux-gnu/libMathCore.so -- ok
-- Check for ROOT_THREAD_LIBRARY: /usr/lib/x86_64-linux-gnu/libThread.so -- ok
-- Check for ROOT_GEOM_LIBRARY: /usr/lib/x86_64-linux-gnu/libGeom.so -- ok
-- Check for libdl.so: /usr/lib/x86_64-linux-gnu/libdl.so
-- Found ROOT: /usr/include/root (Required is at least version "5.0")
-- The ROOT Version is found to be 5.34.14
-- Check for ROOT_DICT_OUTPUT_DIR: /home/hatiden/garfield/build/rootdict
-- Check for ROOT_DICT_CINT_DEFINITIONS: -DHANDLE_DICT_EXCEPTIONS=IGNORED_FOR_CINT
-- ###########################################################
-- Considered Garfield files : Source/ComponentAnsys123.cc;Source/ViewField.cc;Source/ComponentUser.cc;Source/ComponentBase.cc;Source/ComponentConstant.cc;Source/SolidBox.cc;Source/TrackSimple.cc;Source/ComponentTcad2d.cc;Source/ComponentElmer.cc;Source/ComponentAnsys121.cc;Source/RandomEngineRoot.cc;Source/TrackHeed.cc;Source/ViewDrift.cc;Source/AvalancheMC.cc;Source/DriftLineRKF.cc;Source/ComponentCST.cc;Source/GeometryRoot.cc;Source/AvalancheMicroscopic.cc;Source/OpticalData.cc;Source/MediumMagboltz.cc;Source/Track.cc;Source/ComponentFieldMap.cc;Source/Medium.cc;Source/GeometrySimple.cc;Source/ViewGeometry.cc;Source/Sensor.cc;Source/SolidTube.cc;Source/TrackElectron.cc;Source/ComponentAnalyticField.cc;Source/MediumGaAs.cc;Source/MediumSilicon.cc;Source/MediumCdTe.cc;Source/ComponentNeBem2d.cc;Source/ViewMedium.cc;Source/Numerics.cc;Source/ComponentVoxel.cc;Source/ViewCell.cc;Source/ComponentTcad3d.cc;Source/TrackPAI.cc;Source/ViewSignal.cc;Source/MediumGas.cc;Source/TrackBichsel.cc;Source/PlottingEngineRoot.cc;Source/ViewFEMesh.cc;/home/hatiden/garfield/build/rootdict/GarfieldDict.cxx
-- -----------------------------------------------------------
-- Considered heed files : Heed/heed++/code/HeedParticle_BGM.cpp;Heed/heed++/code/HeedMatterDef.cpp;Heed/heed++/code/EnTransfCS_BGM.cpp;Heed/heed++/code/ElElasticScat.cpp;Heed/heed++/code/PairProd.cpp;Heed/heed++/code/ParticleBank.cpp;Heed/heed++/code/PhotoAbsCSLib.cpp;Heed/heed++/code/HeedParticle.cpp;Heed/heed++/code/EnTransfCS.cpp;Heed/heed++/code/BGMesh.cpp;Heed/heed++/code/HeedCondElectron.cpp;Heed/heed++/code/EnergyMesh.cpp;Heed/heed++/code/PhotoAbsCS.cpp;Heed/heed++/code/HeedCluster.cpp;Heed/heed++/code/HeedDeltaElectron.cpp;Heed/heed++/code/HeedPhoton.cpp;Heed/heed++/code/HeedDeltaElectronCS.cpp;Heed/wcpplib/geometry/gparticle.cpp;Heed/wcpplib/geometry/straight.cpp;Heed/wcpplib/geometry/surface.cpp;Heed/wcpplib/geometry/plane.cpp;Heed/wcpplib/geometry/mparticle.cpp;Heed/wcpplib/geometry/polyline.cpp;Heed/wcpplib/geometry/trajestep.cpp;Heed/wcpplib/geometry/circumf.cpp;Heed/wcpplib/geometry/vec.cpp;Heed/wcpplib/geometry/volume.cpp;Heed/wcpplib/geometry/box.cpp;Heed/wcpplib/ioniz/bethe_bloch.cpp;Heed/wcpplib/ioniz/e_cont_enloss.cpp;Heed/wcpplib/math/PolLeg.cpp;Heed/wcpplib/math/linexi2.cpp;Heed/wcpplib/math/kinem.cpp;Heed/wcpplib/math/lorgamma.cpp;Heed/wcpplib/math/DoubleAc.cpp;Heed/wcpplib/math/cubic.cpp;Heed/wcpplib/math/parabol.cpp;Heed/wcpplib/matrix/multiply.cpp;Heed/wcpplib/matrix/inverse.cpp;Heed/wcpplib/matter/AtomDef.cpp;Heed/wcpplib/matter/MatterDef.cpp;Heed/wcpplib/matter/GasLib.cpp;Heed/wcpplib/matter/GasDef.cpp;Heed/wcpplib/matter/MoleculeDef.cpp;Heed/wcpplib/particle/eparticle.cpp;Heed/wcpplib/particle/particle_def.cpp;Heed/wcpplib/particle/eiparticle.cpp;Heed/wcpplib/random/pois.cpp;Heed/wcpplib/random/rnorm.cpp;Heed/wcpplib/random/chisran.cpp;Heed/wcpplib/random/PointsRan.cpp;Heed/wcpplib/safetl/AbsPtr.cpp;Heed/wcpplib/safetl/AbsArr.cpp;Heed/wcpplib/stream/findmark.cpp;Heed/wcpplib/stream/prstream.cpp;Heed/wcpplib/stream/definp.cpp;Heed/wcpplib/util/FunNameStack.cpp
-- -----------------------------------------------------------
-- Considered magboltz files : Source/magboltz-9.01.f
-- -----------------------------------------------------------
-- Directory used to find root dict files: Include
-- ###########################################################
-- Configuring done
-- Generating done
-- Build files have been written to: /home/hatiden/garfield/build
[b]hatiden@ubuntu:~/garfield/build$ make [/b]
[ 0%] generating: /home/hatiden/garfield/build/rootdict/GarfieldDict.cxx /home/hatiden/garfield/build/rootdict/GarfieldDict.h
Scanning dependencies of target Garfield
[ 1%] Building CXX object CMakeFiles/Garfield.dir/Source/ComponentAnsys123.cc.o
[ 2%] Building CXX object CMakeFiles/Garfield.dir/Source/ViewField.cc.o
[ 3%] Building CXX object CMakeFiles/Garfield.dir/Source/ComponentUser.cc.o
[ 4%] Building CXX object CMakeFiles/Garfield.dir/Source/ComponentBase.cc.o
[ 5%] Building CXX object CMakeFiles/Garfield.dir/Source/ComponentConstant.cc.o
[ 6%] Building CXX object CMakeFiles/Garfield.dir/Source/SolidBox.cc.o
[ 7%] Building CXX object CMakeFiles/Garfield.dir/Source/TrackSimple.cc.o
[ 8%] Building CXX object CMakeFiles/Garfield.dir/Source/ComponentTcad2d.cc.o
[ 9%] Building CXX object CMakeFiles/Garfield.dir/Source/ComponentElmer.cc.o
[ 10%] Building CXX object CMakeFiles/Garfield.dir/Source/ComponentAnsys121.cc.o
[ 11%] Building CXX object CMakeFiles/Garfield.dir/Source/RandomEngineRoot.cc.o
[ 12%] Building CXX object CMakeFiles/Garfield.dir/Source/TrackHeed.cc.o
In file included from /home/hatiden/garfield/Heed/wcpplib/matter/AtomDef.h:6:0,
from /home/hatiden/garfield/Heed/wcpplib/matter/GasLib.h:41,
from /home/hatiden/garfield/Source/TrackHeed.cc:3:
/home/hatiden/garfield/Heed/wcpplib/safetl/AbsArr.h: In member function ‘T& DynLinArr<T>::operator[](long int) [with T = fixsyscoor]’:
/home/hatiden/garfield/Heed/wcpplib/safetl/AbsArr.h:339:3: warning: control reaches end of non-void function [-Wreturn-type]
}
^
/home/hatiden/garfield/Heed/wcpplib/safetl/AbsArr.h: In member function ‘T& DynLinArr<T>::operator[](long int) [with T = ActivePtr<absvol>]’:
/home/hatiden/garfield/Heed/wcpplib/safetl/AbsArr.h:339:3: warning: control reaches end of non-void function [-Wreturn-type]
}
^
/home/hatiden/garfield/Heed/wcpplib/safetl/AbsArr.h: In member function ‘T& DynLinArr<T>::operator[](long int) [with T = ActivePtr<manip_absvol>]’:
/home/hatiden/garfield/Heed/wcpplib/safetl/AbsArr.h:339:3: warning: control reaches end of non-void function [-Wreturn-type]
}
^
/home/hatiden/garfield/Heed/wcpplib/safetl/AbsArr.h: In member function ‘T& DynLinArr<T>::operator[](long int) [with T = Heed::HeedCluster]’:
/home/hatiden/garfield/Heed/wcpplib/safetl/AbsArr.h:339:3: warning: control reaches end of non-void function [-Wreturn-type]
}
^
/home/hatiden/garfield/Heed/wcpplib/safetl/AbsArr.h: In member function ‘T& DynLinArr<T>::operator[](long int) [with T = Heed::HeedCondElectron]’:
/home/hatiden/garfield/Heed/wcpplib/safetl/AbsArr.h:339:3: warning: control reaches end of non-void function [-Wreturn-type]
}
^
In file included from /home/hatiden/garfield/Heed/heed++/code/HeedCluster.h:4:0,
from /home/hatiden/garfield/Source/TrackHeed.cc:9:
/home/hatiden/garfield/Heed/wcpplib/safetl/BlkArr.h: In member function ‘T& BlkArr<T>::operator[](long int) [with T = Heed::HeedCondElectron]’:
/home/hatiden/garfield/Heed/wcpplib/safetl/BlkArr.h:279:1: warning: control reaches end of non-void function [-Wreturn-type]
}
^
[ 13%] Building CXX object CMakeFiles/Garfield.dir/Source/ViewDrift.cc.o
[ 14%] Building CXX object CMakeFiles/Garfield.dir/Source/AvalancheMC.cc.o
[ 15%] Building CXX object CMakeFiles/Garfield.dir/Source/DriftLineRKF.cc.o
[ 16%] Building CXX object CMakeFiles/Garfield.dir/Source/ComponentCST.cc.o
[ 17%] Building CXX object CMakeFiles/Garfield.dir/Source/GeometryRoot.cc.o
[ 18%] Building CXX object CMakeFiles/Garfield.dir/Source/AvalancheMicroscopic.cc.o
[ 19%] Building CXX object CMakeFiles/Garfield.dir/Source/OpticalData.cc.o
[ 20%] Building CXX object CMakeFiles/Garfield.dir/Source/MediumMagboltz.cc.o
[ 21%] Building CXX object CMakeFiles/Garfield.dir/Source/Track.cc.o
[ 22%] Building CXX object CMakeFiles/Garfield.dir/Source/ComponentFieldMap.cc.o
[ 23%] Building CXX object CMakeFiles/Garfield.dir/Source/Medium.cc.o
[ 24%] Building CXX object CMakeFiles/Garfield.dir/Source/GeometrySimple.cc.o
[ 25%] Building CXX object CMakeFiles/Garfield.dir/Source/ViewGeometry.cc.o
[ 25%] Building CXX object CMakeFiles/Garfield.dir/Source/Sensor.cc.o
[ 26%] Building CXX object CMakeFiles/Garfield.dir/Source/SolidTube.cc.o
[ 27%] Building CXX object CMakeFiles/Garfield.dir/Source/TrackElectron.cc.o
[ 28%] Building CXX object CMakeFiles/Garfield.dir/Source/ComponentAnalyticField.cc.o
[ 29%] Building CXX object CMakeFiles/Garfield.dir/Source/MediumGaAs.cc.o
[ 30%] Building CXX object CMakeFiles/Garfield.dir/Source/MediumSilicon.cc.o
[ 31%] Building CXX object CMakeFiles/Garfield.dir/Source/MediumCdTe.cc.o
[ 32%] Building CXX object CMakeFiles/Garfield.dir/Source/ComponentNeBem2d.cc.o
[ 33%] Building CXX object CMakeFiles/Garfield.dir/Source/ViewMedium.cc.o
/home/hatiden/garfield/Source/ViewMedium.cc: In member function ‘void Garfield::ViewMedium::PlotHoleVelocity(char, double, double, double)’:
/home/hatiden/garfield/Source/ViewMedium.cc:159:10: warning: variable ‘min’ set but not used [-Wunused-but-set-variable]
double min = 0., max = 0.;
^
/home/hatiden/garfield/Source/ViewMedium.cc:159:20: warning: variable ‘max’ set but not used [-Wunused-but-set-variable]
double min = 0., max = 0.;
^
/home/hatiden/garfield/Source/ViewMedium.cc: In member function ‘void Garfield::ViewMedium::AddFunction(double, double, double, double, bool, std::string, std::string, int, char, double, double, double)’:
/home/hatiden/garfield/Source/ViewMedium.cc:387:8: warning: variable ‘withBfield’ set but not used [-Wunused-but-set-variable]
bool withBfield = false;
^
[ 34%] Building CXX object CMakeFiles/Garfield.dir/Source/Numerics.cc.o
[ 35%] Building CXX object CMakeFiles/Garfield.dir/Source/ComponentVoxel.cc.o
[ 36%] Building CXX object CMakeFiles/Garfield.dir/Source/ViewCell.cc.o
[ 37%] Building CXX object CMakeFiles/Garfield.dir/Source/ComponentTcad3d.cc.o
[ 38%] Building CXX object CMakeFiles/Garfield.dir/Source/TrackPAI.cc.o
[ 39%] Building CXX object CMakeFiles/Garfield.dir/Source/ViewSignal.cc.o
[ 40%] Building CXX object CMakeFiles/Garfield.dir/Source/MediumGas.cc.o
[ 41%] Building CXX object CMakeFiles/Garfield.dir/Source/TrackBichsel.cc.o
[ 42%] Building CXX object CMakeFiles/Garfield.dir/Source/PlottingEngineRoot.cc.o
[ 43%] Building CXX object CMakeFiles/Garfield.dir/Source/ViewFEMesh.cc.o
[ 44%] Building CXX object CMakeFiles/Garfield.dir/rootdict/GarfieldDict.cxx.o
[ 45%] Building Fortran object CMakeFiles/Garfield.dir/Source/magboltz-9.01.f.o
/home/hatiden/garfield/Source/magboltz-9.01.f:1711.11:
/QION,PEQION,EION,NION,SCRPT)
1
Warning: Rank mismatch in argument 'peqion' at (1) (scalar and rank-2)
/home/hatiden/garfield/Source/magboltz-9.01.f:4405.23:
EPSI=PSCT(IKGAS,E,I)
1
Warning: Legacy Extension: REAL array index at (1)
/home/hatiden/garfield/Source/magboltz-9.01.f:5465.5:
20 X=XSS(NPONT)
1
/home/hatiden/garfield/Source/magboltz-9.01.f:5618.72:
GO TO 20
2
Warning: Legacy Extension: Label at (1) is not in the same block as the GOTO statement at (2)
/home/hatiden/garfield/Source/magboltz-9.01.f:5458.4:
18 ZTOT=ZTOT+Z
1
/home/hatiden/garfield/Source/magboltz-9.01.f:5794.72:
IF(E1.LT.EPOT) GO TO 18
2
Warning: Legacy Extension: Label at (1) is not in the same block as the GOTO statement at (2)
/home/hatiden/garfield/Source/magboltz-9.01.f:5458.4:
18 ZTOT=ZTOT+Z
1
/home/hatiden/garfield/Source/magboltz-9.01.f:5799.72:
IF(TZSTOP.EQ.-99.0D0) GO TO 18
2
Warning: Legacy Extension: Label at (1) is not in the same block as the GOTO statement at (2)
/home/hatiden/garfield/Source/magboltz-9.01.f:4721.5:
20 X=XS(NPONT)
1
/home/hatiden/garfield/Source/magboltz-9.01.f:4839.72:
GO TO 20
2
Warning: Legacy Extension: Label at (1) is not in the same block as the GOTO statement at (2)
/home/hatiden/garfield/Source/magboltz-9.01.f:8242.5:
20 X=XS(NPONT)
1
/home/hatiden/garfield/Source/magboltz-9.01.f:8368.72:
GO TO 20
2
Warning: Legacy Extension: Label at (1) is not in the same block as the GOTO statement at (2)
/home/hatiden/garfield/Source/magboltz-9.01.f:6528.5:
20 X=XS(NPONT)
1
/home/hatiden/garfield/Source/magboltz-9.01.f:6650.72:
GO TO 20
2
Warning: Legacy Extension: Label at (1) is not in the same block as the GOTO statement at (2)
/home/hatiden/garfield/Source/magboltz-9.01.f:7374.5:
20 X=XS(NPONT)
1
/home/hatiden/garfield/Source/magboltz-9.01.f:7499.72:
GO TO 20
2
Warning: Legacy Extension: Label at (1) is not in the same block as the GOTO statement at (2)
/home/hatiden/garfield/Source/magboltz-9.01.f:13149.5:
20 X=XSS(NPONT)
1
/home/hatiden/garfield/Source/magboltz-9.01.f:13270.72:
GO TO 20
2
Warning: Legacy Extension: Label at (1) is not in the same block as the GOTO statement at (2)
/home/hatiden/garfield/Source/magboltz-9.01.f:13142.4:
18 ZTOT=ZTOT+Z
1
/home/hatiden/garfield/Source/magboltz-9.01.f:13438.72:
IF(E1.LT.EPOT) GO TO 18
2
Warning: Legacy Extension: Label at (1) is not in the same block as the GOTO statement at (2)
/home/hatiden/garfield/Source/magboltz-9.01.f:13142.4:
18 ZTOT=ZTOT+Z
1
/home/hatiden/garfield/Source/magboltz-9.01.f:13443.72:
IF(TZSTOP.EQ.-99.0D0) GO TO 18
2
Warning: Legacy Extension: Label at (1) is not in the same block as the GOTO statement at (2)
/home/hatiden/garfield/Source/magboltz-9.01.f:12590.5:
20 X=XS(NPONT)
1
/home/hatiden/garfield/Source/magboltz-9.01.f:12681.72:
GO TO 20
2
Warning: Legacy Extension: Label at (1) is not in the same block as the GOTO statement at (2)
/home/hatiden/garfield/Source/magboltz-9.01.f:15288.5:
20 X=XS(NPONT)
1
/home/hatiden/garfield/Source/magboltz-9.01.f:15391.72:
GO TO 20
2
Warning: Legacy Extension: Label at (1) is not in the same block as the GOTO statement at (2)
/home/hatiden/garfield/Source/magboltz-9.01.f:14004.5:
20 X=XS(NPONT)
1
/home/hatiden/garfield/Source/magboltz-9.01.f:14106.72:
GO TO 20
2
Warning: Legacy Extension: Label at (1) is not in the same block as the GOTO statement at (2)
/home/hatiden/garfield/Source/magboltz-9.01.f:14652.5:
20 X=XS(NPONT)
1
/home/hatiden/garfield/Source/magboltz-9.01.f:14758.72:
GO TO 20
2
Warning: Legacy Extension: Label at (1) is not in the same block as the GOTO statement at (2)
[ 46%] Building CXX object CMakeFiles/Garfield.dir/Heed/heed++/code/HeedParticle_BGM.cpp.o
In file included from /home/hatiden/garfield/Heed/heed++/code/HeedParticle_BGM.cpp:3:0:
/home/hatiden/garfield/Heed/heed++/code/HeedParticle_BGM.h: In constructor ‘Heed::HeedParticle_BGM::HeedParticle_BGM(manip_absvol*, const point&, const vec&, vfloat, Heed::particle_def*, int, int)’:
/home/hatiden/garfield/Heed/heed++/code/HeedParticle_BGM.h:50:7: warning: ‘Heed::HeedParticle_BGM::s_loss_only’ will be initialized after [-Wreorder]
int s_loss_only;
^
/home/hatiden/garfield/Heed/heed++/code/HeedParticle_BGM.h:32:7: warning: ‘int Heed::HeedParticle_BGM::s_print_listing’ [-Wreorder]
int s_print_listing;
^
/home/hatiden/garfield/Heed/heed++/code/HeedParticle_BGM.cpp:19:1: warning: when initialized here [-Wreorder]
HeedParticle_BGM::HeedParticle_BGM(manip_absvol* primvol, const point& pt,
^
/home/hatiden/garfield/Heed/heed++/code/HeedParticle_BGM.cpp: In member function ‘virtual void Heed::HeedParticle_BGM::physics()’:
/home/hatiden/garfield/Heed/heed++/code/HeedParticle_BGM.cpp:124:11: error: ‘streamsize’ was not declared in this scope
streamsize old_prec = mcerr.precision(15);
^
/home/hatiden/garfield/Heed/heed++/code/HeedParticle_BGM.cpp:124:11: note: suggested alternative:
In file included from /usr/include/c++/4.8/iosfwd:40:0,
from /usr/include/c++/4.8/iomanip:39,
from /home/hatiden/garfield/Heed/heed++/code/HeedParticle_BGM.cpp:1:
/usr/include/c++/4.8/bits/postypes.h:98:21: note: ‘std::streamsize’
typedef ptrdiff_t streamsize; // Signed integral type
^
/home/hatiden/garfield/Heed/heed++/code/HeedParticle_BGM.cpp:124:22: error: expected ‘;’ before ‘old_prec’
streamsize old_prec = mcerr.precision(15);
^
/home/hatiden/garfield/Heed/heed++/code/HeedParticle_BGM.cpp:126:27: error: ‘old_prec’ was not declared in this scope
mcerr.precision(old_prec);
^
/home/hatiden/garfield/Heed/heed++/code/HeedParticle_BGM.cpp:134:11: error: ‘funnw’ was not declared in this scope
funnw.ehdr(mcerr);
^
/home/hatiden/garfield/Heed/heed++/code/HeedParticle_BGM.cpp:82:10: warning: unused variable ‘qe’ [-Wunused-variable]
long qe = a_energy_mesh->get_q();
^
/home/hatiden/garfield/Heed/heed++/code/HeedParticle_BGM.cpp: In member function ‘virtual void Heed::HeedParticle_BGM::print(std::ostream&, int) const’:
/home/hatiden/garfield/Heed/heed++/code/HeedParticle_BGM.cpp:314:13: error: ‘endl’ was not declared in this scope
file << endl;
^
/home/hatiden/garfield/Heed/heed++/code/HeedParticle_BGM.cpp:314:13: note: suggested alternative:
In file included from /usr/include/c++/4.8/iostream:39:0,
from /home/hatiden/garfield/Heed/wcpplib/safetl/AbsPtr.h:15,
from /home/hatiden/garfield/Heed/wcpplib/safetl/AbsList.h:43,
from /home/hatiden/garfield/Heed/heed++/code/ParticleBank.h:4,
from /home/hatiden/garfield/Heed/heed++/code/HeedParticle_BGM.cpp:2:
/usr/include/c++/4.8/ostream:564:5: note: ‘std::endl’
endl(basic_ostream<_CharT, _Traits>& __os)
^
/home/hatiden/garfield/Heed/heed++/code/HeedParticle_BGM.cpp:325:24: error: ‘setw’ was not declared in this scope
Ifile << setw(3) << nt << ' ' << setw(3) << natom[nt] << ' ' << setw(3)
^
/home/hatiden/garfield/Heed/heed++/code/HeedParticle_BGM.cpp:325:24: note: suggested alternative:
In file included from /home/hatiden/garfield/Heed/heed++/code/HeedParticle_BGM.cpp:1:0:
/usr/include/c++/4.8/iomanip:222:3: note: ‘std::setw’
setw(int __n)
^
In file included from /home/hatiden/garfield/Heed/wcpplib/clhep_units/WPhysicalConstants.h:6:0,
from /home/hatiden/garfield/Heed/heed++/code/HeedParticle_BGM.cpp:8:
/home/hatiden/garfield/Heed/wcpplib/clhep_units/PhysicalConstants.h: At global scope:
/home/hatiden/garfield/Heed/wcpplib/clhep_units/PhysicalConstants.h:76:21: warning: ‘Heed::electron_charge’ defined but not used [-Wunused-variable]
static const double electron_charge = - eplus; // see SystemOfUnits.h
^
make[2]: *** [CMakeFiles/Garfield.dir/Heed/heed++/code/HeedParticle_BGM.cpp.o] Error 1
make[1]: *** [CMakeFiles/Garfield.dir/all] Error 2
make: *** [all] Error 2
the gcc version was viewed by command gcc -v
the descriptions are followed:
hatiden@ubuntu:~$ gcc -v
Using built-in specs.
COLLECT_GCC=gcc
COLLECT_LTO_WRAPPER=/usr/lib/gcc/x86_64-linux-gnu/4.8/lto-wrapper
Target: x86_64-linux-gnu
Configured with: ../src/configure -v --with-pkgversion='Ubuntu 4.8.2-19ubuntu1' --with-bugurl=file:///usr/share/doc/gcc-4.8/README.Bugs --enable-languages=c,c++,java,go,d,fortran,objc,obj-c++ --prefix=/usr --program-suffix=-4.8 --enable-shared --enable-linker-build-id --libexecdir=/usr/lib --without-included-gettext --enable-threads=posix --with-gxx-include-dir=/usr/include/c++/4.8 --libdir=/usr/lib --enable-nls --with-sysroot=/ --enable-clocale=gnu --enable-libstdcxx-debug --enable-libstdcxx-time=yes --enable-gnu-unique-object --disable-libmudflap --enable-plugin --with-system-zlib --disable-browser-plugin --enable-java-awt=gtk --enable-gtk-cairo --with-java-home=/usr/lib/jvm/java-1.5.0-gcj-4.8-amd64/jre --enable-java-home --with-jvm-root-dir=/usr/lib/jvm/java-1.5.0-gcj-4.8-amd64 --with-jvm-jar-dir=/usr/lib/jvm-exports/java-1.5.0-gcj-4.8-amd64 --with-arch-directory=amd64 --with-ecj-jar=/usr/share/java/eclipse-ecj.jar --enable-objc-gc --enable-multiarch --disable-werror --with-arch-32=i686 --with-abi=m64 --with-multilib-list=m32,m64,mx32 --with-tune=generic --enable-checking=release --build=x86_64-linux-gnu --host=x86_64-linux-gnu --target=x86_64-linux-gnu
Thread model: posix
gcc version 4.8.2 (Ubuntu 4.8.2-19ubuntu1)
the gfortran version is followed:
hatiden@ubuntu:~$ gfortran -v
Using built-in specs.
COLLECT_GCC=gfortran
COLLECT_LTO_WRAPPER=/usr/lib/gcc/x86_64-linux-gnu/4.8/lto-wrapper
Target: x86_64-linux-gnu
Configured with: ../src/configure -v --with-pkgversion='Ubuntu 4.8.2-19ubuntu1' --with-bugurl=file:///usr/share/doc/gcc-4.8/README.Bugs --enable-languages=c,c++,java,go,d,fortran,objc,obj-c++ --prefix=/usr --program-suffix=-4.8 --enable-shared --enable-linker-build-id --libexecdir=/usr/lib --without-included-gettext --enable-threads=posix --with-gxx-include-dir=/usr/include/c++/4.8 --libdir=/usr/lib --enable-nls --with-sysroot=/ --enable-clocale=gnu --enable-libstdcxx-debug --enable-libstdcxx-time=yes --enable-gnu-unique-object --disable-libmudflap --enable-plugin --with-system-zlib --disable-browser-plugin --enable-java-awt=gtk --enable-gtk-cairo --with-java-home=/usr/lib/jvm/java-1.5.0-gcj-4.8-amd64/jre --enable-java-home --with-jvm-root-dir=/usr/lib/jvm/java-1.5.0-gcj-4.8-amd64 --with-jvm-jar-dir=/usr/lib/jvm-exports/java-1.5.0-gcj-4.8-amd64 --with-arch-directory=amd64 --with-ecj-jar=/usr/share/java/eclipse-ecj.jar --enable-objc-gc --enable-multiarch --disable-werror --with-arch-32=i686 --with-abi=m64 --with-multilib-list=m32,m64,mx32 --with-tune=generic --enable-checking=release --build=x86_64-linux-gnu --host=x86_64-linux-gnu --target=x86_64-linux-gnu
Thread model: posix
gcc version 4.8.2 (Ubuntu 4.8.2-19ubuntu1)
the only different is COLLECT_GCC in she second line.
Best Regards!
Hatiden