public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug regression/42955] New: undecorated cross-compiler gcc fails to find cc1
@ 2010-02-04 13:54 ossman at cendio dot se
2010-02-04 17:17 ` [Bug driver/42955] " pinskia at gcc dot gnu dot org
` (6 more replies)
0 siblings, 7 replies; 8+ messages in thread
From: ossman at cendio dot se @ 2010-02-04 13:54 UTC (permalink / raw)
To: gcc-bugs
I upgrade from gcc 4.1.2 to 4.4.3 and discovered that the gcc in
/usr/$(target_noncanonical)/bin no longer is functional. Using it results in:
gcc: error trying to exec 'cc1': execvp: No such file or directory
Digging around, it turns out that the internal paths are screwed up:
$ /usr/sparc-sun-solaris2.10/bin/gcc -print-prog-name=cc1
cc1
$ /usr/sparc-sun-solaris2.10/bin/gcc -print-search-dirs
install: /usr/sparc-sun-solaris2.10/bin/../lib/gcc/sparc-sun-solaris2.10/4.4.3/
programs:
=/usr/sparc-sun-solaris2.10/bin/../libexec/gcc/sparc-sun-solaris2.10/4.4.3/:/usr/sparc-sun-solaris2.10/bin/../libexec/gcc/:/usr/sparc-sun-solaris2.10/bin/../lib/gcc/sparc-sun-solaris2.10/4.4.3/../../../../sparc-sun-solaris2.10/bin/sparc-sun-solaris2.10/4.4.3/:/usr/sparc-sun-solaris2.10/bin/../lib/gcc/sparc-sun-solaris2.10/4.4.3/../../../../sparc-sun-solaris2.10/bin/
libraries:
=/usr/sparc-sun-solaris2.10/bin/../lib/gcc/sparc-sun-solaris2.10/4.4.3/:/usr/sparc-sun-solaris2.10/bin/../lib/gcc/:/usr/sparc-sun-solaris2.10/bin/../lib/gcc/sparc-sun-solaris2.10/4.4.3/../../../../sparc-sun-solaris2.10/lib/sparc-sun-solaris2.10/4.4.3/:/usr/sparc-sun-solaris2.10/bin/../lib/gcc/sparc-sun-solaris2.10/4.4.3/../../../../sparc-sun-solaris2.10/lib/:/usr/sparc-sun-solaris2.10/sys-root/lib/sparc-sun-solaris2.10/4.4.3/:/usr/sparc-sun-solaris2.10/sys-root/lib/:/usr/sparc-sun-solaris2.10/sys-root/usr/lib/sparc-sun-solaris2.10/4.4.3/:/usr/sparc-sun-solaris2.10/sys-root/usr/lib/
(quick summary: the required path /usr/libexec/gcc/sparc-sun-solaris2.10/4.4.3/
is not in there)
The decorated compiler works just fine though:
$ /usr/bin/sparc-sun-solaris2.10-gcc -print-prog-name=cc1
/usr/libexec/gcc/sparc-sun-solaris2.10/4.4.3/cc1
Further digging seems to indicate that this was caused by r118765, where the
configured in paths only are added if the binary is in $(bindir).
I'm hoping this is only an oversight and someone forgot about this extra bindir
for cross-compilers as this regression is causing quite a bit of pain here.
--
Summary: undecorated cross-compiler gcc fails to find cc1
Product: gcc
Version: 4.4.3
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: regression
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: ossman at cendio dot se
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=42955
^ permalink raw reply [flat|nested] 8+ messages in thread
* [Bug driver/42955] undecorated cross-compiler gcc fails to find cc1
2010-02-04 13:54 [Bug regression/42955] New: undecorated cross-compiler gcc fails to find cc1 ossman at cendio dot se
@ 2010-02-04 17:17 ` pinskia at gcc dot gnu dot org
2010-02-07 20:58 ` pinskia at gcc dot gnu dot org
` (5 subsequent siblings)
6 siblings, 0 replies; 8+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2010-02-04 17:17 UTC (permalink / raw)
To: gcc-bugs
------- Comment #1 from pinskia at gcc dot gnu dot org 2010-02-04 17:17 -------
How did you configure the cross compiler?
--
pinskia at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
Component|regression |driver
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=42955
^ permalink raw reply [flat|nested] 8+ messages in thread
* [Bug driver/42955] undecorated cross-compiler gcc fails to find cc1
2010-02-04 13:54 [Bug regression/42955] New: undecorated cross-compiler gcc fails to find cc1 ossman at cendio dot se
2010-02-04 17:17 ` [Bug driver/42955] " pinskia at gcc dot gnu dot org
@ 2010-02-07 20:58 ` pinskia at gcc dot gnu dot org
2010-02-09 9:35 ` ossman at cendio dot se
` (4 subsequent siblings)
6 siblings, 0 replies; 8+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2010-02-07 20:58 UTC (permalink / raw)
To: gcc-bugs
--
pinskia at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |WAITING
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=42955
^ permalink raw reply [flat|nested] 8+ messages in thread
* [Bug driver/42955] undecorated cross-compiler gcc fails to find cc1
2010-02-04 13:54 [Bug regression/42955] New: undecorated cross-compiler gcc fails to find cc1 ossman at cendio dot se
2010-02-04 17:17 ` [Bug driver/42955] " pinskia at gcc dot gnu dot org
2010-02-07 20:58 ` pinskia at gcc dot gnu dot org
@ 2010-02-09 9:35 ` ossman at cendio dot se
2010-02-09 9:37 ` ossman at cendio dot se
` (3 subsequent siblings)
6 siblings, 0 replies; 8+ messages in thread
From: ossman at cendio dot se @ 2010-02-09 9:35 UTC (permalink / raw)
To: gcc-bugs
------- Comment #2 from ossman at cendio dot se 2010-02-09 09:35 -------
Like so:
/usr/sparc-sun-solaris2.10/bin/gcc -v
Using built-in specs.
Target: sparc-sun-solaris2.10
Configured with: ../gcc-4.4.3/configure --prefix=/usr --mandir=/usr/share/man
--target=sparc-sun-solaris2.10
--with-sysroot=/usr/sparc-sun-solaris2.10/sys-root --disable-nls
--without-included-gettext --with-gnu-as --with-gnu-ld
--enable-version-specific-runtime-libs --enable-threads=posix
--enable-languages=c,c++
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=42955
^ permalink raw reply [flat|nested] 8+ messages in thread
* [Bug driver/42955] undecorated cross-compiler gcc fails to find cc1
2010-02-04 13:54 [Bug regression/42955] New: undecorated cross-compiler gcc fails to find cc1 ossman at cendio dot se
` (2 preceding siblings ...)
2010-02-09 9:35 ` ossman at cendio dot se
@ 2010-02-09 9:37 ` ossman at cendio dot se
2010-04-22 20:17 ` hp at gcc dot gnu dot org
` (2 subsequent siblings)
6 siblings, 0 replies; 8+ messages in thread
From: ossman at cendio dot se @ 2010-02-09 9:37 UTC (permalink / raw)
To: gcc-bugs
------- Comment #3 from ossman at cendio dot se 2010-02-09 09:36 -------
Btw, my workaround for now is to remove the binaries in
/usr/sparc-sun-solaris2.10/bin and replace them with symlinks as gcc will
resolve any symlinks before trying to determine its runtime prefix.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=42955
^ permalink raw reply [flat|nested] 8+ messages in thread
* [Bug driver/42955] undecorated cross-compiler gcc fails to find cc1
2010-02-04 13:54 [Bug regression/42955] New: undecorated cross-compiler gcc fails to find cc1 ossman at cendio dot se
` (3 preceding siblings ...)
2010-02-09 9:37 ` ossman at cendio dot se
@ 2010-04-22 20:17 ` hp at gcc dot gnu dot org
2010-04-22 20:18 ` hp at gcc dot gnu dot org
2010-04-22 20:21 ` hp at gcc dot gnu dot org
6 siblings, 0 replies; 8+ messages in thread
From: hp at gcc dot gnu dot org @ 2010-04-22 20:17 UTC (permalink / raw)
To: gcc-bugs
------- Comment #4 from hp at gcc dot gnu dot org 2010-04-22 20:16 -------
I've seen this too, for e.g. crisv32-axis-linux-gnu configured with
/absolute/path/toplevel/configure --target=crisv32-axis-linux-gnu.
Andrew: Isn't this a duplicate report even? IIRC you were talking on IRC about
entering one, though I guess neither of us did?
--
hp at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |hp at gcc dot gnu dot org
Last reconfirmed|0000-00-00 00:00:00 |2010-04-22 20:16:57
date| |
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=42955
^ permalink raw reply [flat|nested] 8+ messages in thread
* [Bug driver/42955] undecorated cross-compiler gcc fails to find cc1
2010-02-04 13:54 [Bug regression/42955] New: undecorated cross-compiler gcc fails to find cc1 ossman at cendio dot se
` (4 preceding siblings ...)
2010-04-22 20:17 ` hp at gcc dot gnu dot org
@ 2010-04-22 20:18 ` hp at gcc dot gnu dot org
2010-04-22 20:21 ` hp at gcc dot gnu dot org
6 siblings, 0 replies; 8+ messages in thread
From: hp at gcc dot gnu dot org @ 2010-04-22 20:18 UTC (permalink / raw)
To: gcc-bugs
------- Comment #5 from hp at gcc dot gnu dot org 2010-04-22 20:17 -------
Forgot to mention, that was 4.3.
--
hp at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|WAITING |NEW
Ever Confirmed|0 |1
Last reconfirmed|2010-04-22 20:16:57 |2010-04-22 20:17:36
date| |
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=42955
^ permalink raw reply [flat|nested] 8+ messages in thread
* [Bug driver/42955] undecorated cross-compiler gcc fails to find cc1
2010-02-04 13:54 [Bug regression/42955] New: undecorated cross-compiler gcc fails to find cc1 ossman at cendio dot se
` (5 preceding siblings ...)
2010-04-22 20:18 ` hp at gcc dot gnu dot org
@ 2010-04-22 20:21 ` hp at gcc dot gnu dot org
6 siblings, 0 replies; 8+ messages in thread
From: hp at gcc dot gnu dot org @ 2010-04-22 20:21 UTC (permalink / raw)
To: gcc-bugs
------- Comment #6 from hp at gcc dot gnu dot org 2010-04-22 20:21 -------
(In reply to comment #4)
Should've been:
> /absolute/path/toplevel/configure --target=crisv32-axis-linux-gnu.
--prefix=/another/absolute/path
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=42955
^ permalink raw reply [flat|nested] 8+ messages in thread
end of thread, other threads:[~2010-04-22 20:21 UTC | newest]
Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2010-02-04 13:54 [Bug regression/42955] New: undecorated cross-compiler gcc fails to find cc1 ossman at cendio dot se
2010-02-04 17:17 ` [Bug driver/42955] " pinskia at gcc dot gnu dot org
2010-02-07 20:58 ` pinskia at gcc dot gnu dot org
2010-02-09 9:35 ` ossman at cendio dot se
2010-02-09 9:37 ` ossman at cendio dot se
2010-04-22 20:17 ` hp at gcc dot gnu dot org
2010-04-22 20:18 ` hp at gcc dot gnu dot org
2010-04-22 20:21 ` hp at gcc dot gnu dot 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).