CFD Online Discussion Forums

CFD Online Discussion Forums (https://www.cfd-online.com/Forums/)
-   OpenFOAM Community Contributions (https://www.cfd-online.com/Forums/openfoam-community-contributions/)
-   -   [swak4Foam] installation problem with version 0.2.3 (https://www.cfd-online.com/Forums/openfoam-community-contributions/117361-installation-problem-version-0-2-3-a.html)

Claudio87 May 7, 2013 05:59

installation problem with version 0.2.3
 
1 Attachment(s)
Hi everybody!

I'm trying to install swak4Foam on OF-2.1.0, without success!
I downloaded the last version (0.2.3) - "Swak4Foam_2.x_release_0.2.3.tar.gz" ; after extracting, I went in the dyrectory and then I did ./Allwmake; the result gave me back an error.

Attached there is the log file.

Could anyone help me?
Thank you!


Best regards,
Claudio

gschaider May 7, 2013 06:51

Quote:

Originally Posted by Claudio87 (Post 425801)
Hi everybody!

I'm trying to install swak4Foam on OF-2.1.0, without success!
I downloaded the last version (0.2.3) - "Swak4Foam_2.x_release_0.2.3.tar.gz" ; after extracting, I went in the dyrectory and then I did ./Allwmake; the result gave me back an error.

Attached there is the log file.

Could anyone help me?
Thank you!


Best regards,
Claudio

Your textfile only has the standard-output, but not the standard-error-stuff (where the real problem is described ... you should see it on the terminal). To get all that into one file you usually do something like

Code:

./Allwmake 2>&1 >wmake.txt
Anyway. You say 2.1.0? Not 2.2.0? Because in that case it probably would have beent the problem described at ("Warning: seems like there ....")
http://openfoamwiki.net/index.php/Co...am#Downloading

Claudio87 May 7, 2013 07:04

Thank you for the quick answer!

First of all, yes, I'm sure my version of OF is 2.1.0.

Then, here there is the output from the terminal

Code:

claudio87@debian:~/Scrivania/Swak4Foam_2.x_release_0.2.3$ ./Allwmake 2>&1 > wmake.txt
In file included from /usr/include/bits/errno.h:25,
                from /usr/include/errno.h:36,
                from lex.fvexpr.c:41:
/usr/include/linux/errno.h:4:23: error: asm/errno.h: No such file or directory
In file included from lnInclude/FieldValueExpressionParser_location.hh:44,
                from FieldValueExpressionParser.tab.hh:65,
                from lnInclude/FieldValueExpressionDriver.H:49,
                from lnInclude/FieldValueExpressionDriverYY.H:36,
                from ../FieldValueExpressionLexer.ll:33:
position.hh: In function ‘bool parserField::operator==(const parserField::position&, const parserField::position&)’:
position.hh:136: warning: suggest parentheses around ‘&&’ within ‘||’
lex.fvexpr.c: In function ‘int parserFieldlex(parserField::FieldValueExpressionParser::semantic_type*, parserField::location*, void*, Foam::FieldValueExpressionDriver&, int&, int&)’:
lex.fvexpr.c:62496: warning: use of old-style cast
lex.fvexpr.c:62575: warning: use of old-style cast
lex.fvexpr.c:62575: warning: use of old-style cast
lex.fvexpr.c:62592: warning: use of old-style cast
lex.fvexpr.c:62605: warning: use of old-style cast
lex.fvexpr.c:63665: warning: use of old-style cast
lex.fvexpr.c: In function ‘int yy_get_next_buffer(void*)’:
lex.fvexpr.c:63813: warning: use of old-style cast
lex.fvexpr.c:63845: warning: use of old-style cast
lex.fvexpr.c:63868: warning: use of old-style cast
lex.fvexpr.c:63881: warning: use of old-style cast
lex.fvexpr.c:63881: warning: use of old-style cast
lex.fvexpr.c:63902: warning: use of old-style cast
lex.fvexpr.c:63902: warning: use of old-style cast
lex.fvexpr.c:63902: error: ‘EINTR’ was not declared in this scope
lex.fvexpr.c:63927: warning: use of old-style cast
lex.fvexpr.c:63930: warning: use of old-style cast
lex.fvexpr.c:63930: warning: use of old-style cast
lex.fvexpr.c: In function ‘yy_state_type yy_get_previous_state(void*)’:
lex.fvexpr.c:63956: warning: use of old-style cast
lex.fvexpr.c:63966: warning: use of old-style cast
lex.fvexpr.c:63966: warning: use of old-style cast
lex.fvexpr.c: In function ‘yy_state_type yy_try_NUL_trans(yy_state_type, void*)’:
lex.fvexpr.c:63992: warning: use of old-style cast
lex.fvexpr.c: In function ‘int yyinput(void*)’:
lex.fvexpr.c:64028: warning: use of old-style cast
lex.fvexpr.c:64086: warning: use of old-style cast
lex.fvexpr.c: In function ‘void fvexprrestart(FILE*, void*)’:
lex.fvexpr.c:64109: warning: use of old-style cast
lex.fvexpr.c: In function ‘void fvexpr_switch_to_buffer(yy_buffer_state*, void*)’:
lex.fvexpr.c:64131: warning: use of old-style cast
lex.fvexpr.c: In function ‘void fvexpr_load_buffer_state(void*)’:
lex.fvexpr.c:64167: warning: use of old-style cast
lex.fvexpr.c: In function ‘yy_buffer_state* fvexpr_create_buffer(FILE*, int, void*)’:
lex.fvexpr.c:64188: warning: use of old-style cast
lex.fvexpr.c:64197: warning: use of old-style cast
lex.fvexpr.c: In function ‘void fvexpr_delete_buffer(yy_buffer_state*, void*)’:
lex.fvexpr.c:64218: warning: use of old-style cast
lex.fvexpr.c:64224: warning: use of old-style cast
lex.fvexpr.c:64227: warning: use of old-style cast
lex.fvexpr.c:64229: warning: use of old-style cast
lex.fvexpr.c: In function ‘void fvexpr_init_buffer(yy_buffer_state*, FILE*, void*)’:
lex.fvexpr.c:64255: warning: use of old-style cast
lex.fvexpr.c: In function ‘void fvexpr_flush_buffer(yy_buffer_state*, void*)’:
lex.fvexpr.c:64291: warning: use of old-style cast
lex.fvexpr.c: In function ‘void fvexprpush_buffer_state(yy_buffer_state*, void*)’:
lex.fvexpr.c:64326: warning: use of old-style cast
lex.fvexpr.c: In function ‘void fvexprpop_buffer_state(void*)’:
lex.fvexpr.c:64363: warning: use of old-style cast
lex.fvexpr.c: In function ‘void fvexprensure_buffer_stack(void*)’:
lex.fvexpr.c:64390: warning: use of old-style cast
lex.fvexpr.c:64401: warning: use of old-style cast
lex.fvexpr.c:64421: warning: use of old-style cast
lex.fvexpr.c: In function ‘yy_buffer_state* fvexpr_scan_buffer(char*, yy_size_t, void*)’:
lex.fvexpr.c:64449: warning: use of old-style cast
lex.fvexpr.c: In function ‘yy_buffer_state* fvexpr_scan_bytes(const char*, int, void*)’:
lex.fvexpr.c:64502: warning: use of old-style cast
lex.fvexpr.c: In function ‘void yy_push_state(int, void*)’:
lex.fvexpr.c:64530: warning: use of old-style cast
lex.fvexpr.c:64539: warning: use of old-style cast
lex.fvexpr.c:64542: warning: use of old-style cast
lex.fvexpr.c:64542: warning: use of old-style cast
lex.fvexpr.c: In function ‘void yy_pop_state(void*)’:
lex.fvexpr.c:64559: warning: use of old-style cast
lex.fvexpr.c: In function ‘int yy_top_state(void*)’:
lex.fvexpr.c:64572: warning: use of old-style cast
lex.fvexpr.c: In function ‘void* fvexprget_extra(void*)’:
lex.fvexpr.c:64617: warning: use of old-style cast
lex.fvexpr.c: In function ‘int fvexprget_lineno(void*)’:
lex.fvexpr.c:64628: warning: use of old-style cast
lex.fvexpr.c: In function ‘int fvexprget_column(void*)’:
lex.fvexpr.c:64641: warning: use of old-style cast
lex.fvexpr.c: In function ‘FILE* fvexprget_in(void*)’:
lex.fvexpr.c:64654: warning: use of old-style cast
lex.fvexpr.c: In function ‘FILE* fvexprget_out(void*)’:
lex.fvexpr.c:64663: warning: use of old-style cast
lex.fvexpr.c: In function ‘int fvexprget_leng(void*)’:
lex.fvexpr.c:64672: warning: use of old-style cast
lex.fvexpr.c: In function ‘char* fvexprget_text(void*)’:
lex.fvexpr.c:64682: warning: use of old-style cast
lex.fvexpr.c: In function ‘void fvexprset_extra(void*, void*)’:
lex.fvexpr.c:64694: warning: use of old-style cast
lex.fvexpr.c: In function ‘void fvexprset_lineno(int, void*)’:
lex.fvexpr.c:64706: warning: use of old-style cast
lex.fvexpr.c: In function ‘void fvexprset_column(int, void*)’:
lex.fvexpr.c:64721: warning: use of old-style cast
lex.fvexpr.c: In function ‘void fvexprset_in(FILE*, void*)’:
lex.fvexpr.c:64738: warning: use of old-style cast
lex.fvexpr.c: In function ‘void fvexprset_out(FILE*, void*)’:
lex.fvexpr.c:64744: warning: use of old-style cast
lex.fvexpr.c: In function ‘int fvexprget_debug(void*)’:
lex.fvexpr.c:64750: warning: use of old-style cast
lex.fvexpr.c: In function ‘void fvexprset_debug(int, void*)’:
lex.fvexpr.c:64756: warning: use of old-style cast
lex.fvexpr.c: In function ‘YYSTYPE* fvexprget_lval(void*)’:
lex.fvexpr.c:64769: warning: use of old-style cast
lex.fvexpr.c: In function ‘void fvexprset_lval(YYSTYPE*, void*)’:
lex.fvexpr.c:64775: warning: use of old-style cast
lex.fvexpr.c: In function ‘int fvexprlex_init(void**)’:
lex.fvexpr.c:64792: error: ‘EINVAL’ was not declared in this scope
lex.fvexpr.c:64796: warning: use of old-style cast
lex.fvexpr.c:64799: error: ‘ENOMEM’ was not declared in this scope
lex.fvexpr.c: In function ‘int fvexprlex_init_extra(void*, void**)’:
lex.fvexpr.c:64825: error: ‘EINVAL’ was not declared in this scope
lex.fvexpr.c:64829: warning: use of old-style cast
lex.fvexpr.c:64832: error: ‘ENOMEM’ was not declared in this scope
lex.fvexpr.c: In function ‘int yy_init_globals(void*)’:
lex.fvexpr.c:64850: warning: use of old-style cast
lex.fvexpr.c:64858: warning: use of old-style cast
lex.fvexpr.c:64871: warning: use of old-style cast
lex.fvexpr.c:64872: warning: use of old-style cast
lex.fvexpr.c: In function ‘int fvexprlex_destroy(void*)’:
lex.fvexpr.c:64886: warning: use of old-style cast
lex.fvexpr.c: In function ‘void* fvexpralloc(yy_size_t, void*)’:
lex.fvexpr.c:64942: warning: use of old-style cast
lex.fvexpr.c: In function ‘void* fvexprrealloc(void*, yy_size_t, void*)’:
lex.fvexpr.c:64954: warning: use of old-style cast
lex.fvexpr.c:64954: warning: use of old-style cast
lex.fvexpr.c: In function ‘void fvexprfree(void*, void*)’:
lex.fvexpr.c:64959: warning: use of old-style cast
../FieldValueExpressionLexer.ll: In member function ‘virtual void Foam::FieldValueExpressionDriver::scan_begin()’:
../FieldValueExpressionLexer.ll:597: warning: use of old-style cast
../FieldValueExpressionLexer.ll: In member function ‘void Foam::FieldValueExpressionDriver::startEatCharacters()’:
../FieldValueExpressionLexer.ll:643: warning: use of old-style cast
../FieldValueExpressionLexer.ll: In member function ‘void Foam::FieldValueExpressionDriver::startVectorComponent()’:
../FieldValueExpressionLexer.ll:655: warning: use of old-style cast
../FieldValueExpressionLexer.ll: In member function ‘void Foam::FieldValueExpressionDriver::startTensorComponent()’:
../FieldValueExpressionLexer.ll:667: warning: use of old-style cast
lex.fvexpr.c: At global scope:
lex.fvexpr.c:64525: warning: ‘void yy_push_state(int, void*)’ defined but not used
lex.fvexpr.c:64554: warning: ‘void yy_pop_state(void*)’ defined but not used
lex.fvexpr.c:64567: warning: ‘int yy_top_state(void*)’ defined but not used
make: *** [Make/linuxGccDPOpt/FieldValueExpressionLexer.o] Error 1

With the command
Code:

./Allwmake 2>&1 >wmake.txt
I get back what I attached before...

gschaider May 7, 2013 07:56

Quote:

Originally Posted by Claudio87 (Post 425809)
Thank you for the quick answer!

First of all, yes, I'm sure my version of OF is 2.1.0.

Quote:

Originally Posted by Claudio87 (Post 425809)
Then, here there is the output from the terminal

Code:

claudio87@debian:~/Scrivania/Swak4Foam_2.x_release_0.2.3$ ./Allwmake 2>&1 > wmake.txt
In file included from /usr/include/bits/errno.h:25,
                from /usr/include/errno.h:36,
                from lex.fvexpr.c:41:
/usr/include/linux/errno.h:4:23: error: asm/errno.h: No such file or directory
In file included from lnInclude/FieldValueExpressionParser_location.hh:44,
                from FieldValueExpressionParser.tab.hh:65,
                from lnInclude/FieldValueExpressionDriver.H:49,
                from lnInclude/FieldValueExpressionDriverYY.H:36,
                from ../FieldValueExpressionLexer.ll:33:
position.hh: In function ‘bool parserField::operator==(const parserField::position&, const parserField::position&)’:
position.hh:136: warning: suggest parentheses around ‘&&’ within ‘||’
lex.fvexpr.c: In function ‘int parserFieldlex(parserField::FieldValueExpressionParser::semantic_type*, parserField::location*, void*, Foam::FieldValueExpressionDriver&, int&, int&)’:
lex.fvexpr.c:62496: warning: use of old-style cast


The majority of these warnings is "normal". The problem is

Code:

/usr/include/linux/errno.h:4:23: error: asm/errno.h: No such file or directory
which is strange as asm/errrno.h usually is in the same package as linux/errno.h (kernel-headers). Anyway this is not a swak-problem but with your system (have you compiled any other software before?)

Quote:

Originally Posted by Claudio87 (Post 425809)
With the command
Code:

./Allwmake 2>&1 >wmake.txt
I get back what I attached before...

OK. This differs from shell to shell. With bash it usually works

Claudio87 May 7, 2013 09:06

1 Attachment(s)
Ok. I did everything again from the beginning (1st: ./Allwclean; then: ./Allwmake, again).

I attached the new log. There is something new, something you can see I could do for the installation?

Quote:

Anyway this is not a swak-problem but with your system (have you compiled any other software before?)
I didn't compiled any other sotware before anyway.

Thanks!

gschaider May 7, 2013 10:12

Quote:

Originally Posted by Claudio87 (Post 425836)
Ok. I did everything again from the beginning (1st: ./Allwclean; then: ./Allwmake, again).

I attached the new log. There is something new, something you can see I could do for the installation?



I didn't compiled any other sotware before anyway.

Thanks!

The problem seems to be that a file that is needed by the compiler is missing. There is nothing to avoid using that on the swak/OpenFOAM-side. That's why I asked whether you ever compiled anything on that machine. Because I think that the compiler on your machine won't compile ANYTHING.

What Distro are you using?

Claudio87 May 7, 2013 10:49

My distribution is

Linux debian 2.6.32-5-amd64.

I don't understand why it shouldn't compile!

gschaider May 7, 2013 11:21

Quote:

Originally Posted by Claudio87 (Post 425876)
My distribution is

Linux debian 2.6.32-5-amd64.

I don't understand why it shouldn't compile!

The file that is missing (asm/errno.h) is included indirectly over 7 corners and probably will be needed by EVERY C++-program. My guess is that even a simple "Hello World"-program won't compile.

I don't have a Debian-based distro so I can't tell you which package the missing file belongs do. On my distro it is part of kernel-headers. Maybe someone with a Debian/Ubuntu can help you here

samiam1000 May 7, 2013 12:12

Maybe this is the package: linux-libc-dev

See here.

Regards,
Samuele

Claudio87 May 8, 2013 10:20

Ok. Just to give you a feedback, I solved my problem about the installation.
I updated and upgraded all the system, and now it works. The installation seems done.
Thank you very much for your help!

Best regards,
Claudio


All times are GMT -4. The time now is 21:36.