octave-maintainers
[Top][All Lists]
Advanced

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

Re: octave-config-h?


From: Keith Keith
Subject: Re: octave-config-h?
Date: Fri, 12 Feb 2016 15:45:57 -0600

I'm using an updated Fedora XFCE distro if it matters. 

tl;dr : try bootstrap with the --gnulib-srcdir=<directory where gnulib-tool resides>
for me gnulib-tool lives in /usr/bin

I had a similar problem with a missing octave-config.h file the last couple days.  The first time I hg cloned the dev code I tried to do the autoconf ./configure make like I normally do.  I have a lot of flags for configure but I don't think they're relevant as they have remained pretty constant.  I encountered errors and noticed an executable called bootstrap in my folder so I ran it with no flags just to see what would happen.  It told me at the end that I could now run ./configure so I did it with all my flags and was able to run make without problem.

For some reason I decided I wanted to start over and tried to build in a separate directory.  rm -rf ed the whole folder and did the hg clone again but I ran ./bootstrap without flags and ./configure like I always do excepted I added --prefix and --exec-prefix pointing to two empty directories in my home folder.  I ran make and got the missing octave-config.h message.  I tried to ./configure using my standard flags but it didn't help.  I deleted the folder and recloned it and it didn't help.  I reinstalled my OS and installed all the dependencies and it didn't help.  I went to sleep.

Then yesterday I downloaded the source from the hg site as a *.tar.gz file.  I uncompressed it and tried to run ./bootstrap with no flags.  It complained that if I were going to run it without the git option to download gnulib then I had to specify my local copy of gnulib using the --gnulib-srcdir flag.  I didn't specify no-git or whatever the flag was and I was puzzled by I went ahead and tracked down my local copy of gnulib and ran ./bootstrap --gnulib-srcdir=/usr/bin then configure with my regular flags.  I ran make and it compiled.  So I recloned the hg site and tried the same thing.  It worked.  I don't know how much of this was because of a new version of the source coming out or if me not specifying the gnulib-srcdir was the problem all along. 

Either way my script for building from hg and building from *.tar.gz source are included. clonecompile.txt downloades from the hg site and builds.  untarcompile decompresses it from a *.tar.gz file and builds.  sourcescript.txt calls clone compile and backgrounds it then runs untar compile so I can download the hg version while compiling the *.tar.gz version.  installlist.txt is a list of all the calls to my package manager that I've made.  A lot of it is unnecessary for just building octave but it gives a complete picture of how my system is set up.  The builds using this script pass the make check with all passes or XFails.  JIT doesn't work because I haven't figured out how to make the the program compile against the old llvm without breaking the new version.   




On Fri, Feb 12, 2016 at 2:24 PM, John W. Eaton <address@hidden> wrote:
On 02/12/2016 09:02 AM, Ben Abbott wrote:
On Feb 12, 2016, at 7:33 AM, Ben Abbott <address@hidden> wrote:

John,

Did the new octave-config.h not get pushed, or is it not ready yet?

  GEN      libinterp/corefcn/LSODE-opts.cc
  GEN      libinterp/corefcn/Quad-opts.cc
  GEN      libinterp/octave.df
In file included from libinterp/octave.cc:42:
./liboctave/util/cmd-edit.h:26:10: fatal error: 'octave-config.h' file not found
#include "octave-config.h”

Ben

I should have spent more time reviewing the recent changesets. Im able to use the new-file, mk-octave-config-h.sh, to generate octave-config.h.

        ./build-aux/mk-octave-config-h.sh config.h > octave-config.h

It looks to me like this should happen automatically

$ fgrep -in octave-config.h Makefile.am
148:  octave-config.h \
175:octinclude_HEADERS += octave-config.h oct-conf-post.h
191:octave-config.h: config.h build-aux/mk-octave-config-h.sh

Expanding the relevant lines …

191 octave-config.h: config.h build-aux/mk-octave-config-h.sh
192   $(AM_V_GEN)$(top_srcdir)/build-aux/mk-octave-config-h.sh $< > address@hidden && \
193   mv address@hidden $@

Unfortunately, the build process doesn’t generate octave-config.h for me. I’m trying to build on Mac OS X and am using Fink for dependencies (anyone else?).

Perhaps there is a dependency requirement I’m lacking (maybe my version is too old?). Rather than dumping everything into email, I’ll wait for feedback.

It should happen automatically after this change:

  http://hg.savannah.gnu.org/hgweb/octave/rev/5ddc9b61a0c4

Is octave-config.h listed in BUILT_SOURCES in your Makefile?

jwe



Attachment: clonecompile.txt
Description: Text document

Attachment: untarcompile.txt
Description: Text document

Attachment: sourcescript.txt
Description: Text document

Attachment: installlist.txt
Description: Text document


reply via email to

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