On Mon, Mar 31, 2014 at 9:02 PM, subramanya sadasiva <pota...@outlook.com>wrote:

> Hi, I am trying to build libmesh with parmesh on our RHEL 6 server with
> petsc 3.4.3 and I get the following error.
>
> checking for style of include used by make... GNU
> checking for mpicxx... mpicxx
> checking whether the C++ compiler works... yes
> checking for C++ compiler default output file name... a.out
> checking for suffix of executables...
> checking whether we are cross compiling... configure: error: in
> `/home/mauve/a/ssadasiv/software/libmesh':
> configure: error: cannot run C++ compiled programs.
> If you meant to cross compile, use `--host'
> I've attached the config.log file here. I am unable to figure out what the
> problem is as I have built libmesh on this machine with the same petsc
> builds earlier.
>

Here's the details from config.log:

/usr/bin/ld: warning: libquadmath.so.0, needed by
/home/mauve/a/ssadasiv/software/petsc/gcc-48-opt/lib/libmpich.so, not found
(try using -rpath or -rpath-link)
configure:4788: $? = 0
configure:4795: ./conftest
./conftest: error while loading shared libraries: libquadmath.so.0: cannot
open shared object file: No such file or directory
configure:4799: $? = 127
configure:4806: error: in `/home/mauve/a/ssadasiv/software/libmesh':
configure:4808: error: cannot run C++ compiled programs.


It looks like libmpich.so (which appears to be built under PETSc?) requires
libquadmath.so, but that library is not in your LD_LIBRARY_PATH.

Some basic googling suggests libquadmath.so is a GCC extension library, and
therefore something like -lquadmath should work to link it.

I assume you built your own GCC as well?  It's possible you didn't follow
the instructions for that, which in the past have included adding certain
paths to your LD_LIBRARY_PATH.

-- 
John
------------------------------------------------------------------------------
_______________________________________________
Libmesh-users mailing list
Libmesh-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/libmesh-users

Reply via email to