Giter Site home page Giter Site logo

Comments (3)

benkirk avatar benkirk commented on May 28, 2024

Right - the former only checks if it exists, the latter makes sure the compiler & current compile options can use it...

from libmesh.

benkirk avatar benkirk commented on May 28, 2024

Hey, looks like trilinos v11 can pull in PETSc as well:

configure:28876: checking /software/x86_64/trilinos/11.0.3-openmpi-1.4-gcc-4.6/include/ml_include.h usability
configure:28876: mpicxx -c   conftest.cpp >&5
In file included from /software/x86_64/trilinos/11.0.3-openmpi-1.4-gcc-4.6/include/ml_common.h:56:0,
                 from /software/x86_64/trilinos/11.0.3-openmpi-1.4-gcc-4.6/include/ml_include.h:16,
                 from conftest.cpp:132:
/software/x86_64/trilinos/11.0.3-openmpi-1.4-gcc-4.6/include/ml_config.h:120:0: warning: "HAVE_MPI" redefined [enabled by default]
conftest.cpp:93:0: note: this is the location of the previous definition
In file included from /software/x86_64/trilinos/11.0.3-openmpi-1.4-gcc-4.6/include/ml_struct.h:308:0,
                 from /software/x86_64/trilinos/11.0.3-openmpi-1.4-gcc-4.6/include/ml_include.h:18,
                 from conftest.cpp:132:
/software/x86_64/trilinos/11.0.3-openmpi-1.4-gcc-4.6/include/ml_petsc.h:26:22: fatal error: petscksp.h: No such file or directory
compilation terminated.

So it looks like if PETSC is enabled and there is a ml_petsc.h perhaps we need to pass the PETSC includes into trilinos??

from libmesh.

jwpeterson avatar jwpeterson commented on May 28, 2024

On Wed, Dec 19, 2012 at 12:30 PM, Benjamin S. Kirk
[email protected] wrote:

Hey, looks like trilinos v11 can pull in PETSc as well:

OK, so now all we need is for PETSc to be able to include Trilinos as
a package, and then a black hole will open up a swallow the entire
universe...

configure:28876: checking /software/x86_64/trilinos/11.0.3-openmpi-1.4-gcc-4.6/include/ml_include.h usability
configure:28876: mpicxx -c conftest.cpp >&5
In file included from /software/x86_64/trilinos/11.0.3-openmpi-1.4-gcc-4.6/include/ml_common.h:56:0,
from /software/x86_64/trilinos/11.0.3-openmpi-1.4-gcc-4.6/include/ml_include.h:16,
from conftest.cpp:132:
/software/x86_64/trilinos/11.0.3-openmpi-1.4-gcc-4.6/include/ml_config.h:120:0: warning: "HAVE_MPI" redefined [enabled by default]
conftest.cpp:93:0: note: this is the location of the previous definition
In file included from /software/x86_64/trilinos/11.0.3-openmpi-1.4-gcc-4.6/include/ml_struct.h:308:0,
from /software/x86_64/trilinos/11.0.3-openmpi-1.4-gcc-4.6/include/ml_include.h:18,
from conftest.cpp:132:
/software/x86_64/trilinos/11.0.3-openmpi-1.4-gcc-4.6/include/ml_petsc.h:26:22: fatal error: petscksp.h: No such file or directory
compilation terminated.

So it looks like if PETSC is enabled and there is a ml_petsc.h perhaps we need to pass the PETSC includes into trilinos??

This is the problem that I've been seeing with AC_CHECK_HEADER vs.
AC_CHECK_FILE... things get crazy when you actually try to compile
stuff.

Since 'test -r' is apparently an officially-sanctioned thing [0], it
may be simpler to just use that to see if ml_include.h exists.

Of course, you're welcome to make these configure tests as complicated
as you'd like!

John

[0] http://www.gnu.org/software/autoconf/manual/autoconf.html

"To enable configure scripts to support cross-compilation, they
shouldn't do anything that tests features of the build system instead
of the host system. But occasionally you may find it necessary to
check whether some arbitrary file exists. To do so, use ‘test -f’,
‘test -r’, or ‘test -x’."

from libmesh.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.