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

Bug#471192: gnat-4.3: FTBFS on several architectures: unrecognized command line option "-Wno-overlength-strings"



I confirm this to be a bug in gcc-4.1.  On the same machine, it
compiles the same program differently in an i386 chroot and in an
amd64 chroot.  Here is the program, conftest.c:

int
main ()
{
  return 0;
}

In the i386 chroot:

$ gnatgcc -c -Wno-overlength-strings conftest.c
$ echo $?
0

In the amd64 chroot:

$ gnatgcc -c -Wno-overlength-strings conftest.c
cc1: error: unrecognized command line option "-Wno-overlength-strings"
$ echo $?
1

Furthermore, in the i386 chroot, it seems I can get the error message
if and only if another, unrelated error message is necessary.  For
example:


int
main ()
{
  return 2 << 1000;
}

$ gnatgcc -c -Wno-overlength-strings conftest.c
conftest.c: In function 'main':
conftest.c:4: warning: left shift count >= width of type
At top level:
cc1: error: unrecognized command line option "-Wno-overlength-strings"
$ echo $?
1

-- 
Ludovic Brenta.




Reply to: