|
[Sponsors] |
Problem with libscotch in ThirdParty applications |
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
January 29, 2010, 14:40 |
Problem with libscotch in ThirdParty applications
|
#1 |
Member
Ganesh Vijayakumar
Join Date: Jan 2010
Posts: 44
Rep Power: 16 |
hi !
I have a Fedora 10 box and am using the OpenFOAM-1.6.x from the git repository. The ThirdParty-1.6 seems to have a problem when using Allwmake. [root@country ThirdParty-1.6.x]# ./Allwmake ++ '[' -n '' ']' ++ '[' -n '' ']' ++ '[' -n '' ']' ++ '[' -n '' ']' ++ '[' -n '' ']' ++ cd malloc ++ ./Allwmake + wmake libso hoard '/opt/OpenFOAM/OpenFOAM-1.6.x/lib/linuxGccDPOpt/libhoard.so' is up to date. + wmake libo fbsdmalloc '/opt/OpenFOAM/OpenFOAM-1.6.x/lib/linuxGccDPOpt/libfbsdmalloc.o' is up to date. ++ case "$WM_MPLIB" in ++ '[' -r /opt/OpenFOAM/ThirdParty-1.6.x/openmpi-1.3.3/platforms/linuxGccDPOpt/lib/libmpi.so ']' ++ echo 'have OPENMPI shared library' have OPENMPI shared library ++ cd scotch_5.1 ++ wmake libso src/libscotch SOURCE=parser_yy.y ; bison -v -d -y $SOURCE ; mv y.tab.c Make/linuxGccDPOpt/parser_yy.c ; mv y.tab.h Make/linuxGccDPOpt/parser_yy.h ; gcc -m32 -Dlinux -DWM_DP -Wall -O3 -Drestrict=__restrict -DCOMMON_FILE_COMPRESS_GZ -DCOMMON_RANDOM_FIXED_SEED -DCOMMON_TIMING_OLD -DSCOTCH_RENAME -I../../include -DSCOTCH_VERSION=\""5.1"\" -IlnInclude -I. -I/opt/OpenFOAM/OpenFOAM-1.6.x/src/OpenFOAM/lnInclude -I/opt/OpenFOAM/OpenFOAM-1.6.x/src/OSspecific/POSIX/lnInclude -fPIC -c Make/linuxGccDPOpt/parser_yy.c -o Make/linuxGccDPOpt/parser_yy.o parser_yy.y:69:30: error: parser_yy_scotch.h: No such file or directory y.tab.c: In function ‘_SCOTCHstratParserParse2’: y.tab.c:2297: warning: implicit declaration of function ‘_SCOTCHstratParserError’ parser_yy.y: At top level: parser_yy.y:794: error: static declaration of ‘_SCOTCHstratParserError’ follows non-static declaration y.tab.c:2297: note: previous implicit declaration of ‘_SCOTCHstratParserError’ was here make: *** [Make/linuxGccDPOpt/parser_yy.o] Error 1 ++ cd metis-5.0pre2 ++ wmake libso GKlib '/opt/OpenFOAM/OpenFOAM-1.6.x/lib/linuxGccDPOpt/libGKlib.so' is up to date. ++ wmake libso libmetis '/opt/OpenFOAM/OpenFOAM-1.6.x/lib/linuxGccDPOpt/libmetis.so' is up to date. ++ '[' OPENMPI = MPI -o -d /opt/OpenFOAM/ThirdParty-1.6.x/openmpi-1.3.3/platforms/linuxGccDPOpt ']' ++ cd ParMetis-3.1 ++ WM_OPTIONS=linuxGccDPOptOPENMPI ++ wmake libso METISLib '/opt/OpenFOAM/OpenFOAM-1.6.x/lib/linuxGccDPOpt/openmpi-1.3.3/libmetis-parmetis.so' is up to date. ++ wmake libso ParMETISLib '/opt/OpenFOAM/OpenFOAM-1.6.x/lib/linuxGccDPOpt/openmpi-1.3.3/libparmetis.so' is up to date. ++ wmake libso ParMGridGen-1.0/MGridGen/IMlib '/opt/OpenFOAM/OpenFOAM-1.6.x/lib/linuxGccDPOpt/libIMlib.so' is up to date. ++ wmake libso ParMGridGen-1.0/MGridGen/Lib '/opt/OpenFOAM/OpenFOAM-1.6.x/lib/linuxGccDPOpt/libMGridGen.so' is up to date. Any idea what the problem is ? ganesh |
|
January 29, 2010, 20:57 |
|
#2 |
Retired Super Moderator
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,974
Blog Entries: 45
Rep Power: 128 |
Greetings Ganesh,
Three hypothesis come to my mind:
Best regards, Bruno |
|
January 30, 2010, 02:31 |
Still not working
|
#3 |
Member
Ganesh Vijayakumar
Join Date: Jan 2010
Posts: 44
Rep Power: 16 |
hi !
I did install bison, byacc and flex and now I checked that they are indeed installed. I am using the version of gcc on the system [root@country OpenFOAM]# gcc -v Using built-in specs. Target: i586-redhat-linux Configured with: ../configure --prefix=/usr --mandir=/usr/share/man --infodir=/usr/share/info --with-bugurl=http://bugzilla.redhat.com/bugzilla --enable-bootstrap --enable-shared --enable-threads=posix --enable-checking=release --with-system-zlib --enable-__cxa_atexit --disable-libunwind-exceptions --enable-languages=c,c++,objc,obj-c++,java,fortran,ada --enable-java-awt=gtk --disable-dssi --enable-plugin --with-java-home=/usr/lib/jvm/java-1.5.0-gcj-1.5.0.0/jre --enable-libgcj-multifile --enable-java-maintainer-mode --with-ecj-jar=/usr/share/java/eclipse-ecj.jar --disable-libjava-multilib --with-ppl --with-cloog --with-tune=generic --with-arch=i586 --build=i586-redhat-linux Thread model: posix gcc version 4.4.1 20090725 (Red Hat 4.4.1-2) (GCC) Also I had changed the settings.h in OpenFOAM.1.6.x to use the system gcc. I checked the md5sum against the one on the website. Could anything else be a problem ? ganesh |
|
January 30, 2010, 17:17 |
|
#4 |
Retired Super Moderator
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,974
Blog Entries: 45
Rep Power: 128 |
Greetings Ganesh!
Uhm, strange... according to your first post, the file parser_yy_scotch.h is missing: Code:
parser_yy.y:69:30: error: parser_yy_scotch.h: No such file or directory Code:
ThirdParty-1.6.x/scotch_5.1/src/libscotch ThirdParty-1.6.x/scotch_5.1/src/libscotch/lnInclude (just a simbolic link to the file in the previous folder)
Best regards and hope this solves it! Bruno |
|
January 31, 2010, 02:43 |
It worked
|
#5 |
Member
Ganesh Vijayakumar
Join Date: Jan 2010
Posts: 44
Rep Power: 16 |
hi !
Thanks Bruno. I had to untar the ThirdParty-1.6.gtgz again and copy the parser_yy_scotch.h manually to the src/libscotch folder again. I don't know how it got deleted. But once that was done it was a smooth ride. The Allwmake command worked in the OpenFOAM-1.6.x folder too. ganesh |
|
Thread Tools | Search this Thread |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
UDF compiling problem | Wouter | Fluent UDF and Scheme Programming | 6 | June 6, 2012 04:43 |
Incoherent problem table in hollow-fiber spinning | Gianni | FLUENT | 0 | April 5, 2008 10:33 |
natural convection problem for a CHT problem | Se-Hee | CFX | 2 | June 10, 2007 06:29 |
Adiabatic and Rotating wall (Convection problem) | ParodDav | CFX | 5 | April 29, 2007 19:13 |
convergence problem | Trushar | Phoenics | 5 | August 27, 2002 23:40 |