On Fri, Aug 8, 2008 at 6:18 PM, David Fuentes <[EMAIL PROTECTED]> wrote:
> Hi,
>
> I'm trying to build libmesh with gcc 4.3.1
> I am able to build it with gcc 4.1.2, but I need the 4.3.1 gfortran
> compiler.

If necessary, you can specify the Fortran compiler when you configure, by doing:
F77=gfortran ./configure ...


>
> below is a diff between
>
> $(LIBMESH_DIR)/include/base/libmesh_config.h
>
> file when building libmesh with gcc 4.1.2 and gcc 4.3.1
>
> with gcc 4.1.2 the preprocessor variable HAVE_GCC_ABI_DEMANGLE
> is defined but it is undefined when building with gcc 4.3.1
>
> I believe this is causing undefined references to "print_trace"
> in $(LIBMESH_DIR)/src/base/print_trace.h
> and I cannot link $(LIBMESH_DIR)/bin/amr

If HAVE_GCC_ABI_DEMANGLE is not defined, print_trace should be defined
as an empty function.  It's not clear to me why it would be causing a
linker error...  Also, it's a shame if they've now broken their print
trace capability in 4.3.x.

>
> Has anyone been able to build libmesh w/ gcc 4.3.1?

I think somebody has.  Someone has taken the time to set up some
compiler flags for it anyway.

-- 
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

Reply via email to