public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug other/54279] New: first stage build with g++ fails with "." as the first component of $PATH
@ 2012-08-16  5:41 gary at intrepid dot com
  2012-08-16  5:47 ` [Bug other/54279] [4.8 Regression] " pinskia at gcc dot gnu.org
                   ` (11 more replies)
  0 siblings, 12 replies; 13+ messages in thread
From: gary at intrepid dot com @ 2012-08-16  5:41 UTC (permalink / raw)
  To: gcc-bugs

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

             Bug #: 54279
           Summary: first stage build with g++ fails with "." as the first
                    component of $PATH
    Classification: Unclassified
           Product: gcc
           Version: 4.8.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: other
        AssignedTo: unassigned@gcc.gnu.org
        ReportedBy: gary@intrepid.com


Posted here:
http://gcc.gnu.org/ml/gcc-patches/2012-08/msg01032.html

This build failure is a likely result of the recent change to compile GCC with
the C++ compiler during the first stage.

1. I have "." on $PATH.

2. In one build of the latest GCC trunk, I specify
   CC=/usr/bin/gcc and CXX=/usr/bin/g++ and everything
   works.

3. In another build, I don't specify CC or CXX.
   Therefore they default to 'gcc' and 'g++'.
   This fails:
   g++: error trying to exec 'cc1plus': execvp: No such file or directory

If I remove "." from $PATH then the configuration in 3 will build.

The problem is that there is a g++ executable under the
built gcc directory, but cc1plus and other g++ component
parts haven't been built yet.


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

* [Bug other/54279] [4.8 Regression] first stage build with g++ fails with "." as the first component of $PATH
  2012-08-16  5:41 [Bug other/54279] New: first stage build with g++ fails with "." as the first component of $PATH gary at intrepid dot com
@ 2012-08-16  5:47 ` pinskia at gcc dot gnu.org
  2012-08-16 11:03 ` rguenth at gcc dot gnu.org
                   ` (10 subsequent siblings)
  11 siblings, 0 replies; 13+ messages in thread
From: pinskia at gcc dot gnu.org @ 2012-08-16  5:47 UTC (permalink / raw)
  To: gcc-bugs

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

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

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Keywords|                            |build
             Status|UNCONFIRMED                 |NEW
   Last reconfirmed|                            |2012-08-16
            Summary|first stage build with g++  |[4.8 Regression] first
                   |fails with "." as the first |stage build with g++ fails
                   |component of $PATH          |with "." as the first
                   |                            |component of $PATH
     Ever Confirmed|0                           |1

--- Comment #1 from Andrew Pinski <pinskia at gcc dot gnu.org> 2012-08-16 05:46:52 UTC ---
This might be the reason why we create xgcc than gcc and then only do the
namechange at install time.  We need to do the same thing for g++ now.


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

* [Bug other/54279] [4.8 Regression] first stage build with g++ fails with "." as the first component of $PATH
  2012-08-16  5:41 [Bug other/54279] New: first stage build with g++ fails with "." as the first component of $PATH gary at intrepid dot com
  2012-08-16  5:47 ` [Bug other/54279] [4.8 Regression] " pinskia at gcc dot gnu.org
@ 2012-08-16 11:03 ` rguenth at gcc dot gnu.org
  2012-09-19 14:31 ` rguenth at gcc dot gnu.org
                   ` (9 subsequent siblings)
  11 siblings, 0 replies; 13+ messages in thread
From: rguenth at gcc dot gnu.org @ 2012-08-16 11:03 UTC (permalink / raw)
  To: gcc-bugs

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

Richard Guenther <rguenth at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
   Target Milestone|---                         |4.8.0


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

* [Bug other/54279] [4.8 Regression] first stage build with g++ fails with "." as the first component of $PATH
  2012-08-16  5:41 [Bug other/54279] New: first stage build with g++ fails with "." as the first component of $PATH gary at intrepid dot com
  2012-08-16  5:47 ` [Bug other/54279] [4.8 Regression] " pinskia at gcc dot gnu.org
  2012-08-16 11:03 ` rguenth at gcc dot gnu.org
@ 2012-09-19 14:31 ` rguenth at gcc dot gnu.org
  2012-11-15  0:32 ` pinskia at gcc dot gnu.org
                   ` (8 subsequent siblings)
  11 siblings, 0 replies; 13+ messages in thread
From: rguenth at gcc dot gnu.org @ 2012-09-19 14:31 UTC (permalink / raw)
  To: gcc-bugs

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

Richard Guenther <rguenth at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
   Target Milestone|---                         |4.8.0
           Priority|P3                          |P1


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

* [Bug other/54279] [4.8 Regression] first stage build with g++ fails with "." as the first component of $PATH
  2012-08-16  5:41 [Bug other/54279] New: first stage build with g++ fails with "." as the first component of $PATH gary at intrepid dot com
                   ` (2 preceding siblings ...)
  2012-09-19 14:31 ` rguenth at gcc dot gnu.org
@ 2012-11-15  0:32 ` pinskia at gcc dot gnu.org
  2012-11-15  2:51 ` pinskia at gcc dot gnu.org
                   ` (7 subsequent siblings)
  11 siblings, 0 replies; 13+ messages in thread
From: pinskia at gcc dot gnu.org @ 2012-11-15  0:32 UTC (permalink / raw)
  To: gcc-bugs


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

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

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |ASSIGNED
         AssignedTo|unassigned at gcc dot       |pinskia at gcc dot gnu.org
                   |gnu.org                     |

--- Comment #2 from Andrew Pinski <pinskia at gcc dot gnu.org> 2012-11-15 00:31:45 UTC ---
I am going to take a stab at fixing this.


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

* [Bug other/54279] [4.8 Regression] first stage build with g++ fails with "." as the first component of $PATH
  2012-08-16  5:41 [Bug other/54279] New: first stage build with g++ fails with "." as the first component of $PATH gary at intrepid dot com
                   ` (3 preceding siblings ...)
  2012-11-15  0:32 ` pinskia at gcc dot gnu.org
@ 2012-11-15  2:51 ` pinskia at gcc dot gnu.org
  2012-11-15  3:40 ` pinskia at gcc dot gnu.org
                   ` (6 subsequent siblings)
  11 siblings, 0 replies; 13+ messages in thread
From: pinskia at gcc dot gnu.org @ 2012-11-15  2:51 UTC (permalink / raw)
  To: gcc-bugs


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

--- Comment #3 from Andrew Pinski <pinskia at gcc dot gnu.org> 2012-11-15 02:51:15 UTC ---
Created attachment 28693
  --> http://gcc.gnu.org/bugzilla/attachment.cgi?id=28693
Patch which I am testing right now

Once my testing finishes (including installing), I will submit this.


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

* [Bug other/54279] [4.8 Regression] first stage build with g++ fails with "." as the first component of $PATH
  2012-08-16  5:41 [Bug other/54279] New: first stage build with g++ fails with "." as the first component of $PATH gary at intrepid dot com
                   ` (4 preceding siblings ...)
  2012-11-15  2:51 ` pinskia at gcc dot gnu.org
@ 2012-11-15  3:40 ` pinskia at gcc dot gnu.org
  2012-11-15  4:32 ` pinskia at gcc dot gnu.org
                   ` (5 subsequent siblings)
  11 siblings, 0 replies; 13+ messages in thread
From: pinskia at gcc dot gnu.org @ 2012-11-15  3:40 UTC (permalink / raw)
  To: gcc-bugs


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

--- Comment #4 from Andrew Pinski <pinskia at gcc dot gnu.org> 2012-11-15 03:40:18 UTC ---
(In reply to comment #3)
> Created attachment 28693 [details]
> Patch which I am testing right now
> 
> Once my testing finishes (including installing), I will submit this.

It had an issue while doing libstdc++ testing.  So fixing up that testsuite.


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

* [Bug other/54279] [4.8 Regression] first stage build with g++ fails with "." as the first component of $PATH
  2012-08-16  5:41 [Bug other/54279] New: first stage build with g++ fails with "." as the first component of $PATH gary at intrepid dot com
                   ` (5 preceding siblings ...)
  2012-11-15  3:40 ` pinskia at gcc dot gnu.org
@ 2012-11-15  4:32 ` pinskia at gcc dot gnu.org
  2012-11-15 20:29 ` pinskia at gcc dot gnu.org
                   ` (4 subsequent siblings)
  11 siblings, 0 replies; 13+ messages in thread
From: pinskia at gcc dot gnu.org @ 2012-11-15  4:32 UTC (permalink / raw)
  To: gcc-bugs


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

--- Comment #5 from Andrew Pinski <pinskia at gcc dot gnu.org> 2012-11-15 04:31:44 UTC ---
libmudflap has the similar issue.


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

* [Bug other/54279] [4.8 Regression] first stage build with g++ fails with "." as the first component of $PATH
  2012-08-16  5:41 [Bug other/54279] New: first stage build with g++ fails with "." as the first component of $PATH gary at intrepid dot com
                   ` (6 preceding siblings ...)
  2012-11-15  4:32 ` pinskia at gcc dot gnu.org
@ 2012-11-15 20:29 ` pinskia at gcc dot gnu.org
  2012-11-28 22:11 ` pinskia at gcc dot gnu.org
                   ` (3 subsequent siblings)
  11 siblings, 0 replies; 13+ messages in thread
From: pinskia at gcc dot gnu.org @ 2012-11-15 20:29 UTC (permalink / raw)
  To: gcc-bugs


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

--- Comment #6 from Andrew Pinski <pinskia at gcc dot gnu.org> 2012-11-15 20:29:12 UTC ---
(In reply to comment #5)
> libmudflap has the similar issue.

Actually the libmudflap is fixed by fixing libstdc++.  Anyways I have a full
fix now.  I am retesting it again.


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

* [Bug other/54279] [4.8 Regression] first stage build with g++ fails with "." as the first component of $PATH
  2012-08-16  5:41 [Bug other/54279] New: first stage build with g++ fails with "." as the first component of $PATH gary at intrepid dot com
                   ` (7 preceding siblings ...)
  2012-11-15 20:29 ` pinskia at gcc dot gnu.org
@ 2012-11-28 22:11 ` pinskia at gcc dot gnu.org
  2012-11-28 22:16 ` pinskia at gcc dot gnu.org
                   ` (2 subsequent siblings)
  11 siblings, 0 replies; 13+ messages in thread
From: pinskia at gcc dot gnu.org @ 2012-11-28 22:11 UTC (permalink / raw)
  To: gcc-bugs


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

--- Comment #7 from Andrew Pinski <pinskia at gcc dot gnu.org> 2012-11-28 22:11:35 UTC ---
Author: pinskia
Date: Wed Nov 28 22:11:29 2012
New Revision: 193910

URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=193910
Log:
2012-11-28  Andrew Pinski  <apinski@cavium.com>

        PR bootstrap/54279
        * configure.ac (CXX_FOR_TARGET): Change over to use xg++.
        * configure: Regenerate.
        * Makefile.tpl (POSTSTAGE1_CXX_EXPORT): Change over to use xg++.
        * Makefile.in: Regenerate.

2012-11-28  Andrew Pinski  <apinski@cavium.com>

        PR bootstrap/54279
        * Makefile.in (${QMTEST_DIR}/context): Use xg++ instead of g++.

2012-11-28  Andrew Pinski  <apinski@cavium.com>

        PR bootstrap/54279
        * Make-lang.in (g++$(exeext)): Rename to
        (xg++$(exeext)): This.
        (g++-cross$(exeext)): Use xg++$(exeext) instead of g++$(exeext).
        (c++.start.encap): Likewise.
        (c++.install-common): Likewise.

2012-11-28  Andrew Pinski  <apinski@cavium.com>

        PR bootstrap/54279
        * lib/g++.exp (g++_init): Search for xg++ instead of g++ in the build
        directories.
        * lib/obj-c++.exp (obj-c++_init): Likewise.

2012-11-28  Andrew Pinski  <apinski@cavium.com>

        PR bootstrap/54279
        * scripts/testsuite_flags.in (--build-cxx): Use xg++ instead of g++.
        * testsuite/lib/libstdc++.exp (libstdc++_init): Likewise.




Modified:
    trunk/ChangeLog
    trunk/Makefile.in
    trunk/Makefile.tpl
    trunk/configure
    trunk/configure.ac
    trunk/gcc/ChangeLog
    trunk/gcc/Makefile.in
    trunk/gcc/cp/ChangeLog
    trunk/gcc/cp/Make-lang.in
    trunk/gcc/testsuite/ChangeLog
    trunk/gcc/testsuite/lib/g++.exp
    trunk/gcc/testsuite/lib/obj-c++.exp
    trunk/libstdc++-v3/ChangeLog
    trunk/libstdc++-v3/scripts/testsuite_flags.in
    trunk/libstdc++-v3/testsuite/lib/libstdc++.exp


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

* [Bug other/54279] [4.8 Regression] first stage build with g++ fails with "." as the first component of $PATH
  2012-08-16  5:41 [Bug other/54279] New: first stage build with g++ fails with "." as the first component of $PATH gary at intrepid dot com
                   ` (8 preceding siblings ...)
  2012-11-28 22:11 ` pinskia at gcc dot gnu.org
@ 2012-11-28 22:16 ` pinskia at gcc dot gnu.org
  2013-02-10 12:28 ` karlson2k at gmail dot com
  2022-01-08  4:08 ` pinskia at gcc dot gnu.org
  11 siblings, 0 replies; 13+ messages in thread
From: pinskia at gcc dot gnu.org @ 2012-11-28 22:16 UTC (permalink / raw)
  To: gcc-bugs


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

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

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

--- Comment #8 from Andrew Pinski <pinskia at gcc dot gnu.org> 2012-11-28 22:15:48 UTC ---
Fixed.  Thanks for your report.


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

* [Bug other/54279] [4.8 Regression] first stage build with g++ fails with "." as the first component of $PATH
  2012-08-16  5:41 [Bug other/54279] New: first stage build with g++ fails with "." as the first component of $PATH gary at intrepid dot com
                   ` (9 preceding siblings ...)
  2012-11-28 22:16 ` pinskia at gcc dot gnu.org
@ 2013-02-10 12:28 ` karlson2k at gmail dot com
  2022-01-08  4:08 ` pinskia at gcc dot gnu.org
  11 siblings, 0 replies; 13+ messages in thread
From: karlson2k at gmail dot com @ 2013-02-10 12:28 UTC (permalink / raw)
  To: gcc-bugs


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

Evgeny Grin <karlson2k at gmail dot com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |karlson2k at gmail dot com

--- Comment #9 from Evgeny Grin <karlson2k at gmail dot com> 2013-02-10 12:28:13 UTC ---
(In reply to comment #8)
> Fixed.  Thanks for your report.

Nice!
Shouldn't we do the same for other tools/languages? Like ada, java?


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

* [Bug other/54279] [4.8 Regression] first stage build with g++ fails with "." as the first component of $PATH
  2012-08-16  5:41 [Bug other/54279] New: first stage build with g++ fails with "." as the first component of $PATH gary at intrepid dot com
                   ` (10 preceding siblings ...)
  2013-02-10 12:28 ` karlson2k at gmail dot com
@ 2022-01-08  4:08 ` pinskia at gcc dot gnu.org
  11 siblings, 0 replies; 13+ messages in thread
From: pinskia at gcc dot gnu.org @ 2022-01-08  4:08 UTC (permalink / raw)
  To: gcc-bugs

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=54279

--- Comment #10 from Andrew Pinski <pinskia at gcc dot gnu.org> ---
(In reply to Karlson2k from comment #9)
> (In reply to comment #8)
> > Fixed.  Thanks for your report.
> 
> Nice!
> Shouldn't we do the same for other tools/languages? Like ada, java?

Java has seen been removed and was never affected. The problem only shows up
while building of the front-ends only. I have to double check but I think ada
is fine as they use xgcc as the driver while building the front-end and I think
D might be ok too (it was recently moved over to compiling D code).

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

end of thread, other threads:[~2022-01-08  4:08 UTC | newest]

Thread overview: 13+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-08-16  5:41 [Bug other/54279] New: first stage build with g++ fails with "." as the first component of $PATH gary at intrepid dot com
2012-08-16  5:47 ` [Bug other/54279] [4.8 Regression] " pinskia at gcc dot gnu.org
2012-08-16 11:03 ` rguenth at gcc dot gnu.org
2012-09-19 14:31 ` rguenth at gcc dot gnu.org
2012-11-15  0:32 ` pinskia at gcc dot gnu.org
2012-11-15  2:51 ` pinskia at gcc dot gnu.org
2012-11-15  3:40 ` pinskia at gcc dot gnu.org
2012-11-15  4:32 ` pinskia at gcc dot gnu.org
2012-11-15 20:29 ` pinskia at gcc dot gnu.org
2012-11-28 22:11 ` pinskia at gcc dot gnu.org
2012-11-28 22:16 ` pinskia at gcc dot gnu.org
2013-02-10 12:28 ` karlson2k at gmail dot com
2022-01-08  4:08 ` pinskia 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).