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

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

[Octave-bug-tracker] [bug #46063] Build system re-makes certain files 2


From: Rik
Subject: [Octave-bug-tracker] [bug #46063] Build system re-makes certain files 2 or even 3 times
Date: Wed, 02 Mar 2016 16:47:14 +0000
User-agent: Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:43.0) Gecko/20100101 Firefox/43.0

Follow-up Comment #12, bug #46063 (project octave):

I think that solution would be quite acceptable.  Better yet, this appears to
already be baked in to the Autotools suite when the the cache is enabled for
configure. 

I just tried the following


make CPPFLAGS="-DHELLO"
CDPATH="${ZSH_VERSION+.}:" && cd . && /bin/bash
/home/rik/wip/Projects_Mine/octave-dev/build-aux/missing aclocal-1.15 -I m4
CDPATH="${ZSH_VERSION+.}:" && cd . && /bin/bash
/home/rik/wip/Projects_Mine/octave-dev/build-aux/missing autoconf
 cd . && /bin/bash /home/rik/wip/Projects_Mine/octave-dev/build-aux/missing
automake-1.15 --foreign
/bin/bash ./config.status --recheck
running CONFIG_SHELL=/bin/bash /bin/bash ./configure --prefix=/home/rik/local
--disable-jit --without-portaudio --without-sndfile -C CFLAGS=-O2 -pipe
CXXFLAGS=-O2 -pipe FFLAGS=-O2 -pipe --no-create --no-recursion
configure: loading cache config.cache
configure: error: `CPPFLAGS' was not set in the previous run
configure: error: in `/home/rik/wip/Projects_Mine/octave-dev':
configure: error: changes in the environment can compromise the build
configure: error: run `make distclean' and/or `rm config.cache' and start
over
Makefile:9900: recipe for target 'config.status' failed


This correctly raises an error, points outs what variables are different, and
suggests two resolutions.

The only wrinkle here is that you have to throw the -C option when running
configure the first time.  Maybe there is a way to automatically specify that
in configure.ac? 



    _______________________________________________________

Reply to this item at:

  <http://savannah.gnu.org/bugs/?46063>

_______________________________________________
  Message sent via/by Savannah
  http://savannah.gnu.org/




reply via email to

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