View Issue Details

IDProjectCategoryView StatusLast Update
0002982OpenFOAM[All Projects] Bugpublic2018-06-15 15:34
ReporterehsanMAssigned Tohenry 
Status closedResolutionno change required 
PlatformGNU/LinuxOSopenSUSEOS VersionLeap 15.0
Product Versiondev 
Fixed in Version 
Summary0002982: -dev version fails compiling at barycentric.C
Description-dev version fails compiling after the update. It fails in finding Random.H at primitives/Barycentric/barycentric/barycentric.C ln 27

Steps To Reproducegit pull
./Allwmake -update

Then it didn't compile properly and I used

TagsNo tags attached.



2018-06-14 22:31

manager   ~0009769

You have not provided enough information about your system, in particular the compiler version and the error message, I don't understand why you think we could help you without this information! Please read

I suggest that you remove your OpenFOAM-dev and clone a new copy to ensure everything is up to date.

I am unable to reproduce the problem, OpenFOAM-dev compiles fine here with gcc-7.3.1, gcc-4.8.5 and clang-6.0.0.


2018-06-14 22:42

reporter   ~0009770

You are right. I apologize for any inconvenience. I will try a fresh copy and recompile it once more.

I used gcc-7.3.1 and following error happened during the compilation.

g++ -std=c++11 -m64 -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 -I/home/ehsan/OpenFOAM/OpenFOAM-dev/platforms/linux64GccDPInt32Opt/src/OpenFOAM -IlnInclude -I. -I/home/ehsan/OpenFOAM/OpenFOAM-dev/src/OpenFOAM/lnInclude -I/home/ehsan/OpenFOAM/OpenFOAM-dev/src/OSspecific/POSIX/lnInclude -fPIC -c primitives/polynomialEqns/quadraticEqn/quadraticEqn.C -o /home/ehsan/OpenFOAM/OpenFOAM-dev/platforms/linux64GccDPInt32Opt/src/OpenFOAM/primitives/polynomialEqns/quadraticEqn/quadraticEqn.o
g++ -std=c++11 -m64 -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 -I/home/ehsan/OpenFOAM/OpenFOAM-dev/platforms/linux64GccDPInt32Opt/src/OpenFOAM -IlnInclude -I. -I/home/ehsan/OpenFOAM/OpenFOAM-dev/src/OpenFOAM/lnInclude -I/home/ehsan/OpenFOAM/OpenFOAM-dev/src/OSspecific/POSIX/lnInclude -fPIC -c primitives/Barycentric/barycentric/barycentric.C -o /home/ehsan/OpenFOAM/OpenFOAM-dev/platforms/linux64GccDPInt32Opt/src/OpenFOAM/primitives/Barycentric/barycentric/barycentric.o
primitives/Barycentric/barycentric/barycentric.C:27:10: fatal error: Random.H: No such file or directory
 #include "Random.H"
compilation terminated.
make: *** [/home/ehsan/OpenFOAM/OpenFOAM-dev/wmake/rules/General/transform:26: /home/ehsan/OpenFOAM/OpenFOAM-dev/platforms/linux64GccDPInt32Opt/src/OpenFOAM/primitives/Barycentric/barycentric/barycentric.o] Error 1


2018-06-15 08:39

manager   ~0009772

Last edited: 2018-06-15 08:40

View 1 revisions

Your compilation gave:
"fatal error: Random.H: No such file or directory"

But Random.H does exist in OpenFOAM-dev...

>> find $FOAM_SRC -name Random.H

If the source code is up to date, how is it not being picked up by the compiler?


2018-06-15 15:23

reporter   ~0009776

Thanks Henry and Chris for your kind help.

I did the same check and all the files are pointed at include files. I am getting the same error for the update clone I made yesterday, though the fresh clone is compiling fine both on gcc 7.3.1 (OpenSUSE) and gcc 5.4.1 (Ubuntu 16.04 LTS) and I couldn't reproduce it on the fresh copy. I apologize for any inconvenience that might arise from this issue report. Please close the issue. --Best regards --ehsan

Issue History

Date Modified Username Field Change
2018-06-14 22:11 ehsanM New Issue
2018-06-14 22:31 henry Note Added: 0009769
2018-06-14 22:42 ehsanM Note Added: 0009770
2018-06-15 08:39 chris Note Added: 0009772
2018-06-15 08:40 chris Note Edited: 0009772 View Revisions
2018-06-15 08:40 chris Note Revision Dropped: 9772: 0001066
2018-06-15 15:23 ehsanM Note Added: 0009776
2018-06-15 15:34 henry Assigned To => henry
2018-06-15 15:34 henry Status new => closed
2018-06-15 15:34 henry Resolution open => no change required