View Issue Details

IDProjectCategoryView StatusLast Update
0000353OpenFOAMBugpublic2011-12-19 09:59
Reporternsf Assigned Touser17 
PrioritynormalSeverityminorReproducibilityalways
Status resolvedResolutionno change required 
PlatformAllOSUbuntuOS Version11.10
Summary0000353: Instructions for git install on ubuntu 11.10 are incomplete
DescriptionTwo necessary steps are missing for a complete compilation in the instructions at http://www.openfoam.org/git.php.

1) Bison is not installed in ubuntu by default. Packages to install under "Dependent packages required for Ubuntu " should be complemented with bison

2) Missing include statement in ParaView-3.10.1/VTK/Utilities/vtkmetaio/metaUtils.cxx

The line #include <stddef.h> must be added to the above file.

This is discussed in this thread http://www.cfd-online.com/Forums/openfoam-installation/93405-openfoam-2-0-x-ubuntu-11-10-a.html#post327946
Steps To ReproduceClean install of Ubuntu 11.10 then follow the instructions at http://www.openfoam.org/git.php
TagsNo tags attached.

Activities

albertop

2011-12-11 04:28

reporter   ~0000835

FYI: Point 2 is resolved using ParaView 3.12 (you need to correct the version of ParaView set into ~/OpenFOAM/OpenFOAM-2.0.x/etc/config/paraview.sh).

nsf

2011-12-11 14:45

reporter   ~0000836

Hey Alberto, thank you for the tip. 3.12 seems to bring some nice features so I think I'll upgrade.

I saw that there still was some activity in the thread at cfd-online so I thought I'd contribute since point 1 is really easy to fix.

Best Regards

Nicolas

wyldckat

2011-12-14 11:28

updater   ~0000838

Just a little question: I haven't checked this yet for myself, but "bison" is needed to build what exactly? OpenFOAM code or ParaView code?

nsf

2011-12-14 20:51

reporter   ~0000844

You are right it's not OpenFOAM that needs bison but the decomposition library scotch. It's needed when compiling "parser.c"

user17

2011-12-15 11:21

  ~0000845

Could you post the actual error message when compiling scotch?

There is a last_resort folder containing a precompiled parser. If scotch does not find bison then it simply copies those files from the last_resort folder.

nsf

2011-12-15 18:28

reporter   ~0000846

This was a while back and I'm not entirely sure I've got the right log file but the relevant parts are included below. I would seem you are right, it does copy files from the last_resort folder. However as I recall the .../scotch_5.1.11/bin folder was empty after compilation, though I cannot be sure. It's also possible I just got spooked by the make: Error message.



gcc -O3 -DCOMMON_FILE_COMPRESS_GZ -DCOMMON_RANDOM_FIXED_SEED -DSCOTCH_RENAME -DSCOTCH_RENAME_PARSER -Drestrict=__restrict -fPIC -c parser.c -o parser.o
parser.c: In function ‘_SCOTCHstratTestSave’:
parser.c:593:7: warning: format not a string literal and no format arguments
parser.c:595:7: warning: format not a string literal and no format arguments
parser.c:599:9: warning: format not a string literal and no format arguments
parser.c:601:9: warning: format not a string literal and no format arguments
(bison -pscotchyy -y -b y -d -v parser_yy.y && \
                     mv y.tab.c parser_yy.c && \
                     mv y.tab.h parser_ly.h) || \
                    cp last_resort/parser_ly.h last_resort/parser_yy.c .
/bin/sh: bison: not found

And way down:

cp -f ../bin/[agm]* /home/nico/OpenFOAM/ThirdParty-2.0.x/platforms/linux64Gcc/scotch_5.1.11/bin
cp: cannot stat `../bin/[agm]*': No such file or directory
make: [install] Error 1 (ignored)

what are your thoughts?

user17

2011-12-15 18:53

  ~0000847

Could you put the whole log up? It's not clear the make install error is related.

nsf

2011-12-17 07:43

reporter  

Allwmake.log.tgz (77,842 bytes)

user17

2011-12-19 09:57

  ~0000849

Last edited: 2011-12-19 09:58

There is a bug in the scotch Makefile, where 'make install' will not copy the binaries to the install prefix for ptscotch (the binaries begin with 'd' but the regex only looks for [agm]).

OpenFOAM doesn't use the binaries so you can ignore the error.

Thanks for the report.

Issue History

Date Modified Username Field Change
2011-12-09 16:12 nsf New Issue
2011-12-11 04:28 albertop Note Added: 0000835
2011-12-11 14:45 nsf Note Added: 0000836
2011-12-14 11:28 wyldckat Note Added: 0000838
2011-12-14 20:51 nsf Note Added: 0000844
2011-12-15 10:52 user4 Assigned To => user17
2011-12-15 10:52 user4 Status new => assigned
2011-12-15 11:21 user17 Note Added: 0000845
2011-12-15 18:28 nsf Note Added: 0000846
2011-12-15 18:53 user17 Note Added: 0000847
2011-12-17 07:43 nsf File Added: Allwmake.log.tgz
2011-12-19 09:57 user17 Note Added: 0000849
2011-12-19 09:58 user17 Note Edited: 0000849
2011-12-19 09:59 user17 Status assigned => resolved
2011-12-19 09:59 user17 Resolution open => no change required