Bug#471192: gnat-4.3: FTBFS on several architectures: unrecognized command line option "-Wno-overlength-strings"
Package: gnat-4.3
Severity: serious
Version: 4.3.0-1
gnat-4.3 build-depends on gnat (>= 4.1), the current version of which
symlinks gnatgcc to gcc-4.1. gcc-4.1 does not support the
"-Wno-overlength-strings" option (added in 4.2).
During the configure step, we pass CC=gnatgcc to make sure we use the
compiler with support for Ada as the bootstrap compiler.
Unfortunately, on some architectures (most notably i386 and powerpc),
the configure step failed with:
> gnatgcc -c -g -O2 -W -Wall -Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes -Wold-style-definition -Wmissing-format-attribute -Wno-overlength-strings -pedantic -Wno-long-long -DHAVE_CONFIG_H -I. -I../../../src/fixincludes -I../include -I../../../src/fixincludes/../include ../../../src/fixincludes/fixincl.c
> cc1: error: unrecognized command line option "-Wno-overlength-strings"
> make[5]: *** [fixincl.o] Error 1
The problem, therefore, is that we mistakenly pass
-Wno-overlength-strings to gcc-4.1. This, in turn, appears to be due
to the configure script in src/fixincludes not correctly detecting
that gnatgcc does not support the option:
> Configuring in build-powerpc-linux-gnu/fixincludes
[...]
> checking whether gnatgcc supports -Wno-overlength-strings... yes
I am investigating but would welcome any help fixing this problem.
--
Ludovic Brenta (maintainer of gnat-4.3).
Reply to: