CFD Online Discussion Forums

CFD Online Discussion Forums (https://www.cfd-online.com/Forums/)
-   OpenFOAM Installation (https://www.cfd-online.com/Forums/openfoam-installation/)
-   -   OpenFOAM14 for Mac OSX Darwin 104 (https://www.cfd-online.com/Forums/openfoam-installation/57349-openfoam14-mac-osx-darwin-104-a.html)

hjg March 20, 2008 14:20

Hi Bernhard, thank for for g
 
Hi Bernhard,
thank for for giving me some assistance.
Please excuse my late response since i am currently on vacation on Fuerteventura (just with external internet access). Bye the way, the weather is much more better than in good old germany.
As soon as I´m back home I will make the installation as you suggested and give you feedback.

Thank you in advance...


Live long and prosper..



HJ

hjg March 24, 2008 12:43

Hi Bernhard, back home again
 
Hi Bernhard,
back home again I ran Allwmake with file output.
I went trough all the stuff.
wmake says:
"ld: library not found for -lOpenFOAM
collect2: ld returned 1 exit status" prior to exiting - indicationg a linker problem (?).
This error appears also in other link-runs, always with the problem not finding the OpenFOAM-library

What can I do???


HJ

gschaider March 25, 2008 13:23

Hi HJ! Some questions: I
 
Hi HJ!

Some questions:

Is there a library libOpenFOAM.dylib there? Check with "ls $FOAM_LIBBIN"

Is the variable DYLD_LIBRARY_PATH correctly set? (== is FOAM_LIBBIN included?)

Are any applications compiled (check with "ls $FOAM_APPBIN")?

Look in the compile.log for the first occurence of an error (propably that might be the cause)

Bernhard

gschaider March 26, 2008 05:35

Hi! Apparently no applicati
 
Hi!

Apparently no applications get linked because the OpenFOAM-lib is missing (did not get linked). Could you try "cd $FOAM_SRC/OpenFOAM; wmake libso" (Or check the compile.log - there should be some kind of problem up there)

Bernhard

lakeat March 26, 2008 10:08

onyx-bridge 313% gdb ../../../
 
onyx-bridge 313% gdb ../../../wmake/rules/sgi*/wmkdep
GNU gdb 6.6
Copyright (C) 2006 Free Software Foundation, Inc.
GDB is free software, covered by the GNU General Public License, and you are
welcome to change it and/or distribute copies of it under certain conditions.
Type "show copying" to see the conditions.
There is absolutely no warranty for GDB. Type "show warranty" for details.
This GDB was configured as "mips-sgi-irix6.5"...
(gdb) r dynamicFvMesh.C
Starting program: /disk4/usr/people/student3/OpenFOAM/OpenFOAM-1.4.1/wmake/rules/sgiN32Gcc/wmkdep dynamicFvMesh.C
Making dependency list for source file dynamicFvMesh.C
$(OBJECTS_DIR)/dynamicFvMesh.o: dynamicFvMesh.dep
1111dynamicFvMesh.dep: dynamicFvMesh.C
1111dynamicFvMesh.dep: dynamicFvMesh.H
could not open file fvMesh.H for source file dynamicFvMesh.C
could not open file autoPtr.H for source file dynamicFvMesh.C
could not open file runTimeSelectionTables.H for source file dynamicFvMesh.C

Program received signal SIGSEGV, Segmentation fault.
fread () at /xlv42/6.5.23m/work/irix/lib/libc/libc_n32_M4/stdio/fread.c:37
37 /xlv42/6.5.23m/work/irix/lib/libc/libc_n32_M4/stdio/fread.c: No such file or directory.
in /xlv42/6.5.23m/work/irix/lib/libc/libc_n32_M4/stdio/fread.c
(gdb) bt
#0 fread () at /xlv42/6.5.23m/work/irix/lib/libc/libc_n32_M4/stdio/fread.c:37
#1 0x10002b74 in yylex ()
#2 0x10003250 in main ()
(gdb) q
The program is running. Exit anyway? (y or n) y
onyx-bridge 314% uname -a
IRIX64 onyx-bridge 6.5 01080747 IP35
onyx-bridge 315% ulimit -a
time(seconds) unlimited
file(blocks) unlimited
data(kbytes) unlimited
stack(kbytes) 65536
memory(kbytes) 29096416
coredump(blocks) unlimited
nofiles(descriptors) 200
vmemory(kbytes) unlimited
concurrency(threads) 1024
onyx-bridge 316%



































Hi Bernhard,

Concerning the beginning of this thread, I have a question.

I try to compile OpenFOAM on Irix6.5, yet I met core dump everytime when wmkdep is called. So, it is quite fatal

that after compilation icoFoam failed with SegV.

For instance, when I wmake libso dynamicFVMesh, after it is finished, I get a bad dynamicFVMesh.so and with a core

file under src/dynamicFVMesh directory.
Here is the information when I try to debug it.

-----------------------------
onyx-bridge 313% gdb ../../../wmake/rules/sgi*/wmkdep
GNU gdb 6.6
Copyright (C) 2006 Free Software Foundation, Inc.
GDB is free software, covered by the GNU General Public License, and you are
welcome to change it and/or distribute copies of it under certain conditions.
Type "show copying" to see the conditions.
There is absolutely no warranty for GDB. Type "show warranty" for details.
This GDB was configured as "mips-sgi-irix6.5"...
(gdb) r dynamicFvMesh.C
Starting program: /disk4/usr/people/student3/OpenFOAM/OpenFOAM-1.4.1/wmake/rules/sgiN32Gcc/wmkdep dynamicFvMesh.C
Making dependency list for source file dynamicFvMesh.C
$(OBJECTS_DIR)/dynamicFvMesh.o: dynamicFvMesh.dep
1111dynamicFvMesh.dep: dynamicFvMesh.C
1111dynamicFvMesh.dep: dynamicFvMesh.H
could not open file fvMesh.H for source file dynamicFvMesh.C
could not open file autoPtr.H for source file dynamicFvMesh.C
could not open file runTimeSelectionTables.H for source file dynamicFvMesh.C

Program received signal SIGSEGV, Segmentation fault.
fread () at /xlv42/6.5.23m/work/irix/lib/libc/libc_n32_M4/stdio/fread.c:37
37 /xlv42/6.5.23m/work/irix/lib/libc/libc_n32_M4/stdio/fread.c: No such file or directory.
in /xlv42/6.5.23m/work/irix/lib/libc/libc_n32_M4/stdio/fread.c
(gdb) bt
#0 fread () at /xlv42/6.5.23m/work/irix/lib/libc/libc_n32_M4/stdio/fread.c:37
#1 0x10002b74 in yylex ()
#2 0x10003250 in main ()
(gdb) q
The program is running. Exit anyway? (y or n) y
onyx-bridge 314% uname -a
IRIX64 onyx-bridge 6.5 01080747 IP35
onyx-bridge 315% ulimit -a
time(seconds) unlimited
file(blocks) unlimited
data(kbytes) unlimited
stack(kbytes) 65536
memory(kbytes) 29096416
coredump(blocks) unlimited
nofiles(descriptors) 200
vmemory(kbytes) unlimited
concurrency(threads) 1024
onyx-bridge 316%


So, what does this line mean?
#0 fread () at /xlv42/6.5.23m/work/irix/lib/libc/libc_n32_M4/stdio/fread.c:37


Please help, thanks!

Daniel

gschaider March 26, 2008 10:29

Hi Daniel! Which posting ar
 
Hi Daniel!

Which posting are you refering to? (just the date would be helpful)

The line means that it has some problem reading the file. My guess is because of an invalid filehandle. The number of possible file descriptors (200) in your ulimit-output is to small I'm afraid. Raise it to a larger value (1024 is standard on linux) and try again. (my guess is that the error occurs when trying to read the 201st file. Because this is beyond the ulimit the file handle is invalid and the read fails. But this is only a guess - I don't speak IRIX)

Bernhard

hjg March 26, 2008 12:34

Hi Bernhard, I checked your h
 
Hi Bernhard,
I checked your hint.
wmake says:

SOURCE=primitives/uint/uintIO.C ; g++ -Ddarwin -DDP -Wall -W -Wno-unused-parameter -Wold-style-cast -O3 -ffast-math -DNoRepository -ftemplate-depth-30 -DWM_PROJECT_VERSION='"'1.4.1'"' -I/Users/heinzjuergengeurtz/OpenFOAM/OpenFOAM-1.4.1/src/zlib-1.2.1 -IlnInclude -I. -I/Users/heinzjuergengeurtz/OpenFOAM/OpenFOAM-1.4.1/src/OpenFOAM/lnInclude -fPIC -c $SOURCE -o Make/darwinDPOpt/uintIO.o
primitives/uint/uintIO.C: In function 'Foam::Istream& Foam::operator>>(Foam::Istream&, unsigned int&)':
primitives/uint/uintIO.C:69: error: 'uint' was not declared in this scope
make: *** [Make/darwinDPOpt/uintIO.o] Error 1

This is a first information.
I'm investigation, what is te problem with uint and crosscheck in other posts.

Greetings
HJ

podallaire March 26, 2008 12:47

Hi, From Bernhard (same th
 
Hi,

From Bernhard (same thread) :

Try to replace the offending line
i = uint(t.labelToken());
with
i = (unsigned int)(t.labelToken());
(you WILL get a warning about an old-style cast)

Good luck

hjg March 26, 2008 12:59

Hello Pierre & Bernhard, yes,
 
Hello Pierre & Bernhard,
yes, you are right. This is also what I found. I modified uintIO.C and launched wmake libso which ran.
Now currently I started ./Allwmake to verify and (hopefully) finis the make.

As soon as I have a result I will dive you a feedback.

Greetings
HJ

hjg March 26, 2008 14:15

Hello Pierre & Bernhard, we
 
Hello Pierre & Bernhard,

well, after replacing the "uint" I started Allwmake again.
SUCCESS
I checked icoFoam and checked it with paraview3.2.1. Looks quiet good.
I make some some tutorials, but from the current view I'm through. Now I have to patch paraview to directly open Foam-cases. But tat's another thing...
Thank you everbody for your assistance...

Greeting
HJ

gschaider March 26, 2008 18:30

Hi HJ! You're welcome. But
 
Hi HJ!

You're welcome. But we could have saved ourselfs some iterations. So everbody repeat after me "The most important compilation error is the first one in the logfile. If we fix that most of the others will go away" (OK. Would sound better if it would rhyme)

Bernhard

lakeat March 26, 2008 20:55

Sorry for the last bad posting
 
Sorry for the last bad posting.

Hi Bernhard, thanks for your help. I meant the posting by James Turner on Wednesday, May 02, 2007 - 06:35 am

Now I change the nofiles to 2500, (Actually I use "unlimit" and got the following. (Seems 2500 is my IRIX's upper limit of nofiles, is it enough?))

-------------------------------
onyx-bridge 17% ulimit -a
time(seconds) unlimited
file(blocks) unlimited
data(kbytes) unlimited
stack(kbytes) 524288
memory(kbytes) 29096416
coredump(blocks) unlimited
nofiles(descriptors) 2500
vmemory(kbytes) unlimited
concurrency(threads) 1024
onyx-bridge 18%
-------------------------------


but no luck, here's what i got after a few ./Allwmake in src/Pstream/dummy
-> a core file
and i tried to gdb,


-------------------------------
onyx-bridge 18% gdb
GNU gdb 6.6
Copyright (C) 2006 Free Software Foundation, Inc.
GDB is free software, covered by the GNU General Public License, and you are
welcome to change it and/or distribute copies of it under certain conditions.
Type "show copying" to see the conditions.
There is absolutely no warranty for GDB. Type "show warranty" for details.
This GDB was configured as "mips-sgi-irix6.5".
(gdb) core core
Core was generated by `wmkdep'.
Program terminated with signal 11, Segmentation fault.
warning: wrong size gregset struct in core file
warning: wrong size gregset struct in core file
#0 0x00000000 in ?? ()
(gdb) bt
#0 0x00000000 in ?? ()
--------------------------------

And it seems obvious that the problem lies in wmkdep....


Regards,
Daniel

lakeat March 27, 2008 06:12

HI Bernhard, Not confident
 
HI Bernhard,

Not confident on wmkdep on my IRIX system, so I tried to replace "wmkdep" with "cpp -M" under rules/general, while make a soft link under /rules/sgiN32Gcc and wcleanAll and recompile again. (Is it ok by doing so?)

Now, no core any more came out in each directory during compilation, however, in the end, the execution of icoFoam died all the same with Segmentation fault or bus error etc.

Please help, Thank you.

Daniel

gschaider March 27, 2008 07:10

Hi Daniel! No idea. In Linu
 
Hi Daniel!

No idea. In Linux I would recommend doing an strace (don't know if Irix has something like that).

gdb doesn't give you anything because there is no debug-information included. Try the following: switch your OF-Compiler-Options to debug. Remove all the .o files you find in wmake and remake it. The core-dump should be more helpful then

Bernhard

lakeat March 27, 2008 09:34

I have already switch my OF-Co
 
I have already switch my OF-Compiler-Options to debug in .OpenFOAM-1.4.1/cshrc.

-------------------------------------
onyx-bridge 52% icoFoam
Bad system call (core dumped)
onyx-bridge 53% ls
FoamX Make core createFields.H icoFoam.C icoFoam.dep
onyx-bridge 54% gdb icoFoam
GNU gdb 6.6
Copyright (C) 2006 Free Software Foundation, Inc.
GDB is free software, covered by the GNU General Public License, and you are
welcome to change it and/or distribute copies of it under certain conditions.
Type "show copying" to see the conditions.
There is absolutely no warranty for GDB. Type "show warranty" for details.
This GDB was configured as "mips-sgi-irix6.5"...
(gdb) r
Starting program: /disk4/usr/people/student3/OpenFOAM/OpenFOAM-1.4.1/applications/bin/sgiN32GccDPD ebug/icoFoam

Program terminated with signal SIGSEGV, Segmentation fault.
The program no longer exists.
You can't do that without a process to debug.
(gdb) core core
Reading symbols from /disk4/usr/people/student3/OpenFOAM/sgiN32/gcc-4.2.1/lib32/libtriSurface.so...do ne.
Loaded symbols for /disk4/usr/people/student3/OpenFOAM/sgiN32/gcc-4.2.1/lib32/libtriSurface.so
Reading symbols from /disk4/usr/people/student3/OpenFOAM/sgiN32/gcc-4.2.1/lib32/libmeshTools.so...don e.
Loaded symbols for /disk4/usr/people/student3/OpenFOAM/sgiN32/gcc-4.2.1/lib32/libmeshTools.so
Reading symbols from /disk4/usr/people/student3/OpenFOAM/sgiN32/gcc-4.2.1/lib32/libPstream.so...done.
Loaded symbols for /disk4/usr/people/student3/OpenFOAM/sgiN32/gcc-4.2.1/lib32/libPstream.so
Reading symbols from /disk4/usr/people/student3/OpenFOAM/sgiN32/gcc-4.2.1/lib32/liblagrangian.so...do ne.
Loaded symbols for /disk4/usr/people/student3/OpenFOAM/sgiN32/gcc-4.2.1/lib32/liblagrangian.so
Reading symbols from /disk4/usr/people/student3/OpenFOAM/sgiN32/gcc-4.2.1/lib32/libfiniteVolume.so... done.
Loaded symbols for /disk4/usr/people/student3/OpenFOAM/sgiN32/gcc-4.2.1/lib32/libfiniteVolume.so
Reading symbols from /disk4/usr/people/student3/OpenFOAM/sgiN32/gcc-4.2.1/lib32/libOpenFOAM.so...done .
Loaded symbols for /disk4/usr/people/student3/OpenFOAM/sgiN32/gcc-4.2.1/lib32/libOpenFOAM.so
Reading symbols from /usr/lib32/libfpe.so...done.
Loaded symbols for /usr/lib32/libfpe.so
Reading symbols from /disk4/usr/people/student3/OpenFOAM/sgiN32/gcc-4.2.1/lib32/libstdc++.so.6...done .
Loaded symbols for /disk4/usr/people/student3/OpenFOAM/sgiN32/gcc-4.2.1/lib32/libstdc++.so.6
Reading symbols from /usr/lib32/libm.so...done.
Loaded symbols for /usr/lib32/libm.so
Reading symbols from /disk4/usr/people/student3/OpenFOAM/sgiN32/gcc-4.2.1/lib32/libgcc_s.so.1...done.
Loaded symbols for /disk4/usr/people/student3/OpenFOAM/sgiN32/gcc-4.2.1/lib32/libgcc_s.so.1
Reading symbols from /usr/lib32/libc.so.1...done.
Loaded symbols for /usr/lib32/libc.so.1
Reading symbols from /usr/lib32/libz.so...done.
Loaded symbols for /usr/lib32/libz.so
You can't do that without a process to debug.
(gdb) bt
You can't do that without a process to debug.
(gdb) q
onyx-bridge 55% ulimit -a
time(seconds) unlimited
file(blocks) unlimited
data(kbytes) unlimited
stack(kbytes) 524288
memory(kbytes) 29096416
coredump(blocks) unlimited
nofiles(descriptors) 2500
vmemory(kbytes) unlimited
concurrency(threads) 1024
onyx-bridge 56%
------------------------------------------


1. Is nofiles(descriptors)=2500 enough?
2. what do "Reading symblols" and "Loaded symbols" mean? Do they mean that my *.so files are correctly generated?
3. How could I know whether *.so files is correctly "wmake libso"? How to test it?
4. How to use strace in such cases? (IRIX has strace utility)

I really appreciate your help. http://www.cfd-online.com/OpenFOAM_D...part/happy.gif

Daniel

lakeat March 27, 2008 09:44

5. Do you think that I can rep
 
5. Do you think that I can replace "wmkdep" with "cpp -M"?

I noticed that makeWmake only resulted out two files in wmake/rules/sgiN32Gcc, wmkdep and dirToString. So to remake it is not hard for me, yet with only one warning.
-----------------------------------
onyx-bridge 59% ./makeWmake
gcc -mabi=n32 -mips4 -Wall -O1 -DFULLDEBUG -fPIC dirToString.c -o /disk4/usr/people/student3/OpenFOAM/OpenFOAM-1.4.1/wmake/rules/sgiN32Gcc/dirToSt ring
flex wmkdep.l ; gcc -mabi=n32 -mips4 -Wall -O1 -DFULLDEBUG -fPIC lex.yy.c -o /disk4/usr/people/student3/OpenFOAM/OpenFOAM-1.4.1/wmake/rules/sgiN32Gcc/wmkdep
lex.yy.c:1393: warning: 'yyunput' defined but not used
onyx-bridge 60% flex -V
flex version 2.5.4
-----------------------------------

Any ideas?

Daniel

gschaider March 27, 2008 11:02

@1: Yeah 2500 is plenty @2:
 
@1: Yeah 2500 is plenty
@2: It's got to do with http://en.wikipedia.org/wiki/Dynamic...ynamic_linking Don't wory about it
@3: Don'T understand the question
@4: I let it run and look what the last system-calls before the segfault are
@5: Don't know the difference. But I guess it is only there for performance reasons

kjmaki April 5, 2008 07:34

Dear OF Community, I have b
 
Dear OF Community,

I have been greatly enjoying 1.4.1-dev on my linux workstations, but I still have not been able to successfully compile on my Mac. I recently upgraded the OS to 10.5.2, and still I have no success.

Could someone offer any advice?

In my compile log, this is the first error:

superusers-macbook-pro-15:~/OpenFOAM/OpenFOAM-1.4.1-dev/src/OpenFOAM kjmaki$ wmake libso
/Users/kjmaki/OpenFOAM/OpenFOAM-1.4.1-dev/wmake/rules/darwin/flex++:6: warning: overriding commands for target `.L.dep'
/Users/kjmaki/OpenFOAM/OpenFOAM-1.4.1-dev/wmake/rules/General/flex++:6: warning: ignoring old commands for target `.L.dep'
/Users/kjmaki/OpenFOAM/OpenFOAM-1.4.1-dev/wmake/rules/darwin/flex++:6: warning: overriding commands for target `.L.dep'
/Users/kjmaki/OpenFOAM/OpenFOAM-1.4.1-dev/wmake/rules/General/flex++:6: warning: ignoring old commands for target `.L.dep'
/Users/kjmaki/OpenFOAM/OpenFOAM-1.4.1-dev/wmake/rules/darwin/flex++:6: warning: overriding commands for target `.L.dep'
/Users/kjmaki/OpenFOAM/OpenFOAM-1.4.1-dev/wmake/rules/General/flex++:6: warning: ignoring old commands for target `.L.dep'
*** Assembler
checking for BSD- or MS-compatible name lister (nm)... /usr/bin/nm -p
checking the name lister (/usr/bin/nm -p) interface... ./configure: line 23524: External.*some_variable: command not found
rm: conftest.dSYM: is a directory
BSD nm
checking for fgrep... grep -F
checking whether to enable smp locks... yes
checking if .proc/endp is needed... rm: conftest.dSYM: is a directory
no
checking directive for setting text section... .text
checking directive for exporting symbols... .globl
checking for objdump... no
checking if .note.GNU-stack is needed... no
checking suffix for labels... :
checking prefix for global symbol labels... rm: conftest.dSYM: is a directory
rm: conftest.dSYM: is a directory
rm: conftest.dSYM: is a directory
rm: conftest.dSYM: is a directory
none
configure: error: Could not determine global symbol label prefix
+ make
make: *** No targets specified and no makefile found. Stop.
+ make install
make: *** No rule to make target `install'. Stop.
+ make distclean
make: *** No rule to make target `distclean'. Stop.
+ cd /Users/kjmaki/OpenFOAM/OpenFOAM-1.4.1-dev/src
+ '[' OPENMPI = LAM -a '!' -r /lib/libmpi.a -a '!' -r /lib/libmpi.so -a '!' -r /lib/libmpi.dylib ']'
+ '[' OPENMPI = MPICH -a '!' -r /lib/libmpich.a -a '!' -r /lib/libmpich.so -a '!' -r /lib/libmpich.dylib ']'
+ cd /Users/kjmaki/OpenFOAM/OpenFOAM-1.4.1-dev/applications/utilities/miscellaneous
+ wmake exe foamFlex

The second and all subsequent errors appear like this:

/Users/kjmaki/OpenFOAM/OpenFOAM-1.4.1-dev/wmake/rules/General/flex++:6: warning: ignoring old commands for target `.L.dep'
SOURCE=triSurface/interfaces/STL/readSTLASCII.L ; foamFlex++ -f $SOURCE ; mv lex.yy.cc Make/darwinDPOpt/readSTLASCII.C ; g++ -Ddarwin -DDP -Wall -W -Wno-unused-parameter -Wold-style-cast -O3 -ffast-math -DNoRepository -ftemplate-depth-30 -IlnInclude -I. -I/Users/kjmaki/OpenFOAM/OpenFOAM-1.4.1-dev/src/OpenFOAM/lnInclude -fPIC -c Make/darwinDPOpt/readSTLASCII.C -o Make/darwinDPOpt/readSTLASCII.o
SOURCE=triSurface/interfaces/GTS/writeGTS.C ; g++ -Ddarwin -DDP -Wall -W -Wno-unused-parameter -Wold-style-cast -O3 -ffast-math -DNoRepository -ftemplate-depth-30 -IlnInclude -I. -I/Users/kjmaki/OpenFOAM/OpenFOAM-1.4.1-dev/src/OpenFOAM/lnInclude -fPIC -c $SOURCE -o Make/darwinDPOpt/writeGTS.o
dyld: Symbol not found: __ZN4Foam8OPstream5writeEPKc
Referenced from: /Users/kjmaki/OpenFOAM/OpenFOAM-1.4.1-dev/lib/darwinDPOpt/dummy/libPstream.dylib
Expected in: dynamic lookup

/bin/sh: line 1: 46335 Trace/BPT trap foamFlex++ -f $SOURCE
mv: rename lex.yy.cc to Make/darwinDPOpt/readSTLASCII.C: No such file or directory
i686-apple-darwin9-g++-4.0.1: Make/darwinDPOpt/readSTLASCII.C: No such file or directory
i686-apple-darwin9-g++-4.0.1: no input files
make: *** [Make/darwinDPOpt/readSTLASCII.o] Error 1
make: *** Waiting for unfinished jobs....
+ wmake libso edgeMesh
/Users/kjmaki/OpenFOAM/OpenFOAM-1.4.1-dev/wmake/rules/darwin/flex++:6: warning: overriding commands for target `.L.dep'
/Users/kjmaki/OpenFOAM/OpenFOAM-1.4.1-dev/wmake/rules/General/flex++:6: warning: ignoring old c

Additional information that might be of use:

superusers-macbook-pro-15:~/OpenFOAM/OpenFOAM-1.4.1-dev kjmaki$ gcc -v
Using built-in specs.
Target: i686-apple-darwin9
Configured with: /var/tmp/gcc/gcc-5465~16/src/configure --disable-checking -enable-werror --prefix=/usr --mandir=/share/man --enable-languages=c,objc,c++,obj-c++ --program-transform-name=/^[cg][^.-]*$/s/$/-4.0/ --with-gxx-include-dir=/include/c++/4.0.0 --with-slibdir=/usr/lib --build=i686-apple-darwin9 --with-arch=apple --with-tune=generic --host=i686-apple-darwin9 --target=i686-apple-darwin9
Thread model: posix
gcc version 4.0.1 (Apple Inc. build 5465)

superusers-macbook-pro-15:~/OpenFOAM/OpenFOAM-1.4.1-dev kjmaki$ flex -V
flex 2.5.33


Thanks!

Kevin

kjmaki April 14, 2008 17:54

Dear FOAMers, I am waiting
 
Dear FOAMers,

I am waiting for someone to throw me the gem that I know is out there! I am still stuck trying to get over the flex++ or foamFlex++ issue on my mac laptop.

I have followed the advice on the closely related thread titled (I dont know how to point to urls of specific threads, sorry): Yy_current_buffer undefined flexx2.5.33 vs flexx2.5.4

And whether I use foamFlex++ or flex++ makes no differnce, and I run Allwmake twice.

Please help :-)

Kevin

gschaider April 15, 2008 06:39

Hi Kevin! Looks like libPSt
 
Hi Kevin!

Looks like libPStream does not get linked and consequently all other links fail.

Is the MACOSX_DEPLOYMENT_TARGET-variable set (although I'm not quite sure whether this is still required on 10.5 or whether it is just folklore that it is set on my machine: http://paulbeachsblog.blogspot.com/2007/12/i-have-read-in-number-of-places-that- i.html)

If that does not help grep the .o-files in PStream/dummy/Make/darwinDPOpt

Bernhard

PS: One afterthought: In your previos post you start with "wmake libso OpenFOAM". You already made the Pstream-library?

kjmaki April 15, 2008 07:26

Dear Bernhard, Thank you fo
 
Dear Bernhard,

Thank you for your philanthropic generosity with your knowledge in these matters! I do regret to share that after your assistance, I am still unsuccessful at compiling on leopard.

1. My MACOSX_DEPLOYMENT_TARGET was set to 10.4, when I change it to 10.5, there is no effect.

2.
superusers-macbook-pro-15:~/OpenFOAM/OpenFOAM-1.4.1-dev kjmaki$ grep '.o' src/Pstream/dummy/Make/darwinDPOpt/*
Binary file src/Pstream/dummy/Make/darwinDPOpt/IPread.o matches
Binary file src/Pstream/dummy/Make/darwinDPOpt/OPwrite.o matches
Binary file src/Pstream/dummy/Make/darwinDPOpt/Pstream.o matches
src/Pstream/dummy/Make/darwinDPOpt/dependencies:dependencies up to date
src/Pstream/dummy/Make/darwinDPOpt/files:# 1 "<command>"
src/Pstream/dummy/Make/darwinDPOpt/localObjectFiles:Pstream.o\
src/Pstream/dummy/Make/darwinDPOpt/localObjectFiles:IPread.o\
src/Pstream/dummy/Make/darwinDPOpt/localObjectFileshttp://www.cfd-online.com/OpenFOAM_D...part/proud.gifPwrite.o
src/Pstream/dummy/Make/darwinDPOpt/objectFiles:$(OBJECTS_DIR)/Pstream.o\
src/Pstream/dummy/Make/darwinDPOpt/objectFiles:$(OBJECTS_DIR)/IPread.o\
src/Pstream/dummy/Make/darwinDPOpt/objectFiles:$(OBJECTS_DIR)/OPwrite.o
src/Pstream/dummy/Make/darwinDPOpt/options:# 1 "options"
src/Pstream/dummy/Make/darwinDPOpt/options:# 1 "<command>"
src/Pstream/dummy/Make/darwinDPOpt/options:# 1 "options"

3.
`/Users/kjmaki/OpenFOAM/OpenFOAM-1.4.1-dev/lib/darwinDPOpt/dummy/libPstream.dyli b' is up to date.

4. When I installed leopard, I chose the "case-sensitive' format for my harddisk. I have noticed that this has prevented installing several commercial softwares. Has anyone else had problems with this, and could it be related to my present issues?

Thanks, and a happy foaming day to you all!

Kevin

gschaider April 15, 2008 16:31

Hi Kevin! People who know m
 
Hi Kevin!

People who know me, will tell you, that there is no philantropic bone in my body. I only like to confuse people with cryptic remarks and then watch laughing as they stumble into the dark ;)

1. OK. As long it is set. What makes a difference is >10.3 (something with dynamic linking, can't remember stuff I solved two years ago)

2+3: I meant something like "grep __ZN4Foam8OPstream5writeEPKc *.o" (but that should turn out one file and it should be fine as the dylib got linked)
There was something the matter with the trisurface-lib (and that is where your linking trouble starts), but I can't put my finger on it

4: That, with all respect, was not a good move. For the reasons you mentioned one should only create a disk-image (or a special partition) for the OF-stuff. I think it should be stressed on the Wiki-page

Bernhard

gschaider April 15, 2008 16:47

Hi Kevin! I just checked th
 
Hi Kevin!

I just checked the two OF-installations on my iBoot. One has in
$FOAM_SRC/triSurface/Make/options
the lines
EXE_INC = -I$(LIB_SRC)/zlib-1.2.1/lnInclude
LIB_LIBS = -lOpenFOAM -lz

the other doesn't

Maybe the LIB_LIBS-line makes the difference

Bernhard

kjmaki April 16, 2008 17:12

Hi Bernhard, Thanks for the
 
Hi Bernhard,

Thanks for the additional information. I have tried changing the $FOAM_SRC/triSurface/Make/options file, but it has no effect.

I have realized that I was not able to build openmpi properly, but this will not be a big issue since I dont plan on running anything that will require multi-threads on my laptop. Thus, I have set my $WM_MPLIB to be empty.

foamFlex++ and libPstream.dylib seem to be built properly, but when I go to triSurface/interfaces/STL/ and execute foamFlex++ on the readSTLASCII.L, I get the following:

kjmaki$ foamFlex++ readSTLASCII.L
dyld: Symbol not found: __ZN4Foam8OPstream5writeEPKc
Referenced from: /Users/kjmaki/OpenFOAM/OpenFOAM-1.4.1-dev/lib/darwinDPOpt/dummy/libPstream.dylib
Expected in: dynamic lookup

Trace/BPT trap

Any thoughts on what I should do now????

Thanks again....Kevin

PS my harddisk is now case-insensitive, with the special foam partition.

kjmaki April 17, 2008 08:56

Dear Fellow-Foamers, I am s
 
Dear Fellow-Foamers,

I am still working on my foamFlex++ pstream difficulties, and obviously I am "way out of my league here". Any suggestions will be gratefully appreciated.

I run the nm command on the libPstream.dylib and I see that here are many undefined symbols in this library's table. When I look at the compile log for the $FOAM_SRC/Allwmake, there is another similar error with the combustion lib ->

wmake libso combustion
/Users/kjmaki/OpenFOAM/OpenFOAM-1.4.1-dev/wmake/rules/darwin/flex++:6: warning: overriding commands for target `.L.dep'
/Users/kjmaki/OpenFOAM/OpenFOAM-1.4.1-dev/wmake/rules/General/flex++:6: warning: ignoring old commands for target `.L.dep'
/Users/kjmaki/OpenFOAM/OpenFOAM-1.4.1-dev/wmake/rules/darwin/flex++:6: warning: overriding commands for target `.L.dep'
/Users/kjmaki/OpenFOAM/OpenFOAM-1.4.1-dev/wmake/rules/General/flex++:6: warning: ignoring old commands for target `.L.dep'
/Users/kjmaki/OpenFOAM/OpenFOAM-1.4.1-dev/wmake/rules/darwin/flex++:6: warning: overriding commands for target `.L.dep'
/Users/kjmaki/OpenFOAM/OpenFOAM-1.4.1-dev/wmake/rules/General/flex++:6: warning: ignoring old commands for target `.L.dep'
/Users/kjmaki/OpenFOAM/OpenFOAM-1.4.1-dev/wmake/rules/darwin/flex++:6: warning: overriding commands for target `.L.dep'
/Users/kjmaki/OpenFOAM/OpenFOAM-1.4.1-dev/wmake/rules/General/flex++:6: warning: ignoring old commands for target `.L.dep'
/Users/kjmaki/OpenFOAM/OpenFOAM-1.4.1-dev/wmake/rules/darwin/flex++:6: warning: overriding commands for target `.L.dep'
/Users/kjmaki/OpenFOAM/OpenFOAM-1.4.1-dev/wmake/rules/General/flex++:6: warning: ignoring old commands for target `.L.dep'
SOURCE=hhuCombustionThermo/hhuCombustionThermos.C ; g++ -Ddarwin -DDP -Wall -W -Wno-unused-parameter -Wold-style-cast -O3 -ffast-math -DNoRepository -ftemplate-depth-30 -I/Users/kjmaki/OpenFOAM/OpenFOAM-1.4.1-dev/src/finiteVolume/lnInclude -I/Users/kjmaki/OpenFOAM/OpenFOAM-1.4.1-dev/src/thermophysicalModels/basic/lnInc lude -I/Users/kjmaki/OpenFOAM/OpenFOAM-1.4.1-dev/src/thermophysicalModels/specie/lnIn clude -IlnInclude -I. -I/Users/kjmaki/OpenFOAM/OpenFOAM-1.4.1-dev/src/OpenFOAM/lnInclude -fPIC -c $SOURCE -o Make/darwinDPOpt/hhuCombustionThermos.o
SOURCE=chemistryReaders/chemkinReader/chemkinLexer.L ; foamFlex++ -f $SOURCE ; mv lex.yy.cc Make/darwinDPOpt/chemkinLexer.C ; g++ -Ddarwin -DDP -Wall -W -Wno-unused-parameter -Wold-style-cast -O3 -ffast-math -DNoRepository -ftemplate-depth-30 -I/Users/kjmaki/OpenFOAM/OpenFOAM-1.4.1-dev/src/finiteVolume/lnInclude -I/Users/kjmaki/OpenFOAM/OpenFOAM-1.4.1-dev/src/thermophysicalModels/basic/lnInc lude -I/Users/kjmaki/OpenFOAM/OpenFOAM-1.4.1-dev/src/thermophysicalModels/specie/lnIn clude -IlnInclude -I. -I/Users/kjmaki/OpenFOAM/OpenFOAM-1.4.1-dev/src/OpenFOAM/lnInclude -fPIC -c Make/darwinDPOpt/chemkinLexer.C -o Make/darwinDPOpt/chemkinLexer.o
dyld: Symbol not found: __ZN3MPI3Win14Set_errhandlerERKNS_10ErrhandlerE
Referenced from: /Users/kjmaki/OpenFOAM/OpenFOAM-1.4.1-dev/lib/darwinDPOpt/dummy/libPstream.dylib
Expected in: dynamic lookup

/bin/sh: line 1: 3820 Trace/BPT trap foamFlex++ -f $SOURCE
mv: rename lex.yy.cc to Make/darwinDPOpt/chemkinLexer.C: No such file or directory
i686-apple-darwin9-g++-4.0.1: Make/darwinDPOpt/chemkinLexer.C: No such file or directory
i686-apple-darwin9-g++-4.0.1: no input files
make: *** [Make/darwinDPOpt/chemkinLexer.o] Error 1
make: *** Waiting for unfinished jobs....

Does this mean that my Pstream library is not built well? Can anyone explain how I could glean more information from the troublesome symbol names?

Help please :-)

gabriel_stokes May 27, 2008 16:10

I am stuck somewhere in the sa
 
I am stuck somewhere in the same swamp as you, Kevin. Any luck so far?

For sure, I will make a cookbook on how to do this, when/if I finally succeed...

/Mads

kjmaki May 27, 2008 17:29

Hi Mads, Well, I am in a di
 
Hi Mads,

Well, I am in a different swamp now, at least it is a better smelling one!

If I remember correctly, I was able to resolve my problem by ensuring that foamFlex++ was used instead of flex++. Initially I was altering the file $WM_PROJECT_DIR/wmake/rules/General/flex++, but it was the $WM_PROJECT_DIR/wmake/rules/Darwin/flex++ that needed the change.

BTW, I have flex++ version 2.5.33

I now wish that I had more carefully documented the issues that I had to overcome to compile 1.4.1-dev on my MacBook Pro, thanks in advance for your offer to do so!

kevin

gabriel_stokes May 28, 2008 01:16

Hi Kevin, thank you for your s
 
Hi Kevin, thank you for your swift answer.


Uhm...flex++? :-)

I see the flex++ file in the directory you mention, but what change does it need - is it stated above, I can't seem to find it.

/Mads

kjmaki May 28, 2008 06:48

Hi Mads, Please excuse me f
 
Hi Mads,

Please excuse me for not giving enough detail. These are the steps I followed (those that I can remember) to build 1.4.1-dev on Leopard. By the way, I still have some errors with things like openmpi, foamx, but the part of the installation that I need is working well.

1. In the Darwin section of $WM_PROJECT_DIR/.OpenFOAM-1.4.1-dev/bashrc, I set
export WM_MPLIB=
This causes the dummy library to be made.

2. Look further up in this thread about changing the uint to unsigned integer. This may be corrected in the SVN version, but it worth verifying.

3. There is other info on the message board about dealing with the flex++ issue, and I suggest reading around a bit. I can describe what I did, but I can't really explain why it works and I am not confident that I am doing things right. My file wmake/rules/darwin/flex++ reads:

.SUFFIXES: .L

Ltoo = foamFlex++ -f $$SOURCE ; mv lex.yy.cc $*.C ; $(CC) $(c++FLAGS) -c $*.C -o $@
#Ltoo = flex++ -f $$SOURCE ; mv lex.yy.cc $*.C ; $(CC) $(c++FLAGS) -c $*.C -o $@

.L.dep:
$(MAKE_DEP)
~

Happy FOAMing,

Kevin

gabriel_stokes May 29, 2008 01:17

Hey Kevin, thanks a lot. Po
 
Hey Kevin,

thanks a lot. Point 1 and 3 was already "fixed" in the current SVN, point 2 have I fixed myself using the guidelines above.

I still get errors, the first one being:

[...CUT...]
+ wmake libso triSurface
/Users/mads/OpenFOAM/OpenFOAM-1.4.1-dev/wmake/rules/darwin/flex++:6: warning: overriding commands for target `.L.dep'
/Users/mads/OpenFOAM/OpenFOAM-1.4.1-dev/wmake/rules/General/flex++:7: warning: ignoring old commands for target `.L.dep'
/Users/mads/OpenFOAM/OpenFOAM-1.4.1-dev/wmake/rules/darwin/flex++:6: warning: overriding commands for target `.L.dep'
/Users/mads/OpenFOAM/OpenFOAM-1.4.1-dev/wmake/rules/General/flex++:7: warning: ignoring old commands for target `.L.dep'
/Users/mads/OpenFOAM/OpenFOAM-1.4.1-dev/wmake/rules/darwin/flex++:6: warning: overriding commands for target `.L.dep'
/Users/mads/OpenFOAM/OpenFOAM-1.4.1-dev/wmake/rules/General/flex++:7: warning: ignoring old commands for target `.L.dep'
/Users/mads/OpenFOAM/OpenFOAM-1.4.1-dev/wmake/rules/darwin/flex++:6: warning: overriding commands for target `.L.dep'
/Users/mads/OpenFOAM/OpenFOAM-1.4.1-dev/wmake/rules/General/flex++:7: warning: ignoring old commands for target `.L.dep'
/Users/mads/OpenFOAM/OpenFOAM-1.4.1-dev/wmake/rules/darwin/flex++:6: warning: overriding commands for target `.L.dep'
/Users/mads/OpenFOAM/OpenFOAM-1.4.1-dev/wmake/rules/General/flex++:7: warning: ignoring old commands for target `.L.dep'
SOURCE=triSurface/interfaces/OFF/readOFF.C ; g++ -Ddarwin -DDP -Wall -W -Wno-unused-parameter -Wold-style-cast -O3 -ffast-math -DNoRepository -ftemplate-depth-30 -IlnInclude -I. -I/Users/mads/OpenFOAM/OpenFOAM-1.4.1-dev/src/OpenFOAM/lnInclude -fPIC -c $SOURCE -o Make/darwinDPOpt/readOFF.o
SOURCE=triSurface/interfaces/STL/readSTLASCII.L ; foamFlex++ -f $SOURCE ; mv lex.yy.cc Make/darwinDPOpt/readSTLASCII.C ; g++ -Ddarwin -DDP -Wall -W -Wno-unused-parameter -Wold-style-cast -O3 -ffast-math -DNoRepository -ftemplate-depth-30 -IlnInclude -I. -I/Users/mads/OpenFOAM/OpenFOAM-1.4.1-dev/src/OpenFOAM/lnInclude -fPIC -c Make/darwinDPOpt/readSTLASCII.C -o Make/darwinDPOpt/readSTLASCII.o
dyld: Symbol not found: __ZN4Foam8OPstream5writeEPKc
Referenced from: /Users/mads/OpenFOAM/OpenFOAM-1.4.1-dev/lib/darwinDPOpt/dummy/libPstream.dylib
Expected in: dynamic lookup

/bin/sh: line 1: 97911 Trace/BPT trap foamFlex++ -f $SOURCE
mv: rename lex.yy.cc to Make/darwinDPOpt/readSTLASCII.C: No such file or directory
i686-apple-darwin9-g++-4.0.1: Make/darwinDPOpt/readSTLASCII.C: No such file or directory
i686-apple-darwin9-g++-4.0.1: no input files
make: *** [Make/darwinDPOpt/readSTLASCII.o] Error 1
make: *** Waiting for unfinished jobs....

[...CUT...]

/Mads

gabriel_stokes June 6, 2008 12:04

My apologies to whomever is fo
 
My apologies to whomever is following this thread in hopes of installing OpenFOAM on a Mac (and haven't succeeded)...I promised a cookbook but I can't do it, since I can't compile and install this beast.

Any help is still appreciated. Here is my error as it looks right now (down to the first error):

+ cd wmake
+ ./makeWmake
/Users/mads/OpenFOAM/OpenFOAM-1.4.1-dev/wmake/rules/darwin/flex++:7: warning: overriding commands for target `.L.dep'
/Users/mads/OpenFOAM/OpenFOAM-1.4.1-dev/wmake/rules/General/flex++:7: warning: ignoring old commands for target `.L.dep'
make: Nothing to be done for `all'.
+ cd src
+ ./Allwmake
+ cd /Users/mads/OpenFOAM/OpenFOAM-1.4.1-dev/src/OpenFOAM
+ wmakeLnInclude .
+ wmake libso zlib-1.2.3
/Users/mads/OpenFOAM/OpenFOAM-1.4.1-dev/wmake/rules/darwin/flex++:7: warning: overriding commands for target `.L.dep'
/Users/mads/OpenFOAM/OpenFOAM-1.4.1-dev/wmake/rules/General/flex++:7: warning: ignoring old commands for target `.L.dep'
/Users/mads/OpenFOAM/OpenFOAM-1.4.1-dev/wmake/rules/darwin/flex++:7: warning: overriding commands for target `.L.dep'
/Users/mads/OpenFOAM/OpenFOAM-1.4.1-dev/wmake/rules/General/flex++:7: warning: ignoring old commands for target `.L.dep'
/Users/mads/OpenFOAM/OpenFOAM-1.4.1-dev/wmake/rules/darwin/flex++:7: warning: overriding commands for target `.L.dep'
/Users/mads/OpenFOAM/OpenFOAM-1.4.1-dev/wmake/rules/General/flex++:7: warning: ignoring old commands for target `.L.dep'
/Users/mads/OpenFOAM/OpenFOAM-1.4.1-dev/wmake/rules/darwin/flex++:7: warning: overriding commands for target `.L.dep'
/Users/mads/OpenFOAM/OpenFOAM-1.4.1-dev/wmake/rules/General/flex++:7: warning: ignoring old commands for target `.L.dep'
/Users/mads/OpenFOAM/OpenFOAM-1.4.1-dev/wmake/rules/darwin/flex++:7: warning: overriding commands for target `.L.dep'
/Users/mads/OpenFOAM/OpenFOAM-1.4.1-dev/wmake/rules/General/flex++:7: warning: ignoring old commands for target `.L.dep'
`/Users/mads/OpenFOAM/OpenFOAM-1.4.1-dev/lib/darwinDPOpt/libz.dylib' is up to date.
+ '[' OPENMPI = OPENMPI -a '!' -r /Users/mads/OpenFOAM/OpenFOAM-1.4.1-dev/src/openmpi-1.2.6/platforms/darwinDPOpt/ lib/libmpi.a -a '!' -r /Users/mads/OpenFOAM/OpenFOAM-1.4.1-dev/src/openmpi-1.2.6/platforms/darwinDPOpt/ lib/libmpi.so -a '!' -r /Users/mads/OpenFOAM/OpenFOAM-1.4.1-dev/src/openmpi-1.2.6/platforms/darwinDPOpt/ lib/libmpi.dylib ']'
+ '[' OPENMPI = LAM -a '!' -r /lib/libmpi.a -a '!' -r /lib/libmpi.so -a '!' -r /lib/libmpi.dylib ']'
+ '[' OPENMPI = MPICH -a '!' -r /lib/libmpich.a -a '!' -r /lib/libmpich.so -a '!' -r /lib/libmpich.dylib ']'
+ cd Pstream
+ ./Allwmake
+ wmake libso dummy
/Users/mads/OpenFOAM/OpenFOAM-1.4.1-dev/wmake/rules/darwin/flex++:7: warning: overriding commands for target `.L.dep'
/Users/mads/OpenFOAM/OpenFOAM-1.4.1-dev/wmake/rules/General/flex++:7: warning: ignoring old commands for target `.L.dep'
/Users/mads/OpenFOAM/OpenFOAM-1.4.1-dev/wmake/rules/darwin/flex++:7: warning: overriding commands for target `.L.dep'
/Users/mads/OpenFOAM/OpenFOAM-1.4.1-dev/wmake/rules/General/flex++:7: warning: ignoring old commands for target `.L.dep'
/Users/mads/OpenFOAM/OpenFOAM-1.4.1-dev/wmake/rules/darwin/flex++:7: warning: overriding commands for target `.L.dep'
/Users/mads/OpenFOAM/OpenFOAM-1.4.1-dev/wmake/rules/General/flex++:7: warning: ignoring old commands for target `.L.dep'
/Users/mads/OpenFOAM/OpenFOAM-1.4.1-dev/wmake/rules/darwin/flex++:7: warning: overriding commands for target `.L.dep'
/Users/mads/OpenFOAM/OpenFOAM-1.4.1-dev/wmake/rules/General/flex++:7: warning: ignoring old commands for target `.L.dep'
/Users/mads/OpenFOAM/OpenFOAM-1.4.1-dev/wmake/rules/darwin/flex++:7: warning: overriding commands for target `.L.dep'
/Users/mads/OpenFOAM/OpenFOAM-1.4.1-dev/wmake/rules/General/flex++:7: warning: ignoring old commands for target `.L.dep'
`/Users/mads/OpenFOAM/OpenFOAM-1.4.1-dev/lib/darwinDPOpt/dummy/libPstream.dylib' is up to date.
+ '[' OPENMPI = LAM -o OPENMPI = OPENMPI -o OPENMPI = MPI -o OPENMPI = MPICH -o OPENMPI = MPICH-GM -o OPENMPI = MPIGAMMA ']'
+ export WM_OPTIONS=darwinDPOptOPENMPI
+ WM_OPTIONS=darwinDPOptOPENMPI
+ wmake libso mpi
/Users/mads/OpenFOAM/OpenFOAM-1.4.1-dev/wmake/rules/darwin/flex++:7: warning: overriding commands for target `.L.dep'
/Users/mads/OpenFOAM/OpenFOAM-1.4.1-dev/wmake/rules/General/flex++:7: warning: ignoring old commands for target `.L.dep'
/Users/mads/OpenFOAM/OpenFOAM-1.4.1-dev/wmake/rules/darwin/flex++:7: warning: overriding commands for target `.L.dep'
/Users/mads/OpenFOAM/OpenFOAM-1.4.1-dev/wmake/rules/General/flex++:7: warning: ignoring old commands for target `.L.dep'
darwinDPOptOPENMPI/options:5: /Users/mads/OpenFOAM/OpenFOAM-1.4.1-dev/wmake/rules/darwin/mplibOPENMPI: No such file or directory
make: *** No rule to make target `/Users/mads/OpenFOAM/OpenFOAM-1.4.1-dev/wmake/rules/darwin/mplibOPENMPI'. Stop.
/Users/mads/OpenFOAM/OpenFOAM-1.4.1-dev/wmake/wmake: cannot make, file Make/darwinDPOptOPENMPI/objectFiles was not created successfully
+ wmake libso OpenFOAM
/Users/mads/OpenFOAM/OpenFOAM-1.4.1-dev/wmake/rules/darwin/flex++:7: warning: overriding commands for target `.L.dep'
/Users/mads/OpenFOAM/OpenFOAM-1.4.1-dev/wmake/rules/General/flex++:7: warning: ignoring old commands for target `.L.dep'
/Users/mads/OpenFOAM/OpenFOAM-1.4.1-dev/wmake/rules/darwin/flex++:7: warning: overriding commands for target `.L.dep'
/Users/mads/OpenFOAM/OpenFOAM-1.4.1-dev/wmake/rules/General/flex++:7: warning: ignoring old commands for target `.L.dep'
/Users/mads/OpenFOAM/OpenFOAM-1.4.1-dev/wmake/rules/darwin/flex++:7: warning: overriding commands for target `.L.dep'
/Users/mads/OpenFOAM/OpenFOAM-1.4.1-dev/wmake/rules/General/flex++:7: warning: ignoring old commands for target `.L.dep'
/Users/mads/OpenFOAM/OpenFOAM-1.4.1-dev/wmake/rules/darwin/flex++:7: warning: overriding commands for target `.L.dep'
/Users/mads/OpenFOAM/OpenFOAM-1.4.1-dev/wmake/rules/General/flex++:7: warning: ignoring old commands for target `.L.dep'
/Users/mads/OpenFOAM/OpenFOAM-1.4.1-dev/wmake/rules/darwin/flex++:7: warning: overriding commands for target `.L.dep'
/Users/mads/OpenFOAM/OpenFOAM-1.4.1-dev/wmake/rules/General/flex++:7: warning: ignoring old commands for target `.L.dep'
`/Users/mads/OpenFOAM/OpenFOAM-1.4.1-dev/lib/darwinDPOpt/libOpenFOAM.dylib' is up to date.
+ wmake libso lduSolvers
/Users/mads/OpenFOAM/OpenFOAM-1.4.1-dev/wmake/rules/darwin/flex++:7: warning: overriding commands for target `.L.dep'
/Users/mads/OpenFOAM/OpenFOAM-1.4.1-dev/wmake/rules/General/flex++:7: warning: ignoring old commands for target `.L.dep'
/Users/mads/OpenFOAM/OpenFOAM-1.4.1-dev/wmake/rules/darwin/flex++:7: warning: overriding commands for target `.L.dep'
/Users/mads/OpenFOAM/OpenFOAM-1.4.1-dev/wmake/rules/General/flex++:7: warning: ignoring old commands for target `.L.dep'
/Users/mads/OpenFOAM/OpenFOAM-1.4.1-dev/wmake/rules/darwin/flex++:7: warning: overriding commands for target `.L.dep'
/Users/mads/OpenFOAM/OpenFOAM-1.4.1-dev/wmake/rules/General/flex++:7: warning: ignoring old commands for target `.L.dep'
/Users/mads/OpenFOAM/OpenFOAM-1.4.1-dev/wmake/rules/darwin/flex++:7: warning: overriding commands for target `.L.dep'
/Users/mads/OpenFOAM/OpenFOAM-1.4.1-dev/wmake/rules/General/flex++:7: warning: ignoring old commands for target `.L.dep'
/Users/mads/OpenFOAM/OpenFOAM-1.4.1-dev/wmake/rules/darwin/flex++:7: warning: overriding commands for target `.L.dep'
/Users/mads/OpenFOAM/OpenFOAM-1.4.1-dev/wmake/rules/General/flex++:7: warning: ignoring old commands for target `.L.dep'
`/Users/mads/OpenFOAM/OpenFOAM-1.4.1-dev/lib/darwinDPOpt/liblduSolvers.dylib' is up to date.
+ wmake libso lagrangian/basic
/Users/mads/OpenFOAM/OpenFOAM-1.4.1-dev/wmake/rules/darwin/flex++:7: warning: overriding commands for target `.L.dep'
/Users/mads/OpenFOAM/OpenFOAM-1.4.1-dev/wmake/rules/General/flex++:7: warning: ignoring old commands for target `.L.dep'
/Users/mads/OpenFOAM/OpenFOAM-1.4.1-dev/wmake/rules/darwin/flex++:7: warning: overriding commands for target `.L.dep'
/Users/mads/OpenFOAM/OpenFOAM-1.4.1-dev/wmake/rules/General/flex++:7: warning: ignoring old commands for target `.L.dep'
/Users/mads/OpenFOAM/OpenFOAM-1.4.1-dev/wmake/rules/darwin/flex++:7: warning: overriding commands for target `.L.dep'
/Users/mads/OpenFOAM/OpenFOAM-1.4.1-dev/wmake/rules/General/flex++:7: warning: ignoring old commands for target `.L.dep'
/Users/mads/OpenFOAM/OpenFOAM-1.4.1-dev/wmake/rules/darwin/flex++:7: warning: overriding commands for target `.L.dep'
/Users/mads/OpenFOAM/OpenFOAM-1.4.1-dev/wmake/rules/General/flex++:7: warning: ignoring old commands for target `.L.dep'
/Users/mads/OpenFOAM/OpenFOAM-1.4.1-dev/wmake/rules/darwin/flex++:7: warning: overriding commands for target `.L.dep'
/Users/mads/OpenFOAM/OpenFOAM-1.4.1-dev/wmake/rules/General/flex++:7: warning: ignoring old commands for target `.L.dep'
`/Users/mads/OpenFOAM/OpenFOAM-1.4.1-dev/lib/darwinDPOpt/liblagrangian.dylib' is up to date.
+ wmake libso triSurface
/Users/mads/OpenFOAM/OpenFOAM-1.4.1-dev/wmake/rules/darwin/flex++:7: warning: overriding commands for target `.L.dep'
/Users/mads/OpenFOAM/OpenFOAM-1.4.1-dev/wmake/rules/General/flex++:7: warning: ignoring old commands for target `.L.dep'
/Users/mads/OpenFOAM/OpenFOAM-1.4.1-dev/wmake/rules/darwin/flex++:7: warning: overriding commands for target `.L.dep'
/Users/mads/OpenFOAM/OpenFOAM-1.4.1-dev/wmake/rules/General/flex++:7: warning: ignoring old commands for target `.L.dep'
/Users/mads/OpenFOAM/OpenFOAM-1.4.1-dev/wmake/rules/darwin/flex++:7: warning: overriding commands for target `.L.dep'
/Users/mads/OpenFOAM/OpenFOAM-1.4.1-dev/wmake/rules/General/flex++:7: warning: ignoring old commands for target `.L.dep'
/Users/mads/OpenFOAM/OpenFOAM-1.4.1-dev/wmake/rules/darwin/flex++:7: warning: overriding commands for target `.L.dep'
/Users/mads/OpenFOAM/OpenFOAM-1.4.1-dev/wmake/rules/General/flex++:7: warning: ignoring old commands for target `.L.dep'
/Users/mads/OpenFOAM/OpenFOAM-1.4.1-dev/wmake/rules/darwin/flex++:7: warning: overriding commands for target `.L.dep'
/Users/mads/OpenFOAM/OpenFOAM-1.4.1-dev/wmake/rules/General/flex++:7: warning: ignoring old commands for target `.L.dep'
SOURCE=triSurface/interfaces/STL/readSTLASCII.L ; foamFlex++ -f $SOURCE ; mv lex.yy.cc Make/darwinDPOpt/readSTLASCII.C ; g++ -Ddarwin -DDP -Wall -W -Wno-unused-parameter -Wold-style-cast -O3 -ffast-math -DNoRepository -ftemplate-depth-30 -IlnInclude -I. -I/Users/mads/OpenFOAM/OpenFOAM-1.4.1-dev/src/OpenFOAM/lnInclude -fPIC -c Make/darwinDPOpt/readSTLASCII.C -o Make/darwinDPOpt/readSTLASCII.o
SOURCE=triSurface/interfaces/OFF/readOFF.C ; g++ -Ddarwin -DDP -Wall -W -Wno-unused-parameter -Wold-style-cast -O3 -ffast-math -DNoRepository -ftemplate-depth-30 -IlnInclude -I. -I/Users/mads/OpenFOAM/OpenFOAM-1.4.1-dev/src/OpenFOAM/lnInclude -fPIC -c $SOURCE -o Make/darwinDPOpt/readOFF.o
dyld: Symbol not found: __ZN4Foam8OPstream5writeEPKc
Referenced from: /Users/mads/OpenFOAM/OpenFOAM-1.4.1-dev/lib/darwinDPOpt/dummy/libPstream.dylib
Expected in: dynamic lookup

/bin/sh: line 1: 62130 Trace/BPT trap foamFlex++ -f $SOURCE
mv: rename lex.yy.cc to Make/darwinDPOpt/readSTLASCII.C: No such file or directory
i686-apple-darwin9-g++-4.0.1: Make/darwinDPOpt/readSTLASCII.C: No such file or directory
i686-apple-darwin9-g++-4.0.1: no input files
make: *** [Make/darwinDPOpt/readSTLASCII.o] Error 1
make: *** Waiting for unfinished jobs....
+ wmake libso edgeMesh

I fixed the 'uint' error but now I think something is wrong with foamFlex++ (?)


/Mads

gschaider June 9, 2008 11:34

Hi Mads! One problem could
 
Hi Mads!

One problem could be, that the file /Users/mads/OpenFOAM/OpenFOAM-1.4.1-dev/wmake/rules/darwin/mplibOPENMPI is missing (and the Pstream/mpi-library therefore does'nt know how to compile itself). And this os the library that provides the missing symbol __ZN4Foam8OPstream5writeEPKc.

The contents of this file on my machine would be

PFLAGS = -DOMPI_SKIP_MPICXX
PINC = -I/opt/local/include/openmpi
PLIBS = -L/opt/local/lib/ -lmpi

But that assumes that OpenMPI was installed via ports on the machine

Bernhard

gabriel_stokes July 12, 2008 15:56

Thanks Bernhard :-) OpenMPI
 
Thanks Bernhard :-)

OpenMPI...let's not go there:

$ sudo port install openmpi
Password:
---> Building openmpi with target all
Error: Target org.macports.build returned: shell command " cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.or g_release_ports_science_openmpi/work/build" && make all " returned error 2
Command output: ../../../../../../../ompi/include/mpi.h:1466: error: previous declaration of 'PMPI_File_write_ordered_end' was here
/opt/local/include/mpio.h:387: error: conflicting types for 'PMPI_File_get_type_extent'
../../../../../../../ompi/include/mpi.h:1468: error: previous declaration of 'PMPI_File_get_type_extent' was here
/opt/local/include/mpio.h:397: error: conflicting types for 'PMPI_File_set_atomicity'
../../../../../../../ompi/include/mpi.h:1469: error: previous declaration of 'PMPI_File_set_atomicity' was here
/opt/local/include/mpio.h:398: error: conflicting types for 'PMPI_File_get_atomicity'
../../../../../../../ompi/include/mpi.h:1470: error: previous declaration of 'PMPI_File_get_atomicity' was here
/opt/local/include/mpio.h:399: error: conflicting types for 'PMPI_File_sync'
../../../../../../../ompi/include/mpi.h:1471: error: previous declaration of 'PMPI_File_sync' was here
/opt/local/include/mpio.h:404: error: conflicting types for 'PMPI_File_set_errhandler'
../../../../../../../ompi/include/mpi.h:1389: error: previous declaration of 'PMPI_File_set_errhandler' was here
/opt/local/include/mpio.h:405: error: conflicting types for 'PMPI_File_get_errhandler'
../../../../../../../ompi/include/mpi.h:1390: error: previous declaration of 'PMPI_File_get_errhandler' was here
/opt/local/include/mpio.h:419: error: conflicting types for 'PMPI_File_f2c'
../../../../../../../ompi/include/mpi.h:1385: error: previous declaration of 'PMPI_File_f2c' was here
/opt/local/include/mpio.h:420: error: conflicting types for 'PMPI_File_c2f'
../../../../../../../ompi/include/mpi.h:1384: error: previous declaration of 'PMPI_File_c2f' was here
/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org _release_ports_science_openmpi/work/openmpi-1.2.6/ompi/mca/io/romio/romio/adio/c ommon/io_romio_ad_aggregate.c: In function 'mca_io_romio_dist_ADIOI_Calc_others_req':
/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org _release_ports_science_openmpi/work/openmpi-1.2.6/ompi/mca/io/romio/romio/adio/c ommon/io_romio_ad_aggregate.c:412: warning: passing argument 7 of 'PMPI_Irecv' from incompatible pointer type
/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org _release_ports_science_openmpi/work/openmpi-1.2.6/ompi/mca/io/romio/romio/adio/c ommon/io_romio_ad_aggregate.c:415: warning: passing argument 7 of 'PMPI_Irecv' from incompatible pointer type
/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org _release_ports_science_openmpi/work/openmpi-1.2.6/ompi/mca/io/romio/romio/adio/c ommon/io_romio_ad_aggregate.c:424: warning: passing argument 7 of 'PMPI_Isend' from incompatible pointer type
/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org _release_ports_science_openmpi/work/openmpi-1.2.6/ompi/mca/io/romio/romio/adio/c ommon/io_romio_ad_aggregate.c:427: warning: passing argument 7 of 'PMPI_Isend' from incompatible pointer type
/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org _release_ports_science_openmpi/work/openmpi-1.2.6/ompi/mca/io/romio/romio/adio/c ommon/io_romio_ad_aggregate.c:437: warning: passing argument 2 of 'PMPI_Waitall' from incompatible pointer type
/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org _release_ports_science_openmpi/work/openmpi-1.2.6/ompi/mca/io/romio/romio/adio/c ommon/io_romio_ad_aggregate.c:438: warning: passing argument 2 of 'PMPI_Waitall' from incompatible pointer type
make[5]: *** [io_romio_ad_aggregate.lo] Error 1
make[4]: *** [all-recursive] Error 1
make[3]: *** [all-recursive] Error 1
make[2]: *** [all-recursive] Error 1
make[1]: *** [all-recursive] Error 1
make: *** [all-recursive] Error 1

Error: Status 1 encountered during processing.

gschaider July 14, 2008 08:23

Hi Mads! You can always tr
 
Hi Mads!

You can always try the OpenMPI that comes with the OF-sources. (For me the ports-version worked, but that was installed some time ago - and never updated - and on a PPC, so your milage may vary)

Bernhard

podallaire July 15, 2008 07:34

Good morning, anybody tried
 
Good morning,

anybody tried to compile 1.5 ? Looks to me that it will be a
challenge ...

Regards,

Pierre-Olivier

gschaider July 15, 2008 10:41

Hi Pierre! I'm sure the fir
 
Hi Pierre!

I'm sure the first one to do so will open a new thread

Bernhard

gabriel_stokes July 15, 2008 15:33

Hi Bernhard, thanks, but ho
 
Hi Bernhard,

thanks, but how do I use the MPI that comes with the distribution?

/Mads

mgz1985 July 19, 2008 12:47

Hi Pierre... I have openfoa
 
Hi Pierre...

I have openfoam 1.4.1 running on my MacOSX but when it comes to running paraview i am having a problem.

it gives me an error paraview command not found

I have installed paraview 3.2.1 darwin...as an image disk.....even openfoam is in a disk image...

regarding the patch when i execute the patch command given above it fails

mayank-guptas-macbookhttp://www.cfd-online.com/OpenFOAM_D...part/proud.gifpenFOAM-1.4.1 mayankgupta$ patch -i OpenFOAM-1.4.1-MacOSX-mwild.patch -p0
patching file .bashrc
patch: **** malformed patch at line 17: # Tell OpenMPI where to find it's install directory

i dont understan this....can anyone help me figure this out and my paraview problems....also i am unable to edit the bashrc file as it is hidden and m system does not know the command gedit or gmake...how can i have openfoam running smoothly..

mgz1985 July 20, 2008 05:19

hi PO paraview paraFoam.pvs
 
hi PO

paraview paraFoam.pvs

after i got the error on running paraFoam i tracked the line 75 on my paraFoam which is pasted above, but i think it is correct and points the file to be opened by paraview. Paraview is in a disk image soft linked to the directory having openfoam disk image. can u please tell me the problem


All times are GMT -4. The time now is 13:49.