On Thu, 30 Jan 2014, David Berry wrote:
> I can get as far as "make world" now, but I get an error when making
> cfitsio. I've tried it twice with complete fresh clones, and I got the
> same error both times. make world displays:
>
> cd thirdparty/heasarc/cfitsio \
> && (make && make install) >make.log 2>make.log.err || { cat
> make.log.err; false; }
> make[2]: *** No rule to make target `all'. Stop.
> make[1]: *** [cfitsio/libcfitsio.a] Error 2
> make: *** [/stardev/git/starlink-pwd/star/manifests/cfitsio] Error 1
>
> thirdparty/heasarc/cfitsio/make.log contains
>
> make[1]: Entering directory `/stardev/git/starlink-pwd/thirdparty/heasarc/cfitsi
> o'
> (cd cfitsio; export CFLAGS; unset CFLAGS; make all)
> make[2]: Entering directory `/stardev/git/starlink-pwd/thirdparty/heasarc/cfitsi
> o/cfitsio'
> make[2]: Leaving directory `/stardev/git/starlink-pwd/thirdparty/heasarc/cfitsio
> /cfitsio'
> make[1]: Leaving directory `/stardev/git/starlink-pwd/thirdparty/heasarc/cfitsio
> '
>
>
> and thirdparty/heasarc/cfitsio/make.log.error contains
>
> make[2]: *** No rule to make target `all'. Stop.
> make[1]: *** [cfitsio/libcfitsio.a] Error 2
>
>
> There is no thirdparty/heasarc/cfitsio/cfitsio/Makefile file (just
> Makefile.in) so it looks like configure hasn't run there?
Teach me to apply a patch a little blindly. Needed to modify the aux
directory to . as the cfitsio/ release uses the same look around for
support files trick.
Pull and that component should be buildable now.
Cheers,
Peter.
>
> On 30 January 2014 10:42, Peter W. Draper <[log in to unmask]> wrote:
>> On Thu, 30 Jan 2014, Malcolm J. Currie wrote:
>>
>>> I did a fresh checkout, removed the manifests, and this time I didn't even
>>> reach "make world" as "./configure -C" fails to complete.
>>>
>>> configure: configuring in astrom
>>> configure: running /bin/sh './configure' --prefix=/soft/mjc/stable_classic
>>> '--prefix=/soft/mjc/stable_classic' '-C' '--cache-fi e=../config.cache'
>>> '--srcdir=.' 'CC=gcc' 'FC=gfortran' --cache-file=../../config.cache
>>> --srcdir=.
>>> configure: loading cache ../../config.cache
>>> checking for a BSD-compatible install... (cached) /usr/bin/install -c
>>> checking whether build environment is sane... yes
>>> checking for gawk... (cached) gawk
>>> checking whether make sets $(MAKE)... (cached) yes
>>> checking build system type... (cached) x86_64-unknown-linux-gnu
>>> checking for style of include used by make... GNU
>>> checking for gcc... (cached) gcc
>>> checking for C compiler default output file name... a.out
>>> checking whether the C compiler works... yes
>>> checking whether we are cross compiling... no
>>> checking for suffix of executables...
>>> checking for suffix of object files... (cached) o
>>> checking whether we are using the GNU C compiler... (cached) yes
>>> checking whether gcc accepts -g... (cached) yes
>>> checking for gcc option to accept ANSI C... (cached) none needed
>>> checking dependency style of gcc... (cached) none
>>> checking for suffix of module files... mod
>>> checking whether we are using the GNU Fortran compiler... (cached) yes
>>> checking whether gfortran accepts -g... (cached) yes
>>> configure: Starlink tree located at /soft/mjc/stable_classic
>>> checking whether we need any library fixups... (cached) no
>>> checking for git... (cached) /usr/bin/git
>>> checking for pax... (cached) /usr/bin/pax
>>> checking for gnutar... (cached) /bin/tar
>>> checking for suffix of module files... mod
>>> checking whether we are using the GNU Fortran compiler... (cached) yes
>>> checking whether gfortran accepts -g... (cached) yes
>>> checking how to run the C preprocessor... gcc -E
>>> configure: WARNING: Use AC_PROG_FC with AC_PROG_FPP, instead of
>>> AC_PROG_F77
>>> checking for Fortran flag to compile preprocessable .F files... none
>>> checking for fixed form Fortran preprocessor features... done.
>>> checking whether gfortran compiles programs with cpp directives... yes
>>> checking whether gfortran accepts -D... yes
>>> checking whether gfortran accepts -I... yes
>>> checking whether gfortran substitutes macros in Fortran code... yes
>>> checking whether gfortran fulfills requested features... yes
>>> checking how to preprocess Fortran files... gfortran -E
>>> checking how to redirect gfortran -E output... > conftest.f
>>> checking whether gfortran -E needs the -P option...
>>> checking whether gfortran -E accepts -D... yes
>>> checking whether gfortran -E accepts -I... yes
>>> checking whether gfortran -E substitutes macros in Fortran code... yes
>>> checking whether gfortran -E fulfills requested features... yes
>>> checking how to build from preprocessed Fortran sources... direct
>>> checking whether gfortran supports OPEN specifier READONLY... no
>>> checking whether gfortran supports OPEN specifier ACTION='READ'... yes
>>> ./configure: line 6367: syntax error near unexpected token
>>> `build_libtool_libs,'
>>> ./configure: line 6367: ` _LT_DECL(build_libtool_libs, enable_shared,
>>> 0,'
>>> configure: error: /bin/sh './configure' failed for astrom
>>> configure: error: /bin/sh './configure' failed for applications
>>
>>
>> This is a weird one that I cannot repeat.
>>
>> The implication from the _LT_DECL macro not being expanded is that aclocal
>> failed to incorporate the libtool macros, that suggests that libtool didn't
>> build correctly, or automake is messed up. Hmm, when you built these clean
>> sources did you also clean out the installation directory as well? I.e.
>> could there have been any old autotools on your PATH? Or maybe a remnant of
>> a failed build?
>>
>> Thanks,
>>
>> Peter.
>
--
Peter W. Draper, http://astro.dur.ac.uk/~pdraper
|