public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
From: "karl at freefriends dot org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug driver/48306] presence of gcc subdir with . in PATH causes breakdown
Date: Mon, 28 Mar 2011 22:25:00 -0000	[thread overview]
Message-ID: <bug-48306-4-9GrTh6Jr55@http.gcc.gnu.org/bugzilla/> (raw)
In-Reply-To: <bug-48306-4@http.gcc.gnu.org/bugzilla/>

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

--- Comment #2 from karl at freefriends dot org 2011-03-28 21:51:03 UTC ---
For both gcc 4.5.2 and 4.6.0, I configured it from the original source on
ftp.gnu.org, using --prefix=/usr/local/gnu --enable-languages=c,c++, no other
arguments.  "make install" to install.

Here is the gcc -v output.  I note that cpp is not even being executed.

$ gcc -v hello.c                                                            
Using built-in specs.                                                           
COLLECT_GCC=gcc                                                                 
Target: i686-pc-linux-gnu                                                       
Configured with: ../gcc-4.6.0/configure --prefix=/usr/local/gnu
--enable-langua\
ges=c,c++                                                                       
Thread model: posix                                                             
gcc version 4.6.0 (GCC)                                                         
COLLECT_GCC_OPTIONS='-v' '-mtune=generic' '-march=pentiumpro'                   
 cc1 -quiet -v -iprefix /tmp/../lib/gcc/i686-pc-linux-gnu/4.6.0/ hello.c
-quiet\
 -dumpbase hello.c -mtune=generic -march=pentiumpro -auxbase hello -version -o
\
/dev/shm/cc34H39x.s                                                             
gcc: error trying to exec 'cc1': execvp: No such file or directory

The /tmp/../lib seems like a clear indication it is finding the empty /tmp/gcc
directory.

I thought it might be something in my environment causing the failure, but even
running with env -i, I get the same error.  It is puzzling that you do not see
it.  I can't think of what else would be specific to my installation.

$ mkdir /tmp/gcc
$ env -i PATH=/tmp:/usr/local/gnu/bin gcc hello.c
gcc: error trying to exec 'cc1': execvp: No such file or directory

(the gcc -v output from this env -i run is the same as above.)

Thanks,
karl


  parent reply	other threads:[~2011-03-28 21:51 UTC|newest]

Thread overview: 15+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-03-28  1:44 [Bug driver/48306] New: " karl at freefriends dot org
2011-03-28  9:45 ` [Bug driver/48306] " rguenth at gcc dot gnu.org
2011-03-28 22:25 ` karl at freefriends dot org [this message]
2011-03-29 10:23 ` [Bug driver/48306] [4.3/4.4/4.5/4.6/4.7 Regression] " rguenth at gcc dot gnu.org
2011-03-29 10:23 ` [Bug driver/48306] " rguenth at gcc dot gnu.org
2011-04-10 10:45 ` [Bug driver/48306] [4.3/4.4/4.5/4.6/4.7 Regression] " rguenth at gcc dot gnu.org
2011-06-27 15:14 ` rguenth at gcc dot gnu.org
2011-12-19 20:10 ` [Bug driver/48306] [4.4/4.5/4.6/4.7 " jakub at gcc dot gnu.org
2011-12-19 23:06 ` karl at freefriends dot org
2012-01-02 22:18 ` jakub at gcc dot gnu.org
2012-01-02 22:21 ` [Bug driver/48306] [4.4/4.5/4.6 " jakub at gcc dot gnu.org
2012-02-09 17:17 ` jakub at gcc dot gnu.org
2012-02-09 21:33 ` [Bug driver/48306] [4.4/4.5 " jakub at gcc dot gnu.org
2012-03-13 16:56 ` [Bug driver/48306] [4.4 " jakub at gcc dot gnu.org
2012-08-16  7:00 ` jakub at gcc dot gnu.org

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=bug-48306-4-9GrTh6Jr55@http.gcc.gnu.org/bugzilla/ \
    --to=gcc-bugzilla@gcc.gnu.org \
    --cc=gcc-bugs@gcc.gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).