CFD Online Discussion Forums

CFD Online Discussion Forums (http://www.cfd-online.com/Forums/)
-   OpenFOAM Pre-Processing (http://www.cfd-online.com/Forums/openfoam-pre-processing/)
-   -   groovyBC - compile error? (http://www.cfd-online.com/Forums/openfoam-pre-processing/80135-groovybc-compile-error.html)

rieuk September 16, 2010 07:18

groovyBC - compile error?
 
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.


gschaider September 17, 2010 04:51

No problem. You've got an .so (the warnings are normal and can't be avoided)

Bernhard

rieuk September 18, 2010 09:42

Thanks Bernhard!

ulisses June 14, 2011 08:16

groovyBC doesn't compile
 
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?

gschaider June 14, 2011 11:56

Quote:

Originally Posted by ulisses (Post 311963)
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

ulisses June 14, 2011 17:06

Quote:

Originally Posted by gschaider (Post 311998)
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 :D

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!!!

gschaider June 14, 2011 18:43

Quote:

Originally Posted by ulisses (Post 312023)
Ok, let's keep english language as standard of communication :D

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

ulisses June 15, 2011 11:06

Thanks Bernhard!!! You solved my problem!!!


All times are GMT -4. The time now is 06:32.