View Issue Details

IDProjectCategoryView StatusLast Update
0002357OpenFOAMBugpublic2016-11-28 10:28
ReporterSvensen Assigned Tohenry  
PrioritynormalSeverityminorReproducibilityalways
Status closedResolutionduplicate 
PlatformGNU/LinuxOSUbuntuOS Version14.04
Product Versiondev 
Summary0002357: Cannot compile OpenFOAM-dev with Intel compiler
DescriptionI want to compile OpenFOAM-dev with Intel compiler. Therefore I've changed WM_COMPILER to Icc in ./etc/bashrc file.

During execution of ./Allwmake script the following error occurred:

sergey@sergey-HP:~/intel/OpenFOAM-dev$ ./Allwmake -j
Compiling enabled on 12 cores
Allwmake /home/sergey/intel/OpenFOAM-dev
make: Nothing to be done for `all'.

========================================
Start ThirdParty Allwmake
========================================

========================================
Build MPI libraries if required

    have OPENMPI shared library (openmpi-1.10.2)

========================================
Build Scotch decomposition library scotch_6.0.3
    /home/sergey/intel/ThirdParty-dev/platforms/linux64IccDPInt32/scotch_6.0.3
    scotch header in /home/sergey/intel/ThirdParty-dev/platforms/linux64IccDPInt32/scotch_6.0.3/include
    scotch libs in /home/sergey/intel/ThirdParty-dev/platforms/linux64IccDPInt32/lib

========================================
Build PTScotch decomposition library scotch_6.0.3 (uses MPI)
    /home/sergey/intel/ThirdParty-dev/platforms/linux64IccDPInt32/scotch_6.0.3

    ptscotch header in /home/sergey/intel/ThirdParty-dev/platforms/linux64IccDPInt32/scotch_6.0.3/include/openmpi-1.10.2
    ptscotch libs in /home/sergey/intel/ThirdParty-dev/platforms/linux64IccDPInt32/lib/openmpi-1.10.2

========================================
Build Metis decomposition
    optional component Metis was not found
========================================
Build CGAL
    optional component was not found

========================================
Done ThirdParty Allwmake
========================================

Allwmake src
version changed from previous build
removing .o files corresponding to OpenFOAM/global/global.o ...
Allwmake src/Pstream
wmake dummy
wmake mpi
Allwmake libo src/OSspecific/POSIX
wmake libo .
icpc -std=c++11 -fp-trap=common -fp-model precise -Dlinux64 -DWM_ARCH_OPTION=64 -DWM_DP -DWM_LABEL_SIZE=32 -Wall -Wextra -Wnon-virtual-dtor -Wno-unused-parameter -Wno-invalid-offsetof -diag-disable 327,654,1125,2289,2304,11062,11074,11076 -O3 -xHost -DNoRepository -IlnInclude -I. -I/home/sergey/intel/OpenFOAM-dev/src/OpenFOAM/lnInclude -I/home/sergey/intel/OpenFOAM-dev/src/OSspecific/POSIX/lnInclude -fPIC -c signals/sigStopAtWriteNow.C -o /home/sergey/intel/OpenFOAM-dev/platforms/linux64IccDPInt32Opt/src/OSspecific/POSIX/signals/sigStopAtWriteNow.o
icpc -std=c++11 -fp-trap=common -fp-model precise -Dlinux64 -DWM_ARCH_OPTION=64 -DWM_DP -DWM_LABEL_SIZE=32 -Wall -Wextra -Wnon-virtual-dtor -Wno-unused-parameter -Wno-invalid-offsetof -diag-disable 327,654,1125,2289,2304,11062,11074,11076 -O3 -xHost -DNoRepository -IlnInclude -I. -I/home/sergey/intel/OpenFOAM-dev/src/OpenFOAM/lnInclude -I/home/sergey/intel/OpenFOAM-dev/src/OSspecific/POSIX/lnInclude -fPIC -c signals/sigWriteNow.C -o /home/sergey/intel/OpenFOAM-dev/platforms/linux64IccDPInt32Opt/src/OSspecific/POSIX/signals/sigWriteNow.o
In file included from /home/sergey/intel/OpenFOAM-dev/src/OpenFOAM/lnInclude/MatrixSpace.H(322),
                 from /home/sergey/intel/OpenFOAM-dev/src/OpenFOAM/lnInclude/Tensor.H(45),
                 from /home/sergey/intel/OpenFOAM-dev/src/OpenFOAM/lnInclude/SymmTensorI.H(27),
                 from /home/sergey/intel/OpenFOAM-dev/src/OpenFOAM/lnInclude/SymmTensor.H(155),
                 from /home/sergey/intel/OpenFOAM-dev/src/OpenFOAM/lnInclude/symmTensor.H(38),
                 from /home/sergey/intel/OpenFOAM-dev/src/OpenFOAM/lnInclude/fieldTypes.H(37),
                 from /home/sergey/intel/OpenFOAM-dev/src/OpenFOAM/lnInclude/flipOp.H(40),
                 from /home/sergey/intel/OpenFOAM-dev/src/OpenFOAM/lnInclude/mapDistributeBaseTemplates.C(29),
                 from /home/sergey/intel/OpenFOAM-dev/src/OpenFOAM/lnInclude/mapDistributeBase.H(488),
                 from /home/sergey/intel/OpenFOAM-dev/src/OpenFOAM/lnInclude/Field.C(30),
                 from /home/sergey/intel/OpenFOAM-dev/src/OpenFOAM/lnInclude/Field.H(408),
                 from /home/sergey/intel/OpenFOAM-dev/src/OpenFOAM/lnInclude/scalarField.H(38),
                 from /home/sergey/intel/OpenFOAM-dev/src/OpenFOAM/lnInclude/dimensionSet.H(46),
                 from /home/sergey/intel/OpenFOAM-dev/src/OpenFOAM/lnInclude/dimensionedType.H(40),
                 from /home/sergey/intel/OpenFOAM-dev/src/OpenFOAM/lnInclude/dimensionedScalar.H(38),
                 from /home/sergey/intel/OpenFOAM-dev/src/OpenFOAM/lnInclude/TimeState.H(38),
                 from /home/sergey/intel/OpenFOAM-dev/src/OpenFOAM/lnInclude/Time.H(47),
                 from signals/sigWriteNow.C(30):
/home/sergey/intel/OpenFOAM-dev/src/OpenFOAM/lnInclude/MatrixSpaceI.H(494): warning #2357: "Foam::MatrixSpace<Form2, Cmpt, SubTensor::mRows, SubTensor::nCols>" cannot be specified in a template member definition -- "Foam::MatrixSpace<Form, Cmpt, Mrows, Ncols>" assumed instead
      const MatrixSpace<Form2, Cmpt, SubTensor::mRows, SubTensor::nCols>& matrix
            ^

In file included from /home/sergey/intel/OpenFOAM-dev/src/OpenFOAM/lnInclude/MatrixSpace.H(322),
                 from /home/sergey/intel/OpenFOAM-dev/src/OpenFOAM/lnInclude/Tensor.H(45),
                 from /home/sergey/intel/OpenFOAM-dev/src/OpenFOAM/lnInclude/SymmTensorI.H(27),
                 from /home/sergey/intel/OpenFOAM-dev/src/OpenFOAM/lnInclude/SymmTensor.H(155),
                 from /home/sergey/intel/OpenFOAM-dev/src/OpenFOAM/lnInclude/symmTensor.H(38),
                 from /home/sergey/intel/OpenFOAM-dev/src/OpenFOAM/lnInclude/fieldTypes.H(37),
                 from /home/sergey/intel/OpenFOAM-dev/src/OpenFOAM/lnInclude/flipOp.H(40),
                 from /home/sergey/intel/OpenFOAM-dev/src/OpenFOAM/lnInclude/mapDistributeBaseTemplates.C(29),
                 from /home/sergey/intel/OpenFOAM-dev/src/OpenFOAM/lnInclude/mapDistributeBase.H(488),
                 from /home/sergey/intel/OpenFOAM-dev/src/OpenFOAM/lnInclude/Field.C(30),
                 from /home/sergey/intel/OpenFOAM-dev/src/OpenFOAM/lnInclude/Field.H(408),
                 from /home/sergey/intel/OpenFOAM-dev/src/OpenFOAM/lnInclude/scalarField.H(38),
                 from /home/sergey/intel/OpenFOAM-dev/src/OpenFOAM/lnInclude/dimensionSet.H(46),
                 from /home/sergey/intel/OpenFOAM-dev/src/OpenFOAM/lnInclude/dimensionedType.H(40),
                 from /home/sergey/intel/OpenFOAM-dev/src/OpenFOAM/lnInclude/dimensionedScalar.H(38),
                 from /home/sergey/intel/OpenFOAM-dev/src/OpenFOAM/lnInclude/TimeState.H(38),
                 from /home/sergey/intel/OpenFOAM-dev/src/OpenFOAM/lnInclude/Time.H(47),
                 from signals/sigWriteNow.C(30):
/home/sergey/intel/OpenFOAM-dev/src/OpenFOAM/lnInclude/MatrixSpaceI.H(492): error: no instance of overloaded function "Foam::MatrixSpace<Form, Cmpt, Mrows, Ncols>::Block<SubTensor, BRowStart, BColStart>::operator=" matches the specified type
  operator=
  ^

In file included from /home/sergey/intel/OpenFOAM-dev/src/OpenFOAM/lnInclude/MatrixSpace.H(322),
                 from /home/sergey/intel/OpenFOAM-dev/src/OpenFOAM/lnInclude/Tensor.H(45),
                 from /home/sergey/intel/OpenFOAM-dev/src/OpenFOAM/lnInclude/SymmTensorI.H(27),
                 from /home/sergey/intel/OpenFOAM-dev/src/OpenFOAM/lnInclude/SymmTensor.H(155),
                 from /home/sergey/intel/OpenFOAM-dev/src/OpenFOAM/lnInclude/symmTensor.H(38),
                 from /home/sergey/intel/OpenFOAM-dev/src/OpenFOAM/lnInclude/fieldTypes.H(37),
                 from /home/sergey/intel/OpenFOAM-dev/src/OpenFOAM/lnInclude/flipOp.H(40),
                 from /home/sergey/intel/OpenFOAM-dev/src/OpenFOAM/lnInclude/mapDistributeBaseTemplates.C(29),
                 from /home/sergey/intel/OpenFOAM-dev/src/OpenFOAM/lnInclude/mapDistributeBase.H(488),
                 from /home/sergey/intel/OpenFOAM-dev/src/OpenFOAM/lnInclude/Field.C(30),
                 from /home/sergey/intel/OpenFOAM-dev/src/OpenFOAM/lnInclude/Field.H(408),
                 from /home/sergey/intel/OpenFOAM-dev/src/OpenFOAM/lnInclude/scalarField.H(38),
                 from /home/sergey/intel/OpenFOAM-dev/src/OpenFOAM/lnInclude/dimensionSet.H(46),
                 from /home/sergey/intel/OpenFOAM-dev/src/OpenFOAM/lnInclude/dimensionedType.H(40),
                 from /home/sergey/intel/OpenFOAM-dev/src/OpenFOAM/lnInclude/dimensionedScalar.H(38),
                 from /home/sergey/intel/OpenFOAM-dev/src/OpenFOAM/lnInclude/TimeState.H(38),
                 from /home/sergey/intel/OpenFOAM-dev/src/OpenFOAM/lnInclude/Time.H(47),
                 from signals/sigStopAtWriteNow.C(30):
/home/sergey/intel/OpenFOAM-dev/src/OpenFOAM/lnInclude/MatrixSpaceI.H(494): warning #2357: "Foam::MatrixSpace<Form2, Cmpt, SubTensor::mRows, SubTensor::nCols>" cannot be specified in a template member definition -- "Foam::MatrixSpace<Form, Cmpt, Mrows, Ncols>" assumed instead
      const MatrixSpace<Form2, Cmpt, SubTensor::mRows, SubTensor::nCols>& matrix
            ^

In file included from /home/sergey/intel/OpenFOAM-dev/src/OpenFOAM/lnInclude/MatrixSpace.H(322),
                 from /home/sergey/intel/OpenFOAM-dev/src/OpenFOAM/lnInclude/Tensor.H(45),
                 from /home/sergey/intel/OpenFOAM-dev/src/OpenFOAM/lnInclude/SymmTensorI.H(27),
                 from /home/sergey/intel/OpenFOAM-dev/src/OpenFOAM/lnInclude/SymmTensor.H(155),
                 from /home/sergey/intel/OpenFOAM-dev/src/OpenFOAM/lnInclude/symmTensor.H(38),
                 from /home/sergey/intel/OpenFOAM-dev/src/OpenFOAM/lnInclude/fieldTypes.H(37),
                 from /home/sergey/intel/OpenFOAM-dev/src/OpenFOAM/lnInclude/flipOp.H(40),
                 from /home/sergey/intel/OpenFOAM-dev/src/OpenFOAM/lnInclude/mapDistributeBaseTemplates.C(29),
                 from /home/sergey/intel/OpenFOAM-dev/src/OpenFOAM/lnInclude/mapDistributeBase.H(488),
                 from /home/sergey/intel/OpenFOAM-dev/src/OpenFOAM/lnInclude/Field.C(30),
                 from /home/sergey/intel/OpenFOAM-dev/src/OpenFOAM/lnInclude/Field.H(408),
                 from /home/sergey/intel/OpenFOAM-dev/src/OpenFOAM/lnInclude/scalarField.H(38),
                 from /home/sergey/intel/OpenFOAM-dev/src/OpenFOAM/lnInclude/dimensionSet.H(46),
                 from /home/sergey/intel/OpenFOAM-dev/src/OpenFOAM/lnInclude/dimensionedType.H(40),
                 from /home/sergey/intel/OpenFOAM-dev/src/OpenFOAM/lnInclude/dimensionedScalar.H(38),
                 from /home/sergey/intel/OpenFOAM-dev/src/OpenFOAM/lnInclude/TimeState.H(38),
                 from /home/sergey/intel/OpenFOAM-dev/src/OpenFOAM/lnInclude/Time.H(47),
                 from signals/sigStopAtWriteNow.C(30):
/home/sergey/intel/OpenFOAM-dev/src/OpenFOAM/lnInclude/MatrixSpaceI.H(492): error: no instance of overloaded function "Foam::MatrixSpace<Form, Cmpt, Mrows, Ncols>::Block<SubTensor, BRowStart, BColStart>::operator=" matches the specified type
  operator=
  ^

compilation aborted for signals/sigWriteNow.C (code 2)
compilation aborted for signals/sigStopAtWriteNow.C (code 2)
make: *** [/home/sergey/intel/OpenFOAM-dev/platforms/linux64IccDPInt32Opt/src/OSspecific/POSIX/signals/sigWriteNow.o] Error 2
make: *** Waiting for unfinished jobs....
make: *** [/home/sergey/intel/OpenFOAM-dev/platforms/linux64IccDPInt32Opt/src/OSspecific/POSIX/signals/sigStopAtWriteNow.o] Error 2

What can be wrong in this compilation ?
Thanks
Tagscompilation, icc

Activities

henry

2016-11-28 10:16

manager   ~0007351

Which version of icpc are you using?

Svensen

2016-11-28 10:23

reporter   ~0007352

sergey@sergey-HP:/opt/intel/compilers_and_libraries/linux/bin$ icpc --version
icpc (ICC) 17.0.0 20160721
Copyright (C) 1985-2016 Intel Corporation. All rights reserved.

henry

2016-11-28 10:28

manager   ~0007353

http://bugs.openfoam.org/view.php?id=2281

Issue History

Date Modified Username Field Change
2016-11-28 10:07 Svensen New Issue
2016-11-28 10:07 Svensen Tag Attached: icc
2016-11-28 10:07 Svensen Tag Attached: compilation
2016-11-28 10:16 henry Note Added: 0007351
2016-11-28 10:23 Svensen Note Added: 0007352
2016-11-28 10:28 henry Assigned To => henry
2016-11-28 10:28 henry Status new => closed
2016-11-28 10:28 henry Resolution open => duplicate
2016-11-28 10:28 henry Note Added: 0007353