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

[swak4Foam] installation problem with version 0.2.3

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

Like Tree2Likes
  • 2 Post By samiam1000

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   May 7, 2013, 05:59
Default installation problem with version 0.2.3
  #1
Member
 
Claudio
Join Date: Mar 2012
Location: Milano, Italy
Posts: 49
Rep Power: 14
Claudio87 is on a distinguished road
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
Attached Files
File Type: txt wmake.txt (1.4 KB, 17 views)
Claudio87 is offline   Reply With Quote

Old   May 7, 2013, 06: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
Quote:
Originally Posted by Claudio87 View Post
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
__________________
Note: I don't use "Friend"-feature on this forum out of principle. Ah. And by the way: I'm not on Facebook either. So don't be offended if I don't accept your invitation/friend request
gschaider is offline   Reply With Quote

Old   May 7, 2013, 07:04
Default
  #3
Member
 
Claudio
Join Date: Mar 2012
Location: Milano, Italy
Posts: 49
Rep Power: 14
Claudio87 is on a distinguished road
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...
Claudio87 is offline   Reply With Quote

Old   May 7, 2013, 07:56
Default
  #4
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 Claudio87 View Post
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 View Post
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 View Post
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
__________________
Note: I don't use "Friend"-feature on this forum out of principle. Ah. And by the way: I'm not on Facebook either. So don't be offended if I don't accept your invitation/friend request
gschaider is offline   Reply With Quote

Old   May 7, 2013, 09:06
Default
  #5
Member
 
Claudio
Join Date: Mar 2012
Location: Milano, Italy
Posts: 49
Rep Power: 14
Claudio87 is on a distinguished road
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!
Attached Files
File Type: txt wmake2.txt (18.8 KB, 4 views)
Claudio87 is offline   Reply With Quote

Old   May 7, 2013, 10:12
Default
  #6
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 Claudio87 View Post
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?
__________________
Note: I don't use "Friend"-feature on this forum out of principle. Ah. And by the way: I'm not on Facebook either. So don't be offended if I don't accept your invitation/friend request
gschaider is offline   Reply With Quote

Old   May 7, 2013, 10:49
Default
  #7
Member
 
Claudio
Join Date: Mar 2012
Location: Milano, Italy
Posts: 49
Rep Power: 14
Claudio87 is on a distinguished road
My distribution is

Linux debian 2.6.32-5-amd64.

I don't understand why it shouldn't compile!
Claudio87 is offline   Reply With Quote

Old   May 7, 2013, 11:21
Default
  #8
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 Claudio87 View Post
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
__________________
Note: I don't use "Friend"-feature on this forum out of principle. Ah. And by the way: I'm not on Facebook either. So don't be offended if I don't accept your invitation/friend request
gschaider is offline   Reply With Quote

Old   May 7, 2013, 12:12
Default
  #9
Senior Member
 
Samuele Z
Join Date: Oct 2009
Location: Mozzate - Co - Italy
Posts: 520
Rep Power: 19
samiam1000 is on a distinguished road
Maybe this is the package: linux-libc-dev

See here.

Regards,
Samuele
gschaider and wyldckat like this.
samiam1000 is offline   Reply With Quote

Old   May 8, 2013, 10:20
Default
  #10
Member
 
Claudio
Join Date: Mar 2012
Location: Milano, Italy
Posts: 49
Rep Power: 14
Claudio87 is on a distinguished road
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
Claudio87 is offline   Reply With Quote

Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
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 Off
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
installation Problem - Linux distribution (Not a meshing problem) v_herw Pointwise & Gridgen 2 June 20, 2016 14:47
engrid 1.4 installation problem in openSUSE 12.3 and 13.1 taxalian enGrid 4 March 4, 2014 13:36
OpenFOAM 1.7.1 installation problem on Fedora 14 armonica OpenFOAM Installation 16 March 31, 2011 13:16
[OpenFOAM] Problem with paraFoam on a linux-64 bit bunni ParaView 4 April 14, 2010 20:55
OF Installation Problem - Gcc Error Daniel Pilatti OpenFOAM Installation 11 April 19, 2009 22:07


All times are GMT -4. The time now is 00:01.