On Mon, Nov 24, 2008 at 7:37 AM, Tim Kroeger <[EMAIL PROTECTED]> wrote: > Dear all, > > On Mon, 24 Nov 2008, Tim Kroeger wrote: > >> 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 > > I now manually modified the following three things, which seems to solve my > problem: > > > 1. I added > > libmesh_CXXFLAGS += -m32 > libmesh_CFLAGS += -m32 > > at the end of Make.common. > > > 2. In the Tecplot section of Make.common, I adjusted the path to tecio.a > from "x86_64-unknown-linux-gnu" to "i686-pc-linux-gnu". > > > 3. In contrib/tetgen/Makefile, I again added > > libmesh_CXXFLAGS += -m32 > > after line 10. > > > It seems to work now, but anyway, I would appreciate if these things > happened automatically.
I think adding -m32, or whatever this option is called on other compilers, to libmesh_CXXFLAGS should be the way to go. Then tetgen et al. should use the libmesh_CXXFLAGS as well. The latest Intel compilers also appear to support -m32. Under PGI it seems to get a little more complicated, with "-tp barcelona -tp barcelona-32" required on the Barcelona chips. It's probably worthwhile writing our own autoconf test which sets the correct flag based on the compiler. Unless autoconf already has this...I'll take a look. -- John ------------------------------------------------------------------------- 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
