CFD Online Discussion Forums

CFD Online Discussion Forums (https://www.cfd-online.com/Forums/)
-   OpenFOAM Installation (https://www.cfd-online.com/Forums/openfoam-installation/)
-   -   [OpenFOAM.com] Build error for OF7 with WM_LABEL_SIZE=64 (https://www.cfd-online.com/Forums/openfoam-installation/220432-build-error-of7-wm_label_size-64-a.html)

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

skh1 September 6, 2019 16:15

I accidentally prefixed the title with OpenFOAM.com. Just to be clear, I am trying to install OpenFOAM 7.0 from OpenFOAM.org.

gcengineer September 7, 2019 04:44

What operating system are you running under?


What version of OpenFOAM7 are you using? Are you using the patch releases of OF7 that were released on Sep 2?



What instructions are you following to build OF7?

skh1 September 9, 2019 13:24

I was not using the patched release of OF7. Updating to the latest release resolved the issue.

Thanks!

hy1112006 March 23, 2020 08:50

Yes, you are right! I met the same issue but solve it by downloading the



The Patch Releases of OpenFOAM 7 are: 20190902, verison, and there is no more errors.


All times are GMT -4. The time now is 13:32.