|
[Sponsors] |
May 26, 2005, 19:43 |
thanks,
the orbOptions file
|
#21 |
New Member
Manuel Garcia
Join Date: Mar 2009
Posts: 9
Rep Power: 17 |
thanks,
the orbOptions file seems to be right and also the $MICO_ARCH_PATH variable: echo $MICO_ARCH_PATH /home/uofacvs/OpenFOAM/OpenFOAM-1.1/src/mico-2.3.11/platforms/sgiN32GccOpt Also mico is found in this path I did compare the whole .../patchTool/C++/FoamXServer/Make directory with the OpenFOAM-1.0.2 version and found that the file OpenFOAM-1.1/applications/utilities/mesh/manipulation/patchTool/C++/FoamXServer/ Make/sgiN32GccOpt/options is empty as oppose to the /OpenFOAM-1.0.2/applications/utilities/mesh/manipulation/patchTool/C++/FoamXServ er/Make/sgiN32GccOpt/options which has the following: ------------------------------------------------- # 1 "options" # 1 "orbOptions" # 11 "orbOptions" ORB_SYS_INC = ORB_SYS_LIB = -Wl,-LD_LAYOUT:lgot_buffer=20 # 30 "orbOptions" ORB_INC = -I$(MICO_ARCH_PATH)/include $(ORB_SYS_INC) ORB_LIBS = -L$(MICO_ARCH_PATH)/lib -lmicocoss$(MICO_VERSION) -lmico$(MICO_VERSION) $(ORB_SYS_LIB) # 1 "options" EXE_INC = $(ORB_INC) EXE_LIBS = $(ORB_LIBS) --------------------------------------------- so I guess this is missing in my compilation... manuel |
|
May 27, 2005, 05:14 |
Make/sgiN32GccOpt/options gets
|
#22 |
Senior Member
Mattijs Janssens
Join Date: Mar 2009
Posts: 1,419
Rep Power: 26 |
Make/sgiN32GccOpt/options gets constructed (by the c-preprocessor) from Make/options. Try and find out what is missing in that file and let us know if we have to change anything.
(all the mico variables get set in OpenFOAM/OpenFOAM-1.1.1/.bashrc) |
|
May 27, 2005, 20:00 |
I went to the .../patchTool/C+
|
#23 |
New Member
Manuel Garcia
Join Date: Mar 2009
Posts: 9
Rep Power: 17 |
I went to the .../patchTool/C++/FoamXServer/
directory and run wmake : wclean bash -x wmake lib (see output below) and die reporting the following error orbOptions:28: #error architecture not supported for compiling FoamX I guess this is because it can not find the "sgiN32" variable defined, but I couldn't find where it is defined. I compared the enviroment variables between version 1.02 and version 1.1 but could not find significant differences (appart from the version number) Manuel orbOption file: ----------------------- 1 #if defined(linux) 2 3 ORB_SYS_INC = 4 ORB_SYS_LIB = -ldl 5 6 #elif defined(solaris) 7 8 ORB_SYS_INC = 9 ORB_SYS_LIB = -ldl 10 11 #elif defined(sgiN32) || defined(sgi64) 12 13 ORB_SYS_INC = 14 ORB_SYS_LIB = -Wl,-LD_LAYOUT:lgot_buffer=20 15 16 #elif defined(decAlpha) 17 18 ORB_SYS_INC = -O1 19 ORB_SYS_LIB = 20 21 #elif defined(ibm) 22 23 ORB_SYS_INC = 24 ORB_SYS_LIB = -ldl 25 26 #else 27 28 # error architecture not supported for compiling FoamX 29 30 #endif ... ------------------------------- Output from: bash -x wmake lib ------------------------------- + '[' '!' sgiN32GccOpt ']' + '[' '!' c++ ']' + '[' '!' /home/uofacvs/OpenFOAM/OpenFOAM-1.1/wmake ']' + '[' '!' OpenFOAM -o '!' /home/uofacvs/OpenFOAM/OpenFOAM-1.1 ']' ++ pwd + curDir=/home/uofacvs/OpenFOAM/OpenFOAM-1.1/applications/utilities/mesh/manipuati on/patchTool/C++/FoamXServer + makeOption= + dir=_ + '[' 1 -ge 1 ']' + '[' lib = lib -o lib = libso -o lib = libo -o lib = jar -o lib = exe -o lib =project ']' + makeOption=lib + '[' 1 -ge 2 ']' + '[' _ '!=' _ ']' + '[' 1 = 3 ']' + MakeDir=Make + '[' '!' -d Make ']' + '[' '!' -d Make ']' + '[' '!' -r Make/files ']' + cd Make + make -f /home/uofacvs/OpenFOAM/OpenFOAM-1.1/wmake/MakefileFiles allFiles orbOptions:28: #error architecture not supported for compiling FoamX make: *** [sgiN32GccOpt/options] Error 33 + cd .. + OBJECTS_DIR=Make/sgiN32GccOpt + '[' '!' -r Make/sgiN32GccOpt/objectFiles ']' + echo wmake: cannot make, file Make/sgiN32GccOpt/objectFiles was not created sccessfully wmake: cannot make, file Make/sgiN32GccOpt/objectFiles was not created successflly + cd /home/uofacvs/OpenFOAM/OpenFOAM-1.1/applications/utilities/mesh/manipulatin/patc hTool/C++/FoamXServer + exit 1 |
|
May 28, 2005, 06:30 |
Try setting sgiN32 in
#elif
|
#24 |
Senior Member
Join Date: Mar 2009
Posts: 854
Rep Power: 22 |
Try setting sgiN32 in
#elif defined(sgiN32) || defined(sgi64) to sgiN32Gcc |
|
May 30, 2005, 16:49 |
Hi Henry,
It didn't work...
|
#25 |
New Member
Manuel Garcia
Join Date: Mar 2009
Posts: 9
Rep Power: 17 |
Hi Henry,
It didn't work... I also tried other preprocessor directives and none of them seem to be defined: sgi, __GLIBC__, mips... I haven't found what's different with the last version... Manuel |
|
January 12, 2006, 06:13 |
Hello,
I've got problems f
|
#26 |
New Member
Sebastien RIFFLART
Join Date: Mar 2009
Posts: 10
Rep Power: 17 |
Hello,
I've got problems for instalation of OpenFoam 1.2 on IRIX6.5. I've installed GNU make I've installed gcc-3.4.3 (/OpenFOAM/sgiN32/gcc-3.4.3) but when I run Allwmake to install OpenFoam 1.2, I've got this message : libso `/usr/people/cres/OpenFOAM/OpenFOAM-1.2/lib/sgiN32GccOpt/libz.so' is up to date. libso `/usr/people/cres/OpenFOAM/OpenFOAM-1.2/lib/sgiN32GccOpt/libfoamUser.so' is up to date. exe `/usr/people/cres/OpenFOAM/OpenFOAM-1.2/applications/bin/sgiN32GccOpt/foamFlex++ ' is up to date. libso `/usr/people/cres/OpenFOAM/OpenFOAM-1.2/lib/sgiN32GccOpt/dummy/libPstream.so' is up to date. libso libso SOURCE_DIR=passiveParticle SOURCE=passiveParticle/passiveParticleCloud.C ; g++ -mabi=n32 -mips4 -DsgiN32 -Wall -W -Wno-unused-parameter -O3 -ffast-math -fno-schedule-insns -DNoRepository -ftemplate-depth-30 -I/usr/people/cres/OpenFOAM/OpenFOAM-1.2/src/OpenFOAM/lnInclude -IlnInclude -I. -fPIC -c $SOURCE -o Make/sgiN32GccOpt/passiveParticleClou d.o *** Error code 1 (bu21) Can anyone help me? Seb |
|
January 12, 2006, 14:58 |
For 1.2 you'll need gcc-4.0.1
|
#27 |
Senior Member
Mattijs Janssens
Join Date: Mar 2009
Posts: 1,419
Rep Power: 26 |
For 1.2 you'll need gcc-4.0.1 or 4.0.2
|
|
January 19, 2006, 12:50 |
Hi all!
I'm trying to install
|
#28 |
Member
Muzio Grilli
Join Date: Mar 2009
Posts: 36
Rep Power: 17 |
Hi all!
I'm trying to install OpenFOAM on a SGI with Irix 6.5. First, I've installed gcc 3.4.5, and it seems work fine. Then I tried to compile gcc 4.0.2 for installing OpenFOAM 1.2, but I wasn't able and desisted. Then I tried to compile OpenFOAM 1.1 using gcc 3.4.5, but I get lots of errors. Compilation aborts because it cannot find libOpenFOAM.so: ld32: FATAL 9 : I/O error (-lOpenFOAM): No such file or directory but the very first error I get is: make: execvp: /bin/sh: Arg list too long make: *** [global/global.dep] Error 127 libso Make/sgiN32GccOpt/includeDeps:1: global/global.dep: No such file or directory Make/sgiN32GccOpt/includeDeps:2: OSspecific/Unix/sigfpe.dep: No such file or directory [...] Make/sgiN32GccOpt/includeDeps:397: primitives/random/Random.dep: No such file or directory Make/sgiN32GccOpt/includeDeps:398: algorithms/meshWave/meshWaveName.dep: No such file or directory make: execvp: /bin/sh: Arg list too long make: *** [algorithms/meshWave/meshWaveName.dep] Error 127 Can anyone kindly help me? Or has anyone installed gcc 4.0.2 on such a system, so I can try with OpenFOAM 1.2 ? Thanks |
|
January 20, 2006, 05:45 |
The os/shell on Irix has a def
|
#29 |
Senior Member
Mattijs Janssens
Join Date: Mar 2009
Posts: 1,419
Rep Power: 26 |
The os/shell on Irix has a default setting of max 1024 characters in arguments (if i remember correctly).
You can change these settings in the kernel. (not hard but I don't remember how to do it) I just googled and came across 4.0.1 installation on irix6.5: http://fusion.txcorp.com/install/GccInstall.html This should compile OpenFOAM1.2. |
|
January 20, 2006, 08:38 |
I'm working with Muzio Grilli.
|
#30 |
Senior Member
Francesco Del Citto
Join Date: Mar 2009
Location: Zürich Area, Switzerland
Posts: 237
Rep Power: 18 |
I'm working with Muzio Grilli.
We'll try as soon as possible compiling gcc 4 The problem is how to change del max lenght of command line in the kernel? Should I compile the kernel, or could be only a patch? |
|
February 13, 2006, 04:42 |
Hi all,
I continue to try t
|
#31 |
New Member
Sebastien RIFFLART
Join Date: Mar 2009
Posts: 10
Rep Power: 17 |
Hi all,
I continue to try to install OpenFoam 1.2 on IRIX 6.5 (and I won't give up). So I've installed : - GNU make 3.80 - binutils 2.16 (for GNU assembler and linker) - gcc 4.0.2 But I've still error messages during compilation of OpenFoam : problem to find the .H files. For example, if I try to make kivaToFoam, this is the result : sh: /hydrowork/usr/cres/OpenFOAM/OpenFOAM-1.2/wmake/rules/sgiN32Gcc/wmkdep: not found SOURCE_DIR=. SOURCE=kivaToFoam.C ; 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/OpenFOAM/lnInclude -IlnInclude -I. -fPIC -c $SOURCE -o Make/sgiN32GccOpt/kivaToFoam.o kivaToFoam.C:41:28: error: emptyPolyPatch.H: No such file or directory kivaToFoam.C:42:27: error: wallPolyPatch.H: No such file or directory kivaToFoam.C:43:31: error: symmetryPolyPatch.H: No such file or directory kivaToFoam.C:44:28: error: wedgePolyPatch.H: No such file or directory kivaToFoam.C:45:29: error: cyclicPolyPatch.H: No such file or directory readKivaGrid.H: In function 'int main(int, char**)': readKivaGrid.H:188: error: 'wallPolyPatch' has not been declared readKivaGrid.H:188: error: 'typeName' was not declared in this scope readKivaGrid.H:189: error: 'wallPolyPatch' has not been declared readKivaGrid.H:190: error: 'wallPolyPatch' has not been declared readKivaGrid.H:191: error: 'wallPolyPatch' has not been declared readKivaGrid.H:192: error: 'symmetryPolyPatch' has not been declared readKivaGrid.H:193: error: 'wedgePolyPatch' has not been declared readKivaGrid.H:198: error: 'symmetryPolyPatch' has not been declared readKivaGrid.H:199: error: 'cyclicPolyPatch' has not been declared readKivaGrid.H:480: error: 'emptyPolyPatch' has not been declared *** Error code 1 (bu21) I need help, please. seb |
|
February 13, 2006, 05:06 |
One of the problems I ran into
|
#32 |
Guest
Posts: n/a
|
One of the problems I ran into with wmake when I was poking at the Cygwin port was that wmake is not very good at stopping when it reaches what should be a fatal error.
So, start with the first error: wmkdep not found. That's a fatal problem; everything after that is definitely going to be worthless garbage. Specifically, wmkdep is the program that creates .dep files, which are then used later in the wmake process to locate all the auxiliary files (such as the .H files) necessary for compiling each of the "main" files. It should be created when the makeWmake command is run in the wmake directory (this is the first thing that the root-directory Allwmake does), and the executable file will show up in the wmake/rules/sgiN32Gcc folder if it compiles successfully. If it isn't there, go to the wmake directory and run makeWmake, and see whether that reports any errors. If that doesn't produce anything useful, then step through each of the commands in makeWmake (it's just a shell script) manually. It should be pretty obvious which one actually creates wmkdep. Also, I seem to remember that making wmkdep was the part of the build process that depends on having flex installed (and bison as well, I think). If those aren't installed, that may be your problem. It should have already given you error messages about that, but they've probably gotten lost in the rest of the messages from the build process. |
|
February 13, 2006, 05:15 |
I'll also add: I found it very
|
#33 |
Guest
Posts: n/a
|
I'll also add: I found it very useful to read the various Allwmake scripts (starting with the top-level one) to see what was supposed to be compiled how, and in what order it needed to be compiled, but then to enter each of the various make commands by hand -- in the same order as in the Allwmake file -- and carefully look for errors at each step, and resolve all of them before going on to the next step.
There are a number of dependencies between things in the build process, where you need to have Step A done before Step B will work right, and even though you can type "wmake kivaToFoam" (which is somewhere around Step W) in a freshly-unpacked source distribution and get a lot of output, it won't actually work right. |
|
February 13, 2006, 08:28 |
Hello Sebastien,
This is yo
|
#34 | |
Senior Member
Hrvoje Jasak
Join Date: Mar 2009
Location: London, England
Posts: 1,907
Rep Power: 33 |
Hello Sebastien,
This is your problem: Quote:
foam cd wmake ./makeWmake and find out what happens. The first bit of what makeWmake does is: cd src (from the same directory) make so have a look and find out why this fails. Enjoy, Hrv
__________________
Hrvoje Jasak Providing commercial FOAM/OpenFOAM and CFD Consulting: http://wikki.co.uk |
||
February 16, 2006, 04:38 |
Hi all, thanks for your answer
|
#35 |
New Member
Sebastien RIFFLART
Join Date: Mar 2009
Posts: 10
Rep Power: 17 |
Hi all, thanks for your answers.
You were right, wasn't build because of a problem of linker. With gnu ld, there were errors. But it succed whin the irix bin. But I still doesn't succed to compile the whole OpenFoam, because a problem of linker (I think). When I do Allwmake in /src/ With irix ld I've got : `lnInclude/uptodate' is up to date. `Make/sgiN32GccOpt/dependencies' is up to date. libso `/hydrowork/usr/cres/OpenFOAM/OpenFOAM-1.2/lib/sgiN32GccOpt/libz.so' is up to date. `lnInclude/uptodate' is up to date. `Make/sgiN32GccOpt/dependencies' is up to date. libso `/hydrowork/usr/cres/OpenFOAM/OpenFOAM-1.2/lib/sgiN32GccOpt/libfoamUser.so' is up to date. `Make/sgiN32GccOpt/dependencies' is up to date. exe `/hydrowork/usr/cres/OpenFOAM/OpenFOAM-1.2/applications/bin/sgiN32GccOpt/foamFle x++' is up to date. `lnInclude/uptodate' is up to date. `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/dummy/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/OpenFOAM/lnInclude -IlnInclude -I. -fPIC -shared -Wl,-LD_LAYOUT:lgot_buffer=100 Pstream.o IPread.o OPwrite.o -L/hydrowork/usr/cres/OpenFOAM/OpenFOAM-1.2/lib/sgiN32GccOpt -o /hydrowork/usr/cres/OpenFOAM/OpenFOAM-1.2/lib/sgiN32GccOpt/dummy/libPstream.so ld32: FATAL 2 : Internal: at ../../ld/section_type.c In load_info() unknown section type collect2: ld returned 1 exit status and with gnu ld, I've got: `lnInclude/uptodate' is up to date. `Make/sgiN32GccOpt/dependencies' is up to date. libso `/hydrowork/usr/cres/OpenFOAM/OpenFOAM-1.2/lib/sgiN32GccOpt/libz.so' is up to date. `lnInclude/uptodate' is up to date. `Make/sgiN32GccOpt/dependencies' is up to date. libso `/hydrowork/usr/cres/OpenFOAM/OpenFOAM-1.2/lib/sgiN32GccOpt/libfoamUser.so' is up to date. `Make/sgiN32GccOpt/dependencies' is up to date. exe `/hydrowork/usr/cres/OpenFOAM/OpenFOAM-1.2/applications/bin/sgiN32GccOpt/foamFle x++' is up to date. `lnInclude/uptodate' is up to date. `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/dummy/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/OpenFOAM/lnInclude -IlnInclude -I. -fPIC -shared -Wl,-LD_LAYOUT:lgot_buffer=100 Pstream.o IPread.o OPwrite.o -L/hydrowork/usr/cres/OpenFOAM/OpenFOAM-1.2/lib/sgiN32GccOpt -o /hydrowork/usr/cres/OpenFOAM/OpenFOAM-1.2/lib/sgiN32GccOpt/dummy/libPstream.so /usr/people/cres/freeware/binutils.2.16/mips-sgi-irix6.5/bin/ld: unrecognized option '-_SYSTYPE_SVR4' /usr/people/cres/freeware/binutils.2.16/mips-sgi-irix6.5/bin/ld: use the --help option for usage information collect2: ld returned 1 exit status What linker should I use ? |
|
February 16, 2006, 05:20 |
with the irix linker it seems
|
#36 |
Senior Member
Mattijs Janssens
Join Date: Mar 2009
Posts: 1,419
Rep Power: 26 |
with the irix linker it seems as if there are some illegal .o files around. Check with 'file' the type of all libraries and .o files.
Can you link any program compiled with that gcc? Just a simple hello_world.c ? Did you check whether gcc has to be configured for any specific linker/assembler? |
|
February 23, 2006, 09:25 |
Hello,
After lot of bugs fi
|
#37 |
New Member
Sebastien RIFFLART
Join Date: Mar 2009
Posts: 10
Rep Power: 17 |
Hello,
After lot of bugs fixed, I finally succed in compiling OpenFoam-1.2 on IRIX 6.5 without errors. I tried icoFoam tutorial => everything OK then I tried interFoam tutorial => everything OK But when I tried dieselFoam tutorial => I got this : /*---------------------------------------------------------------------------*\ | ========= | | | \ / F ield | OpenFOAM: The Open Source CFD Toolbox | | \ / O peration | Version: 1.2 | | \ / A nd | Web: http://www.openfoam.org | | \/ M anipulation | | \*---------------------------------------------------------------------------*/ Exec : dieselFoam . aachenBomb Date : Feb 23 2006 Time : 14:23:33 Host : HYDROSIM PID : 1274043 Root : /hydrowork/usr/cres/OpenFOAM/cres-1.2/run/tutorials/dieselFoam Case : aachenBomb Nprocs : 1 Create time Create mesh for time = 0 Reading thermophysicalProperties Selecting thermodynamics package hMixtureThermo<reactingmixture> Selecting chemistryReader chemkinReader --> FOAM FATAL ERROR : file "$FOAM_ROOT/$FOAM_CASE/chemkin/therm.dat" not found From function chemkin::chemkin(const fileName& CHEMKINFileName, const fileName& thermoFileName) in file chemistryReaders/chemkinReader/chemkinReader.C at line 811. FOAM exiting of course, the file $FOAM_ROOT/$FOAM_CASE/chemkin/therm.dat is there, but I don't know why it can't be read. The problem is that my goal is to test OpenFoam for combustion, so I need to fix this bug. Please help! |
|
February 23, 2006, 09:30 |
You dont need to fix this 'bug
|
#38 |
Super Moderator
Niklas Nordin
Join Date: Mar 2009
Location: Stockholm, Sweden
Posts: 693
Rep Power: 29 |
You dont need to fix this 'bug', why dont you just put the full path there instead.
|
|
February 23, 2006, 09:37 |
Good idea, but where is "there
|
#39 |
New Member
Sebastien RIFFLART
Join Date: Mar 2009
Posts: 10
Rep Power: 17 |
Good idea, but where is "there",
where can I put the full path ? thanks for your help seb |
|
February 23, 2006, 10:14 |
/hydrowork/usr/cres/OpenFOAM/c
|
#40 |
Super Moderator
Niklas Nordin
Join Date: Mar 2009
Location: Stockholm, Sweden
Posts: 693
Rep Power: 29 |
/hydrowork/usr/cres/OpenFOAM/cres-1.2/run/tutorials/dieselFoam/aachenBomb/consta nt/thermodynamicProperties
it should be obviouse what to replace |
|
|
|
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 |