CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > OpenFOAM Pre-Processing

groovyBC - compile error?

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

Reply
 
LinkBack Thread Tools Display Modes
Old   September 16, 2010, 07:18
Default groovyBC - compile error?
  #1
Senior Member
 
Pavan
Join Date: May 2009
Location: Melbourne
Posts: 101
Rep Power: 8
rieuk is on a distinguished road
Hi guys, I'm trying to compile groovyBC into a dynamic library using "wmake libso" and don't know if it compiled properly. Here is the output:

Code:
[pab565@vayu1 groovyBC]$ wmake libso
Making dependency list for source file PatchResult.C
Making dependency list for source file PatchValueExpressionParser.yy
Making dependency list for source file PatchValueExpressionLexer.ll
could not open file PatchValueExpressionParser.tab.hh for source file PatchValueExpressionParser.yy
Making dependency list for source file PatchValueExpressionDriver.C
could not open file PatchValueExpressionParser.tab.hh for source file PatchValueExpressionLexer.ll
Making dependency list for source file groovyBCFvPatchFields.C
could not open file PatchValueExpressionParser.tab.hh for source file PatchValueExpressionDriver.C
Making dependency list for source file groovyBCPointPatchFields.C
could not open file PatchValueExpressionParser.tab.hh for source file groovyBCFvPatchFields.C
could not open file mixedPointPatchField.H for source file groovyBCPointPatchFields.C
could not open file PatchValueExpressionParser.tab.hh for source file groovyBCPointPatchFields.C
could not open file pointPatchFieldMapper.H for source file groovyBCPointPatchFields.C
SOURCE=PatchResult.C ;  g++ -m64 -Dlinux64 -DDP -DFOAM_DEV_REVISION_NUMBER=1669 -Wall -Wno-strict-aliasing -Wextra -Wno-unused-parameter -Wold-style-cast -march=opteron -O3  -DNoRepository -ftemplate-depth-40 -IMake/linux64GccDPOpt -DFOAM_DEV -I/home/565/pab565//OpenFOAM/OpenFOAM-1.5-dev/src/finiteVolume/lnInclude -IlnInclude -I. -I/home/565/pab565//OpenFOAM/OpenFOAM-1.5-dev/src/OpenFOAM/lnInclude -I/home/565/pab565//OpenFOAM/OpenFOAM-1.5-dev/src/OSspecific/Unix/lnInclude   -fPIC -c $SOURCE -o Make/linux64GccDPOpt/PatchResult.o
SOURCE=PatchValueExpressionParser.yy ; rm -f Make/linux64GccDPOpt/PatchValueExpressionParser.C Make/linux64GccDPOpt/PatchValueExpressionParser.tab.hh; bison -ra -v  -d $SOURCE ;  mv *.tab.cc Make/linux64GccDPOpt/PatchValueExpressionParser.C ; mv *.tab.hh Make/linux64GccDPOpt/PatchValueExpressionParser.tab.hh ; mv *.hh Make/linux64GccDPOpt ;  g++ -m64 -Dlinux64 -DDP -DFOAM_DEV_REVISION_NUMBER=1669 -Wall -Wno-strict-aliasing -Wextra -Wno-unused-parameter -Wold-style-cast -march=opteron -O3  -DNoRepository -ftemplate-depth-40 -IMake/linux64GccDPOpt -DFOAM_DEV -I/home/565/pab565//OpenFOAM/OpenFOAM-1.5-dev/src/finiteVolume/lnInclude -IlnInclude -I. -I/home/565/pab565//OpenFOAM/OpenFOAM-1.5-dev/src/OpenFOAM/lnInclude -I/home/565/pab565//OpenFOAM/OpenFOAM-1.5-dev/src/OSspecific/Unix/lnInclude   -fPIC -c  Make/linux64GccDPOpt/PatchValueExpressionParser.C -o Make/linux64GccDPOpt/PatchValueExpressionParser.o
PatchResult.C: In member function 'void Foam::PatchResult::uglyDelete()':
PatchResult.C:97: warning: deleting 'void*' is undefined
SOURCE=PatchValueExpressionLexer.ll ; rm Make/linux64GccDPOpt/PatchValueExpressionLexer.C ; flex -f $SOURCE ; mv *.c Make/linux64GccDPOpt/PatchValueExpressionLexer.C ; g++ -m64 -Dlinux64 -DDP -DFOAM_DEV_REVISION_NUMBER=1669 -Wall -Wno-strict-aliasing -Wextra -Wno-unused-parameter -Wold-style-cast -march=opteron -O3  -DNoRepository -ftemplate-depth-40 -IMake/linux64GccDPOpt -DFOAM_DEV -I/home/565/pab565//OpenFOAM/OpenFOAM-1.5-dev/src/finiteVolume/lnInclude -IlnInclude -I. -I/home/565/pab565//OpenFOAM/OpenFOAM-1.5-dev/src/OpenFOAM/lnInclude -I/home/565/pab565//OpenFOAM/OpenFOAM-1.5-dev/src/OSspecific/Unix/lnInclude   -fPIC -c Make/linux64GccDPOpt/PatchValueExpressionLexer.C -o Make/linux64GccDPOpt/PatchValueExpressionLexer.o
rm: cannot remove `Make/linux64GccDPOpt/PatchValueExpressionLexer.C': No such file or directory
PatchValueExpressionParser.tab.cc: In member function 'unsigned char pve::PatchValueExpressionParser::yytranslate_(int)':
PatchValueExpressionParser.tab.cc:4030: warning: use of old-style cast
Make/linux64GccDPOpt/PatchValueExpressionLexer.C:245: warning: use of old-style cast
Make/linux64GccDPOpt/PatchValueExpressionLexer.C:296: warning: use of old-style cast
Make/linux64GccDPOpt/PatchValueExpressionLexer.C:296: warning: use of old-style cast
lex.ve.c: In function 'int pvelex(pve::PatchValueExpressionParser::semantic_type*, pve::location*, Foam::PatchValueExpressionDriver&)':
lex.ve.c:9192: warning: use of old-style cast
lex.ve.c:9192: warning: use of old-style cast
lex.ve.c:9208: warning: use of old-style cast
lex.ve.c:9684: warning: use of old-style cast
lex.ve.c: In function 'int yy_get_next_buffer()':
lex.ve.c:9852: warning: use of old-style cast
lex.ve.c:9879: warning: use of old-style cast
lex.ve.c:9892: warning: use of old-style cast
lex.ve.c:9893: warning: use of old-style cast
lex.ve.c:9914: warning: use of old-style cast
lex.ve.c: In function 'yy_state_type yy_get_previous_state()':
lex.ve.c:9962: warning: use of old-style cast
lex.ve.c:9962: warning: use of old-style cast
lex.ve.c: In function 'int yyinput()':
lex.ve.c:10119: warning: use of old-style cast
lex.ve.c: In function 'yy_buffer_state* ve_create_buffer(FILE*, int)':
lex.ve.c:10196: warning: use of old-style cast
lex.ve.c:10205: warning: use of old-style cast
lex.ve.c: In function 'void ve_delete_buffer(yy_buffer_state*)':
lex.ve.c:10228: warning: use of old-style cast
lex.ve.c:10231: warning: use of old-style cast
lex.ve.c:10233: warning: use of old-style cast
lex.ve.c: In function 'yy_buffer_state* ve_scan_buffer(char*, yy_size_t)':
lex.ve.c:10312: warning: use of old-style cast
lex.ve.c: In function 'yy_buffer_state* ve_scan_bytes(const char*, int)':
lex.ve.c:10366: warning: use of old-style cast
lex.ve.c: In function 'void yy_push_state(int)':
lex.ve.c:10405: warning: use of old-style cast
lex.ve.c:10409: warning: use of old-style cast
lex.ve.c:10409: warning: use of old-style cast
lex.ve.c: In function 'void* yy_flex_alloc(yy_size_t)':
lex.ve.c:10516: warning: use of old-style cast
lex.ve.c: In function 'void* yy_flex_realloc(void*, yy_size_t)':
lex.ve.c:10534: warning: use of old-style cast
lex.ve.c:10534: warning: use of old-style cast
lex.ve.c: At global scope:
lex.ve.c:10391: warning: 'void yy_push_state(int)' defined but not used
lex.ve.c:10424: warning: 'void yy_pop_state()' defined but not used
lex.ve.c:10435: warning: 'int yy_top_state()' defined but not used
SOURCE=PatchValueExpressionDriver.C ;  g++ -m64 -Dlinux64 -DDP -DFOAM_DEV_REVISION_NUMBER=1669 -Wall -Wno-strict-aliasing -Wextra -Wno-unused-parameter -Wold-style-cast -march=opteron -O3  -DNoRepository -ftemplate-depth-40 -IMake/linux64GccDPOpt -DFOAM_DEV -I/home/565/pab565//OpenFOAM/OpenFOAM-1.5-dev/src/finiteVolume/lnInclude -IlnInclude -I. -I/home/565/pab565//OpenFOAM/OpenFOAM-1.5-dev/src/OpenFOAM/lnInclude -I/home/565/pab565//OpenFOAM/OpenFOAM-1.5-dev/src/OSspecific/Unix/lnInclude   -fPIC -c $SOURCE -o Make/linux64GccDPOpt/PatchValueExpressionDriver.o
SOURCE=groovyBCFvPatchFields.C ;  g++ -m64 -Dlinux64 -DDP -DFOAM_DEV_REVISION_NUMBER=1669 -Wall -Wno-strict-aliasing -Wextra -Wno-unused-parameter -Wold-style-cast -march=opteron -O3  -DNoRepository -ftemplate-depth-40 -IMake/linux64GccDPOpt -DFOAM_DEV -I/home/565/pab565//OpenFOAM/OpenFOAM-1.5-dev/src/finiteVolume/lnInclude -IlnInclude -I. -I/home/565/pab565//OpenFOAM/OpenFOAM-1.5-dev/src/OpenFOAM/lnInclude -I/home/565/pab565//OpenFOAM/OpenFOAM-1.5-dev/src/OSspecific/Unix/lnInclude   -fPIC -c $SOURCE -o Make/linux64GccDPOpt/groovyBCFvPatchFields.o
SOURCE=groovyBCPointPatchFields.C ;  g++ -m64 -Dlinux64 -DDP -DFOAM_DEV_REVISION_NUMBER=1669 -Wall -Wno-strict-aliasing -Wextra -Wno-unused-parameter -Wold-style-cast -march=opteron -O3  -DNoRepository -ftemplate-depth-40 -IMake/linux64GccDPOpt -DFOAM_DEV -I/home/565/pab565//OpenFOAM/OpenFOAM-1.5-dev/src/finiteVolume/lnInclude -IlnInclude -I. -I/home/565/pab565//OpenFOAM/OpenFOAM-1.5-dev/src/OpenFOAM/lnInclude -I/home/565/pab565//OpenFOAM/OpenFOAM-1.5-dev/src/OSspecific/Unix/lnInclude   -fPIC -c $SOURCE -o Make/linux64GccDPOpt/groovyBCPointPatchFields.o
'/home/565/pab565//OpenFOAM/pab565-1.5-dev/lib/linux64GccDPOpt/libgroovyBC.so' is up to date.
rieuk is offline   Reply With Quote

Old   September 17, 2010, 04:51
Default
  #2
Assistant Moderator
 
Bernhard Gschaider
Join Date: Mar 2009
Posts: 3,912
Rep Power: 40
gschaider will become famous soon enoughgschaider will become famous soon enough
No problem. You've got an .so (the warnings are normal and can't be avoided)

Bernhard
gschaider is offline   Reply With Quote

Old   September 18, 2010, 09:42
Default
  #3
Senior Member
 
Pavan
Join Date: May 2009
Location: Melbourne
Posts: 101
Rep Power: 8
rieuk is on a distinguished road
Thanks Bernhard!
rieuk is offline   Reply With Quote

Old   June 14, 2011, 08:16
Default groovyBC doesn't compile
  #4
New Member
 
Ulisses
Join Date: Mar 2009
Location: Brazil
Posts: 24
Rep Power: 8
ulisses is on a distinguished road
Hi guys,

I am struggling to compile groovyBC in OpenFOAM-1.6 but I got the following error:

ulisses@linux-ddg2:~/OpenFOAM/ulisses-1.6/applications/utilities/groovyBC> wmake libso

linuxGccDPOpt/options:14: *** faltando o separador. Pare.
wmake error: file 'Make/linuxGccDPOpt/objectFiles' could not be created

My system is SuSE version 11.4.

Could someone help me?
ulisses is offline   Reply With Quote

Old   June 14, 2011, 11:56
Default
  #5
Assistant Moderator
 
Bernhard Gschaider
Join Date: Mar 2009
Posts: 3,912
Rep Power: 40
gschaider will become famous soon enoughgschaider will become famous soon enough
Quote:
Originally Posted by ulisses View Post
Hi guys,

I am struggling to compile groovyBC in OpenFOAM-1.6 but I got the following error:

ulisses@linux-ddg2:~/OpenFOAM/ulisses-1.6/applications/utilities/groovyBC> wmake libso

linuxGccDPOpt/options:14: *** faltando o separador. Pare.
wmake error: file 'Make/linuxGccDPOpt/objectFiles' could not be created

My system is SuSE version 11.4.

Could someone help me?
The interesting information is the error message of the make-utility about line 14 of the options-file. Could you please translate that to english? (In turn I'll promise not to answer in German). I think it is about some missing separator in line 14. Which is strange as this is the last line and empty.

Please try to completely clean the directory (wclean, "rm -r lnInclude", rmdepall). Make sure that myflex and mybison are in Make-directory. Then try again

Bernhard
gschaider is offline   Reply With Quote

Old   June 14, 2011, 17:06
Default
  #6
New Member
 
Ulisses
Join Date: Mar 2009
Location: Brazil
Posts: 24
Rep Power: 8
ulisses is on a distinguished road
Quote:
Originally Posted by gschaider View Post
The interesting information is the error message of the make-utility about line 14 of the options-file. Could you please translate that to english? (In turn I'll promise not to answer in German). I think it is about some missing separator in line 14. Which is strange as this is the last line and empty.

Please try to completely clean the directory (wclean, "rm -r lnInclude", rmdepall). Make sure that myflex and mybison are in Make-directory. Then try again

Bernhard
Ok, let's keep english language as standard of communication

I did wthat you suggested (clean completely the directory and check myflex and mybison) but the error remains:

ulisses@linux-ddg2:~/OpenFOAM/ulisses-1.6/applications/utilities/groovyBC> wmake libso

linuxGccDPOpt/options:14: *** missing separator. Stop.
wmake error: file 'Make/linuxGccDPOpt/objectFiles' could not be created

My Make/options file is written as follows:

1 # 1 "options"
2 # 1 "<built-in>"
3 # 1 "<command-line>"
4 # 1 "options"
5 include $(OBJECTS_DIR)/../mybison
6 include $(OBJECTS_DIR)/../myflex
7
8 ifdef FOAM_DEV
9 FOAM_DEV_OPTION = -DFOAM_DEV
10 endif
11
12 EXE_INC = -I$(OBJECTS_DIR)
13 $(FOAM_DEV_OPTION)
14 -I$(LIB_SRC)/finiteVolume/lnInclude
15
16 LIB_LIBS = -lfiniteVolume
17 -lOpenFOAM

I don't understand why the line 14 gives that error.

Thanks for the prompt answer!!!
ulisses is offline   Reply With Quote

Old   June 14, 2011, 18:43
Default
  #7
Assistant Moderator
 
Bernhard Gschaider
Join Date: Mar 2009
Posts: 3,912
Rep Power: 40
gschaider will become famous soon enoughgschaider will become famous soon enough
Quote:
Originally Posted by ulisses View Post
Ok, let's keep english language as standard of communication

I did wthat you suggested (clean completely the directory and check myflex and mybison) but the error remains:

ulisses@linux-ddg2:~/OpenFOAM/ulisses-1.6/applications/utilities/groovyBC> wmake libso

linuxGccDPOpt/options:14: *** missing separator. Stop.
wmake error: file 'Make/linuxGccDPOpt/objectFiles' could not be created

My Make/options file is written as follows:

1 # 1 "options"
2 # 1 "<built-in>"
3 # 1 "<command-line>"
4 # 1 "options"
5 include $(OBJECTS_DIR)/../mybison
6 include $(OBJECTS_DIR)/../myflex
7
8 ifdef FOAM_DEV
9 FOAM_DEV_OPTION = -DFOAM_DEV
10 endif
11
12 EXE_INC = -I$(OBJECTS_DIR)
13 $(FOAM_DEV_OPTION)
14 -I$(LIB_SRC)/finiteVolume/lnInclude
15
16 LIB_LIBS = -lfiniteVolume
17 -lOpenFOAM

I don't understand why the line 14 gives that error.

Thanks for the prompt answer!!!
OK. I do. Because my Make/options (the one that is in the SVN) reads

Code:
include $(OBJECTS_DIR)/../mybison
include $(OBJECTS_DIR)/../myflex

ifdef FOAM_DEV
FOAM_DEV_OPTION = -DFOAM_DEV
endif

EXE_INC = -I$(OBJECTS_DIR) \
        $(FOAM_DEV_OPTION)      \
    -I$(LIB_SRC)/finiteVolume/lnInclude 

LIB_LIBS = -lfiniteVolume \
        -lOpenFOAM
and the backslashes at the end of the line are essential
gschaider is offline   Reply With Quote

Old   June 15, 2011, 11:06
Default
  #8
New Member
 
Ulisses
Join Date: Mar 2009
Location: Brazil
Posts: 24
Rep Power: 8
ulisses is on a distinguished road
Thanks Bernhard!!! You solved my problem!!!
ulisses is offline   Reply With Quote

Reply

Thread Tools
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 On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Building OpenFOAM1.7.0 from source ata OpenFOAM Installation 42 May 14, 2012 20:48
error while running paraFoam! padmanathan OpenFOAM 9 October 13, 2009 05:17
OpenFOAM on MinGW crosscompiler hosted on Linux allenzhao OpenFOAM Installation 127 January 30, 2009 20:08
Problem with compile the setParabolicInlet ivanyao OpenFOAM Running, Solving & CFD 6 September 5, 2008 20:50
DecomposePar links against liblamso0 with OpenMPI jens_klostermann OpenFOAM Bugs 11 June 28, 2007 17:51


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