public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug other/32154]  New: sim-crt0.o isn't found during configure due to missing -L or -B
@ 2007-05-30 13:19 rask at sygehus dot dk
  2007-05-31 10:02 ` [Bug other/32154] sim-crt0.o/crt0.o " rask at sygehus dot dk
                   ` (12 more replies)
  0 siblings, 13 replies; 14+ messages in thread
From: rask at sygehus dot dk @ 2007-05-30 13:19 UTC (permalink / raw)
  To: gcc-bugs

I configured GCC like this:

/n/08/rask/src/gcc/configure --target=powerpc-unknown-eabisim --disable-nls
--with-newlib --enable-sim --disable-shared --enable-languages=c,c++,objc

When make runs configure in the target subdirectories, sim-crt0.o from libgloss
isn't found:

configure:2362: checking for C compiler version
[...]
configure:2397: /home/rask/build/gcc-powerpc-unknown-eabisim/./gcc/xgcc
-B/home/rask/build/gcc-powerpc-unknown-eabisim/./gcc/ -nostdinc
-B/home/rask/build/gcc-powerpc-unknown-eabisim/powerpc-unknown-eabisim/newlib/
-isystem
/home/rask/build/gcc-powerpc-unknown-eabisim/powerpc-unknown-eabisim/newlib/targ-include
-isystem /n/08/rask/src/gcc/newlib/libc/include
-B/usr/local/powerpc-unknown-eabisim/bin/
-B/usr/local/powerpc-unknown-eabisim/lib/ -isystem
/usr/local/powerpc-unknown-eabisim/include -isystem
/usr/local/powerpc-unknown-eabisim/sys-include
-L/home/rask/build/gcc-powerpc-unknown-eabisim/./ld -o conftest -O2 -g -O2   
conftest.c  >&5
/home/rask/build/gcc-powerpc-unknown-eabisim/gcc/../ld/ld-new: sim-crt0.o: No
such file: No such file or directory
collect2: ld returned 1 exit status
configure:2400: $? = 1

I see this in several target subdirs' config.log:
boehm-gc/config.log
libgcc/config.log
libiberty/config.log
libssp/config.log
libstdc++-v3/config.log

The cause of the problem is that the necessary -L or -B option pointing to the
libgloss/rs6000 directory is missing. The result is that link tests fail.


-- 
           Summary: sim-crt0.o isn't found during configure due to missing -
                    L or -B
           Product: gcc
           Version: 4.3.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: other
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: rask at sygehus dot dk
 GCC build triplet: i686-pc-linux-gnu
  GCC host triplet: i686-pc-linux-gnu
GCC target triplet: powerpc-unknown-eabisim


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


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

* [Bug other/32154] sim-crt0.o/crt0.o isn't found during configure due to missing -L or -B
  2007-05-30 13:19 [Bug other/32154] New: sim-crt0.o isn't found during configure due to missing -L or -B rask at sygehus dot dk
@ 2007-05-31 10:02 ` rask at sygehus dot dk
  2007-05-31 21:01 ` rask at sygehus dot dk
                   ` (11 subsequent siblings)
  12 siblings, 0 replies; 14+ messages in thread
From: rask at sygehus dot dk @ 2007-05-31 10:02 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #1 from rask at sygehus dot dk  2007-05-31 10:02 -------
The same thing happens when configuring with --target==mcore-unknown-elf, only
the startup file is crt0.c instead of sim-crt0.o.


-- 

rask at sygehus dot dk changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
 GCC target triplet|powerpc-unknown-eabisim     |powerpc-eabisim mcore-elf
            Summary|sim-crt0.o isn't found      |sim-crt0.o/crt0.o isn't
                   |during configure due to     |found during configure due
                   |missing -L or -B            |to missing -L or -B


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


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

* [Bug other/32154] sim-crt0.o/crt0.o isn't found during configure due to missing -L or -B
  2007-05-30 13:19 [Bug other/32154] New: sim-crt0.o isn't found during configure due to missing -L or -B rask at sygehus dot dk
  2007-05-31 10:02 ` [Bug other/32154] sim-crt0.o/crt0.o " rask at sygehus dot dk
@ 2007-05-31 21:01 ` rask at sygehus dot dk
  2007-05-31 21:09 ` dj at redhat dot com
                   ` (10 subsequent siblings)
  12 siblings, 0 replies; 14+ messages in thread
From: rask at sygehus dot dk @ 2007-05-31 21:01 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #2 from rask at sygehus dot dk  2007-05-31 21:01 -------
Created an attachment (id=13641)
 --> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=13641&action=view)
Patch to add -L and -B as necessary

This happens on all targets except m32c-*-*. I'm testing the attached patch.


-- 


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


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

* [Bug other/32154] sim-crt0.o/crt0.o isn't found during configure due to missing -L or -B
  2007-05-30 13:19 [Bug other/32154] New: sim-crt0.o isn't found during configure due to missing -L or -B rask at sygehus dot dk
  2007-05-31 10:02 ` [Bug other/32154] sim-crt0.o/crt0.o " rask at sygehus dot dk
  2007-05-31 21:01 ` rask at sygehus dot dk
@ 2007-05-31 21:09 ` dj at redhat dot com
  2007-05-31 22:37 ` rask at sygehus dot dk
                   ` (9 subsequent siblings)
  12 siblings, 0 replies; 14+ messages in thread
From: dj at redhat dot com @ 2007-05-31 21:09 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #3 from dj at redhat dot com  2007-05-31 21:09 -------
Subject: Re:  sim-crt0.o/crt0.o isn't found during configure due to missing -L
or -B


Note that m32c puts *.ld files in the *build* directory, not the
*source* directory, unlike most targets.  The m32c source directory
only has templates.

Also, please keep the comments around.  You're deleting them from the
m32c case, but not adding equivalent ones in the generic case.


-- 


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


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

* [Bug other/32154] sim-crt0.o/crt0.o isn't found during configure due to missing -L or -B
  2007-05-30 13:19 [Bug other/32154] New: sim-crt0.o isn't found during configure due to missing -L or -B rask at sygehus dot dk
                   ` (2 preceding siblings ...)
  2007-05-31 21:09 ` dj at redhat dot com
@ 2007-05-31 22:37 ` rask at sygehus dot dk
  2007-06-01  1:09 ` dj at redhat dot com
                   ` (8 subsequent siblings)
  12 siblings, 0 replies; 14+ messages in thread
From: rask at sygehus dot dk @ 2007-05-31 22:37 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #4 from rask at sygehus dot dk  2007-05-31 22:37 -------
Created an attachment (id=13642)
 --> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=13642&action=view)
Patch v2 to add -L and -B as necessary

I believe I have covered boths cases of linker script placement.
The comments ended up a lot farther away from the lines they were supposed to
comment than intended.
The attached patch fixes a few things that I didn't get right in my first
attempt.


-- 

rask at sygehus dot dk changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
  Attachment #13641|0                           |1
        is obsolete|                            |


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


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

* [Bug other/32154] sim-crt0.o/crt0.o isn't found during configure due to missing -L or -B
  2007-05-30 13:19 [Bug other/32154] New: sim-crt0.o isn't found during configure due to missing -L or -B rask at sygehus dot dk
                   ` (3 preceding siblings ...)
  2007-05-31 22:37 ` rask at sygehus dot dk
@ 2007-06-01  1:09 ` dj at redhat dot com
  2007-06-01 19:56 ` rask at sygehus dot dk
                   ` (7 subsequent siblings)
  12 siblings, 0 replies; 14+ messages in thread
From: dj at redhat dot com @ 2007-06-01  1:09 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #5 from dj at redhat dot com  2007-06-01 01:08 -------
m32c still needs -L$$r/$(TARGET_SUBDIR)/libgloss/m32c to find r8c.ld in the
build directory.  Your patch would only search in the source directory.  Be
careful with -B vs -L, and $$r vs $$s.

You've also removed the special flags needed for a mep build.


-- 


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


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

* [Bug other/32154] sim-crt0.o/crt0.o isn't found during configure due to missing -L or -B
  2007-05-30 13:19 [Bug other/32154] New: sim-crt0.o isn't found during configure due to missing -L or -B rask at sygehus dot dk
                   ` (4 preceding siblings ...)
  2007-06-01  1:09 ` dj at redhat dot com
@ 2007-06-01 19:56 ` rask at sygehus dot dk
  2007-06-08 17:35 ` rask at sygehus dot dk
                   ` (6 subsequent siblings)
  12 siblings, 0 replies; 14+ messages in thread
From: rask at sygehus dot dk @ 2007-06-01 19:56 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #6 from rask at sygehus dot dk  2007-06-01 19:56 -------
According to the documentation, -B passes -L to the linker, so there is no need
to pass both. It seems to work as documented.


-- 


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


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

* [Bug other/32154] sim-crt0.o/crt0.o isn't found during configure due to missing -L or -B
  2007-05-30 13:19 [Bug other/32154] New: sim-crt0.o isn't found during configure due to missing -L or -B rask at sygehus dot dk
                   ` (5 preceding siblings ...)
  2007-06-01 19:56 ` rask at sygehus dot dk
@ 2007-06-08 17:35 ` rask at sygehus dot dk
  2007-06-11 22:05 ` rask at sygehus dot dk
                   ` (5 subsequent siblings)
  12 siblings, 0 replies; 14+ messages in thread
From: rask at sygehus dot dk @ 2007-06-08 17:35 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #7 from rask at sygehus dot dk  2007-06-08 17:35 -------
Created an attachment (id=13669)
 --> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=13669&action=view)
Patch v3 to add -L and -B as necessary

This patch should fix the mep* case that I accidentally deleted.


-- 

rask at sygehus dot dk changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
  Attachment #13642|0                           |1
        is obsolete|                            |


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


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

* [Bug other/32154] sim-crt0.o/crt0.o isn't found during configure due to missing -L or -B
  2007-05-30 13:19 [Bug other/32154] New: sim-crt0.o isn't found during configure due to missing -L or -B rask at sygehus dot dk
                   ` (6 preceding siblings ...)
  2007-06-08 17:35 ` rask at sygehus dot dk
@ 2007-06-11 22:05 ` rask at sygehus dot dk
  2007-06-15 14:24 ` rask at sygehus dot dk
                   ` (4 subsequent siblings)
  12 siblings, 0 replies; 14+ messages in thread
From: rask at sygehus dot dk @ 2007-06-11 22:05 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #8 from rask at sygehus dot dk  2007-06-11 22:05 -------
Bug bootstrap/12019 looks similiar to this one.


-- 


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


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

* [Bug other/32154] sim-crt0.o/crt0.o isn't found during configure due to missing -L or -B
  2007-05-30 13:19 [Bug other/32154] New: sim-crt0.o isn't found during configure due to missing -L or -B rask at sygehus dot dk
                   ` (7 preceding siblings ...)
  2007-06-11 22:05 ` rask at sygehus dot dk
@ 2007-06-15 14:24 ` rask at sygehus dot dk
  2007-06-20 11:13 ` bonzini at gnu dot org
                   ` (3 subsequent siblings)
  12 siblings, 0 replies; 14+ messages in thread
From: rask at sygehus dot dk @ 2007-06-15 14:24 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #9 from rask at sygehus dot dk  2007-06-15 14:24 -------
Bug bootstrap/28949 is also similiar to this one.
Btw, this bug is the root cause of the error message 'Link tests are not
allowed after GCC_NO_EXECUTABLES' for newlib targets, so it should show up in
searches for that message, which it will now.


-- 


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


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

* [Bug other/32154] sim-crt0.o/crt0.o isn't found during configure due to missing -L or -B
  2007-05-30 13:19 [Bug other/32154] New: sim-crt0.o isn't found during configure due to missing -L or -B rask at sygehus dot dk
                   ` (8 preceding siblings ...)
  2007-06-15 14:24 ` rask at sygehus dot dk
@ 2007-06-20 11:13 ` bonzini at gnu dot org
  2007-09-10  2:43 ` patchapp at dberlin dot org
                   ` (2 subsequent siblings)
  12 siblings, 0 replies; 14+ messages in thread
From: bonzini at gnu dot org @ 2007-06-20 11:13 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #10 from bonzini at gnu dot org  2007-06-20 11:13 -------
DJ, do you think this patch is ok?


-- 

bonzini at gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |bonzini at gnu dot org


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


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

* [Bug other/32154] sim-crt0.o/crt0.o isn't found during configure due to missing -L or -B
  2007-05-30 13:19 [Bug other/32154] New: sim-crt0.o isn't found during configure due to missing -L or -B rask at sygehus dot dk
                   ` (9 preceding siblings ...)
  2007-06-20 11:13 ` bonzini at gnu dot org
@ 2007-09-10  2:43 ` patchapp at dberlin dot org
  2007-09-10 14:20 ` rask at gcc dot gnu dot org
  2007-09-10 14:28 ` rask at gcc dot gnu dot org
  12 siblings, 0 replies; 14+ messages in thread
From: patchapp at dberlin dot org @ 2007-09-10  2:43 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #11 from patchapp at dberlin dot org  2007-09-10 02:43 -------
Subject: Bug number PR 32154

A patch for this bug has been added to the patch tracker.
The mailing list url for the patch is
http://gcc.gnu.org/ml/gcc-patches/2007-09/msg00815.html


-- 


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


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

* [Bug other/32154] sim-crt0.o/crt0.o isn't found during configure due to missing -L or -B
  2007-05-30 13:19 [Bug other/32154] New: sim-crt0.o isn't found during configure due to missing -L or -B rask at sygehus dot dk
                   ` (10 preceding siblings ...)
  2007-09-10  2:43 ` patchapp at dberlin dot org
@ 2007-09-10 14:20 ` rask at gcc dot gnu dot org
  2007-09-10 14:28 ` rask at gcc dot gnu dot org
  12 siblings, 0 replies; 14+ messages in thread
From: rask at gcc dot gnu dot org @ 2007-09-10 14:20 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #12 from rask at gcc dot gnu dot org  2007-09-10 14:20 -------
Subject: Bug 32154

Author: rask
Date: Mon Sep 10 14:20:10 2007
New Revision: 128344

URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=128344
Log:
        PR other/32154
        * configure.ac: For libgloss targets, point the linker to the linker
        script, startup code and simulator library.
        * configure: Regenerate.

Modified:
    trunk/ChangeLog
    trunk/configure
    trunk/configure.ac


-- 


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


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

* [Bug other/32154] sim-crt0.o/crt0.o isn't found during configure due to missing -L or -B
  2007-05-30 13:19 [Bug other/32154] New: sim-crt0.o isn't found during configure due to missing -L or -B rask at sygehus dot dk
                   ` (11 preceding siblings ...)
  2007-09-10 14:20 ` rask at gcc dot gnu dot org
@ 2007-09-10 14:28 ` rask at gcc dot gnu dot org
  12 siblings, 0 replies; 14+ messages in thread
From: rask at gcc dot gnu dot org @ 2007-09-10 14:28 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #13 from rask at gcc dot gnu dot org  2007-09-10 14:27 -------
Fixed as of revision 128344.


-- 

rask at gcc dot gnu dot org changed:

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


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


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

end of thread, other threads:[~2007-09-10 14:28 UTC | newest]

Thread overview: 14+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2007-05-30 13:19 [Bug other/32154] New: sim-crt0.o isn't found during configure due to missing -L or -B rask at sygehus dot dk
2007-05-31 10:02 ` [Bug other/32154] sim-crt0.o/crt0.o " rask at sygehus dot dk
2007-05-31 21:01 ` rask at sygehus dot dk
2007-05-31 21:09 ` dj at redhat dot com
2007-05-31 22:37 ` rask at sygehus dot dk
2007-06-01  1:09 ` dj at redhat dot com
2007-06-01 19:56 ` rask at sygehus dot dk
2007-06-08 17:35 ` rask at sygehus dot dk
2007-06-11 22:05 ` rask at sygehus dot dk
2007-06-15 14:24 ` rask at sygehus dot dk
2007-06-20 11:13 ` bonzini at gnu dot org
2007-09-10  2:43 ` patchapp at dberlin dot org
2007-09-10 14:20 ` rask at gcc dot gnu dot org
2007-09-10 14:28 ` rask 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).