mm66 |
November 4, 2019 15:38 |
swak4foam installation error: "internal compiler error: Illegal instruction"
Hi Foamers,
I am also facing a similar problem when trying to install swak4foam on Ubuntu bash on Windows. I have added the complete log here. OpenFOAM is located in "/opt/OpenFOAM". What concerns me the most is that I am installing it for OpenFOAM v1812 (as bolded in the log). But later in the log it seems to refer to "/home/pgh/OpenFOAM/ThirdParty-1706/". I have no folder in $HOME at all. Besides, the version is also incorrect for Thirdparty. Any ideas guys? Please help.
Thanks
Code:
Current OpenFOAM version is v1812.
Previously compiled for OpenFOAM (v1812)
/opt/OpenFOAM/swak4Foam/privateRequirements/bin existing. Prepending to PATH-variable (private version of Bison)
Reading variables from 'swakConfiguration'
Using our own Lua at /opt/OpenFOAM/swak4Foam/privateRequirements
Checking swak4Foam-version and generating file
Swak version is 0.4.3
hg info: e7c2de483937+ (develop) tip
Bison: /opt/OpenFOAM/swak4Foam/privateRequirements/bin/bison
Flex: /usr/bin/flex
Bison at /opt/OpenFOAM/swak4Foam/privateRequirements/bin/bison is version 3.4 (Major 3 Minor 4)
Flex is version 2.6.0 (Minor version: 0)
OpenFOAM-version: Major 1812 Minor 0 Patch 0 (-1 == x / 0) Fork: com
No change to swak4FoamParsers/foamVersion4swak.H
Please include the output above when reporting a problem in the compilation. It helps diagnosing the problem
wmake libso swak4FoamParsers
g++ -std=c++11 -m64 -DOPENFOAM=1812 -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 -IMake/linux64Gcc63DPInt32Opt -I/opt/OpenFOAM/OpenFOAM-v1812/src/finiteVolume/lnInclude -I/opt/OpenFOAM/OpenFOAM-v1812/src/surfMesh/lnInclude -I/opt/OpenFOAM/OpenFOAM-v1812/src/sampling/lnInclude -I/opt/OpenFOAM/OpenFOAM-v1812/src/fileFormats/lnInclude -I/opt/OpenFOAM/OpenFOAM-v1812/src/dynamicMesh/lnInclude -I/opt/OpenFOAM/OpenFOAM-v1812/src/lagrangian/basic/lnInclude -I/opt/OpenFOAM/OpenFOAM-v1812/src/surfMesh/lnInclude -I/opt/OpenFOAM/OpenFOAM-v1812/src/meshTools/lnInclude -I../filesThatAreOnlyInSomeDistributions/OutputFilerDropin/ -IlnInclude -I. -I/opt/OpenFOAM/OpenFOAM-v1812/src/OpenFOAM/lnInclude -I/opt/OpenFOAM/OpenFOAM-v1812/src/OSspecific/POSIX/lnInclude -fPIC -c ../filesThatAreOnlyInSomeDistributions/OutputFilerDropin/outputFilterOutputControl.C -o Make/linux64Gcc63DPInt32Opt/../filesThatAreOnlyInSomeDistributions/OutputFilerDropin/outputFilterOutputControl.o
g++ -std=c++11 -m64 -DOPENFOAM=1812 -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 -IMake/linux64Gcc63DPInt32Opt -I/opt/OpenFOAM/OpenFOAM-v1812/src/finiteVolume/lnInclude -I/opt/OpenFOAM/OpenFOAM-v1812/src/surfMesh/lnInclude -I/opt/OpenFOAM/OpenFOAM-v1812/src/sampling/lnInclude -I/opt/OpenFOAM/OpenFOAM-v1812/src/fileFormats/lnInclude -I/opt/OpenFOAM/OpenFOAM-v1812/src/dynamicMesh/lnInclude -I/opt/OpenFOAM/OpenFOAM-v1812/src/lagrangian/basic/lnInclude -I/opt/OpenFOAM/OpenFOAM-v1812/src/surfMesh/lnInclude -I/opt/OpenFOAM/OpenFOAM-v1812/src/meshTools/lnInclude -I../filesThatAreOnlyInSomeDistributions/OutputFilerDropin/ -IlnInclude -I. -I/opt/OpenFOAM/OpenFOAM-v1812/src/OpenFOAM/lnInclude -I/opt/OpenFOAM/OpenFOAM-v1812/src/OSspecific/POSIX/lnInclude -fPIC -c helpers/printSwakVersion.C -o Make/linux64Gcc63DPInt32Opt/helpers/printSwakVersion.o
g++ -std=c++11 -m64 -DOPENFOAM=1812 -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 -IMake/linux64Gcc63DPInt32Opt -I/opt/OpenFOAM/OpenFOAM-v1812/src/finiteVolume/lnInclude -I/opt/OpenFOAM/OpenFOAM-v1812/src/surfMesh/lnInclude -I/opt/OpenFOAM/OpenFOAM-v1812/src/sampling/lnInclude -I/opt/OpenFOAM/OpenFOAM-v1812/src/fileFormats/lnInclude -I/opt/OpenFOAM/OpenFOAM-v1812/src/dynamicMesh/lnInclude -I/opt/OpenFOAM/OpenFOAM-v1812/src/lagrangian/basic/lnInclude -I/opt/OpenFOAM/OpenFOAM-v1812/src/surfMesh/lnInclude -I/opt/OpenFOAM/OpenFOAM-v1812/src/meshTools/lnInclude -I../filesThatAreOnlyInSomeDistributions/OutputFilerDropin/ -IlnInclude -I. -I/opt/OpenFOAM/OpenFOAM-v1812/src/OpenFOAM/lnInclude -I/opt/OpenFOAM/OpenFOAM-v1812/src/OSspecific/POSIX/lnInclude -fPIC -c helpers/exprString.C -o Make/linux64Gcc63DPInt32Opt/helpers/exprString.o
g++ -std=c++11 -m64 -DOPENFOAM=1812 -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 -IMake/linux64Gcc63DPInt32Opt -I/opt/OpenFOAM/OpenFOAM-v1812/src/finiteVolume/lnInclude -I/opt/OpenFOAM/OpenFOAM-v1812/src/surfMesh/lnInclude -I/opt/OpenFOAM/OpenFOAM-v1812/src/sampling/lnInclude -I/opt/OpenFOAM/OpenFOAM-v1812/src/fileFormats/lnInclude -I/opt/OpenFOAM/OpenFOAM-v1812/src/dynamicMesh/lnInclude -I/opt/OpenFOAM/OpenFOAM-v1812/src/lagrangian/basic/lnInclude -I/opt/OpenFOAM/OpenFOAM-v1812/src/surfMesh/lnInclude -I/opt/OpenFOAM/OpenFOAM-v1812/src/meshTools/lnInclude -I../filesThatAreOnlyInSomeDistributions/OutputFilerDropin/ -IlnInclude -I. -I/opt/OpenFOAM/OpenFOAM-v1812/src/OpenFOAM/lnInclude -I/opt/OpenFOAM/OpenFOAM-v1812/src/OSspecific/POSIX/lnInclude -fPIC -c helpers/switchableNotImplemented.C -o Make/linux64Gcc63DPInt32Opt/helpers/switchableNotImplemented.o
In file included from /opt/OpenFOAM/OpenFOAM-v1812/src/OpenFOAM/lnInclude/scalar.H:39:0,
from /opt/OpenFOAM/OpenFOAM-v1812/src/OpenFOAM/lnInclude/IOstream.H:49,
from /opt/OpenFOAM/OpenFOAM-v1812/src/OpenFOAM/lnInclude/Ostream.H:39,
from /opt/OpenFOAM/OpenFOAM-v1812/src/OpenFOAM/lnInclude/OSstream.H:39,
from /opt/OpenFOAM/OpenFOAM-v1812/src/OpenFOAM/lnInclude/messageStream.H:244,
from /opt/OpenFOAM/OpenFOAM-v1812/src/OpenFOAM/lnInclude/error.H:51,
from /opt/OpenFOAM/OpenFOAM-v1812/src/OpenFOAM/lnInclude/UListI.H:26,
from /opt/OpenFOAM/OpenFOAM-v1812/src/OpenFOAM/lnInclude/UList.H:632,
from /opt/OpenFOAM/OpenFOAM-v1812/src/OpenFOAM/lnInclude/List.H:43,
from /opt/OpenFOAM/OpenFOAM-v1812/src/OpenFOAM/lnInclude/labelList.H:60,
from /opt/OpenFOAM/OpenFOAM-v1812/src/OpenFOAM/lnInclude/UPstream.H:42,
from /opt/OpenFOAM/OpenFOAM-v1812/src/OpenFOAM/lnInclude/Pstream.H:42,
from lnInclude/DebugOStream.H:50,
from lnInclude/swak.H:629,
from ../filesThatAreOnlyInSomeDistributions/OutputFilerDropin/outputFilterOutputControl.C:26:
/opt/OpenFOAM/OpenFOAM-v1812/src/OpenFOAM/lnInclude/floatScalar.H:54:1: internal compiler error: Illegal instruction
constexpr floatScalar floatScalarGREAT = 1.0e+6;
^~~~~~~~~
In file included from /opt/OpenFOAM/OpenFOAM-v1812/src/OpenFOAM/lnInclude/scalar.H:39:0,
from /opt/OpenFOAM/OpenFOAM-v1812/src/OpenFOAM/lnInclude/IOstream.H:49,
from /opt/OpenFOAM/OpenFOAM-v1812/src/OpenFOAM/lnInclude/Ostream.H:39,
from /opt/OpenFOAM/OpenFOAM-v1812/src/OpenFOAM/lnInclude/OSstream.H:39,
from /opt/OpenFOAM/OpenFOAM-v1812/src/OpenFOAM/lnInclude/messageStream.H:244,
from /opt/OpenFOAM/OpenFOAM-v1812/src/OpenFOAM/lnInclude/error.H:51,
from /opt/OpenFOAM/OpenFOAM-v1812/src/OpenFOAM/lnInclude/UListI.H:26,
from /opt/OpenFOAM/OpenFOAM-v1812/src/OpenFOAM/lnInclude/UList.H:632,
from /opt/OpenFOAM/OpenFOAM-v1812/src/OpenFOAM/lnInclude/List.H:43,
from /opt/OpenFOAM/OpenFOAM-v1812/src/OpenFOAM/lnInclude/labelList.H:60,
from /opt/OpenFOAM/OpenFOAM-v1812/src/OpenFOAM/lnInclude/UPstream.H:42,
from /opt/OpenFOAM/OpenFOAM-v1812/src/OpenFOAM/lnInclude/Pstream.H:42,
from lnInclude/DebugOStream.H:50,
from lnInclude/swak.H:629,
from lnInclude/swakString.H:43,
from helpers/exprString.H:45,
from helpers/exprString.C:32:
/opt/OpenFOAM/OpenFOAM-v1812/src/OpenFOAM/lnInclude/floatScalar.H:54: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.
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
/opt/OpenFOAM/OpenFOAM-v1812/wmake/rules/General/transform:34: recipe for target 'Make/linux64Gcc63DPInt32Opt/../filesThatAreOnlyInSomeDistributions/OutputFilerDropin/outputFilterOutputControl.o' failed
0xa3bf9b real_from_string3(real_value*, char const*, format_helper)
/home/pgh/OpenFOAM/ThirdParty-1706/gcc-6.3.0/gcc/real.c:2173
make: *** [Make/linux64Gcc63DPInt32Opt/../filesThatAreOnlyInSomeDistributions/OutputFilerDropin/outputFilterOutputControl.o] Error 1
0x73b0aa interpret_float
/home/pgh/OpenFOAM/ThirdParty-1706/gcc-6.3.0/gcc/c-family/c-lex.c:882
make: *** Waiting for unfinished jobs....
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-v1812/wmake/rules/General/transform:34: recipe for target 'Make/linux64Gcc63DPInt32Opt/helpers/exprString.o' failed
make: *** [Make/linux64Gcc63DPInt32Opt/helpers/exprString.o] Error 1
In file included from /opt/OpenFOAM/OpenFOAM-v1812/src/OpenFOAM/lnInclude/scalar.H:39:0,
from /opt/OpenFOAM/OpenFOAM-v1812/src/OpenFOAM/lnInclude/IOstream.H:49,
from /opt/OpenFOAM/OpenFOAM-v1812/src/OpenFOAM/lnInclude/Ostream.H:39,
from /opt/OpenFOAM/OpenFOAM-v1812/src/OpenFOAM/lnInclude/OSstream.H:39,
from /opt/OpenFOAM/OpenFOAM-v1812/src/OpenFOAM/lnInclude/messageStream.H:244,
from /opt/OpenFOAM/OpenFOAM-v1812/src/OpenFOAM/lnInclude/error.H:51,
from /opt/OpenFOAM/OpenFOAM-v1812/src/OpenFOAM/lnInclude/UListI.H:26,
from /opt/OpenFOAM/OpenFOAM-v1812/src/OpenFOAM/lnInclude/UList.H:632,
from /opt/OpenFOAM/OpenFOAM-v1812/src/OpenFOAM/lnInclude/List.H:43,
from /opt/OpenFOAM/OpenFOAM-v1812/src/OpenFOAM/lnInclude/labelList.H:60,
from /opt/OpenFOAM/OpenFOAM-v1812/src/OpenFOAM/lnInclude/UPstream.H:42,
from /opt/OpenFOAM/OpenFOAM-v1812/src/OpenFOAM/lnInclude/Pstream.H:42,
from helpers/printSwakVersion.H:41,
from helpers/printSwakVersion.C:38:
/opt/OpenFOAM/OpenFOAM-v1812/src/OpenFOAM/lnInclude/floatScalar.H:54:1: internal compiler error: Illegal instruction
constexpr floatScalar floatScalarGREAT = 1.0e+6;
^~~~~~~~~
In file included from /opt/OpenFOAM/OpenFOAM-v1812/src/OpenFOAM/lnInclude/scalar.H:39:0,
from /opt/OpenFOAM/OpenFOAM-v1812/src/OpenFOAM/lnInclude/IOstream.H:49,
from /opt/OpenFOAM/OpenFOAM-v1812/src/OpenFOAM/lnInclude/Ostream.H:39,
from /opt/OpenFOAM/OpenFOAM-v1812/src/OpenFOAM/lnInclude/OSstream.H:39,
from /opt/OpenFOAM/OpenFOAM-v1812/src/OpenFOAM/lnInclude/messageStream.H:244,
from /opt/OpenFOAM/OpenFOAM-v1812/src/OpenFOAM/lnInclude/error.H:51,
from helpers/switchableNotImplemented.H:42,
from helpers/switchableNotImplemented.C:38:
/opt/OpenFOAM/OpenFOAM-v1812/src/OpenFOAM/lnInclude/floatScalar.H:54: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
0xac5ddf crash_signal
/home/pgh/OpenFOAM/ThirdParty-1706/gcc-6.3.0/gcc/toplev.c:333
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
0xa3b54d real_from_string(real_value*, char const*)
/home/pgh/OpenFOAM/ThirdParty-1706/gcc-6.3.0/gcc/real.c:2107
0x64492e cp_lexer_get_preprocessor_token
/home/pgh/OpenFOAM/ThirdParty-1706/gcc-6.3.0/gcc/cp/parser.c:792
0xa3bf9b real_from_string3(real_value*, char const*, format_helper)
/home/pgh/OpenFOAM/ThirdParty-1706/gcc-6.3.0/gcc/real.c:2173
0x674b3d cp_lexer_new_main
/home/pgh/OpenFOAM/ThirdParty-1706/gcc-6.3.0/gcc/cp/parser.c:656
0x73b0aa interpret_float
/home/pgh/OpenFOAM/ThirdParty-1706/gcc-6.3.0/gcc/c-family/c-lex.c:882
0x674b3d cp_parser_new
/home/pgh/OpenFOAM/ThirdParty-1706/gcc-6.3.0/gcc/cp/parser.c:3689
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
0x674b3d c_parse_file()
/home/pgh/OpenFOAM/ThirdParty-1706/gcc-6.3.0/gcc/cp/parser.c:37538
0x64492e cp_lexer_get_preprocessor_token
/home/pgh/OpenFOAM/ThirdParty-1706/gcc-6.3.0/gcc/cp/parser.c:792
0x741702 c_common_parse_file()
/home/pgh/OpenFOAM/ThirdParty-1706/gcc-6.3.0/gcc/c-family/c-opts.c:1064
0x674b3d cp_lexer_new_main
/home/pgh/OpenFOAM/ThirdParty-1706/gcc-6.3.0/gcc/cp/parser.c:656
Please submit a full bug report,
with preprocessed source if appropriate.
0x674b3d cp_parser_new
/home/pgh/OpenFOAM/ThirdParty-1706/gcc-6.3.0/gcc/cp/parser.c:3689
Please include the complete backtrace with any bug report.
0x674b3d c_parse_file()
/home/pgh/OpenFOAM/ThirdParty-1706/gcc-6.3.0/gcc/cp/parser.c:37538
See <http://gcc.gnu.org/bugs.html> for instructions.
0x741702 c_common_parse_file()
/home/pgh/OpenFOAM/ThirdParty-1706/gcc-6.3.0/gcc/c-family/c-opts.c:1064
/opt/OpenFOAM/OpenFOAM-v1812/wmake/rules/General/transform:34: recipe for target 'Make/linux64Gcc63DPInt32Opt/helpers/printSwakVersion.o' failed
Please submit a full bug report,
with preprocessed source if appropriate.
make: *** [Make/linux64Gcc63DPInt32Opt/helpers/printSwakVersion.o] Error 1
Please include the complete backtrace with any bug report.
See <http://gcc.gnu.org/bugs.html> for instructions.
/opt/OpenFOAM/OpenFOAM-v1812/wmake/rules/General/transform:34: recipe for target 'Make/linux64Gcc63DPInt32Opt/helpers/switchableNotImplemented.o' failed
make: *** [Make/linux64Gcc63DPInt32Opt/helpers/switchableNotImplemented.o] Error 1
Parser library did not compile OK. No sense continuing as everything else depends on it
Requirements for Library not satisfied. I see no sense in going on
Check the README before you go on to ask. And search: Most likely your problem occurred to 5 other people before and has been solved on the MessageBoard
|