CFD Online Discussion Forums

CFD Online Discussion Forums (http://www.cfd-online.com/Forums/)
-   OpenFOAM Installation (http://www.cfd-online.com/Forums/openfoam-installation/)
-   -   Intel compiling problem (http://www.cfd-online.com/Forums/openfoam-installation/57430-intel-compiling-problem.html)

cosimobianchini February 8, 2007 05:27

Hi everybody, Trying to com
 
Hi everybody,

Trying to compile OpenFOAM with the intel compiler 9.1.042 version with standard OF options, everything goes right except for the compilation of trisurface library.
I found these compiler errors:

cosimo@kelvin:..src/triSurface> wmake libso
make: Nothing to be done for `allFiles'.
make: `lnInclude/uptodate' is up to date.
make: `Make/linuxI32DPOpt/dependencies' is up to date.
libso
SOURCE_DIR=triSurface/interfaces/STL
SOURCE=triSurface/interfaces/STL/readSTLASCII.L ; foamFlex++ -f $SOURCE ; mv lex.yy.cc Make/linuxI32DPOpt/readSTLASCII.C ; icc -gcc-version=410 -Dlinux -DDP -wd654 -vec-report0 -O3 -no-prec-div -xP -DNoRepository -I/home/andreini/OpenFOAM/OpenFOAM-1.3/src/OpenFOAM/lnInclude -IlnInclude -I. -KPIC -c Make/linuxI32DPOpt/readSTLASCII.C -o Make/linuxI32DPOpt/readSTLASCII.o
lex.yy.cc(5774): error: identifier "yy_current_buffer" is undefined
if ( ! yy_current_buffer )
^

lex.yy.cc(5988): error: identifier "yy_current_buffer" is undefined
if ( yy_current_buffer->yy_buffer_status == YY_BUFFER_NEW )
^

lex.yy.cc(6128): error: identifier "yy_current_buffer" is undefined
yy_current_buffer = 0;
^

lex.yy.cc(6140): error: identifier "yy_current_buffer" is undefined
yy_delete_buffer( yy_current_buffer );
^

lex.yy.cc(6147): error: identifier "yy_current_buffer" is undefined
yy_delete_buffer( yy_current_buffer );
^

lex.yy.cc(6200): error: identifier "yy_current_buffer" is undefined
register char *dest = yy_current_buffer->yy_ch_buf;
^

lex.yy.cc(6390): error: identifier "yy_current_buffer" is undefined
if ( yy_cp <yy_current_buffer->yy_ch_buf + 2 )
^

lex.yy.cc(6432): error: identifier "yy_current_buffer" is undefined
if ( yy_c_buf_p <&yy_current_buffer->yy_ch_buf[yy_n_chars] )
^

lex.yy.cc(6491): error: identifier "yy_current_buffer" is undefined
if ( ! yy_current_buffer )
^

lex.yy.cc(6501): error: identifier "yy_current_buffer" is undefined
if ( yy_current_buffer == new_buffer )
^

lex.yy.cc(6526): error: identifier "yy_current_buffer" is undefined
yy_n_chars = yy_current_buffer->yy_n_chars;
^

lex.yy.cc(6563): error: identifier "yy_current_buffer" is undefined
if ( b == yy_current_buffer )
^

lex.yy.cc(6573): warning #584: omission of exception specification is incompatible with previous function "isatty" (declared at line 743 of "/usr/include/unistd.h")
extern "C" int isatty YY_PROTO(( int ));
^

lex.yy.cc(6605): error: identifier "yy_current_buffer" is undefined
if ( b == yy_current_buffer )
^

compilation aborted for Make/linuxI32DPOpt/readSTLASCII.C (code 2)
make: *** [Make/linuxI32DPOpt/readSTLASCII.o] Error 2

It seems there is problem with foamFlex++

Can anyone give any help about it?


Thank in advance
Cosimo

jens_klostermann March 6, 2008 17:59

Hi cosimo, maybe it is to l
 
Hi cosimo,

maybe it is to late?, if not you can try (as Hrv suggested)

cd $FOAM_APP/utilities/miscellaneous
cp foamFlex/FlexLexer.h $FOAM_SRC/OpenFOAM/lnInclude

if FlexLexer.h doesn't live in $FOAM_SRC/OpenFOAM/lnInclude .

Check also http://www.cfd-online.com/OpenFOAM_Discus/messages/126/6070.html

Jens


All times are GMT -4. The time now is 12:37.