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

wmake error: command not found

Register Blogs Community New Posts Updated Threads Search

Like Tree4Likes
  • 2 Post By Giantsda
  • 1 Post By Giantsda
  • 1 Post By zcarral

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   September 27, 2018, 00:20
Default wmake error: command not found
  #1
New Member
 
Ishan Anjikar
Join Date: Mar 2018
Posts: 21
Rep Power: 8
ianjikar is on a distinguished road
Hi

I am trying to make a new solver and followed the steps mentioned here: https://www.cfdsupport.com/OpenFOAM-...t/node187.html

The folder mentioned in the $WM_PROJECT_USER_DIR was not present initially, so i made the folder.

I have attached the sequence of commands i used.

I am getting the error for wmake command. I have tried to compile on OpenFOAM-v1706, OpenFOAM-v1712 and OpenFOAM-1806

Please help me solve this error. If i am doing something wrong, please guide me on how to correct it.

Thank you.
Attached Files
File Type: pdf wmake error.pdf (32.2 KB, 340 views)
ianjikar is offline   Reply With Quote

Old   September 28, 2018, 15:10
Default
  #2
New Member
 
Chen Shen
Join Date: Sep 2018
Posts: 14
Rep Power: 7
Giantsda is on a distinguished road
ianjikar@LAPTOP-0DDG57S0:~/OpenFOAM/ianjikar-v1806/applications/solvers/icoTempFoam$ wmake
/opt/OpenFOAM/OpenFOAM-v1806/wmake/wmake: line 409: make: command not found
/opt/OpenFOAM/OpenFOAM-v1806/wmake/wmake: line 412: make: command not found

Under the hood, wmake call make to do stuffs.
GNU make :https://www.gnu.org/software/make/

I think the answer is simple: Install make

to do it on ubuntu:
1. sudo apt-get install make
if 1 does not work:
2. sudo apt-get install build-essential
if 1 and 2 does not work:
3. sudo apt-get install --reinstall make


Tell me if it does not solve your problem.

Chen
daku and Thyrux like this.
Giantsda is offline   Reply With Quote

Old   September 30, 2018, 19:24
Default
  #3
New Member
 
Ishan Anjikar
Join Date: Mar 2018
Posts: 21
Rep Power: 8
ianjikar is on a distinguished road
Quote:
Originally Posted by Giantsda View Post
ianjikar@LAPTOP-0DDG57S0:~/OpenFOAM/ianjikar-v1806/applications/solvers/icoTempFoam$ wmake
/opt/OpenFOAM/OpenFOAM-v1806/wmake/wmake: line 409: make: command not found
/opt/OpenFOAM/OpenFOAM-v1806/wmake/wmake: line 412: make: command not found

Under the hood, wmake call make to do stuffs.
GNU make :https://www.gnu.org/software/make/

I think the answer is simple: Install make

to do it on ubuntu:
1. sudo apt-get install make
if 1 does not work:
2. sudo apt-get install build-essential
if 1 and 2 does not work:
3. sudo apt-get install --reinstall make


Tell me if it does not solve your problem.

Chen
Hi Chen,
Thanks for replying. The option 1 did work. But when i try to compile a solver, i got the following error:


Making dependency list for source file icoTempFoam.C
g++ -std=c++11 -m64 -DOPENFOAM=1806 -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 -Wno-unknown-pragmas -O3 -DNoRepository -ftemplate-depth-100 -I/opt/OpenFOAM/OpenFOAM-v1806/src/finiteVolume/lnInclude -I/opt/OpenFOAM/OpenFOAM-v1806/src/meshTools/lnInclude -IlnInclude -I. -I/opt/OpenFOAM/OpenFOAM-v1806/src/OpenFOAM/lnInclude -I/opt/OpenFOAM/OpenFOAM-v1806/src/OSspecific/POSIX/lnInclude -fPIC -c icoTempFoam.C -o Make/linux64Gcc63DPInt32Opt/icoTempFoam.o
In file included from /opt/OpenFOAM/ThirdParty-v1806/platforms/linux64/gcc-6.3.0/include/c++/6.3.0/x86_64-pc-linux-gnu/bits/c++config.h:507:0,
from /opt/OpenFOAM/ThirdParty-v1806/platforms/linux64/gcc-6.3.0/include/c++/6.3.0/cstdint:38,
from /opt/OpenFOAM/OpenFOAM-v1806/src/OpenFOAM/lnInclude/int16.H:38,
from /opt/OpenFOAM/OpenFOAM-v1806/src/OpenFOAM/lnInclude/int.H:38,
from /opt/OpenFOAM/OpenFOAM-v1806/src/OpenFOAM/lnInclude/label.H:39,
from /opt/OpenFOAM/OpenFOAM-v1806/src/OpenFOAM/lnInclude/labelList.H:59,
from /opt/OpenFOAM/OpenFOAM-v1806/src/OpenFOAM/lnInclude/UPstream.H:42,
from /opt/OpenFOAM/OpenFOAM-v1806/src/OpenFOAM/lnInclude/Pstream.H:42,
from /opt/OpenFOAM/OpenFOAM-v1806/src/OpenFOAM/lnInclude/parRun.H:38,
from /opt/OpenFOAM/OpenFOAM-v1806/src/finiteVolume/lnInclude/fvCFD.H:4,
from icoTempFoam.C:63:
/opt/OpenFOAM/ThirdParty-v1806/platforms/linux64/gcc-6.3.0/include/c++/6.3.0/x86_64-pc-linux-gnu/bits/os_defines.h:39:22: fatal error: features.h: No such file or directory
#include <features.h>
^
compilation terminated.
/opt/OpenFOAM/OpenFOAM-v1806/wmake/rules/General/transform:34: recipe for target 'Make/linux64Gcc63DPInt32Opt/icoTempFoam.o' failed
make: *** [Make/linux64Gcc63DPInt32Opt/icoTempFoam.o] Error 1



And then i used option 2 and i got the following error when using wmake:

g++ -std=c++11 -m64 -DOPENFOAM=1806 -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 -Wno-unknown-pragmas -O3 -DNoRepository -ftemplate-depth-100 -I/opt/OpenFOAM/OpenFOAM-v1806/src/finiteVolume/lnInclude -I/opt/OpenFOAM/OpenFOAM-v1806/src/meshTools/lnInclude -IlnInclude -I. -I/opt/OpenFOAM/OpenFOAM-v1806/src/OpenFOAM/lnInclude -I/opt/OpenFOAM/OpenFOAM-v1806/src/OSspecific/POSIX/lnInclude -fPIC -c icoTempFoam.C -o Make/linux64Gcc63DPInt32Opt/icoTempFoam.o
g++ -std=c++11 -m64 -DOPENFOAM=1806 -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 -Wno-unknown-pragmas -O3 -DNoRepository -ftemplate-depth-100 -I/opt/OpenFOAM/OpenFOAM-v1806/src/finiteVolume/lnInclude -I/opt/OpenFOAM/OpenFOAM-v1806/src/meshTools/lnInclude -IlnInclude -I. -I/opt/OpenFOAM/OpenFOAM-v1806/src/OpenFOAM/lnInclude -I/opt/OpenFOAM/OpenFOAM-v1806/src/OSspecific/POSIX/lnInclude -fPIC -Xlinker --add-needed -Xlinker --no-as-needed Make/linux64Gcc63DPInt32Opt/icoTempFoam.o -L/opt/OpenFOAM/OpenFOAM-v1806/platforms/linux64Gcc63DPInt32Opt/lib \
-lfiniteVolume -lmeshTools -lOpenFOAM -ldl \
-lm -o /home/ianjikar/OpenFOAM/ianjikar-v1806/platforms/linux64Gcc63DPInt32Opt/bin/icoTempFoam


I am not sure what is happening. Thanks in advance for helping
ianjikar is offline   Reply With Quote

Old   October 1, 2018, 18:13
Default
  #4
New Member
 
Chen Shen
Join Date: Sep 2018
Posts: 14
Rep Power: 7
Giantsda is on a distinguished road
Since you installed make, then the wmake is actually trying to compile the source code.
It terminated because it cannot fine a header file called "features.h".
On my laptop, features.h is located at usr/include/ .
However, your compiler seems cannot find it in the default search path. It may suggest a incomplete build of the compiler. That means installing a compiler alone is not sufficient, you need headers and libraries too.

Then I think you have tried the command "sudo apt-get install build-essential". which will fix the incomplete build of g++.

So I think it should be OK now and
Quote:
g++ -std=c++11 -m64 -DOPENFOAM=1806 -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 -Wno-unknown-pragmas -O3 -DNoRepository -ftemplate-depth-100 -I/opt/OpenFOAM/OpenFOAM-v1806/src/finiteVolume/lnInclude -I/opt/OpenFOAM/OpenFOAM-v1806/src/meshTools/lnInclude -IlnInclude -I. -I/opt/OpenFOAM/OpenFOAM-v1806/src/OpenFOAM/lnInclude -I/opt/OpenFOAM/OpenFOAM-v1806/src/OSspecific/POSIX/lnInclude -fPIC -c icoTempFoam.C -o Make/linux64Gcc63DPInt32Opt/icoTempFoam.o
g++ -std=c++11 -m64 -DOPENFOAM=1806 -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 -Wno-unknown-pragmas -O3 -DNoRepository -ftemplate-depth-100 -I/opt/OpenFOAM/OpenFOAM-v1806/src/finiteVolume/lnInclude -I/opt/OpenFOAM/OpenFOAM-v1806/src/meshTools/lnInclude -IlnInclude -I. -I/opt/OpenFOAM/OpenFOAM-v1806/src/OpenFOAM/lnInclude -I/opt/OpenFOAM/OpenFOAM-v1806/src/OSspecific/POSIX/lnInclude -fPIC -Xlinker --add-needed -Xlinker --no-as-needed Make/linux64Gcc63DPInt32Opt/icoTempFoam.o -L/opt/OpenFOAM/OpenFOAM-v1806/platforms/linux64Gcc63DPInt32Opt/lib \
-lfiniteVolume -lmeshTools -lOpenFOAM -ldl \
-lm -o /home/ianjikar/OpenFOAM/ianjikar-v1806/platforms/linux64Gcc63DPInt32Opt/bin/icoTempFoam
means the wmake is working properly. And I think a executable file is generated as /home/ianjikar/OpenFOAM/ianjikar-v1806/platforms/linux64Gcc63DPInt32Opt/bin/icoTempFoam which overwrites the original one.

So when you copy the solver folder, there is a folder in it called Make. In the Make/, there is a file called "files".
you also need to modify the line EXE=................ in the Make/files

in mine, it says:

icoFoam.C

EXE = /home/chen/OpenFOAM/chen-6/run/icoFoam/icoFoam


which means, wmake need a file called icoFoam.C and the output is /home/chen/OpenFOAM/chen-6/run/icoFoam/icoFoam.

In your case, you can try to modify it as :
EXE =~/Desktop/icoTempFoam
and run wmake again. If you can find icoTempFoam in the Desktop, that means you have built it successfully.

Tell me if it does not solve your problem.

Chen
daku likes this.
Giantsda is offline   Reply With Quote

Old   October 2, 2018, 00:31
Default
  #5
New Member
 
Ishan Anjikar
Join Date: Mar 2018
Posts: 21
Rep Power: 8
ianjikar is on a distinguished road
Quote:
Originally Posted by Giantsda View Post
Since you installed make, then the wmake is actually trying to compile the source code.
It terminated because it cannot fine a header file called "features.h".
On my laptop, features.h is located at usr/include/ .
However, your compiler seems cannot find it in the default search path. It may suggest a incomplete build of the compiler. That means installing a compiler alone is not sufficient, you need headers and libraries too.

Then I think you have tried the command "sudo apt-get install build-essential". which will fix the incomplete build of g++.

So I think it should be OK now and
means the wmake is working properly. And I think a executable file is generated as /home/ianjikar/OpenFOAM/ianjikar-v1806/platforms/linux64Gcc63DPInt32Opt/bin/icoTempFoam which overwrites the original one.

So when you copy the solver folder, there is a folder in it called Make. In the Make/, there is a file called "files".
you also need to modify the line EXE=................ in the Make/files

in mine, it says:

icoFoam.C

EXE = /home/chen/OpenFOAM/chen-6/run/icoFoam/icoFoam


which means, wmake need a file called icoFoam.C and the output is /home/chen/OpenFOAM/chen-6/run/icoFoam/icoFoam.

In your case, you can try to modify it as :
EXE =~/Desktop/icoTempFoam
and run wmake again. If you can find icoTempFoam in the Desktop, that means you have built it successfully.

Tell me if it does not solve your problem.

Chen
Make/files was updated as follows:

icoTempFoam.C

EXE = /home/ianjikar/OpenFOAM/ianjikar-v1806/applications/solvers/icoTempFoam


Then i ran the wmake command and got the following error:

g++ -std=c++11 -m64 -DOPENFOAM=1806 -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 -Wno-unknown-pragmas -O3 -DNoRepository -ftemplate-depth-100 -I/opt/OpenFOAM/OpenFOAM-v1806/src/finiteVolume/lnInclude -I/opt/OpenFOAM/OpenFOAM-v1806/src/meshTools/lnInclude -IlnInclude -I. -I/opt/OpenFOAM/OpenFOAM-v1806/src/OpenFOAM/lnInclude -I/opt/OpenFOAM/OpenFOAM-v1806/src/OSspecific/POSIX/lnInclude -fPIC -Xlinker --add-needed -Xlinker --no-as-needed Make/linux64Gcc63DPInt32Opt/icoTempFoam.o -L/opt/OpenFOAM/OpenFOAM-v1806/platforms/linux64Gcc63DPInt32Opt/lib \
-lfiniteVolume -lmeshTools -lOpenFOAM -ldl \
-lm -o /home/ianjikar/OpenFOAM/ianjikar-v1806/applications/solvers/icoTempFoam
/usr/bin/ld: cannot open output file /home/ianjikar/OpenFOAM/ianjikar-v1806/applications/solvers/icoTempFoam: Is a directory
collect2: error: ld returned 1 exit status
/opt/OpenFOAM/OpenFOAM-v1806/wmake/makefiles/general:136: recipe for target '/home/ianjikar/OpenFOAM/ianjikar-v1806/applications/solvers/icoTempFoam' failed
make: *** [/home/ianjikar/OpenFOAM/ianjikar-v1806/applications/solvers/icoTempFoam] Error 1




I have attached a photo of the directory path for help
Attached Images
File Type: png 1.PNG (18.0 KB, 84 views)
ianjikar is offline   Reply With Quote

Old   October 2, 2018, 03:42
Default
  #6
Member
 
Vince
Join Date: Mar 2017
Posts: 45
Rep Power: 9
hyFoam is on a distinguished road
Hi,


You need to add the name of the executable, which seems to be the same as your directory. The Make/files becomes:


icoTempFoam.C

EXE = $(FOAM_USER_APPBIN)/icoTempFoam

Cheers,
Vincent
hyFoam is offline   Reply With Quote

Old   October 2, 2018, 11:44
Default
  #7
New Member
 
Ishan Anjikar
Join Date: Mar 2018
Posts: 21
Rep Power: 8
ianjikar is on a distinguished road
Hi Vincent,

Initially the EXE was as you mentioned, but when i called the $FOAM_USER_APPBIN variable, the path was:
/home/ianjikar/OpenFOAM/ianjikar-v1806/platforms/linux64Gcc63DPInt32Opt/bin/


So i changed the path to where icoTempFoam.C is present and tried compiling if thats the problem

Thanks for looking into it

Regards
Ishan
ianjikar is offline   Reply With Quote

Old   October 2, 2018, 15:25
Default
  #8
Member
 
cyss38's Avatar
 
Cyrille Bonamy
Join Date: Mar 2015
Location: Grenoble, France
Posts: 85
Rep Power: 11
cyss38 is on a distinguished road
The EXE directory is the directory where the final binary is compiled, but it is not related to the directory where the sources are.

In your case, the source (icoTempFoam.C) must be in the directory where there is the Make directory.
And so you just have to type "wmake" in this source directory in order to compile and place the binary at the EXE location.
cyss38 is offline   Reply With Quote

Old   October 7, 2018, 04:21
Default
  #9
New Member
 
Ishan Anjikar
Join Date: Mar 2018
Posts: 21
Rep Power: 8
ianjikar is on a distinguished road
Quote:
Originally Posted by cyss38 View Post
The EXE directory is the directory where the final binary is compiled, but it is not related to the directory where the sources are.

In your case, the source (icoTempFoam.C) must be in the directory where there is the Make directory.
And so you just have to type "wmake" in this source directory in order to compile and place the binary at the EXE location.
Thanks for the explaination. I thought the location of sourcefile should be present in EXE. The compiler is working now.
ianjikar is offline   Reply With Quote

Old   January 20, 2019, 17:03
Default
  #10
Member
 
Zacarias Carral
Join Date: Sep 2012
Posts: 35
Rep Power: 13
zcarral is on a distinguished road
Dear people,


I have the same error about features.h: No such file or directory. I have tried the 3 procedures and I always have the same error about features.h: No such file or directory:

1. sudo apt-get install make
if 1 does not work:
2. sudo apt-get install build-essential
if 1 and 2 does not work:
3. sudo apt-get install --reinstall make

My make/files is:

solvername.C
EXE = $(FOAM_USER_APPBIN)/solvername


I have OpenFOAM 1812 installed on Windows 10.
zcarral is offline   Reply With Quote

Old   January 23, 2019, 11:42
Default
  #11
Member
 
Zacarias Carral
Join Date: Sep 2012
Posts: 35
Rep Power: 13
zcarral is on a distinguished road
Dear everybody,


Finally I found the solution in this forum:


https://www.cfd-online.com/Forums/op...oam-1712-a.htm

I executed the following commands and then my solver compiled:

sudo apt update
sudo apt install build-essential flex bison
fredrick likes this.
zcarral is offline   Reply With Quote

Old   December 29, 2019, 16:17
Default internal compiler error: Illegal instruction constexpr floatScalar floatScalarGREAT
  #12
New Member
 
Eduard Englberth
Join Date: Aug 2012
Location: Vrchlabí
Posts: 6
Rep Power: 13
Eduard is on a distinguished road
Hello everybody!


I am trying to compile my own solver called vsFoam. That solver is based on simpleFoam solver. The openFoam version is 1906. I am compiling it on Ubuntu 18.04 LTS application of Windows 10.


I have made following commands



sudo apt update
sudo apt install build-essential flex bison
sudo apt-get install make


However, wmake still returns error. Plese see bellow. Can anybody help me so solve that issue?



root@DESKTOP-OMKC5MD:/opt/OpenFOAM/OpenFOAM-v1906/applications/solvers/incompressible/vsFoam# ls
Make UEqn.H createFields.H pEqn.H vsFoam.C
root@DESKTOP-OMKC5MD:/opt/OpenFOAM/OpenFOAM-v1906/applications/solvers/incompressible/vsFoam# wclean
root@DESKTOP-OMKC5MD:/opt/OpenFOAM/OpenFOAM-v1906/applications/solvers/incompressible/vsFoam# wmake
Making dependency list for source file vsFoam.C
g++ -std=c++11 -m64 -DOPENFOAM=1906 -DWM_DP -DWM_LABEL_SIZE=32 -Wall -Wextra -Wold-style-cast -Wnon-virtual-dtor -Wno-unused-parameter -Wno-invalid-offsetof -Wno-attributes -Wno-unknown-pragmas -O3 -DNoRepository -ftemplate-depth-100 -I/opt/OpenFOAM/OpenFOAM-v1906/src/finiteVolume/lnInclude -I/opt/OpenFOAM/OpenFOAM-v1906/src/meshTools/lnInclude -I/opt/OpenFOAM/OpenFOAM-v1906/src/sampling/lnInclude -I/opt/OpenFOAM/OpenFOAM-v1906/src/TurbulenceModels/turbulenceModels/lnInclude -I/opt/OpenFOAM/OpenFOAM-v1906/src/TurbulenceModels/incompressible/lnInclude -I/opt/OpenFOAM/OpenFOAM-v1906/src/transportModels -I/opt/OpenFOAM/OpenFOAM-v1906/src/transportModels/incompressible/singlePhaseTransportModel -IlnInclude -I. -I/opt/OpenFOAM/OpenFOAM-v1906/src/OpenFOAM/lnInclude -I/opt/OpenFOAM/OpenFOAM-v1906/src/OSspecific/POSIX/lnInclude -fPIC -c vsFoam.C -o /opt/OpenFOAM/OpenFOAM-v1906/build/linux64Gcc63DPInt32Opt/applications/solvers/incompressible/vsFoam/vsFoam.o
In file included from /opt/OpenFOAM/OpenFOAM-v1906/src/OpenFOAM/lnInclude/scalar.H:41:0,
from /opt/OpenFOAM/OpenFOAM-v1906/src/OpenFOAM/lnInclude/zeroI.H:29,
from /opt/OpenFOAM/OpenFOAM-v1906/src/OpenFOAM/lnInclude/zero.H:148,
from /opt/OpenFOAM/OpenFOAM-v1906/src/OpenFOAM/lnInclude/UList.H:50,
from /opt/OpenFOAM/OpenFOAM-v1906/src/OpenFOAM/lnInclude/List.H:45,
from /opt/OpenFOAM/OpenFOAM-v1906/src/OpenFOAM/lnInclude/labelList.H:44,
from /opt/OpenFOAM/OpenFOAM-v1906/src/OpenFOAM/lnInclude/UPstream.H:44,
from /opt/OpenFOAM/OpenFOAM-v1906/src/OpenFOAM/lnInclude/Pstream.H:44,
from /opt/OpenFOAM/OpenFOAM-v1906/src/OpenFOAM/lnInclude/parRun.H:40,
from /opt/OpenFOAM/OpenFOAM-v1906/src/finiteVolume/lnInclude/fvCFD.H:4,
from vsFoam.C:66:
/opt/OpenFOAM/OpenFOAM-v1906/src/OpenFOAM/lnInclude/floatScalar.H:56:1: internal compiler error: Illegal instruction
constexpr floatScalar floatScalarGREAT = 1.0e+6;
^~~~~~~~~
0xac5ddf crash_signal
/home/pgh/OpenFOAM/ThirdParty-1706/gcc-6.3.0/gcc/toplev.c:333
0xa3b54d real_from_string(real_value*, char const*)
/home/pgh/OpenFOAM/ThirdParty-1706/gcc-6.3.0/gcc/real.c:2107
0xa3bf9b real_from_string3(real_value*, char const*, format_helper)
/home/pgh/OpenFOAM/ThirdParty-1706/gcc-6.3.0/gcc/real.c:2173
0x73b0aa interpret_float
/home/pgh/OpenFOAM/ThirdParty-1706/gcc-6.3.0/gcc/c-family/c-lex.c:882
0x73be6e c_lex_with_flags(tree_node**, unsigned int*, unsigned char*, int)
/home/pgh/OpenFOAM/ThirdParty-1706/gcc-6.3.0/gcc/c-family/c-lex.c:425
0x64492e cp_lexer_get_preprocessor_token
/home/pgh/OpenFOAM/ThirdParty-1706/gcc-6.3.0/gcc/cp/parser.c:792
0x674b3d cp_lexer_new_main
/home/pgh/OpenFOAM/ThirdParty-1706/gcc-6.3.0/gcc/cp/parser.c:656
0x674b3d cp_parser_new
/home/pgh/OpenFOAM/ThirdParty-1706/gcc-6.3.0/gcc/cp/parser.c:3689
0x674b3d c_parse_file()
/home/pgh/OpenFOAM/ThirdParty-1706/gcc-6.3.0/gcc/cp/parser.c:37538
0x741702 c_common_parse_file()
/home/pgh/OpenFOAM/ThirdParty-1706/gcc-6.3.0/gcc/c-family/c-opts.c:1064
Please submit a full bug report,
with preprocessed source if appropriate.
Please include the complete backtrace with any bug report.
See <http://gcc.gnu.org/bugs.html> for instructions.
/opt/OpenFOAM/OpenFOAM-v1906/wmake/rules/General/transform:34: recipe for target '/opt/OpenFOAM/OpenFOAM-v1906/build/linux64Gcc63DPInt32Opt/applications/solvers/incompressible/vsFoam/vsFoam.o' failed
make: *** [/opt/OpenFOAM/OpenFOAM-v1906/build/linux64Gcc63DPInt32Opt/applications/solvers/incompressible/vsFoam/vsFoam.o] Error 1
Eduard is offline   Reply With Quote

Old   December 29, 2019, 16:33
Unhappy
  #13
HPE
Senior Member
 
HPE's Avatar
 
Herpes Free Engineer
Join Date: Sep 2019
Location: The Home Under The Ground with the Lost Boys
Posts: 932
Rep Power: 12
HPE is on a distinguished road
have you installed OF? have you verified the installation?
HPE is offline   Reply With Quote

Old   December 29, 2019, 19:23
Default
  #14
New Member
 
Eduard Englberth
Join Date: Aug 2012
Location: Vrchlabí
Posts: 6
Rep Power: 13
Eduard is on a distinguished road
Yes, I have installed openFoam version 1906. I am alreday doing simulation with simpleFoam solver, so it works. I would like to, however, modify simpleFoam solver for my purpose and I have problems to compile it. I have done it on Ubuntu Linux with OF 2.2.1 few years ago. Now, I am doing it on Ubuntu Linux application on Windows 10 with latest OF version. Maybe there is the problem.
Eduard is offline   Reply With Quote

Old   December 30, 2019, 02:40
Default
  #15
HPE
Senior Member
 
HPE's Avatar
 
Herpes Free Engineer
Join Date: Sep 2019
Location: The Home Under The Ground with the Lost Boys
Posts: 932
Rep Power: 12
HPE is on a distinguished road
Could you go to the forum topic:
[OpenFOAM.com] v1712 GCC 6.3.0 - internal compiler error: Illegal instruction

where Bruno Santos gave insights.

(Sorry, I couldnt manage to share the link directly by using my phone.)
HPE is offline   Reply With Quote

Old   December 30, 2019, 10:50
Default
  #16
New Member
 
Eduard Englberth
Join Date: Aug 2012
Location: Vrchlabí
Posts: 6
Rep Power: 13
Eduard is on a distinguished road
As Bruno Santos advices I have checked if there is a hardware problem. I have done it with command

stressapptest -W --cc_test -M 4000
The test gave me PASS status, hardware is OK.



I guess the issue has something common with GCC 6.3.0. In the thread 1712 GCC 6.3.0 - internal compiler error: Illegal instruction there is no soulution available, so I wonder if someone solved it yet.
Eduard is offline   Reply With Quote

Old   December 30, 2019, 17:29
Default
  #17
HPE
Senior Member
 
HPE's Avatar
 
Herpes Free Engineer
Join Date: Sep 2019
Location: The Home Under The Ground with the Lost Boys
Posts: 932
Rep Power: 12
HPE is on a distinguished road
Can you use another compiler? e.g. Clang?
HPE is offline   Reply With Quote

Old   December 31, 2019, 05:06
Default
  #18
New Member
 
Eduard Englberth
Join Date: Aug 2012
Location: Vrchlabí
Posts: 6
Rep Power: 13
Eduard is on a distinguished road
It is good idea. Do you think if it is OK to have gcc and Clang installed beside eachother? Or gcc is reccomended to be uninstalled before Clang installation.
What is reccommended compiler for openFoam v1906 from your point of view.
Eduard is offline   Reply With Quote

Reply


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
Building OpenFOAM1.7.0 from source ata OpenFOAM Installation 46 March 6, 2022 13:21
error in fireFoam, when running the case wallFireSpread2D zhoubiao1088 OpenFOAM Running, Solving & CFD 9 February 1, 2018 18:45
Gmsh installation on terminal help spitfire Main CFD Forum 4 July 27, 2017 15:11
critical error during installation of openfoam Fabio88 OpenFOAM Installation 21 June 2, 2010 03:01
[Commercial meshers] Trimmed cell and embedded refinement mesh conversion issues michele OpenFOAM Meshing & Mesh Conversion 2 July 15, 2005 04:15


All times are GMT -4. The time now is 21:23.