Jeffrey Walton on Thu, 31 Dec 2020 19:46:50 +0100


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

Re: 'make all' and "Please run Configure first!"


On Thu, Dec 31, 2020 at 1:21 PM Bill Allombert
<Bill.Allombert@math.u-bordeaux.fr> wrote:
>
> On Thu, Dec 31, 2020 at 12:19:37PM -0500, Jeffrey Walton wrote:
> > Hi Everyone,
> >
> > I'm building pari-2.13.0 release tarball on Ubuntu 18.05, x86_64,
> > fully patched. I can't seem to avoid the message "Please run Configure
> > first!" when building the package.
> >
> > Here's my recipe:
> > https://github.com/noloader/Build-Scripts/blob/master/build-parigp.sh.
> > It is just like about 100 other recipes to build other packages.
> >
> > After configure I run 'make all':
> >
> > make[1]: Entering directory '/home/jwalton/Build-Scripts/pari-2.13.0'
> > Making gp in Olinux-x86_64
> > Please run Configure first!
> > Makefile:34: recipe for target 'gp' failed
> > make[1]: *** [gp] Error 1
> > make[1]: Leaving directory '/home/jwalton/Build-Scripts/pari-2.13.0'
> > Makefile:30: recipe for target 'all' failed
> > make: *** [all] Error 2
> > Failed to build PARI/GP
> >
> > Attached is Ognu-x86_64-pc-linux/config.log.
> >
> > What am I receiving the error message "Please run Configure first!"
> > even though I have configured already?
>
> You need to do
> cd Ognu-x86_64-pc-linux
> before doing
> make all
> as explained by Configure, which print at the end.
>
> "Ok. Type "cd Ognu-x86_64-pc-linux; make install" when you are ready
>
> To avoid that, I suggest you pass --builddir=Obuild to Configure
> and do
> make all -C Obuild

Thanks Bill.

This is a complex process. Most packages don't require this much work.

Would it be possible to have this "just work" in the future?

    ./configure && make && make check && sudo make install

This will save a lot of time for folks building the library. It saves
time because it relies on the standard build workflow. It will
definitely help distro maintainers who have to accommodate hundreds of
different packages. Learning a new workflow for one package redirects
resources from other tasks.

Jeff