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

[swak4Foam] swak4Foam cannot be installed on foam-extend-3.2

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   October 10, 2016, 02:10
Default swak4Foam cannot be installed on foam-extend-3.2
  #1
New Member
 
Lee
Join Date: Mar 2016
Posts: 22
Rep Power: 10
lxwd is on a distinguished road
Dear all,

I am using Ubuntu 16.04 . I can successfully compile foam-extend-3.2. However, the swak4Foam cannot be compiled and the error listed in the log.make file is show below. I also attach the complete log file for reference.

Code:
In file included from lnInclude/PatchValueExpressionDriver.H:288:0,
                 from lnInclude/PatchValueExpressionDriverYY.H:51,
                 from ../PatchValueExpressionParser.yy:97:
lnInclude/PatchValueExpressionDriverI.H: In member function ‘Foam::tmp<Foam::Field<Type> > Foam::PatchValueExpressionDriver::mapPointField(const Foam::word&)’:
lnInclude/PatchValueExpressionDriverI.H:965:61: warning: typedef ‘localPointField’ locally defined but not used [-Wunused-local-typedefs]
         typedef GeometricField<T,pointPatchField,pointMesh> localPointField;
                                                             ^
PatchValueExpressionParser.tab.cc: In member function ‘parserPatch::PatchValueExpressionParser::token_number_type parserPatch::PatchValueExpressionParser::yytranslate_(int)’:
PatchValueExpressionParser.tab.cc:9697:24: warning: use of old-style cast [-Wold-style-cast]
FieldValueExpressionParser.tab.cc: In member function ‘parserField::FieldValueExpressionParser::token_number_type parserField::FieldValueExpressionParser::yytranslate_(int)’:
FieldValueExpressionParser.tab.cc:16686:24: warning: use of old-style cast [-Wold-style-cast]
g++: internal compiler error: Killed (program cc1plus)
Please submit a full bug report,
with preprocessed source if appropriate.
See <file:///usr/share/doc/gcc-5/README.Bugs> for instructions.
PatchValueExpressionParser.dep:585: recipe for target 'Make/linux64GccDPOpt/PatchValueExpressionParser.o' failed
make: *** [Make/linux64GccDPOpt/PatchValueExpressionParser.o] Error 4
make: *** Waiting for unfinished jobs....
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 occured to 5 other people before and has been solved on the MessageBoard
Attached Files
File Type: gz logs.tar.gz (3.4 KB, 0 views)
lxwd is offline   Reply With Quote

Old   October 11, 2016, 09:24
Default
  #2
Assistant Moderator
 
Bernhard Gschaider
Join Date: Mar 2009
Posts: 4,225
Rep Power: 51
gschaider will become famous soon enoughgschaider will become famous soon enough
Quote:
Originally Posted by lxwd View Post
Dear all,

I am using Ubuntu 16.04 . I can successfully compile foam-extend-3.2. However, the swak4Foam cannot be compiled and the error listed in the log.make file is show below. I also attach the complete log file for reference.

Code:
In file included from lnInclude/PatchValueExpressionDriver.H:288:0,
                 from lnInclude/PatchValueExpressionDriverYY.H:51,
                 from ../PatchValueExpressionParser.yy:97:
lnInclude/PatchValueExpressionDriverI.H: In member function ‘Foam::tmp<Foam::Field<Type> > Foam::PatchValueExpressionDriver::mapPointField(const Foam::word&)’:
lnInclude/PatchValueExpressionDriverI.H:965:61: warning: typedef ‘localPointField’ locally defined but not used [-Wunused-local-typedefs]
         typedef GeometricField<T,pointPatchField,pointMesh> localPointField;
                                                             ^
PatchValueExpressionParser.tab.cc: In member function ‘parserPatch::PatchValueExpressionParser::token_number_type parserPatch::PatchValueExpressionParser::yytranslate_(int)’:
PatchValueExpressionParser.tab.cc:9697:24: warning: use of old-style cast [-Wold-style-cast]
FieldValueExpressionParser.tab.cc: In member function ‘parserField::FieldValueExpressionParser::token_number_type parserField::FieldValueExpressionParser::yytranslate_(int)’:
FieldValueExpressionParser.tab.cc:16686:24: warning: use of old-style cast [-Wold-style-cast]
g++: internal compiler error: Killed (program cc1plus)
Please submit a full bug report,
with preprocessed source if appropriate.
See <file:///usr/share/doc/gcc-5/README.Bugs> for instructions.
PatchValueExpressionParser.dep:585: recipe for target 'Make/linux64GccDPOpt/PatchValueExpressionParser.o' failed
make: *** [Make/linux64GccDPOpt/PatchValueExpressionParser.o] Error 4
make: *** Waiting for unfinished jobs....
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 occured to 5 other people before and has been solved on the MessageBoard
"g++: internal compiler error" means: this is not a problem of swak but the compiler itself has a problem. What is probably happening is that the generated source code is quite long and seems to confuse this particular compiler version. Which compiler version are you using? ("g++ -v" tells you that)

Anyway. Changing the compiler might be a problem. What could help is switching off the optimizations. Add
Code:
export SWAK_COMPILE_GRAMMAR_OPTION="-O1"
to the swakConfiguration-file and then run ./Allwmake again (you might even want to downgrade to -O0). Please check the output that the correct -Ox is really set before posting further questions
__________________
Note: I don't use "Friend"-feature on this forum out of principle. Ah. And by the way: I'm not on Facebook either. So don't be offended if I don't accept your invitation/friend request
gschaider 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
error with reactingFoam BakedAlmonds OpenFOAM Running, Solving & CFD 4 June 22, 2016 03:21
[blockMesh] Errors during blockMesh meshing Madeleine P. Vincent OpenFOAM Meshing & Mesh Conversion 51 May 30, 2016 11:51
decomposePar is missing a library whk1992 OpenFOAM Pre-Processing 8 March 7, 2015 08:53
[swak4Foam] Basic Error when installing swak4foam with foam extend 3.0 mnobrega OpenFOAM Community Contributions 6 April 1, 2014 02:47
Problem with rhoSimpleFoam matteo_gautero OpenFOAM Running, Solving & CFD 0 February 28, 2008 07:51


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