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

[swak4Foam] groovyBC - compile error?

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   September 16, 2010, 08:18
Default groovyBC - compile error?
  #1
Senior Member
 
Pavan
Join Date: May 2009
Location: Melbourne
Posts: 101
Rep Power: 17
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, 05:51
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
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, 10:42
Default
  #3
Senior Member
 
Pavan
Join Date: May 2009
Location: Melbourne
Posts: 101
Rep Power: 17
rieuk is on a distinguished road
Thanks Bernhard!
rieuk is offline   Reply With Quote

Old   June 14, 2011, 09:16
Default groovyBC doesn't compile
  #4
New Member
 
Ulisses
Join Date: Mar 2009
Location: Brazil
Posts: 24
Rep Power: 17
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, 12:56
Default
  #5
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 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, 18:06
Default
  #6
New Member
 
Ulisses
Join Date: Mar 2009
Location: Brazil
Posts: 24
Rep Power: 17
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, 19:43
Default
  #7
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 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, 12:06
Default
  #8
New Member
 
Ulisses
Join Date: Mar 2009
Location: Brazil
Posts: 24
Rep Power: 17
ulisses is on a distinguished road
Thanks Bernhard!!! You solved my problem!!!
ulisses 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 14:21
Pressure outlet boundary condition rolando OpenFOAM Running, Solving & CFD 62 September 18, 2017 07:45
OpenFOAM without MPI kokizzu OpenFOAM Installation 4 May 26, 2014 10:17
Ansys Fluent 13.0 UDF compilation problem in Window XP (32 bit) Yogini Fluent UDF and Scheme Programming 7 October 3, 2012 08:24
DecomposePar links against liblamso0 with OpenMPI jens_klostermann OpenFOAM Bugs 11 June 28, 2007 18:51


All times are GMT -4. The time now is 04:33.