public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug target/54996] New: gcc with --target=avr fails to build
@ 2012-10-20  7:48 lvd.mhm at gmail dot com
  2012-10-20  7:56 ` [Bug target/54996] " pinskia at gcc dot gnu.org
                   ` (3 more replies)
  0 siblings, 4 replies; 5+ messages in thread
From: lvd.mhm at gmail dot com @ 2012-10-20  7:48 UTC (permalink / raw)
  To: gcc-bugs


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

             Bug #: 54996
           Summary: gcc with --target=avr fails to build
    Classification: Unclassified
           Product: gcc
           Version: 4.7.2
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: target
        AssignedTo: unassigned@gcc.gnu.org
        ReportedBy: lvd.mhm@gmail.com


Trying to build avr 4.7.2 gcc with following commands:

./configure --target=avr --enable-languages=c --disable-nls --disable-libssp
--with-dwarf2 --prefix=/tmp/avrgcc
PATH="/tmp/abu/bin:${PATH}" make

where /tmp/abu/bin is temporary build of avr binutils:
>/tmp/abu/bin/avr-as --version
GNU assembler (GNU Binutils) 2.22.90.20120727
built like:
./configure --prefix=/tmp/abu --program-prefix=avr- --target=avr
make
make install


Get an error:
/tmp/abu/bin/avr-as: unrecognized option '--64'


system used to build: ubuntu 12.04
>uname -a
Linux uebuntu 3.2.0-32-generic #51-Ubuntu SMP Wed Sep 26 21:33:09 UTC 2012
x86_64 x86_64 x86_64 GNU/Linux
>gcc --version
gcc (Ubuntu/Linaro 4.6.3-1ubuntu5) 4.6.3
>as --version
GNU assembler (GNU Binutils for Ubuntu) 2.22


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

* [Bug target/54996] gcc with --target=avr fails to build
  2012-10-20  7:48 [Bug target/54996] New: gcc with --target=avr fails to build lvd.mhm at gmail dot com
@ 2012-10-20  7:56 ` pinskia at gcc dot gnu.org
  2012-10-28 15:25 ` lvd.mhm at gmail dot com
                   ` (2 subsequent siblings)
  3 siblings, 0 replies; 5+ messages in thread
From: pinskia at gcc dot gnu.org @ 2012-10-20  7:56 UTC (permalink / raw)
  To: gcc-bugs


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

Andrew Pinski <pinskia at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |RESOLVED
         Resolution|                            |INVALID

--- Comment #1 from Andrew Pinski <pinskia at gcc dot gnu.org> 2012-10-20 07:56:38 UTC ---
You need to have the assembler in the PATH while you are configuring GCC also.


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

* [Bug target/54996] gcc with --target=avr fails to build
  2012-10-20  7:48 [Bug target/54996] New: gcc with --target=avr fails to build lvd.mhm at gmail dot com
  2012-10-20  7:56 ` [Bug target/54996] " pinskia at gcc dot gnu.org
@ 2012-10-28 15:25 ` lvd.mhm at gmail dot com
  2012-10-28 15:27 ` lvd.mhm at gmail dot com
  2012-11-01  8:26 ` gjl at gcc dot gnu.org
  3 siblings, 0 replies; 5+ messages in thread
From: lvd.mhm at gmail dot com @ 2012-10-28 15:25 UTC (permalink / raw)
  To: gcc-bugs


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

--- Comment #2 from lvd.mhm at gmail dot com 2012-10-28 15:25:28 UTC ---
I was wrong not setting $PATH to just compiled binutils.
However, even after setting correct $PATH or just compiling binutils to default
/usr/local/bin, problem still persisted.
I used clean x86_64 virtual machine with fresh ubuntu12.04.1 server install
with just nothing installed except SSH and then packages needed to build
binutils and gcc,

and I've found, that bug exists when $PATH has ./ at first place. If there is
no ./ in $PATH or ./ at the end, gcc compiles fine.

Of course then same behavior repeats itself on hardware.


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

* [Bug target/54996] gcc with --target=avr fails to build
  2012-10-20  7:48 [Bug target/54996] New: gcc with --target=avr fails to build lvd.mhm at gmail dot com
  2012-10-20  7:56 ` [Bug target/54996] " pinskia at gcc dot gnu.org
  2012-10-28 15:25 ` lvd.mhm at gmail dot com
@ 2012-10-28 15:27 ` lvd.mhm at gmail dot com
  2012-11-01  8:26 ` gjl at gcc dot gnu.org
  3 siblings, 0 replies; 5+ messages in thread
From: lvd.mhm at gmail dot com @ 2012-10-28 15:27 UTC (permalink / raw)
  To: gcc-bugs


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

lvd.mhm at gmail dot com changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|RESOLVED                    |UNCONFIRMED
         Resolution|INVALID                     |

--- Comment #3 from lvd.mhm at gmail dot com 2012-10-28 15:27:04 UTC ---
up


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

* [Bug target/54996] gcc with --target=avr fails to build
  2012-10-20  7:48 [Bug target/54996] New: gcc with --target=avr fails to build lvd.mhm at gmail dot com
                   ` (2 preceding siblings ...)
  2012-10-28 15:27 ` lvd.mhm at gmail dot com
@ 2012-11-01  8:26 ` gjl at gcc dot gnu.org
  3 siblings, 0 replies; 5+ messages in thread
From: gjl at gcc dot gnu.org @ 2012-11-01  8:26 UTC (permalink / raw)
  To: gcc-bugs


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

Georg-Johann Lay <gjl at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |RESOLVED
         Resolution|                            |INVALID

--- Comment #4 from Georg-Johann Lay <gjl at gcc dot gnu.org> 2012-11-01 08:26:21 UTC ---
Don't configure GCC in the source tree.  Read the online documentation on
configuring GCC again.  If you configured in the GCC sources, remove the
sources and retrieve them again to be sure they are not messed up by the
configure in the source tree.

You must have a working avr-binutils in the path.  Alternatively, you can build
and install avr binutils with the same --prefix before configuring avr-gcc. You
don't need to add it to the path in the latter case.

You need binutils 2.23 or higher for avr-gcc 4.7, see the GCC 4.7 release
notes.


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

end of thread, other threads:[~2012-11-01  8:26 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-10-20  7:48 [Bug target/54996] New: gcc with --target=avr fails to build lvd.mhm at gmail dot com
2012-10-20  7:56 ` [Bug target/54996] " pinskia at gcc dot gnu.org
2012-10-28 15:25 ` lvd.mhm at gmail dot com
2012-10-28 15:27 ` lvd.mhm at gmail dot com
2012-11-01  8:26 ` gjl at gcc dot gnu.org

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).