public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug bootstrap/32829]  New: CVS bootstrap failure with as: unrecognised option -Qy
@ 2007-07-20  1:18 brian dot sidebotham at gmail dot com
  2007-07-20  1:20 ` [Bug bootstrap/32829] " brian dot sidebotham at gmail dot com
                   ` (5 more replies)
  0 siblings, 6 replies; 7+ messages in thread
From: brian dot sidebotham at gmail dot com @ 2007-07-20  1:18 UTC (permalink / raw)
  To: gcc-bugs

A very old report from v2.97 seems very similar, but had no infomation about
the cause - see:
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=2034

Bootstrapping gcc fails with the error:
/home/brian/public/gnu/arm-elf/install.unix/arm-elf/bin/as: unrecognised option
`-Qy`

Where ...arm-elf/bin/as is a current binutils cvs version just compiled

The configure line is:
../src/configure --target=arm-elf --enable-interwork --enable-multilib
--enable-languages=c --without-headers
--prefix=/home/brian/public/gnu/arm-elf/install.unix

The command that causes the error is:
gcc -c   -g -O2 -DIN_GCC -DCROSS_DIRECTORY_STRUCTURE  -W -Wall -Wwrite-strings
-Wstrict-prototypes -Wmissing-prototypes -Wold-style-definition
-Wmissing-format-attribute -fno-common   -DHAVE_CONFIG_H -DGENERATOR_FILE -I.
-Ibuild -I../../gcc/gcc -I../../gcc/gcc/build -I../../gcc/gcc/../include
-I../../gcc/gcc/../libcpp/include  -I../../gcc/gcc/../libdecnumber
-I../../gcc/gcc/../libdecnumber/dpd -I../libdecnumber    -o build/genmodes.o
../../gcc/gcc/genmodes.c

The pre-processed file is available at http://www.valvers.com/genmodes.i

The output of adding -v -save-temps to the command is:
brian@dannii:~/public/gnu/gcc/build.unix/gcc$ gcc -v -save-temps -c   -g -O2
-DIN_GCC -DCROSS_DIRECTORY_STRUCTURE  -W -Wall -Wwrite-strings
-Wstrict-prototypes -Wmissing-prototypes -Wold-style-definition
-Wmissing-format-attribute -fno-common   -DHAVE_CONFIG_H -DGENERATOR_FILE -I.
-Ibuild -I../../gcc/gcc -I../../gcc/gcc/build -I../../gcc/gcc/../include
-I../../gcc/gcc/../libcpp/include  -I../../gcc/gcc/../libdecnumber
-I../../gcc/gcc/../libdecnumber/dpd -I../libdecnumber    -o build/genmodes.o
../../gcc/gcc/genmodes.c
Using built-in specs.
Target: i486-linux-gnu
Configured with: ../src/configure -v
--enable-languages=c,c++,fortran,objc,obj-c++,treelang --prefix=/usr
--enable-shared --with-system-zlib --libexecdir=/usr/lib
--without-included-gettext --enable-threads=posix --enable-nls
--program-suffix=-4.1 --enable-__cxa_atexit --enable-clocale=gnu
--enable-libstdcxx-debug --enable-mpfr --enable-checking=release i486-linux-gnu
Thread model: posix
gcc version 4.1.2 (Ubuntu 4.1.2-0ubuntu4)
 /usr/lib/gcc/i486-linux-gnu/4.1.2/cc1 -E -quiet -v -I. -Ibuild -I../../gcc/gcc
-I../../gcc/gcc/build -I../../gcc/gcc/../include
-I../../gcc/gcc/../libcpp/include -I../../gcc/gcc/../libdecnumber
-I../../gcc/gcc/../libdecnumber/dpd -I../libdecnumber -DIN_GCC
-DCROSS_DIRECTORY_STRUCTURE -DHAVE_CONFIG_H -DGENERATOR_FILE
../../gcc/gcc/genmodes.c -mtune=generic -W -Wall -Wwrite-strings
-Wstrict-prototypes -Wmissing-prototypes -Wold-style-definition
-Wmissing-format-attribute -fno-common -fworking-directory -O2 -fpch-preprocess
-o genmodes.i
ignoring nonexistent directory "/usr/local/include/i486-linux-gnu"
ignoring nonexistent directory
"/usr/lib/gcc/i486-linux-gnu/4.1.2/../../../../i486-linux-gnu/include"
ignoring nonexistent directory "/usr/include/i486-linux-gnu"
ignoring nonexistent directory "../../gcc/gcc/build"
#include "..." search starts here:
#include <...> search starts here:
 .
 build
 ../../gcc/gcc
 ../../gcc/gcc/../include
 ../../gcc/gcc/../libcpp/include
 ../../gcc/gcc/../libdecnumber
 ../../gcc/gcc/../libdecnumber/dpd
 ../libdecnumber
 /usr/local/include
 /usr/lib/gcc/i486-linux-gnu/4.1.2/include
 /usr/include
End of search list.
 /usr/lib/gcc/i486-linux-gnu/4.1.2/cc1 -fpreprocessed genmodes.i -quiet
-dumpbase genmodes.c -mtune=generic -auxbase-strip build/genmodes.o -g -O2 -W
-Wall -Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes
-Wold-style-definition -Wmissing-format-attribute -version -fno-common
-fstack-protector -fstack-protector -o genmodes.s
GNU C version 4.1.2 (Ubuntu 4.1.2-0ubuntu4) (i486-linux-gnu)
        compiled by GNU C version 4.1.2 (Ubuntu 4.1.2-0ubuntu4).
GGC heuristics: --param ggc-min-expand=55 --param ggc-min-heapsize=48106
Compiler executable checksum: c0d954aeefbb96d795ff3f6b3b72ef51
 as -V -Qy -o build/genmodes.o genmodes.s
/home/brian/public/gnu/arm-elf/install.unix/arm-elf/bin/as: unrecognized option
`-V'


-- 
           Summary: CVS bootstrap failure with as: unrecognised option -Qy
           Product: gcc
           Version: 4.3.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: bootstrap
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: brian dot sidebotham at gmail dot com
 GCC build triplet: i686-pc-linux-gnu
  GCC host triplet: i686-pc-linux-gnu
GCC target triplet: arm-none-elf


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=32829


^ permalink raw reply	[flat|nested] 7+ messages in thread

* [Bug bootstrap/32829] CVS bootstrap failure with as: unrecognised option -Qy
  2007-07-20  1:18 [Bug bootstrap/32829] New: CVS bootstrap failure with as: unrecognised option -Qy brian dot sidebotham at gmail dot com
@ 2007-07-20  1:20 ` brian dot sidebotham at gmail dot com
  2007-07-20 13:16 ` brian dot sidebotham at gmail dot com
                   ` (4 subsequent siblings)
  5 siblings, 0 replies; 7+ messages in thread
From: brian dot sidebotham at gmail dot com @ 2007-07-20  1:20 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #1 from brian dot sidebotham at gmail dot com  2007-07-20 01:20 -------
Created an attachment (id=13942)
 --> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=13942&action=view)
Pre-processed file


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=32829


^ permalink raw reply	[flat|nested] 7+ messages in thread

* [Bug bootstrap/32829] CVS bootstrap failure with as: unrecognised option -Qy
  2007-07-20  1:18 [Bug bootstrap/32829] New: CVS bootstrap failure with as: unrecognised option -Qy brian dot sidebotham at gmail dot com
  2007-07-20  1:20 ` [Bug bootstrap/32829] " brian dot sidebotham at gmail dot com
@ 2007-07-20 13:16 ` brian dot sidebotham at gmail dot com
  2007-07-20 13:19 ` brian dot sidebotham at gmail dot com
                   ` (3 subsequent siblings)
  5 siblings, 0 replies; 7+ messages in thread
From: brian dot sidebotham at gmail dot com @ 2007-07-20 13:16 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #2 from brian dot sidebotham at gmail dot com  2007-07-20 13:16 -------
Earlier in the build, I get a line which I've just noticed scanning through
some logs:

CONFIGURE:14040: test - Too many arguments

I suspect this is the cause of the problem, as it checks the version of as
being used and enables leb128 if as > 2.11

I am not near my linux box at the moment, so cannot fix the line and re-build
to make sure this is the problem.


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=32829


^ permalink raw reply	[flat|nested] 7+ messages in thread

* [Bug bootstrap/32829] CVS bootstrap failure with as: unrecognised option -Qy
  2007-07-20  1:18 [Bug bootstrap/32829] New: CVS bootstrap failure with as: unrecognised option -Qy brian dot sidebotham at gmail dot com
  2007-07-20  1:20 ` [Bug bootstrap/32829] " brian dot sidebotham at gmail dot com
  2007-07-20 13:16 ` brian dot sidebotham at gmail dot com
@ 2007-07-20 13:19 ` brian dot sidebotham at gmail dot com
  2007-07-21  7:56 ` pinskia at gcc dot gnu dot org
                   ` (2 subsequent siblings)
  5 siblings, 0 replies; 7+ messages in thread
From: brian dot sidebotham at gmail dot com @ 2007-07-20 13:19 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #3 from brian dot sidebotham at gmail dot com  2007-07-20 13:18 -------
appologies, in my previous post:

CONFIGURE:14040: test - Too many arguments

should more accurately read - 

${srcdir}/gcc/configure:14040: test - Too many arguments


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=32829


^ permalink raw reply	[flat|nested] 7+ messages in thread

* [Bug bootstrap/32829] CVS bootstrap failure with as: unrecognised option -Qy
  2007-07-20  1:18 [Bug bootstrap/32829] New: CVS bootstrap failure with as: unrecognised option -Qy brian dot sidebotham at gmail dot com
                   ` (2 preceding siblings ...)
  2007-07-20 13:19 ` brian dot sidebotham at gmail dot com
@ 2007-07-21  7:56 ` pinskia at gcc dot gnu dot org
  2007-07-23  9:40 ` brian dot sidebotham at gmail dot com
  2007-07-24 10:06 ` brian dot sidebotham at gmail dot com
  5 siblings, 0 replies; 7+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2007-07-21  7:56 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #4 from pinskia at gcc dot gnu dot org  2007-07-21 07:56 -------
> /home/brian/public/gnu/arm-elf/install.unix/arm-elf/bin/as: unrecognized option
`-V'

> /home/brian/public/gnu/arm-elf/install.unix/arm-elf/bin/as: unrecognised option
`-Qy`

So what is the real error?


-- 

pinskia at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |WAITING


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=32829


^ permalink raw reply	[flat|nested] 7+ messages in thread

* [Bug bootstrap/32829] CVS bootstrap failure with as: unrecognised option -Qy
  2007-07-20  1:18 [Bug bootstrap/32829] New: CVS bootstrap failure with as: unrecognised option -Qy brian dot sidebotham at gmail dot com
                   ` (3 preceding siblings ...)
  2007-07-21  7:56 ` pinskia at gcc dot gnu dot org
@ 2007-07-23  9:40 ` brian dot sidebotham at gmail dot com
  2007-07-24 10:06 ` brian dot sidebotham at gmail dot com
  5 siblings, 0 replies; 7+ messages in thread
From: brian dot sidebotham at gmail dot com @ 2007-07-23  9:40 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #5 from brian dot sidebotham at gmail dot com  2007-07-23 09:39 -------
Here is the output of a correctly built and installed toolchain:

> arm-elf-as -V
arm-elf-as: unrecognized option `-V'

> arm-elf-as -Qy
arm-elf-as: unrecognized option `-Qy'

> arm-elf-as --version
GNU assembler 2.17
Copyright 2005 Free Software Foundation, Inc.
This program is free software; you may redistribute it under the terms of
the GNU General Public License.  This program has absolutely no warranty.
This assembler was configured for a target of `arm-elf'.

> arm-elf-gcc --version
arm-elf-gcc (GCC) 4.1.1
Copyright (C) 2006 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.  There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.


I don't think it's a binutils error, because the arm-elf target has never
supported -Qy or -V. I thought that gcc made a decision depending on what tools
it was making as to whether it would emit those options or not, hence why I
posted the problem here.

I can only go on what I've read over the internet though, as I don't even know
what these options do, they are not documented in the gas documentation as far
as I can see.

I have seen some comments suggesting this error could be thrown up if there is
a $PATH error. I will investigate to make sure the PATH is emitted correctly in
my build script too.

Or, are you saying that binutils must now support -Qy and -V for the arm-elf
target?

Thanks for your time.

Brian.


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=32829


^ permalink raw reply	[flat|nested] 7+ messages in thread

* [Bug bootstrap/32829] CVS bootstrap failure with as: unrecognised option -Qy
  2007-07-20  1:18 [Bug bootstrap/32829] New: CVS bootstrap failure with as: unrecognised option -Qy brian dot sidebotham at gmail dot com
                   ` (4 preceding siblings ...)
  2007-07-23  9:40 ` brian dot sidebotham at gmail dot com
@ 2007-07-24 10:06 ` brian dot sidebotham at gmail dot com
  5 siblings, 0 replies; 7+ messages in thread
From: brian dot sidebotham at gmail dot com @ 2007-07-24 10:06 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #6 from brian dot sidebotham at gmail dot com  2007-07-24 10:05 -------
I can successfully build gcc cvs if I have the install dir in my $PATH so I
expect this is my fault. Apologies for taking up anyone's time! 


-- 

brian dot sidebotham at gmail dot com changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|WAITING                     |RESOLVED
         Resolution|                            |FIXED


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=32829


^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2007-07-24 10:06 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2007-07-20  1:18 [Bug bootstrap/32829] New: CVS bootstrap failure with as: unrecognised option -Qy brian dot sidebotham at gmail dot com
2007-07-20  1:20 ` [Bug bootstrap/32829] " brian dot sidebotham at gmail dot com
2007-07-20 13:16 ` brian dot sidebotham at gmail dot com
2007-07-20 13:19 ` brian dot sidebotham at gmail dot com
2007-07-21  7:56 ` pinskia at gcc dot gnu dot org
2007-07-23  9:40 ` brian dot sidebotham at gmail dot com
2007-07-24 10:06 ` brian dot sidebotham at gmail dot com

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).