CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Software User Forums > OpenFOAM > OpenFOAM Installation

[OpenFOAM.com] Build error for OF7 with WM_LABEL_SIZE=64

Register Blogs Members List Search Today's Posts Mark Forums Read

Like Tree1Likes
  • 1 Post By skh1

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   September 6, 2019, 17:08
Default Build error for OF7 with WM_LABEL_SIZE=64
  #1
New Member
 
Join Date: Sep 2019
Posts: 3
Rep Power: 2
skh1 is on a distinguished road
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 is offline   Reply With Quote

Old   September 6, 2019, 17:15
Default
  #2
New Member
 
Join Date: Sep 2019
Posts: 3
Rep Power: 2
skh1 is on a distinguished road
I accidentally prefixed the title with OpenFOAM.com. Just to be clear, I am trying to install OpenFOAM 7.0 from OpenFOAM.org.
skh1 is offline   Reply With Quote

Old   September 7, 2019, 05:44
Default
  #3
Member
 
Glenn Carlson
Join Date: Oct 2012
Location: US
Posts: 41
Rep Power: 9
gcengineer is on a distinguished road
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?
gcengineer is offline   Reply With Quote

Old   September 9, 2019, 14:24
Default
  #4
New Member
 
Join Date: Sep 2019
Posts: 3
Rep Power: 2
skh1 is on a distinguished road
I was not using the patched release of OF7. Updating to the latest release resolved the issue.

Thanks!
gcengineer likes this.
skh1 is offline   Reply With Quote

Reply

Tags
openfoam, openfoam 7

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
SU2 Parallel Build Install Issue jclegg SU2 1 December 10, 2018 06:16
Building from Source on Windows using Cygwin64 ericthefatguy SU2 2 May 12, 2015 19:23
SU2 3.0 build failure waku2005 SU2 Installation 4 January 24, 2014 13:40
Hardware build review/advise for student desktop AerE Hardware 10 July 5, 2013 07:03
64bitrhel5 OF installation instructions mirko OpenFOAM Installation 2 August 12, 2008 19:07


All times are GMT -4. The time now is 14:12.