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

[OpenFOAM.com] v1712 build error

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

Like Tree5Likes
  • 1 Post By KTG
  • 1 Post By zhouzun
  • 2 Post By AshwaniAssam
  • 1 Post By nimasam

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   June 19, 2018, 00:31
Default v1712 build error
  #1
KTG
Senior Member
 
Abe
Join Date: May 2016
Posts: 119
Rep Power: 9
KTG is on a distinguished road
Hi guys,


I am trying to build openFoam on Fedora 28. I am getting some warnings, which end in an error 1 (I shortened it so that I could post):


Code:

========================================
wmake libo (POSIX)
Making dependency list for source file printStack.C
Making dependency list for source file fileMonitor.C
Making dependency list for source file memInfo.C
Making dependency list for source file cpuInfo.C
Making dependency list for source file clockTime.C
Making dependency list for source file cpuTime.C
Making dependency list for source file POSIX.C
Making dependency list for source file fileStat.C
Making dependency list for source file timer.C
Making dependency list for source file regExp.C
Making dependency list for source file sigWriteNow.C
Making dependency list for source file sigStopAtWriteNow.C
Making dependency list for source file sigQuit.C
Making dependency list for source file sigInt.C
Making dependency list for source file sigSegv.C
Making dependency list for source file sigFpe.C
g++ -std=c++11 -m64 -DOPENFOAM_PLUS=1712 -Dlinux64 -DWM_ARCH_OPTION=64 -DWM_DP -DWM_LABEL_SIZE=32 -Wall -Wextra -Wold-style-cast -Wnon-virtual-dtor -Wno-unused-parameter -Wno-invalid-offsetof -Wno-attributes -O3  -DNoRepository -ftemplate-depth-100 -DFOAM_USE_INOTIFY -IlnInclude -I. -I/home/ef/OpenFOAM/OpenFOAM-v1712/src/OpenFOAM/lnInclude -I/home/ef/OpenFOAM/OpenFOAM-v1712/src/OSspecific/POSIX/lnInclude   -fPIC -c signals/sigFpe.C -o /home/ef/OpenFOAM/OpenFOAM-v1712/build/linux64GccDPInt32Opt/src/OSspecific/POSIX/signals/sigFpe.o
g++ -std=c++11 -m64 -DOPENFOAM_PLUS=1712 -Dlinux64 -DWM_ARCH_OPTION=64 -DWM_DP -DWM_LABEL_SIZE=32 -Wall -Wextra -Wold-style-cast -Wnon-virtual-dtor -Wno-unused-parameter -Wno-invalid-offsetof -Wno-attributes -O3  -DNoRepository -ftemplate-depth-100 -DFOAM_USE_INOTIFY -IlnInclude -I. -I/home/ef/OpenFOAM/OpenFOAM-v1712/src/OpenFOAM/lnInclude -I/home/ef/OpenFOAM/OpenFOAM-v1712/src/OSspecific/POSIX/lnInclude   -fPIC -c signals/sigSegv.C -o /home/ef/OpenFOAM/OpenFOAM-v1712/build/linux64GccDPInt32Opt/src/OSspecific/POSIX/signals/sigSegv.o
g++ -std=c++11 -m64 -DOPENFOAM_PLUS=1712 -Dlinux64 -DWM_ARCH_OPTION=64 -DWM_DP -DWM_LABEL_SIZE=32 -Wall -Wextra -Wold-style-cast -Wnon-virtual-dtor -Wno-unused-parameter -Wno-invalid-offsetof -Wno-attributes -O3  -DNoRepository -ftemplate-depth-100 -DFOAM_USE_INOTIFY -IlnInclude -I. -I/home/ef/OpenFOAM/OpenFOAM-v1712/src/OpenFOAM/lnInclude -I/home/ef/OpenFOAM/OpenFOAM-v1712/src/OSspecific/POSIX/lnInclude   -fPIC -c signals/sigInt.C -o /home/ef/OpenFOAM/OpenFOAM-v1712/build/linux64GccDPInt32Opt/src/OSspecific/POSIX/signals/sigInt.o
g++ -std=c++11 -m64 -DOPENFOAM_PLUS=1712 -Dlinux64 -DWM_ARCH_OPTION=64 -DWM_DP -DWM_LABEL_SIZE=32 -Wall -Wextra -Wold-style-cast -Wnon-virtual-dtor -Wno-unused-parameter -Wno-invalid-offsetof -Wno-attributes -O3  -DNoRepository -ftemplate-depth-100 -DFOAM_USE_INOTIFY -IlnInclude -I. -I/home/ef/OpenFOAM/OpenFOAM-v1712/src/OpenFOAM/lnInclude -I/home/ef/OpenFOAM/OpenFOAM-v1712/src/OSspecific/POSIX/lnInclude   -fPIC -c signals/sigQuit.C -o /home/ef/OpenFOAM/OpenFOAM-v1712/build/linux64GccDPInt32Opt/src/OSspecific/POSIX/signals/sigQuit.o
g++ -std=c++11 -m64 -DOPENFOAM_PLUS=1712 -Dlinux64 -DWM_ARCH_OPTION=64 -DWM_DP -DWM_LABEL_SIZE=32 -Wall -Wextra -Wold-style-cast -Wnon-virtual-dtor -Wno-unused-parameter -Wno-invalid-offsetof -Wno-attributes -O3  -DNoRepository -ftemplate-depth-100 -DFOAM_USE_INOTIFY -IlnInclude -I. -I/home/ef/OpenFOAM/OpenFOAM-v1712/src/OpenFOAM/lnInclude -I/home/ef/OpenFOAM/OpenFOAM-v1712/src/OSspecific/POSIX/lnInclude   -fPIC -c signals/sigStopAtWriteNow.C -o /home/ef/OpenFOAM/OpenFOAM-v1712/build/linux64GccDPInt32Opt/src/OSspecific/POSIX/signals/sigStopAtWriteNow.o
g++ -std=c++11 -m64 -DOPENFOAM_PLUS=1712 -Dlinux64 -DWM_ARCH_OPTION=64 -DWM_DP -DWM_LABEL_SIZE=32 -Wall -Wextra -Wold-style-cast -Wnon-virtual-dtor -Wno-unused-parameter -Wno-invalid-offsetof -Wno-attributes -O3  -DNoRepository -ftemplate-depth-100 -DFOAM_USE_INOTIFY -IlnInclude -I. -I/home/ef/OpenFOAM/OpenFOAM-v1712/src/OpenFOAM/lnInclude -I/home/ef/OpenFOAM/OpenFOAM-v1712/src/OSspecific/POSIX/lnInclude   -fPIC -c signals/sigWriteNow.C -o /home/ef/OpenFOAM/OpenFOAM-v1712/build/linux64GccDPInt32Opt/src/OSspecific/POSIX/signals/sigWriteNow.o
g++ -std=c++11 -m64 -DOPENFOAM_PLUS=1712 -Dlinux64 -DWM_ARCH_OPTION=64 -DWM_DP -DWM_LABEL_SIZE=32 -Wall -Wextra -Wold-style-cast -Wnon-virtual-dtor -Wno-unused-parameter -Wno-invalid-offsetof -Wno-attributes -O3  -DNoRepository -ftemplate-depth-100 -DFOAM_USE_INOTIFY -IlnInclude -I. -I/home/ef/OpenFOAM/OpenFOAM-v1712/src/OpenFOAM/lnInclude -I/home/ef/OpenFOAM/OpenFOAM-v1712/src/OSspecific/POSIX/lnInclude   -fPIC -c regExp.C -o /home/ef/OpenFOAM/OpenFOAM-v1712/build/linux64GccDPInt32Opt/src/OSspecific/POSIX/regExp.o
g++ -std=c++11 -m64 -DOPENFOAM_PLUS=1712 -Dlinux64 -DWM_ARCH_OPTION=64 -DWM_DP -DWM_LABEL_SIZE=32 -Wall -Wextra -Wold-style-cast -Wnon-virtual-dtor -Wno-unused-parameter -Wno-invalid-offsetof -Wno-attributes -O3  -DNoRepository -ftemplate-depth-100 -DFOAM_USE_INOTIFY -IlnInclude -I. -I/home/ef/OpenFOAM/OpenFOAM-v1712/src/OpenFOAM/lnInclude -I/home/ef/OpenFOAM/OpenFOAM-v1712/src/OSspecific/POSIX/lnInclude   -fPIC -c timer.C -o /home/ef/OpenFOAM/OpenFOAM-v1712/build/linux64GccDPInt32Opt/src/OSspecific/POSIX/timer.o
g++ -std=c++11 -m64 -DOPENFOAM_PLUS=1712 -Dlinux64 -DWM_ARCH_OPTION=64 -DWM_DP -DWM_LABEL_SIZE=32 -Wall -Wextra -Wold-style-cast -Wnon-virtual-dtor -Wno-unused-parameter -Wno-invalid-offsetof -Wno-attributes -O3  -DNoRepository -ftemplate-depth-100 -DFOAM_USE_INOTIFY -IlnInclude -I. -I/home/ef/OpenFOAM/OpenFOAM-v1712/src/OpenFOAM/lnInclude -I/home/ef/OpenFOAM/OpenFOAM-v1712/src/OSspecific/POSIX/lnInclude   -fPIC -c fileStat.C -o /home/ef/OpenFOAM/OpenFOAM-v1712/build/linux64GccDPInt32Opt/src/OSspecific/POSIX/fileStat.o
In file included from /home/ef/OpenFOAM/OpenFOAM-v1712/src/OpenFOAM/lnInclude/token.H:46,
                 from /home/ef/OpenFOAM/OpenFOAM-v1712/src/OpenFOAM/lnInclude/Istream.H:47,
                 from /home/ef/OpenFOAM/OpenFOAM-v1712/src/OpenFOAM/lnInclude/ISstream.H:39,
                 from /home/ef/OpenFOAM/OpenFOAM-v1712/src/OpenFOAM/lnInclude/IOstreams.H:38,
                 from fileStat.C:27:
/home/ef/OpenFOAM/OpenFOAM-v1712/src/OpenFOAM/lnInclude/typeInfo.H: In instantiation of ‘To& Foam::dynamicCast(From&) [with To = Foam::token::Compound<Foam::List<int> >; From = Foam::token::compound]’:
/home/ef/OpenFOAM/OpenFOAM-v1712/src/OpenFOAM/lnInclude/FixedListIO.C:173:13:   required from ‘Foam::Istream& Foam::operator>>(Foam::Istream&, Foam::FixedList<T, Size>&) [with T = int; unsigned int Size = 13]’
/home/ef/OpenFOAM/OpenFOAM-v1712/src/OpenFOAM/lnInclude/FixedListIO.C:152:15:   required from ‘Foam::FixedList<T, Size>::FixedList(Foam::Istream&) [with T = int; unsigned int Size = 13]’
fileStat.C:114:33:   required from here
/home/ef/OpenFOAM/OpenFOAM-v1712/src/OpenFOAM/lnInclude/typeInfo.H:91:5: warning: catching polymorphic type ‘class std::bad_cast’ by value [-Wcatch-value=]
     catch (std::bad_cast)
     ^~~~~
g++ -std=c++11 -m64 -DOPENFOAM_PLUS=1712 -Dlinux64 -DWM_ARCH_OPTION=64 -DWM_DP -DWM_LABEL_SIZE=32 -Wall -Wextra -Wold-style-cast -Wnon-virtual-dtor -Wno-unused-parameter -Wno-invalid-offsetof -Wno-attributes -O3  -DNoRepository -ftemplate-depth-100 -DFOAM_USE_INOTIFY -IlnInclude -I. -I/home/ef/OpenFOAM/OpenFOAM-v1712/src/OpenFOAM/lnInclude -I/home/ef/OpenFOAM/OpenFOAM-v1712/src/OSspecific/POSIX/lnInclude   -fPIC -c POSIX.C -o /home/ef/OpenFOAM/OpenFOAM-v1712/build/linux64GccDPInt32Opt/src/OSspecific/POSIX/POSIX.o
g++ -std=c++11 -m64 -DOPENFOAM_PLUS=1712 -Dlinux64 -DWM_ARCH_OPTION=64 -DWM_DP -DWM_LABEL_SIZE=32 -Wall -Wextra -Wold-style-cast -Wnon-virtual-dtor -Wno-unused-parameter -Wno-invalid-offsetof -Wno-attributes -O3  -DNoRepository -ftemplate-depth-100 -DFOAM_USE_INOTIFY -IlnInclude -I. -I/home/ef/OpenFOAM/OpenFOAM-v1712/src/OpenFOAM/lnInclude -I/home/ef/OpenFOAM/OpenFOAM-v1712/src/OSspecific/POSIX/lnInclude   -fPIC -c cpuTime/cpuTime.C -o /home/ef/OpenFOAM/OpenFOAM-v1712/build/linux64GccDPInt32Opt/src/OSspecific/POSIX/cpuTime/cpuTime.o
g++ -std=c++11 -m64 -DOPENFOAM_PLUS=1712 -Dlinux64 -DWM_ARCH_OPTION=64 -DWM_DP -DWM_LABEL_SIZE=32 -Wall -Wextra -Wold-style-cast -Wnon-virtual-dtor -Wno-unused-parameter -Wno-invalid-offsetof -Wno-attributes -O3  -DNoRepository -ftemplate-depth-100 -DFOAM_USE_INOTIFY -IlnInclude -I. -I/home/ef/OpenFOAM/OpenFOAM-v1712/src/OpenFOAM/lnInclude -I/home/ef/OpenFOAM/OpenFOAM-v1712/src/OSspecific/POSIX/lnInclude   -fPIC -c clockTime/clockTime.C -o /home/ef/OpenFOAM/OpenFOAM-v1712/build/linux64GccDPInt32Opt/src/OSspecific/POSIX/clockTime/clockTime.o
g++ -std=c++11 -m64 -DOPENFOAM_PLUS=1712 -Dlinux64 -DWM_ARCH_OPTION=64 -DWM_DP -DWM_LABEL_SIZE=32 -Wall -Wextra -Wold-style-cast -Wnon-virtual-dtor -Wno-unused-parameter -Wno-invalid-offsetof -Wno-attributes -O3  -DNoRepository -ftemplate-depth-100 -DFOAM_USE_INOTIFY -IlnInclude -I. -I/home/ef/OpenFOAM/OpenFOAM-v1712/src/OpenFOAM/lnInclude -I/home/ef/OpenFOAM/OpenFOAM-v1712/src/OSspecific/POSIX/lnInclude   -fPIC -c cpuInfo/cpuInfo.C -o /home/ef/OpenFOAM/OpenFOAM-v1712/build/linux64GccDPInt32Opt/src/OSspecific/POSIX/cpuInfo/cpuInfo.o
g++ -std=c++11 -m64 -DOPENFOAM_PLUS=1712 -Dlinux64 -DWM_ARCH_OPTION=64 -DWM_DP -DWM_LABEL_SIZE=32 -Wall -Wextra -Wold-style-cast -Wnon-virtual-dtor -Wno-unused-parameter -Wno-invalid-offsetof -Wno-attributes -O3  -DNoRepository -ftemplate-depth-100 -DFOAM_USE_INOTIFY -IlnInclude -I. -I/home/ef/OpenFOAM/OpenFOAM-v1712/src/OpenFOAM/lnInclude -I/home/ef/OpenFOAM/OpenFOAM-v1712/src/OSspecific/POSIX/lnInclude   -fPIC -c memInfo/memInfo.C -o /home/ef/OpenFOAM/OpenFOAM-v1712/build/linux64GccDPInt32Opt/src/OSspecific/POSIX/memInfo/memInfo.o
g++ -std=c++11 -m64 -DOPENFOAM_PLUS=1712 -Dlinux64 -DWM_ARCH_OPTION=64 -DWM_DP -DWM_LABEL_SIZE=32 -Wall -Wextra -Wold-style-cast -Wnon-virtual-dtor -Wno-unused-parameter -Wno-invalid-offsetof -Wno-attributes -O3  -DNoRepository -ftemplate-depth-100 -DFOAM_USE_INOTIFY -IlnInclude -I. -I/home/ef/OpenFOAM/OpenFOAM-v1712/src/OpenFOAM/lnInclude -I/home/ef/OpenFOAM/OpenFOAM-v1712/src/OSspecific/POSIX/lnInclude   -fPIC -c fileMonitor.C -o /home/ef/OpenFOAM/OpenFOAM-v1712/build/linux64GccDPInt32Opt/src/OSspecific/POSIX/fileMonitor.o
In file included from /home/ef/OpenFOAM/OpenFOAM-v1712/src/OpenFOAM/lnInclude/PackedList.H:644,
                 from fileMonitor.C:29:
/home/ef/OpenFOAM/OpenFOAM-v1712/src/OpenFOAM/lnInclude/PackedListI.H: In member function ‘void Foam::PackedList<nBits>::const_iterator::operator=(const Foam::PackedList<nBits>::iteratorBase&)’:
/home/ef/OpenFOAM/OpenFOAM-v1712/src/OpenFOAM/lnInclude/PackedListI.H:548:13: error: return-statement with a value, in function returning ‘void’ [-fpermissive]
     return *this;
             ^~~~
In file included from /home/ef/OpenFOAM/OpenFOAM-v1712/src/OpenFOAM/lnInclude/token.H:46,
                 from /home/ef/OpenFOAM/OpenFOAM-v1712/src/OpenFOAM/lnInclude/UListIO.C:28,
                 from /home/ef/OpenFOAM/OpenFOAM-v1712/src/OpenFOAM/lnInclude/UList.C:396,
                 from /home/ef/OpenFOAM/OpenFOAM-v1712/src/OpenFOAM/lnInclude/UList.H:609,
                 from /home/ef/OpenFOAM/OpenFOAM-v1712/src/OpenFOAM/lnInclude/List.H:43,
                 from /home/ef/OpenFOAM/OpenFOAM-v1712/src/OpenFOAM/lnInclude/wordList.H:48,
                 from /home/ef/OpenFOAM/OpenFOAM-v1712/src/OpenFOAM/lnInclude/Enum.H:40,
                 from fileMonitor.H:46,
                 from fileMonitor.C:26:
/home/ef/OpenFOAM/OpenFOAM-v1712/src/OpenFOAM/lnInclude/typeInfo.H: In instantiation of ‘To& Foam::dynamicCast(From&) [with To = Foam::token::Compound<Foam::List<unsigned int> >; From = Foam::token::compound]’:
/home/ef/OpenFOAM/OpenFOAM-v1712/src/OpenFOAM/lnInclude/ListIO.C:60:13:   required from ‘Foam::Istream& Foam::operator>>(Foam::Istream&, Foam::List<T>&) [with T = unsigned int]’
/home/ef/OpenFOAM/OpenFOAM-v1712/src/OpenFOAM/lnInclude/combineGatherScatter.C:466:27:   required from ‘static void Foam::Pstream::listCombineScatter(const Foam::List<Foam::UPstream::commsStruct>&, Foam::List<T>&, int, Foam::label) [with T = unsigned int; Foam::label = int]’
/home/ef/OpenFOAM/OpenFOAM-v1712/src/OpenFOAM/lnInclude/combineGatherScatter.C:526:9:   required from ‘static void Foam::Pstream::listCombineScatter(Foam::List<T>&, int, Foam::label) [with T = unsigned int; Foam::label = int]’
fileMonitor.C:548:60:   required from here
/home/ef/OpenFOAM/OpenFOAM-v1712/src/OpenFOAM/lnInclude/typeInfo.H:91:5: warning: catching polymorphic type ‘class std::bad_cast’ by value [-Wcatch-value=]
     catch (std::bad_cast)
     ^~~~~
make: *** [/home/ef/OpenFOAM/OpenFOAM-v1712/wmake/rules/General/transform:29: /home/ef/OpenFOAM/OpenFOAM-v1712/build/linux64GccDPInt32Opt/src/OSspecific/POSIX/fileMonitor.o] Error 1

I have no idea why/ what this means! Not having a lot of success finding anyone else with the same problem. I have successfully compiled on another machine using the same version of Fedora - the only think I can think of is that I somehow neglected to install some required package, though I can not figure out what it could be - the system is a pass on foamSystemCheck. Any ideas?



thanks-
KTG is offline   Reply With Quote

Old   June 20, 2018, 00:06
Default
  #2
KTG
Senior Member
 
Abe
Join Date: May 2016
Posts: 119
Rep Power: 9
KTG is on a distinguished road
This is so frustrating! I tried the the dev version and get a similar, but different error:




Code:
In file included from lnInclude/Reaction.H:431,
                 from lnInclude/reactionTypes.H:36,
                 from reaction/reactions/makeReactions.C:26:
lnInclude/ReactionI.H: In member function ‘Foam::word& Foam::Reaction<ReactionThermo>::name()’:
lnInclude/ReactionI.H:38:12: error: binding reference of type ‘Foam::word&’ to ‘const Foam::word’ discards qualifiers
     return name_;
            ^~~~~
make: *** [/home/ef/OpenFOAM/OpenFOAM-dev/wmake/rules/General/transform:26: /home/ef/OpenFOAM/OpenFOAM-dev/platforms/linux64GccDPInt32Opt/src/thermophysicalModels/specie/reaction/reactions/makeReactions.o] Error 1

Has anyone else had a similar problem? I am completely at a loss...
KTG is offline   Reply With Quote

Old   June 20, 2018, 03:35
Default
  #3
KTG
Senior Member
 
Abe
Join Date: May 2016
Posts: 119
Rep Power: 9
KTG is on a distinguished road
In an act of desperation, I am even trying to install old versions of openfoam. I am getting similar errors. Does anyone know what this means:



Code:
/home/ef/OpenFOAM/OpenFOAM-v1706/src/OpenFOAM/lnInclude/FixedListIO.C:152:15:   required from ‘Foam::FixedList<T, Size>::FixedList(Foam::Istream&) [with T = int; unsigned int Size = 13]’
fileStat.C:106:33:   required from here
/home/ef/OpenFOAM/OpenFOAM-v1706/src/OpenFOAM/lnInclude/typeInfo.H:91:5: warning: catching polymorphic type ‘class std::bad_cast’ by value [-Wcatch-value=]
     catch (std::bad_cast)
     ^~~~~

or this:



Code:
In file included from /home/ef/OpenFOAM/OpenFOAM-v1706/src/OpenFOAM/lnInclude/PackedList.H:642,
                 from fileMonitor.C:29:
/home/ef/OpenFOAM/OpenFOAM-v1706/src/OpenFOAM/lnInclude/PackedListI.H: In member function ‘void Foam::PackedList<nBits>::const_iterator::operator=(const Foam::PackedList<nBits>::iteratorBase&)’:
/home/ef/OpenFOAM/OpenFOAM-v1706/src/OpenFOAM/lnInclude/PackedListI.H:549:13: error: return-statement with a value, in function returning ‘void’ [-fpermissive]
     return *this;
             ^~~~

or this:


Code:

/home/ef/OpenFOAM/OpenFOAM-v1706/src/OpenFOAM/lnInclude/combineGatherScatter.C:526:9:   required from ‘static void Foam::Pstream::listCombineScatter(Foam::List<T>&, int, Foam::label) [with T = unsigned int; Foam::label = int]’
fileMonitor.C:553:60:   required from here
/home/ef/OpenFOAM/OpenFOAM-v1706/src/OpenFOAM/lnInclude/typeInfo.H:91:5: warning: catching polymorphic type ‘class std::bad_cast’ by value [-Wcatch-value=]
     catch (std::bad_cast)
     ^~~~~
make: *** [/home/ef/OpenFOAM/OpenFOAM-v1706/wmake/rules/General/transform:29: /home/ef/OpenFOAM/OpenFOAM-v1706/build/linux64GccDPInt32Opt/src/OSspecific/POSIX/fileMonitor.o] Error 1



I compiled both these versions on previous versions of fedora without issue. Does anyone out there have a sucessful build on fedora 28? Could this be a bug?
KTG is offline   Reply With Quote

Old   June 25, 2018, 16:39
Default
  #4
Senior Member
 
Mark Olesen
Join Date: Mar 2009
Location: https://olesenm.github.io/
Posts: 1,684
Rep Power: 40
olesen has a spectacular aura aboutolesen has a spectacular aura about
I understand how frustrating this type of errors can be, and the message really does sound like an error (programming, not compiler).

I've listed as an issue https://develop.openfoam.com/Develop...lus/issues/908
for follow up. If the problem is there it should certainly be fixed!
If possible, please follow with some details (gcc version) on that issue.
/mark
olesen is offline   Reply With Quote

Old   June 26, 2018, 00:17
Default
  #5
KTG
Senior Member
 
Abe
Join Date: May 2016
Posts: 119
Rep Power: 9
KTG is on a distinguished road
Thanks for your reply and opening the issue. I ended up installing CentOS, building Cmake, and was able to compile without any issues. As an update to my previous threads, it turned out that both my installs failed, I just didn't notice at first. So it looks like a fedora related issue to me, though I could be wrong. Since you opened the issue, I will throw fedora on a virtual machine and see if I can recreate the error - might take me a while though. I am not sure what version of gcc it was, but being Fedora, I think it was the latest stable version available.
KTG is offline   Reply With Quote

Old   June 26, 2018, 00:51
Default
  #6
Senior Member
 
Mark Olesen
Join Date: Mar 2009
Location: https://olesenm.github.io/
Posts: 1,684
Rep Power: 40
olesen has a spectacular aura aboutolesen has a spectacular aura about
Thanks, could you also follow up via the issue, then the problem, solution, confirmation of the solution are documented - see new note there.
Should have been solved in the develop branch on 7-May
https://develop.openfoam.com/Develop...ba83f81fa6ef37

perhaps you have checked out an older version of the develop branch.
olesen is offline   Reply With Quote

Old   June 26, 2018, 03:52
Default
  #7
New Member
 
tusabe
Join Date: Jun 2018
Posts: 3
Rep Power: 7
tusabe is on a distinguished road
Hi Mark,

I'm facing the same problem on Fedora 28... trying to compile v1712 from official website.
So, if I understand it well, it will compile well using 7-May's branch? from where can I download it?

Thank you!
tusabe is offline   Reply With Quote

Old   June 26, 2018, 04:06
Default
  #8
KTG
Senior Member
 
Abe
Join Date: May 2016
Posts: 119
Rep Power: 9
KTG is on a distinguished road
Hi Tusabe,

If you would like to post the error you are getting, it would be interesting to compare.
KTG is offline   Reply With Quote

Old   June 26, 2018, 08:05
Default
  #9
KTG
Senior Member
 
Abe
Join Date: May 2016
Posts: 119
Rep Power: 9
KTG is on a distinguished road
Here is the link to the latest versions for anyone with this problem:


https://www.openfoam.com/code/repositories.php
KTG is offline   Reply With Quote

Old   June 26, 2018, 08:58
Default
  #10
New Member
 
tusabe
Join Date: Jun 2018
Posts: 3
Rep Power: 7
tusabe is on a distinguished road
Hi,

The error after unpacking OpenFoam-v1712.tar.gz and ThirParty-v1712.tar.gz and issuing:

cd $WM_PROJECT_DIR
bin/tools/foamConfigurePaths -boost boost-system -cgal cgal-system -scotch scotch-system
wmRefresh

./Allwmake

are the following:

In file included from /usr/include/c++/8/algorithm:60,
from interface/../lib/partition/uncoarsening/separator/area_bfs.h:8,
from interface/kaHIP_interface.cpp:32:
/usr/include/c++/8/utility:149:12: error: partial specialization of ‘struct std::__is_tuple_like_impl<std:air<_T1, _T2> >’ after instantiation of ‘struct std::__is_tuple_like_impl<std:air<unsigned int, unsigned int> >’ [-fpermissive]
struct __is_tuple_like_impl<std:air<_T1, _T2>> : true_type
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
make: *** [/opt/OpenFOAM/OpenFOAM-v1712/wmake/rules/General/transform:29: Make/linux64GccDPInt32Opt/interface/kaHIP_interface.o] Error 1
make: *** Waiting for unfinished jobs....
In file included from /usr/include/c++/8/tuple:38,
from /usr/include/c++/8/bits/hashtable_policy.h:34,
from /usr/include/c++/8/bits/hashtable.h:35,
from /usr/include/c++/8/unordered_map:46,
from /opt/OpenFOAM/ThirdParty-v1712/kahip-2.00/lib/partition/uncoarsening/refinement/quotient_graph_refinement/complete_boundary.h:27,
from /opt/OpenFOAM/ThirdParty-v1712/kahip-2.00/lib/partition/uncoarsening/refinement/refinement.h:28,
from /opt/OpenFOAM/ThirdParty-v1712/kahip-2.00/lib/partition/uncoarsening/refinement/kway_graph_refinement/kway_graph_refinement_commons.h:31,
from /opt/OpenFOAM/ThirdParty-v1712/kahip-2.00/lib/partition/uncoarsening/refinement/kway_graph_refinement/kway_graph_refinement.h:30,
from partition/initial_partitioning/initial_partition_bipartition.cpp:25:
/usr/include/c++/8/utility:149:12: error: partial specialization of ‘struct std::__is_tuple_like_impl<std:air<_T1, _T2> >’ after instantiation of ‘struct std::__is_tuple_like_impl<std:air<unsigned int, unsigned int> >’ [-fpermissive]
struct __is_tuple_like_impl<std:air<_T1, _T2>> : true_type
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
make: *** [/opt/OpenFOAM/OpenFOAM-v1712/wmake/rules/General/transform:29: Make/linux64GccDPInt32Opt/partition/initial_partitioning/initial_partition_bipartition.o] Error 1
Error building: kahip

...



/opt/OpenFOAM/OpenFOAM-v1712/src/OpenFOAM/lnInclude/typeInfo.H: In instantiation of ‘To& Foam::dynamicCast(From&) [with To = Foam::token::Compound<Foam::List<int> >; From = Foam::token::compound]’:
/opt/OpenFOAM/OpenFOAM-v1712/src/OpenFOAM/lnInclude/FixedListIO.C:173:13: required from ‘Foam::Istream& Foam:perator>>(Foam::Istream&, Foam::FixedList<T, Size>&) [with T = int; unsigned int Size = 13]’
/opt/OpenFOAM/OpenFOAM-v1712/src/OpenFOAM/lnInclude/FixedListIO.C:152:15: required from ‘Foam::FixedList<T, Size>::FixedList(Foam::Istream&) [with T = int; unsigned int Size = 13]’
fileStat.C:114:33: required from here
/opt/OpenFOAM/OpenFOAM-v1712/src/OpenFOAM/lnInclude/typeInfo.H:91:5: warning: catching polymorphic type ‘class std::bad_cast’ by value [-Wcatch-value=]
catch (std::bad_cast)
^~~~~

.....


/opt/OpenFOAM/OpenFOAM-v1712/src/OpenFOAM/lnInclude/PackedListI.H: In member function ‘void Foam::PackedList<nBits>::const_iterator:perator= (const Foam::PackedList<nBits>::iteratorBase&)’:
/opt/OpenFOAM/OpenFOAM-v1712/src/OpenFOAM/lnInclude/PackedListI.H:548:13: error: return-statement with a value, in function returning ‘void’ [-fpermissive]
return *this;
^~~~
In file included from /opt/OpenFOAM/OpenFOAM-v1712/src/OpenFOAM/lnInclude/token.H:46,
from /opt/OpenFOAM/OpenFOAM-v1712/src/OpenFOAM/lnInclude/UListIO.C:28,
from /opt/OpenFOAM/OpenFOAM-v1712/src/OpenFOAM/lnInclude/UList.C:396,
from /opt/OpenFOAM/OpenFOAM-v1712/src/OpenFOAM/lnInclude/UList.H:609,
from /opt/OpenFOAM/OpenFOAM-v1712/src/OpenFOAM/lnInclude/List.H:43,
from /opt/OpenFOAM/OpenFOAM-v1712/src/OpenFOAM/lnInclude/wordList.H:48,
from /opt/OpenFOAM/OpenFOAM-v1712/src/OpenFOAM/lnInclude/Enum.H:40,
from fileMonitor.H:46,
from fileMonitor.C:26:

...


fileMonitor.C:548:60: required from here
/opt/OpenFOAM/OpenFOAM-v1712/src/OpenFOAM/lnInclude/typeInfo.H:91:5: warning: catching polymorphic type ‘class std::bad_cast’ by value [-Wcatch-value=]
catch (std::bad_cast)
^~~~~
make: *** [/opt/OpenFOAM/OpenFOAM-v1712/wmake/rules/General/transform:29: /opt/OpenFOAM/OpenFOAM-v1712/build/linux64GccDPInt32Opt/src/OSspecific/POSIX/fileMonitor.o] Error 1


Hope this helps!

Thank you.
tusabe is offline   Reply With Quote

Old   June 26, 2018, 09:11
Default
  #11
KTG
Senior Member
 
Abe
Join Date: May 2016
Posts: 119
Rep Power: 9
KTG is on a distinguished road
Yeah, that looks like the same issue. Try pulling the latest from the above link. I haven't tried yet, but it should work since they fixed the bug on May 7th.
tusabe likes this.
KTG is offline   Reply With Quote

Old   June 26, 2018, 09:34
Default
  #12
New Member
 
tusabe
Join Date: Jun 2018
Posts: 3
Rep Power: 7
tusabe is on a distinguished road
Hi!

Ok. Reading the information from this link, I'm a little bit confused:

https://develop.openfoam.com/Develop...lus/issues/908

I believe that I have to pull this:

https://develop.openfoam.com/Develop...f81fa6ef37.zip

isn't it? Thank you!
tusabe is offline   Reply With Quote

Old   July 2, 2018, 16:19
Default
  #13
Senior Member
 
Mark Olesen
Join Date: Mar 2009
Location: https://olesenm.github.io/
Posts: 1,684
Rep Power: 40
olesen has a spectacular aura aboutolesen has a spectacular aura about
Quote:
Originally Posted by tusabe View Post
Hi!

Ok. Reading the information from this link, I'm a little bit confused:

https://develop.openfoam.com/Develop...lus/issues/908

I believe that I have to pull this:

https://develop.openfoam.com/Develop...f81fa6ef37.zip

isn't it? Thank you!



Probably easier just to grab the 1806 version now.
olesen is offline   Reply With Quote

Old   November 16, 2020, 19:03
Default
  #14
New Member
 
NSW
Join Date: May 2019
Posts: 1
Rep Power: 0
zhouzun is on a distinguished road
I think it is caused by wrong gcc version.
AshwaniAssam likes this.
zhouzun is offline   Reply With Quote

Old   March 16, 2021, 05:16
Default
  #15
Senior Member
 
Ashwani
Join Date: Sep 2013
Location: Hyderabad
Posts: 154
Rep Power: 12
AshwaniAssam is on a distinguished road
Had the same issue on Ubuntu v20. Fixed it by downgrading the gcc and g++ to version 7 from



sudo apt install g++-7 gcc-7



sudo update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-7 7
sudo update-alternatives --install /usr/bin/g++ g++ /usr/bin/g++-7 7



sudo update-alternatives --config gcc
sudo update-alternatives --config g++


Source: https://askubuntu.com/questions/1235...wer-than-gcc-7
snak and nimasam like this.
AshwaniAssam is offline   Reply With Quote

Old   July 7, 2021, 10:52
Default OpenFOAM-5 on ubuntu-20.04
  #16
Senior Member
 
Nima Samkhaniani
Join Date: Sep 2009
Location: Tehran, Iran
Posts: 1,266
Blog Entries: 1
Rep Power: 24
nimasam is on a distinguished road
This solution also works for installing OpenFOAM-5 in the ubuntu 20.04



Quote:
Originally Posted by AshwaniAssam View Post
Had the same issue on Ubuntu v20.

Fixed it by downgrading the gcc and g++ to version 7 from



sudo apt install g++-7 gcc-7



sudo update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-7 7
sudo update-alternatives --install /usr/bin/g++ g++ /usr/bin/g++-7 7



sudo update-alternatives --config gcc
sudo update-alternatives --config g++


Source: https://askubuntu.com/questions/1235...wer-than-gcc-7
snak likes this.
__________________
My Personal Website (http://nimasamkhaniani.ir/)
Telegram channel (https://t.me/cfd_foam)
nimasam is offline   Reply With Quote

Reply

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
[OpenFOAM] Native ParaView Reader Bugs tj22 ParaView 270 January 4, 2016 11:39
[swak4Foam] installing funkySetFields igo OpenFOAM Community Contributions 1 November 20, 2012 20:16
Ansys Fluent 13.0 UDF compilation problem in Window XP (32 bit) Yogini Fluent UDF and Scheme Programming 7 October 3, 2012 07:24
[swak4Foam] groovyBC: problems compiling: "flex: not found" and "undefined reference to ..." sega OpenFOAM Community Contributions 12 February 17, 2010 09:30
Problem with compile the setParabolicInlet ivanyao OpenFOAM Running, Solving & CFD 6 September 5, 2008 20:50


All times are GMT -4. The time now is 16:07.