|
[Sponsors] |
February 23, 2006, 10:33 |
Hi Sebastien!
I tried to inst
|
#41 |
Senior Member
Francesco Del Citto
Join Date: Mar 2009
Location: Zürich Area, Switzerland
Posts: 237
Rep Power: 18 |
Hi Sebastien!
I tried to install OpenFOAM on the same OS, but after some unsuccesfull attempt, I gived up. Could you please explain in detail how could you install gcc 4.0.2 and then OpenFOAM? I was able to compile gcc 3.4.5, and tried to compile openFOAM 1.1 using it, but I had a problem while building dependencies, because the command line generated by the Makefile was too long for the system settings. Any help would be really appreciated! Francesco |
|
February 23, 2006, 10:53 |
Niklas,
You were right, if
|
#42 |
New Member
Sebastien RIFFLART
Join Date: Mar 2009
Posts: 10
Rep Power: 17 |
Niklas,
You were right, if I put the full path it's OK. I should have been able to find it was in thermodynamicProperties, but I too tired. Thanks a lot. Now I tried to run in parallel, and of course an other problem : mpirun -np 4 interFoam . damBreak mpirun (set_stdio): Invalid argument Can you be my saver once again? Francesco, For the length of command line, I didn't had this problem, but the solution has already been done : # systune |grep ncargs ncargs = 20480 (0x5000) # systune ncargs 0x6000 as a summary for installation : - install GNU Tar, because IRIX Tar will forget some files because of too long path - install GNU Make - install Binutils (for GNU as and GNU ld) - install gcc after that try to compile a hello world ! program with g++, if it's OK you can make OpenFoam |
|
February 23, 2006, 10:55 |
your syntax is incorrect
mp
|
#43 |
Member
stefan
Join Date: Mar 2009
Posts: 96
Rep Power: 17 |
your syntax is incorrect
mpirun -np 4 interFoam . damBreak -parallel for details consult the user guide! |
|
February 23, 2006, 11:53 |
I was using the correct syntax
|
#44 |
New Member
Sebastien RIFFLART
Join Date: Mar 2009
Posts: 10
Rep Power: 17 |
I was using the correct syntax, my message was wrong (sorry).
I found the problem on the Web : This is a bug in glibc. mpirun's -f option bypasses this code path. |
|
February 28, 2006, 04:38 |
I had problem with the native
|
#45 |
New Member
Sebastien RIFFLART
Join Date: Mar 2009
Posts: 10
Rep Power: 17 |
I had problem with the native MPI, so I recompile OpenFoam with "setenv WM_MPLIB LAM" in the .cshrc.
The compilation was OK. Now, if I had "/hydrowork/usr/cres/OpenFOAM/OpenFOAM-1.2/lib/sgiN32GccOpt/dummy" to the LD_LIBRARY_PATH, solvers can be run normally, if I don't add it to the LD_LIBRARY_PATH it choose the lam-7.1.1 libPstream.so and I've got this message : 1382330:interFoam: rld: Error: unresolvable symbol in /hydrowork/usr/cres/OpenFOAM/OpenFOAM-1.2/lib/sgiN32GccOpt/lam-7.1.1/libPstream. so: _ZN4PMPI9Intracomm10current_opE 1382330:interFoam: rld: Error: unresolvable symbol in /hydrowork/usr/cres/OpenFOAM/OpenFOAM-1.2/lib/sgiN32GccOpt/lam-7.1.1/libPstream. so: _ZN3MPI2Op4FreeEv 1382330:interFoam: rld: Error: unresolvable symbol in /hydrowork/usr/cres/OpenFOAM/OpenFOAM-1.2/lib/sgiN32GccOpt/lam-7.1.1/libPstream. so: op_intercept 1382330:interFoam: rld: Error: unresolvable symbol in /hydrowork/usr/cres/OpenFOAM/OpenFOAM-1.2/lib/sgiN32GccOpt/lam-7.1.1/libPstream. so: _ZN4PMPI4Comm11mpi_err_mapE 1382330:interFoam: rld: Error: unresolvable symbol in /hydrowork/usr/cres/OpenFOAM/OpenFOAM-1.2/lib/sgiN32GccOpt/lam-7.1.1/libPstream. so: _ZN3MPI2Op4InitEPFvPKvPviRKNS_8DatatypeEEb 1382330:interFoam: rld: Error: unresolvable symbol in /hydrowork/usr/cres/OpenFOAM/OpenFOAM-1.2/lib/sgiN32GccOpt/lam-7.1.1/libPstream. so: _ZN4PMPI4Comm12mpi_comm_mapE 1382330:interFoam: rld: Fatal Error: this executable has unresolvable symbols of course if I try to run in parallel, I've got the same message, What can I do, I think it's a problem of linking when making the library lipPstream.so, but I had no error when compiling. What can I do? |
|
February 28, 2006, 05:46 |
- remove lam-7.1.1/libPstream.
|
#46 |
Senior Member
Mattijs Janssens
Join Date: Mar 2009
Posts: 1,419
Rep Power: 26 |
- remove lam-7.1.1/libPstream.so
- source your .cshrc/.bashrc so you're sure you have all the right settings - rebuild Pstream: cd Pstream/mpi wmake libso and check the compilation and link lines very carefully. - try to find one of those missing symbols (using e.g. nm) and see what file you're missing. |
|
February 28, 2006, 06:43 |
When I rebuild Pstream, here a
|
#47 |
New Member
Sebastien RIFFLART
Join Date: Mar 2009
Posts: 10
Rep Power: 17 |
When I rebuild Pstream, here are the lines :
make: Nothing to be done for `allFiles'. make: `lnInclude/uptodate' is up to date. make: `Make/sgiN32GccOpt/dependencies' is up to date. libso /hydrowork/usr/cres/OpenFOAM/OpenFOAM-1.2/wmake/cshScripts/mkObjectDir /hydrowork/usr/cres/OpenFOAM/OpenFOAM-1.2/lib/sgiN32GccOpt/lam-7.1.1/libPstream rm -f so_locations cd Make/sgiN32GccOpt ; \ g++ -mabi=n32 -mips4 -DsgiN32 -Wall -W -Wno-unused-parameter -O3 -ffast-math -fno-schedule-insns -DNoRepository -ftemplate-depth-30 -I/hydrowork/usr/cres/OpenFOAM/OpenFOAM-1.2/src/lam-7.1.1/platforms/sgiN32GccOpt /include -I/hydrowork/usr/cres/OpenFOAM/OpenFOAM-1.2/src/OpenFOAM/lnInclude -IlnInclude -I. -fPIC -shared -Wl,-LD_LAYOUT:lgot_buffer=100 OPwrite.o IPread.o Pstream.o -L/hydrowork/usr/cres/OpenFOAM/OpenFOAM-1.2/lib/sgiN32GccOpt -L/hydrowork/usr/cres/OpenFOAM/OpenFOAM-1.2/src/lam-7.1.1/platforms/sgiN32GccOpt /lib -lmpi -llam -lpthread -o /hydrowork/usr/cres/OpenFOAM/OpenFOAM-1.2/lib/sgiN32GccOpt/lam-7.1.1/libPstream. so ld32: WARNING 84 : /usr/lib32/libm.so is not used for resolving any symbol. `/hydrowork/usr/cres/OpenFOAM/OpenFOAM-1.2/lib/sgiN32GccOpt/lam-7.1.1/libPstream .so' is up to date. And it seems that all the missings symbols are in liblammpi++.a (from /hydrowork/usr/cres/OpenFOAM/OpenFOAM-1.2/src/lam-7.1.1/platforms/sgiN32GccOpt/l ib/) I think I have to had something to /hydrowork/usr/cres/OpenFOAM/OpenFOAM-1.2/wmake/rules/sgiN32Gcc/mplibLAM which I edit like that : PFLAGS = PINC = -I$(LAM_ARCH_PATH)/include PLIBS = -L$(LAM_ARCH_PATH)/lib -lmpi -llam -lpthread I tried to add -lutil (like linux rules) but it gives me error : ld32: FATAL 9 : I/O error (-lutil): No such file or directory What can I do? |
|
February 28, 2006, 14:10 |
I found the solution :
PLIBS
|
#48 |
New Member
Sebastien RIFFLART
Join Date: Mar 2009
Posts: 10
Rep Power: 17 |
I found the solution :
PLIBS = -lm -lpthread -L$(LAM_ARCH_PATH)/lib -llammpi++ -llammpio -llamf77mpi -lmpi -llam and now it's OK |
|
March 28, 2006, 09:58 |
Hi!
I'm still in trouble with
|
#49 |
Senior Member
Francesco Del Citto
Join Date: Mar 2009
Location: Zürich Area, Switzerland
Posts: 237
Rep Power: 18 |
Hi!
I'm still in trouble with OpenFOAM on IRIX 6.5. The first problem I'd like to resolve is the gcc compiler. If I try to compile gcc 4.0.2 with the internal cc compiler, this is what I do and the error I get: $ ../gcc-4.0.2/configure --prefix=/mnt/users/delcitto/local/gcc-4.0.2 --enable-threads 2>&1 | tee log_configure $ nohup make bootstrap 1>./bootstrap-gcc4.0.2-irix.out 2>&1 & And the error is: [...] config.status: executing default commands make[1]: Entering directory `/mnt/users/delcitto/download/GNU/gcc-4.0.2-irix/build-mips-sgi-irix6.5/libibert y' if [ x"" != x ] && [ ! -d pic ]; then \ mkdir pic; \ else true; fi touch stamp-picdir if [ x"" != x ]; then \ /bin/cc -c -DHAVE_CONFIG_H -I. -I../../../gcc-4.0.2/libiberty/../include ../../../gcc-4.0.2/libiberty/regex.c -o pic/regex.o; \ else true; fi /bin/cc -c -DHAVE_CONFIG_H -I. -I../../../gcc-4.0.2/libiberty/../include ../../../gcc-4.0.2/libiberty/regex.c -o regex.o No server for this feature (-3,121:2) No such file or directory The MIPSpro C Compiler (license FEATURE string = cc) requires a license password. [...] If you are Outside of North America or you are not a Silicon Graphics support customer then contact your local support provider. cc-1552 cc: WARNING File = ../../../gcc-4.0.2/libiberty/regex.c, Line = 7239 The variable "pdummy" is set but never used. UCHAR_T *pdummy = NULL; ^ cc-1552 cc: WARNING File = ../../../gcc-4.0.2/libiberty/regex.c, Line = 7240 The variable "sdummy" is set but never used. const CHAR_T *sdummy = NULL; ^ cc-1548 cc: WARNING File = ../../../gcc-4.0.2/libiberty/regex.c, Line = 7575 The transfer of control bypasses... ... the initialization of variable "same_str_p" (declared at line 6012). goto restore_best_regs; ^ if [ x"" != x ]; then \ /bin/cc -c -DHAVE_CONFIG_H -I. -I../../../gcc-4.0.2/libiberty/../include ../../../gcc-4.0.2/libiberty/cplus-dem.c -o pic/cplus-dem.o; \ else true; fi /bin/cc -c -DHAVE_CONFIG_H -I. -I../../../gcc-4.0.2/libiberty/../include ../../../gcc-4.0.2/libiberty/cplus-dem.c -o cplus-dem.o No server for this feature (-3,121:2) No such file or directory The MIPSpro C Compiler (license FEATURE string = cc) requires a license password. [...] If you are Outside of North America or you are not a Silicon Graphics support customer then contact your local support provider. cc-1349 cc: WARNING File = /usr/include/sys/types.h, Line = 120 The indicated declaration requires a typedef name. typedef long pid_t; /* proc & grp IDs */ ^ cc-1213 cc: ERROR File = /usr/include/sys/types.h, Line = 326 The declaration contains a duplicate specifier. typedef unsigned long int uintptr_t; ^ cc-1349 cc: WARNING File = /usr/include/sys/types.h, Line = 326 The indicated declaration requires a typedef name. typedef unsigned long int uintptr_t; ^ cc-1116 cc: WARNING File = ../../../gcc-4.0.2/libiberty/cplus-dem.c, Line = 631 Non-void function "code_for_qualifier" (declared at line 611) should return a value. } ^ cc-1116 cc: WARNING File = ../../../gcc-4.0.2/libiberty/cplus-dem.c, Line = 672 Non-void function "qualifier_string" (declared at line 637) should return a value. } ^ 1 error detected in the compilation of "../../../gcc-4.0.2/libiberty/cplus-dem.c". make[1]: *** [cplus-dem.o] Error 2 make[1]: Leaving directory `/mnt/users/delcitto/download/GNU/gcc-4.0.2-irix/build-mips-sgi-irix6.5/libibert y' make: *** [all-build-libiberty] Error 2 ------------------------- How can I resolve this problem? Francesco |
|
April 5, 2006, 11:12 |
Next step:
I'm trying to boot
|
#50 |
Senior Member
Francesco Del Citto
Join Date: Mar 2009
Location: Zürich Area, Switzerland
Posts: 237
Rep Power: 18 |
Next step:
I'm trying to bootstra gcc 4.0.2 using the working gcc 3.4.5 I've on my SGI, using the standard IRIX linker /usr/bin/ld (with gnu ld I have other kind of errors). This is the configure command: ../gcc-4.0.2/configure --with-gnu-as --with-as=/mnt/users/delcitto/local/bin/as --prefix=/mnt/users/delcitto/local/gcc-4.0.2 --enable-threads 2>&1 |tee conf_01.log This is the error during bootstrap: stage1/xgcc -Bstage1/ -B/mnt/users/delcitto/local/gcc-4.0.2/mips-sgi-irix6.5/bin/ -c -g -O2 -DIN_GCC -W -Wall -Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes -pedantic -Wno-long-long -Wno-variadic-macros -Wold-style-definition -DHAVE_CONFIG_H -I. -Icp -I../../gcc-4.0.2/gcc -I../../gcc-4.0.2/gcc/cp -I../../gcc-4.0.2/gcc/../include -I./../intl -I../../gcc-4.0.2/gcc/../libcpp/include ../../gcc-4.0.2/gcc/cp/cp-gimplify.c -o cp/cp-gimplify.o stage1/xgcc -Bstage1/ -B/mnt/users/delcitto/local/gcc-4.0.2/mips-sgi-irix6.5/bin/ -g -O2 -DIN_GCC -W -Wall -Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes -pedantic -Wno-long-long -Wno-variadic-macros -Wold-style-definition -DHAVE_CONFIG_H -o cc1plus \ cp/cp-lang.o stub-objc.o cp/call.o cp/decl.o cp/expr.o cp/pt.o cp/typeck2.o cp/class.o cp/decl2.o cp/error.o cp/lex.o cp/parser.o cp/ptree.o cp/rtti.o cp/typeck.o cp/cvt.o cp/except.o cp/friend.o cp/init.o cp/method.o cp/search.o cp/semantics.o cp/tree.o cp/repo.o cp/dump.o cp/optimize.o cp/mangle.o cp/cp-objcp-common.o cp/name-lookup.o cp/cxx-pretty-print.o cp/cp-gimplify.o tree-mudflap.o attribs.o c-common.o c-format.o c-pragma.o c-semantics.o c-lex.o c-dump.o c-pretty-print.o c-opts.o c-pch.o c-incpath.o cppdefault.o c-ppoutput.o c-cppbuiltin.o prefix.o c-gimplify.o tree-inline.o main.o libbackend.a ../libcpp/libcpp.a ../libcpp/libcpp.a ./../intl/libintl.a ../libiberty/libiberty.a ld32: WARNING 84 : ../libcpp/libcpp.a is not used for resolving any symbol. ld32: ERROR 33 : Unresolved data symbol "libc_name_p" -- 1st referenced by cp/except.o. Use linker option -v to see when and which objects, archives and dsos are loaded. ld32: INFO 152: Output file removed because of error. collect2: ld returned 2 exit status make[2]: *** [cc1plus] Error 1 make[2]: Leaving directory `/mnt/users/delcitto/download/GNU/gcc-4.0.2-irix/gcc' make[1]: *** [stage2_build] Error 2 make[1]: Leaving directory `/mnt/users/delcitto/download/GNU/gcc-4.0.2-irix/gcc' make: *** [bootstrap] Error 2 Any suggestions? Francesco |
|
May 29, 2007, 01:12 |
Hi again,
Can I use CC to co
|
#51 |
Senior Member
Daniel WEI (老魏)
Join Date: Mar 2009
Location: Beijing, China
Posts: 689
Blog Entries: 9
Rep Power: 21 |
Hi again,
Can I use CC to compile OpenFOAM in IRIX?
__________________
~ Daniel WEI ------------- Boeing Research & Technology - China Beijing, China |
|
June 7, 2007, 22:15 |
Hi,
Now, I have installed GCC
|
#52 |
Senior Member
Daniel WEI (老魏)
Join Date: Mar 2009
Location: Beijing, China
Posts: 689
Blog Entries: 9
Rep Power: 21 |
Hi,
Now, I have installed GCC in IRIX6.5. First, I came to know from "http://gcc.gnu.org/gcc-4.1/buildstat.html" that GCC-4.1.1 can be successfully installed. Then I Configure with ~/Codes/gcc*1/configure --prefix=$HOME/OpenFOAM/linux/gcc-4.1.1 --exec-prefix=$HOME/OpenFOAM/linux/gcc-4.1.1 --enable-languages=c,c++ --enable-shared --enable-threads --disable-nls --disable-multilib --with-gnu-ld --disable-wchart_t And after a rather considerably long time, it's done eventually.
__________________
~ Daniel WEI ------------- Boeing Research & Technology - China Beijing, China |
|
June 14, 2007, 02:50 |
hi,
I managed to build OpenFO
|
#53 |
Senior Member
Daniel WEI (老魏)
Join Date: Mar 2009
Location: Beijing, China
Posts: 689
Blog Entries: 9
Rep Power: 21 |
hi,
I managed to build OpenFOAM-1.4 with dubug option for sgi IRIX6.5, I have paid special concern on 1> use foamFlex (from source OF-1.3); 2> modify any.cc, fixed.cc, os-unix.cc, util.cc in OpenFOAM-1.0.2/src/mico-2.3.11/orb; it seems there isn't any error during the entire compiling process, however, when i type icoFoam or any other, there came a segmetation fault immediately. when i gdb blockMesh, i was told segmentation fault and you can't do that without a process to debug. it seems It can not execute even the first line of blockMesh as if I have made some very silly mistake I am wondering whether my gcc is installed rightly. and how could i know that. Thanks Daniel
__________________
~ Daniel WEI ------------- Boeing Research & Technology - China Beijing, China |
|
November 28, 2007, 05:11 |
Hi again,
I met many erro
|
#54 |
Senior Member
Daniel WEI (老魏)
Join Date: Mar 2009
Location: Beijing, China
Posts: 689
Blog Entries: 9
Rep Power: 21 |
Hi again,
I met many errors (Irix6.5 Gcc-4.2.1) In the beginning of compiling, ---------------------------------------- + cd Pstream + ./Allwmake + wmake libso dummy /disk4/usr/people/student3/OpenFOAM/OpenFOAM-1.4.1/wmake/wmakeLnInclude: linking include files to /disk4/usr/people/student3/OpenFOAM/OpenFOAM-1.4.1/src/Pstream/dummy/lnInclude Making dependency list for source file Pstream.C could not open file math.h for source file Pstream.C Making dependency list for source file IPread.C could not open file math.h for source file IPread.C Making dependency list for source file OPwrite.C could not open file math.h for source file OPwrite.C SOURCE=Pstream.C ; g++ -DsgiN32 -DDP -O0 -fdefault-inline -finline-functions -ggdb3 -DFULLDEBUG -DNoRepository -IlnInclude -I. -I/disk4/usr/people/student3/OpenFOAM/OpenFOAM-1.4.1/src/OpenFOAM/lnInclude -LANG:std -c $SOURCE -o Make/sgiN32GccDPDebug/Pstream.o make: *** [Make/sgiN32GccDPDebug/Pstream.o] Interrupt ---------------------------------------- It seems that haeder file math.h cannot be lnincluded. How can I resolve this problem? Thanks in advance! Daniel
__________________
~ Daniel WEI ------------- Boeing Research & Technology - China Beijing, China |
|
December 2, 2007, 01:52 |
Hi again,
I solved the som
|
#55 |
Senior Member
Daniel WEI (老魏)
Join Date: Mar 2009
Location: Beijing, China
Posts: 689
Blog Entries: 9
Rep Power: 21 |
Hi again,
I solved the some error above by configuring wmake/makefile, but there still remain many other files which "could not open file s% for source file %s", I examined wmake/src/wmkdep.l, and around the lines: ---------------------------------------- if (!(yyin = fopen(fileName, "r"))) { for (d=0; d<nDirectories; d++) { pathName = addDirectoryName(directories[d], fileName); if ((yyin = fopen(pathName, "r"))) { printf("%s: %s\n", depFile, pathName); yy_switch_to_buffer(yy_create_buffer(yyin, YY_BUF_SIZE)); BEGIN(INITIAL); free(pathName); return; } free(pathName); } fprintf ( stderr, "could not open file %s for source file %s\n", fileName, sourceFile ); fflush(stdout); currentBuffer--; BEGIN(INITIAL); } ------------------------------------- I feel confused, since LnInclude has been link these files in OpenFOAM-1.4.1/src/OpenFOAM/lnInclude, and I can see they are there, but why couldn't them be opened? And another question: while compiling clockTime.o, there's an error, said "field 'startTime_' has incomplete type"... Any help would be highly appreciated . Daniel
__________________
~ Daniel WEI ------------- Boeing Research & Technology - China Beijing, China |
|
December 2, 2007, 06:01 |
I got it!
In file wmkdep.l, I
|
#56 |
Senior Member
Daniel WEI (老魏)
Join Date: Mar 2009
Location: Beijing, China
Posts: 689
Blog Entries: 9
Rep Power: 21 |
I got it!
In file wmkdep.l, I cancel the comment-out: /* This causes strange problems fclose(yyin); yyin = 0; */ But, since fclose is necessary for fopen correctly, why these two lines were commented out? Is this a bug
__________________
~ Daniel WEI ------------- Boeing Research & Technology - China Beijing, China |
|
December 2, 2007, 08:33 |
The problem I mentioned above
|
#57 |
Senior Member
Daniel WEI (老魏)
Join Date: Mar 2009
Location: Beijing, China
Posts: 689
Blog Entries: 9
Rep Power: 21 |
The problem I mentioned above is solved,
----------------------- while compiling clockTime.o, there's an error, said "field 'startTime_' has incomplete type"... ----------------------- by insert a head <sys/time.h> in clockTime.H. Though I don't understand why it is <sys/type.h>, since timeval is not defined there. another error I met is much the same as http://www.cfd-online.com/OpenFOAM_D...es/1/1523.html had mentioned, that is no execinfo.h found! so I followed Bernhard Gschaider's instruction by -------------------------- comment out the two missing headers and all the stuff in the printStack-method -------------------------- I cannot tell for sure whether it is right or not. Daniel
__________________
~ Daniel WEI ------------- Boeing Research & Technology - China Beijing, China |
|
April 14, 2008, 10:51 |
On IRIX6.5, I have no idea whi
|
#58 |
Senior Member
Daniel WEI (老魏)
Join Date: Mar 2009
Location: Beijing, China
Posts: 689
Blog Entries: 9
Rep Power: 21 |
On IRIX6.5, I have no idea which malloc shall I switch on, fbsdmalloc, or bsdmalloc or gmalloc or g++malloc or mmalloc?
Any hints much appreciated! Daniel
__________________
~ Daniel WEI ------------- Boeing Research & Technology - China Beijing, China |
|
April 24, 2008, 06:02 |
Can anyone give me some help,
|
#59 |
Senior Member
Daniel WEI (老魏)
Join Date: Mar 2009
Location: Beijing, China
Posts: 689
Blog Entries: 9
Rep Power: 21 |
Can anyone give me some help, please?
Daniel
__________________
~ Daniel WEI ------------- Boeing Research & Technology - China Beijing, China |
|
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Building OpenFOAM on IRIX | lakeat | OpenFOAM Installation | 7 | July 16, 2008 08:27 |
Problems in Compiling OpenFOAM in IRIX | lakeat | OpenFOAM Installation | 0 | June 7, 2007 22:44 |
help-parallel computing in irix | kim | FLUENT | 0 | August 7, 2003 16:22 |
FLUENT, 64-bit platform & IRIX | jim clancy | FLUENT | 1 | January 31, 2002 18:32 |