ERROR: build stopped due to errors again

Asked by Kun Zeng

Dear all,

When I installed escript on ubuntu 17.04, error happened that:

scons -j1 options_file=scons/templates/vivid_options.py
scons: Reading SConscript files ...
Using options in scons/templates/vivid_options.py.
sh: 1: svnversion: not found
Checking whether the C++ compiler works... yes
Checking for C++ function gethostname()... yes
Checking for C++ header file byteswap.h... yes
Checking for C++ function SCbswap32()... yes
Checking for C++ header file sys/endian.h... no
Checking for C++ header file libkern/OSByteOrder.h... no
Checking for working complex std::acos()... yes
Checking for C++ header file Python.h... yes
Checking for C++ function Py_Exit()... yes
Checking for C++ library boost_python-py27... yes
Checking for C++ header file numpy/ndarrayobject.h... yes
Checking for C++ library netcdf_c++... yes
Checking for C++ library boost_iostreams... no
Chmod("utest.sh", 0755)
Generated utest.sh.
Chmod("itest.sh", 0755)
Generated itest.sh.
Chmod("/home/kun/escript/bin/run-escript", 0755)
Delete(["lib/pythonMPI", "lib/pythonMPIredirect"])
Delete("bin/escript-overlord")
scons: done reading SConscript files.
scons: Building targets ...
Touch("esys/__init__.py")
Install file: "escriptcore/src/AbstractContinuousDomain.h" as "include/escript/AbstractContinuousDomain.h"
Install file: "escriptcore/src/AbstractDomain.h" as "include/escript/AbstractDomain.h"
Install file: "escriptcore/src/AbstractReducer.h" as "include/escript/AbstractReducer.h"
Install file: "escriptcore/src/AbstractSystemMatrix.h" as "include/escript/AbstractSystemMatrix.h"
Install file: "escriptcore/src/AbstractTransportProblem.h" as "include/escript/AbstractTransportProblem.h"
Install file: "escriptcore/src/ArrayOps.h" as "include/escript/ArrayOps.h"
Install file: "escriptcore/src/Assert.h" as "include/escript/Assert.h"
Install file: "escriptcore/src/BinaryDataReadyOps.h" as "include/escript/BinaryDataReadyOps.h"
Install file: "escriptcore/src/Data.h" as "include/escript/Data.h"
Install file: "escriptcore/src/DataAbstract.h" as "include/escript/DataAbstract.h"
Install file: "escriptcore/src/DataConstant.h" as "include/escript/DataConstant.h"
Install file: "escriptcore/src/DataEmpty.h" as "include/escript/DataEmpty.h"
Install file: "escriptcore/src/DataException.h" as "include/escript/DataException.h"
Install file: "escriptcore/src/DataExpanded.h" as "include/escript/DataExpanded.h"
Install file: "escriptcore/src/DataFactory.h" as "include/escript/DataFactory.h"
Install file: "escriptcore/src/DataLazy.h" as "include/escript/DataLazy.h"
Install file: "escriptcore/src/DataReady.h" as "include/escript/DataReady.h"
Install file: "escriptcore/src/DataTagged.h" as "include/escript/DataTagged.h"
Install file: "escriptcore/src/DataTypes.h" as "include/escript/DataTypes.h"
Install file: "escriptcore/src/DataVector.h" as "include/escript/DataVector.h"
Install file: "escriptcore/src/DataVectorAlt.h" as "include/escript/DataVectorAlt.h"
Install file: "escriptcore/src/DataVectorOps.h" as "include/escript/DataVectorOps.h"
Install file: "escriptcore/src/DataVectorTaipan.h" as "include/escript/DataVectorTaipan.h"
Install file: "escriptcore/src/Distribution.h" as "include/escript/Distribution.h"
Install file: "escriptcore/src/Dodgy.h" as "include/escript/Dodgy.h"
Install file: "escriptcore/src/DomainException.h" as "include/escript/DomainException.h"
Install file: "escriptcore/src/EscriptParams.h" as "include/escript/EscriptParams.h"
Install file: "escriptcore/src/EsysException.h" as "include/escript/EsysException.h"
Install file: "escriptcore/src/EsysMPI.h" as "include/escript/EsysMPI.h"
Install file: "escriptcore/src/ES_optype.h" as "include/escript/ES_optype.h"
Install file: "escriptcore/src/ExceptionTranslators.h" as "include/escript/ExceptionTranslators.h"
Install file: "escriptcore/src/FileWriter.h" as "include/escript/FileWriter.h"
Install file: "escriptcore/src/FunctionSpace.h" as "include/escript/FunctionSpace.h"
Install file: "escriptcore/src/FunctionSpaceException.h" as "include/escript/FunctionSpaceException.h"
Install file: "escriptcore/src/FunctionSpaceFactory.h" as "include/escript/FunctionSpaceFactory.h"
Install file: "escriptcore/src/IndexList.h" as "include/escript/IndexList.h"
Install file: "escriptcore/src/LapackInverseHelper.h" as "include/escript/LapackInverseHelper.h"
Install file: "escriptcore/src/NonReducedVariable.h" as "include/escript/NonReducedVariable.h"
Install file: "escriptcore/src/NullDomain.h" as "include/escript/NullDomain.h"
Install file: "escriptcore/src/MPIDataReducer.h" as "include/escript/MPIDataReducer.h"
Install file: "escriptcore/src/MPIScalarReducer.h" as "include/escript/MPIScalarReducer.h"
Install file: "escriptcore/src/Pointers.h" as "include/escript/Pointers.h"
Install file: "escriptcore/src/Random.h" as "include/escript/Random.h"
Install file: "escriptcore/src/SolverOptions.h" as "include/escript/SolverOptions.h"
Install file: "escriptcore/src/SplitWorld.h" as "include/escript/SplitWorld.h"
Install file: "escriptcore/src/SplitWorldException.h" as "include/escript/SplitWorldException.h"
Install file: "escriptcore/src/SubWorld.h" as "include/escript/SubWorld.h"
Install file: "escriptcore/src/SystemMatrixException.h" as "include/escript/SystemMatrixException.h"
Install file: "escriptcore/src/Taipan.h" as "include/escript/Taipan.h"
Install file: "escriptcore/src/TestDomain.h" as "include/escript/TestDomain.h"
Install file: "escriptcore/src/TransportProblemException.h" as "include/escript/TransportProblemException.h"
Install file: "escriptcore/src/Utils.h" as "include/escript/Utils.h"
Install file: "escriptcore/src/WrappedArray.h" as "include/escript/WrappedArray.h"
Install file: "escriptcore/src/index.h" as "include/escript/index.h"
Install file: "escriptcore/src/pyerr.h" as "include/escript/pyerr.h"
Install file: "escriptcore/src/system_dep.h" as "include/escript/system_dep.h"
Compiling build/posix/escriptcore/src/AbstractContinuousDomain.os
Compiling build/posix/escriptcore/src/AbstractDomain.os
Compiling build/posix/escriptcore/src/AbstractReducer.os
Compiling build/posix/escriptcore/src/AbstractSystemMatrix.os
Compiling build/posix/escriptcore/src/AbstractTransportProblem.os
Compiling build/posix/escriptcore/src/ArrayOps.os
Compiling build/posix/escriptcore/src/BinaryDataReadyOps.os
escriptcore/src/BinaryDataReadyOps.cpp: In instantiation of 'void escript::binaryOpDataReadyHelperEET(escript::DataExpanded&, const escript::DataExpanded&, const escript::DataTagged&, escript::ES_optype) [with ResSCALAR = std::complex<double>; LSCALAR = std::complex<double>; RSCALAR = std::complex<double>]':
escriptcore/src/BinaryDataReadyOps.cpp:344:118: required from here
escriptcore/src/BinaryDataReadyOps.cpp:314:40: error: unused variable 'valcount' [-Werror=unused-variable]
   DataTypes::RealVectorType::size_type valcount=res.getNumDPPSample()*DataTypes::noValues(res.getShape());
                                        ^~~~~~~~
escriptcore/src/BinaryDataReadyOps.cpp: In instantiation of 'void escript::binaryOpDataReadyHelperEET(escript::DataExpanded&, const escript::DataExpanded&, const escript::DataTagged&, escript::ES_optype) [with ResSCALAR = std::complex<double>; LSCALAR = std::complex<double>; RSCALAR = double]':
escriptcore/src/BinaryDataReadyOps.cpp:348:118: required from here
escriptcore/src/BinaryDataReadyOps.cpp:314:40: error: unused variable 'valcount' [-Werror=unused-variable]
escriptcore/src/BinaryDataReadyOps.cpp: In instantiation of 'void escript::binaryOpDataReadyHelperEET(escript::DataExpanded&, const escript::DataExpanded&, const escript::DataTagged&, escript::ES_optype) [with ResSCALAR = std::complex<double>; LSCALAR = double; RSCALAR = std::complex<double>]':
escriptcore/src/BinaryDataReadyOps.cpp:355:118: required from here
escriptcore/src/BinaryDataReadyOps.cpp:314:40: error: unused variable 'valcount' [-Werror=unused-variable]
escriptcore/src/BinaryDataReadyOps.cpp: In instantiation of 'void escript::binaryOpDataReadyHelperEET(escript::DataExpanded&, const escript::DataExpanded&, const escript::DataTagged&, escript::ES_optype) [with ResSCALAR = double; LSCALAR = double; RSCALAR = double]':
escriptcore/src/BinaryDataReadyOps.cpp:359:118: required from here
escriptcore/src/BinaryDataReadyOps.cpp:314:40: error: unused variable 'valcount' [-Werror=unused-variable]
escriptcore/src/BinaryDataReadyOps.cpp: In instantiation of 'void escript::binaryOpDataReadyHelperETE(escript::DataExpanded&, const escript::DataTagged&, const escript::DataExpanded&, escript::ES_optype) [with ResSCALAR = std::complex<double>; LSCALAR = std::complex<double>; RSCALAR = std::complex<double>]':
escriptcore/src/BinaryDataReadyOps.cpp:402:118: required from here
escriptcore/src/BinaryDataReadyOps.cpp:372:40: error: unused variable 'valcount' [-Werror=unused-variable]
   DataTypes::RealVectorType::size_type valcount=res.getNumDPPSample()*DataTypes::noValues(res.getShape());
                                        ^~~~~~~~
escriptcore/src/BinaryDataReadyOps.cpp: In instantiation of 'void escript::binaryOpDataReadyHelperETE(escript::DataExpanded&, const escript::DataTagged&, const escript::DataExpanded&, escript::ES_optype) [with ResSCALAR = std::complex<double>; LSCALAR = std::complex<double>; RSCALAR = double]':
escriptcore/src/BinaryDataReadyOps.cpp:406:118: required from here
escriptcore/src/BinaryDataReadyOps.cpp:372:40: error: unused variable 'valcount' [-Werror=unused-variable]
escriptcore/src/BinaryDataReadyOps.cpp: In instantiation of 'void escript::binaryOpDataReadyHelperETE(escript::DataExpanded&, const escript::DataTagged&, const escript::DataExpanded&, escript::ES_optype) [with ResSCALAR = std::complex<double>; LSCALAR = double; RSCALAR = std::complex<double>]':
escriptcore/src/BinaryDataReadyOps.cpp:413:118: required from here
escriptcore/src/BinaryDataReadyOps.cpp:372:40: error: unused variable 'valcount' [-Werror=unused-variable]
escriptcore/src/BinaryDataReadyOps.cpp: In instantiation of 'void escript::binaryOpDataReadyHelperETE(escript::DataExpanded&, const escript::DataTagged&, const escript::DataExpanded&, escript::ES_optype) [with ResSCALAR = double; LSCALAR = double; RSCALAR = double]':
escriptcore/src/BinaryDataReadyOps.cpp:417:118: required from here
escriptcore/src/BinaryDataReadyOps.cpp:372:40: error: unused variable 'valcount' [-Werror=unused-variable]
cc1plus: all warnings being treated as errors
scons: *** [build/posix/escriptcore/src/BinaryDataReadyOps.os] Error 1
scons: building terminated because of errors.

*** Config Summary (see config.log and <prefix>/lib/buildvars for details) ***
Escript revision -2
  Install prefix: /home/kun/escript
          Python: /usr/bin/python (Version 2.7.13)
           boost: /usr (Version 1.62.0)
           numpy: YES (with headers)
            gmsh: YES, MPI-ENABLED
  Solver library: paso
   Direct solver: NONE
         domains: dudley, finley, ripley, speckley
           weipa: YES
          openmp: YES
            gdal: YES
          netcdf: YES
          pyproj: YES
           scipy: YES
           sympy: YES

  DISABLED features: boomeramg cppunit cuda debug gzip lapack mkl mpi papi parmetis silo trilinos umfpack visit
  Treating warnings as errors

ERROR: build stopped due to errors

what's wrong here? Thanks.

Regards,

Kun

Question information

Language:
English Edit question
Status:
Answered
For:
esys-escript Edit question
Assignee:
No assignee Edit question
Last query:
Last reply:
Revision history for this message
Bob (caltinay) said :
#1

Kun,

This is a known issue which will be fixed in the next release. For now you can workaround by adding

werror=0

either to the scons command line or to your options file scons/templates/vivid_options.py

Revision history for this message
Kun Zeng (zkbread) said :
#2

Hi Caltinay,

Thanks for your suggestion. I add werror=0 into option file and build it. It shows:

DISABLED features: boomeramg cppunit cuda debug gzip lapack mkl mpi papi parmetis silo trilinos umfpack visit
  NOT treating warnings as errors

SUCCESS: build complete

Is this successful?

Regards,
Kun

Revision history for this message
Bob (caltinay) said :
#3

Yes this looks like a successful build.

Can you help with this problem?

Provide an answer of your own, or ask Kun Zeng for more information if necessary.

To post a message you must log in.