Dear libMesh developers,
For certain reasons, I need to compile a 32-bit libMesh on a 64-bit
machine. What I did was:
1. I compiled mpich2 in 32 bit mode, i.e. by saying
export CFLAGS=-m32
export LDFLAGS=-m32
export CPPFLAGS=-m32
export FC=gfortran
export F90=gfortran
export FFLAGS=-m32
export F90FLAGS=-m32
prior to configuring mpich2 (without problems).
2. I compiled PETSc-2.3.3-p11 against that mpich2 (without problems).
3. I set the above variables again, before calling libMesh's
"./configure".
4. I said "make" in the libMesh directory.
What I get is:
src/geom/elem_refinement.C: In member function ‘unsigned int
Elem::_cast_node_address_to_unsigned_int(unsigned int)’:
src/geom/elem_refinement.C:160: error: cast from ‘Node*’ to ‘unsigned int’
loses precision
It seems to me that libMesh configured for 32-bit mode
(in particular determining LIBMESH_SIZEOF_INT and
LIBMESH_SIZEOF_VOID_P to be equal), but then compiled without the
"-m32" option. This is confirmed by saying "make -n" and observing
that the command to be executed does not contain "-m32".
What did I do wrong?
Best Regards,
Tim
--
Dr. Tim Kroeger Phone +49-421-218-7710
[EMAIL PROTECTED], [EMAIL PROTECTED] Fax +49-421-218-4236
MeVis Research GmbH, Universitaetsallee 29, 28359 Bremen, Germany
Amtsgericht Bremen HRB 16222
Geschaeftsfuehrer: Prof. Dr. H.-O. Peitgen
-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
Libmesh-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/libmesh-users