Re: top level makefile.in

Andrew Cagney
2002-10-02T02:40:20Z

> On Tue, Oct 01, 2002 at 07:13:22PM -0400, Andrew Cagney wrote:
>
>>
>
>> >Makefile.tpl, Makefile.def, and src-release should be included. Eek.
>
>>
>> Ok. Just adding them now...
>>
>
>> >You need to revert the change to 'configure' corresponding to my reverted
>> >change to Makefile.tpl/Makefile.in, until everyone's using src-release
>> >and my changes can be put back in full; the partial reversion is the
>> >cause of the build breakage.
>
> I finished the reversion, so the build shouldn't be breaking.
>
>
>>
>> Binutils are ok with this stuff (see other post).
>>
>> Would you be able to commit the src-release file sometime in the next,
>> er, 40 minutes? That way GDB's snap will pick it up and start using it.
>
> It's committed.
>
>
>>
>> (Assuming that I get it added to GDB's modules file, also in the next 40
>> minutes :-)
>
> Over to you. :-)

Well the snap is using src-release:

==> Making gdb+dejagnu-20021002/
./configure: -e: command not found
Created "Makefile" in
/sourceware/snapshot-tmp/gdb-snapshot/current-gdb+dejagnu/
make-snapshot/src
Configuring intl...
creating cache ../config.cache
checking for a BSD compatible install... /usr/bin/install -c
checking how to run the C preprocessor... gcc -E
checking whether make sets ${MAKE}... yes
checking for gcc... gcc
checking whether the C compiler (gcc -g -O2 ) works... yes
checking whether the C compiler (gcc -g -O2 ) is a cross-compiler... no
checking whether we are using GNU C... yes
checking whether gcc accepts -g... yes
checking for ranlib... ranlib
checking for POSIXized ISC... no
checking for ANSI C header files... yes
checking for working const... yes
checking for inline... inline
checking for off_t... yes

but then eventually barfs:

checking for working makeinfo... found
checking for gcc... (cached) gcc
checking whether the C compiler (gcc -g -O2 ) works... yes
checking whether the C compiler (gcc -g -O2 ) is a cross-compiler... no
checking whether we are using GNU C... (cached) yes
checking whether gcc accepts -g... (cached) yes
checking for a BSD compatible install... /usr/bin/install -c
checking how to run the C preprocessor... (cached) gcc -E
checking for stdlib.h... (cached) yes
checking for strcmp... yes
checking whether to enable maintainer-specific portions of Makefiles... no
updating cache ../../../config.cache
creating ./config.status
creating Makefile
creating calc.h
Configuring utils...
loading cache ../config.cache
checking for a BSD compatible install... (cached) /usr/bin/install -c
checking host system type... sparc-sun-sunos4.1.1
checking target system type... sparc-sun-sunos4.1.1
checking build system type... sparc-sun-sunos4.1.1
creating ./config.status
creating Makefile
make[3]: *** No rule to make target `configure-target'. Stop.
make[2]: *** [do-proto-toplev] Error 2
make[1]: *** [gdb-tar] Error 2
make: *** [gdb+dejagnu.tar] Error 2

I think this needs a tweak:

./configure sun4
$(MAKE) configure-target \
ALL_GCC="" ALL_GCC_C="" ALL_GCC_CXX="" \
CC_FOR_TARGET="$(CC)" CXX_FOR_TARGET="$(CXX)"
# Make links, and run "make diststuff" or "make info" when needed.
rm -rf proto-toplev ; mkdir proto-toplev
set -e ; dirs="$(TOOL) $(DEVO_SUPPORT) $(SUPPORT_FILES)" ; \

It looks like the configure-target rule was lost from Makefile.in/Makefile?

Anyway, I think the other Makefile.in changes can be pushed out (so
people stop reporting broken `make install') and then I guess this is next.

Andrew