octave-bug-tracker
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Octave-bug-tracker] [bug #60099] build fails without cholmod


From: Rik
Subject: [Octave-bug-tracker] [bug #60099] build fails without cholmod
Date: Mon, 22 Feb 2021 18:25:19 -0500 (EST)
User-agent: Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/87.0.4280.66 Safari/537.36

Follow-up Comment #3, bug #60099 (project octave):

> Else how can a novice know how to build?

This is the root of it.  If you are building from Mercurial sources the
expectation is that you are an Octave developer and are familiar with the
requirements/quirks of the build system.

There is a check to make sure that any system where you build Octave that
cannot create the documentation is unable to then make a distribution tarball.
 The Makefile code is in doc/interpreter/module.mk and is


# Prevent packaging of distribution unless all libraries
# necessary to create documentation are present
doc-interpreter-dist-hook:
        @$(GREP) '#define HAVE_COLAMD 1' $(top_builddir)/config.h > /dev/null 
|| {
echo "Documentation creation requires missing COLAMD library.  Cannot package
distribution!" ; exit 1; }
        @$(GREP) '#define HAVE_CHOLMOD 1' $(top_builddir)/config.h > /dev/null 
|| {
echo "Documentation creation requires missing CHOLMOD library.  Cannot package
distribution!" ; exit 1; }
        @$(GREP) '#define HAVE_UMFPACK 1' $(top_builddir)/config.h > /dev/null 
|| {
echo "Documentation creation requires missing UMFPACK library.  Cannot package
distribution!" ; exit 1; }
        @$(GREP) '#define HAVE_QHULL 1' $(top_builddir)/config.h > /dev/null || 
{
echo "Documentation creation requires missing QHULL library.  Cannot package
distribution!" ; exit 1; }
        @$(GREP) '#define HAVE_QT_OFFSCREEN 1' $(top_builddir)/config.h > 
/dev/null
|| { echo "Documentation creation requires Qt offscreen OpenGL rendering. 
Cannot package distribution!" ; exit 1; }


There might be a way to do something similar for 'make all' that issues an
error message if the documentation can't be built.

It might also be possible to write configure code in configure.ac that would
check for the required libraries and issue a warning during configuration,
rather than during compilation with make.

    _______________________________________________________

Reply to this item at:

  <https://savannah.gnu.org/bugs/?60099>

_______________________________________________
  Message sent via Savannah
  https://savannah.gnu.org/




reply via email to

[Prev in Thread] Current Thread [Next in Thread]