skh1 |
September 6, 2019 16:08 |
Build error for OF7 with WM_LABEL_SIZE=64
When I try to compile OF7 with WM_LABEL_SIZE=64, I get a build error while compiling makeFunction1s.C. If I change WM_LALEL_SIZE=32 in my prefs.sh file then it builds without any issues.
Here is the command that causes the error:
Quote:
icpc -std=c++11 -fp-trap=common -fp-model precise -Dlinux64 -DWM_ARCH_OPTION=64 -DWM_DP -DWM_LABEL_SIZE=64 -Wall -Wextra -Wnon-virtual-dtor -Wno-unused-parameter -Wno-invalid-offsetof -diag-disable 327,654,1125,1292,2289,2304,11062,11074,11076 -O3 -DNoRepository -I/apps/openfoam/intel/18.0/openmpi/3.1-hpcx/7.0/OpenFOAM-7/platforms/linux64IccDPInt64Opt/src/OpenFOAM -IlnInclude -I. -I/apps/openfoam/intel/18.0/openmpi/3.1-hpcx/7.0/OpenFOAM-7/src/OpenFOAM/lnInclude -I/apps/openfoam/intel/18.0/openmpi/3.1-hpcx/7.0/OpenFOAM-7/src/OSspecific/POSIX/lnInclude -fPIC -c primitives/functions/Function1/makeFunction1s.C -o /apps/openfoam/intel/18.0/openmpi/3.1-hpcx/7.0/OpenFOAM-7/platforms/linux64IccDPInt64Opt/src/OpenFOAM/primitives/functions/Function1/makeFunction1s.o
|
And the error it produces is:
Quote:
lnInclude/dictionaryTemplates.C(172): error: more than one instance of overloaded function "Foam::writeEntry" matches the argument list:
function "Foam::writeEntry(Foam::Ostream &, Foam::label={int64_t={long}})"
function "Foam::writeEntry(Foam::Ostream &, Foam::floatScalar={float})"
function "Foam::writeEntry(Foam::Ostream &, Foam::doubleScalar={double})"
function "Foam::writeEntry(Foam::Ostream &, Foam::longDoubleScalar={long double})"
argument types are: (Foam::Ostream, const bool)
writeEntry(os, value);
^
lnInclude/dimensionedType.C(600): note: this candidate was rejected because function is not visible
void Foam::writeEntry(Ostream& os, const dimensioned<Type>& dt)
^
lnInclude/dimensionSet.H(433): note: this candidate was rejected because function is not visible
void writeEntry(Ostream& os, const dimensionSet& value);
^
lnInclude/Function1.C(159): note: this candidate was rejected because function is not visible
void Foam::writeEntry(Ostream& os, const Function1<Type>& f1)
^
lnInclude/Field.C(640): note: this candidate was rejected because function is not visible
void Foam::writeEntry(Ostream& os, const Field<Type>& f)
^
lnInclude/dictionaryTemplates.C(164): note: this candidate was rejected because mismatch in count of arguments
void Foam::writeEntry
^
lnInclude/dictionary.H(613): note: this candidate was rejected because arguments do not match
void writeEntry(Ostream& os, const dictionary& dict);
^
lnInclude/VectorSpace.C(79): note: this candidate was rejected because at least one template argument could not be deduced
void Foam::writeEntry(Ostream& os, const VectorSpace<Form, Cmpt, Ncmpts>& value)
^
lnInclude/UPtrListIO.C(32): note: this candidate was rejected because at least one template argument could not be deduced
void Foam::writeEntry(Ostream& os, const UPtrList<T>& l)
^
lnInclude/FixedListIO.C(35): note: this candidate was rejected because at least one template argument could not be deduced
void Foam::writeEntry(Ostream& os, const FixedList<T, Size>& l)
^
lnInclude/UListIO.C(86): note: this candidate was rejected because at least one template argument could not be deduced
void Foam::writeEntry(Ostream& os, const UList<T>& l)
^
lnInclude/HashTableIO.C(96): note: this candidate was rejected because at least one template argument could not be deduced
void Foam::writeEntry(Ostream& os, const HashTable<T, Key, Hash>& ht)
^
detected during:
instantiation of "void Foam::writeEntry(Foam::Ostream &, const Foam::word &, const EntryType &) [with EntryType=bool]" at line 276 of "lnInclude/CSV.C"
instantiation of "void Foam::Function1Types::CSV<Type>::writeData(Foam::O stream &) const [with Type=Foam::scalar={Foam::doubleScalar={double}}]" at line 228 of "lnInclude/CSV.C"
instantiation of "Foam::Function1Types::CSV<Type>::CSV(const Foam::word &, const Foam::dictionary &) [with Type=Foam::scalar={Foam::doubleScalar={double}}]" at line 115 of "lnInclude/Function1.C"
instantiation of "Foam::FieldFunction1<Function1Type>::FieldFunctio n1(const Foam::word &, const Foam::dictionary &) [with Function1Type=Foam::Function1Types::CSV<Foam::scal ar={Foam::doubleScalar={double}}>]" at line 83 of "lnInclude/Function1.H"
instantiation of "Foam::autoPtr<Foam::Function1<Type>> Foam::Function1<Type>::adddictionaryConstructorToT able<Function1Type>::New(const Foam::word &, const Foam::dictionary &) [with Type=Foam::scalar={Foam::doubleScalar={double}}, Function1Type=Foam::FieldFunction1<Foam::Function1 Types::CSV<Foam::scalar={Foam::doubleScalar={doubl e}}>>]" at line 83 of "lnInclude/Function1.H"
instantiation of "Foam::Function1<Type>::adddictionaryConstructorTo Table<Function1Type>::adddictionaryConstructorToTa ble(const Foam::word &) [with Type=Foam::scalar={Foam::doubleScalar={double}}, Function1Type=Foam::FieldFunction1<Foam::Function1 Types::CSV<Foam::scalar={Foam::doubleScalar={doubl e}}>>]" at line 61 of "primitives/functions/Function1/makeFunction1s.C"
compilation aborted for primitives/functions/Function1/makeFunction1s.C (code 2)
make: *** [/apps/openfoam/intel/18.0/openmpi/3.1-hpcx/7.0/OpenFOAM-7/platforms/linux64IccDPInt64Opt/src/OpenFOAM/primitives/functions/Function1/makeFunction1s.o] Error 2
|
|