public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug bootstrap/12024] New: i386-elf build references nonexistent crt0.o, libsim.a
@ 2003-08-21 21:36 dhazeghi at yahoo dot com
  2003-08-21 21:36 ` [Bug bootstrap/12024] " dhazeghi at yahoo dot com
                   ` (5 more replies)
  0 siblings, 6 replies; 8+ messages in thread
From: dhazeghi at yahoo dot com @ 2003-08-21 21:36 UTC (permalink / raw)
  To: gcc-bugs

PLEASE REPLY TO gcc-bugzilla@gcc.gnu.org ONLY, *NOT* gcc-bugs@gcc.gnu.org.

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

           Summary: i386-elf build references nonexistent crt0.o, libsim.a
           Product: gcc
           Version: 3.4
            Status: UNCONFIRMED
          Keywords: build
          Severity: normal
          Priority: P2
         Component: bootstrap
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: dhazeghi at yahoo dot com
                CC: gcc-bugs at gcc dot gnu dot org

With current mainline (combined tree), building cross to i386-elf fails, when configuring 
libstdc++-v3. The C compiler check fails:

checking for i386-elf-gcc... (cached)  /home/dara/mainline/objdir/gcc/xgcc -B/home/dara/
mainline/objdir/gcc/ -nostdinc -B/home/dara/mainline/objdir/i386-elf/newlib/ -isystem /home/
dara/mainline/objdir/i386-elf/newlib/targ-include -isystem /home/dara/mainline/combined/
newlib/libc/include -B/usr/local/i386-elf/bin/ -B/usr/local/i386-elf/lib/ -isystem /usr/local/
i386-elf/include -isystem /usr/local/i386-elf/sys-include -L/home/dara/mainline/objdir/ld
checking for C compiler default output... configure: error: C compiler cannot create executables
See `config.log' for more details.
make: *** [configure-target-libstdc++-v3] Error 1

The part that is failing is:

configure:2352:  /home/dara/mainline/objdir/gcc/xgcc -B/home/dara/mainline/objdir/gcc/ -
nostdinc -B/home/dara/mainline/objdir/i386-elf/newlib/ -isystem /home/dara/mainline/objdir/
i386-elf/newlib/targ-include -isystem /home/dara/mainline/combined/newlib/libc/include -B/
usr/local/i386-elf/bin/ -B/usr/local/i386-elf/lib/ -isystem /usr/local/i386-elf/include -isystem /
usr/local/i386-elf/sys-include -L/home/dara/mainline/objdir/ld -O2 -g -O2 -O2 -g -O2  
conftest.c  >&5
/home/dara/mainline/objdir/gcc/collect-ld: cannot open crt0.o: No such file or directory
collect2: ld returned 1 exit status

However, this can't be worked around like PR12019, because no crt0.o and libsim.a (also needed) 
has been build. What has been build (in libgloss) is cygmon-crt0.o and libcygmon.a. Placing those 
files in the search path and renaming them (to crt0.o and libsim.a) results in:

configure:2352:  /home/dara/mainline/objdir/gcc/xgcc -B/home/dara/mainline/objdir/gcc/ -
nostdinc -B/home/dara/mainline/objdir/i386-elf/newlib/ -isystem /home/dara/mainline/objdir/
i386-elf/newlib/targ-include -isystem /home/dara/mainline/combined/newlib/libc/include -B/
usr/local/i386-elf/bin/ -B/usr/local/i386-elf/lib/ -isystem /usr/local/i386-elf/include -isystem /
usr/local/i386-elf/sys-include -L/home/dara/mainline/objdir/ld -O2 -g -O2 -O2 -g -O2  
conftest.c  >&5
/home/dara/mainline/objdir/gcc/collect-ld: warning: cannot find entry symbol _start; defaulting 
to 08048080
/home/dara/mainline/objdir/gcc/crt0.o(.text+0x1):../../../../combined/libgloss/i386/cygmon-
crt0.S:37: undefined reference to `__stack'
/home/dara/mainline/objdir/gcc/crt0.o(.text+0x16):../../../../combined/libgloss/i386/cygmon-
crt0.S:45: undefined reference to `__bss_end'
/home/dara/mainline/objdir/gcc/crt0.o(.text+0x28):../../../../combined/libgloss/i386/cygmon-
crt0.S:52: undefined reference to `__install_signal_handler'
/home/dara/mainline/objdir/gcc/crt0.o(.text+0x2e):../../../../combined/libgloss/i386/cygmon-
crt0.S:55: undefined reference to `__do_global_dtors'
/home/dara/mainline/objdir/gcc/crt0.o(.text+0x39):../../../../combined/libgloss/i386/cygmon-
crt0.S:59: undefined reference to `__do_global_ctors'
/home/dara/mainline/objdir/gcc/crt0.o(.text+0x43):../../../../combined/libgloss/i386/cygmon-
crt0.S:62: undefined reference to `__get_program_arguments'
/home/dara/mainline/objdir/i386-elf/newlib/libg.a(exit.o)(.text+0x6d): In function `exit':
 ...

It appears as if i386-elf is considered to be equivalent to cygwin by newlib, but not by gcc.


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

* [Bug bootstrap/12024] i386-elf build references nonexistent crt0.o, libsim.a
  2003-08-21 21:36 [Bug bootstrap/12024] New: i386-elf build references nonexistent crt0.o, libsim.a dhazeghi at yahoo dot com
@ 2003-08-21 21:36 ` dhazeghi at yahoo dot com
  2003-08-21 21:39 ` dhazeghi at yahoo dot com
                   ` (4 subsequent siblings)
  5 siblings, 0 replies; 8+ messages in thread
From: dhazeghi at yahoo dot com @ 2003-08-21 21:36 UTC (permalink / raw)
  To: gcc-bugs

PLEASE REPLY TO gcc-bugzilla@gcc.gnu.org ONLY, *NOT* gcc-bugs@gcc.gnu.org.

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


dhazeghi at yahoo dot com changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
 GCC target triplet|                            |i386-elf


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

* [Bug bootstrap/12024] i386-elf build references nonexistent crt0.o, libsim.a
  2003-08-21 21:36 [Bug bootstrap/12024] New: i386-elf build references nonexistent crt0.o, libsim.a dhazeghi at yahoo dot com
  2003-08-21 21:36 ` [Bug bootstrap/12024] " dhazeghi at yahoo dot com
@ 2003-08-21 21:39 ` dhazeghi at yahoo dot com
  2003-08-21 22:01 ` pinskia at gcc dot gnu dot org
                   ` (3 subsequent siblings)
  5 siblings, 0 replies; 8+ messages in thread
From: dhazeghi at yahoo dot com @ 2003-08-21 21:39 UTC (permalink / raw)
  To: gcc-bugs

PLEASE REPLY TO gcc-bugzilla@gcc.gnu.org ONLY, *NOT* gcc-bugs@gcc.gnu.org.

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


dhazeghi at yahoo dot com changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
 GCC target triplet|i386-elf                    |i386-elf, i386-coff


------- Additional Comments From dhazeghi at yahoo dot com  2003-08-21 21:39 -------
Identical problem (and error) occurs with i386-coff.


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

* [Bug bootstrap/12024] i386-elf build references nonexistent crt0.o, libsim.a
  2003-08-21 21:36 [Bug bootstrap/12024] New: i386-elf build references nonexistent crt0.o, libsim.a dhazeghi at yahoo dot com
  2003-08-21 21:36 ` [Bug bootstrap/12024] " dhazeghi at yahoo dot com
  2003-08-21 21:39 ` dhazeghi at yahoo dot com
@ 2003-08-21 22:01 ` pinskia at gcc dot gnu dot org
  2003-08-21 22:09 ` dhazeghi at yahoo dot com
                   ` (2 subsequent siblings)
  5 siblings, 0 replies; 8+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2003-08-21 22:01 UTC (permalink / raw)
  To: gcc-bugs

PLEASE REPLY TO gcc-bugzilla@gcc.gnu.org ONLY, *NOT* gcc-bugs@gcc.gnu.org.

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



------- Additional Comments From pinskia at gcc dot gnu dot org  2003-08-21 22:01 -------
i386-elf cannot be cygwin as cygwin is coff not elf.
This looks more like a newlib bug rather than a GCC bug (except for bug 12019 symtom).
Report it to newlib <http://sources.redhat.com/newlib/>.


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

* [Bug bootstrap/12024] i386-elf build references nonexistent crt0.o, libsim.a
  2003-08-21 21:36 [Bug bootstrap/12024] New: i386-elf build references nonexistent crt0.o, libsim.a dhazeghi at yahoo dot com
                   ` (2 preceding siblings ...)
  2003-08-21 22:01 ` pinskia at gcc dot gnu dot org
@ 2003-08-21 22:09 ` dhazeghi at yahoo dot com
  2003-08-23 17:19 ` pinskia at gcc dot gnu dot org
  2003-12-18 10:39 ` pinskia at gcc dot gnu dot org
  5 siblings, 0 replies; 8+ messages in thread
From: dhazeghi at yahoo dot com @ 2003-08-21 22:09 UTC (permalink / raw)
  To: gcc-bugs

PLEASE REPLY TO gcc-bugzilla@gcc.gnu.org ONLY, *NOT* gcc-bugs@gcc.gnu.org.

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



------- Additional Comments From dhazeghi at yahoo dot com  2003-08-21 22:09 -------
Fair enough, I'll send it to newlib, and see what they say.


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

* [Bug bootstrap/12024] i386-elf build references nonexistent crt0.o, libsim.a
  2003-08-21 21:36 [Bug bootstrap/12024] New: i386-elf build references nonexistent crt0.o, libsim.a dhazeghi at yahoo dot com
                   ` (3 preceding siblings ...)
  2003-08-21 22:09 ` dhazeghi at yahoo dot com
@ 2003-08-23 17:19 ` pinskia at gcc dot gnu dot org
  2003-12-18 10:39 ` pinskia at gcc dot gnu dot org
  5 siblings, 0 replies; 8+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2003-08-23 17:19 UTC (permalink / raw)
  To: gcc-bugs

PLEASE REPLY TO gcc-bugzilla@gcc.gnu.org ONLY, *NOT* gcc-bugs@gcc.gnu.org.

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


pinskia at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
   Target Milestone|3.4                         |---


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

* [Bug bootstrap/12024] i386-elf build references nonexistent crt0.o, libsim.a
  2003-08-21 21:36 [Bug bootstrap/12024] New: i386-elf build references nonexistent crt0.o, libsim.a dhazeghi at yahoo dot com
                   ` (4 preceding siblings ...)
  2003-08-23 17:19 ` pinskia at gcc dot gnu dot org
@ 2003-12-18 10:39 ` pinskia at gcc dot gnu dot org
  5 siblings, 0 replies; 8+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2003-12-18 10:39 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From pinskia at gcc dot gnu dot org  2003-12-18 09:39 -------
Confirmed.

-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |NEW
     Ever Confirmed|                            |1
   Last reconfirmed|0000-00-00 00:00:00         |2003-12-18 09:39:44
               date|                            |


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


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

* [Bug bootstrap/12024] i386-elf build references nonexistent crt0.o, libsim.a
       [not found] <bug-12024-4@http.gcc.gnu.org/bugzilla/>
@ 2012-01-13  5:42 ` pinskia at gcc dot gnu.org
  0 siblings, 0 replies; 8+ messages in thread
From: pinskia at gcc dot gnu.org @ 2012-01-13  5:42 UTC (permalink / raw)
  To: gcc-bugs

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

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

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|                            |MOVED

--- Comment #5 from Andrew Pinski <pinskia at gcc dot gnu.org> 2012-01-13 05:42:11 UTC ---
Change this to resolved/moved.


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

end of thread, other threads:[~2012-01-13  5:42 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2003-08-21 21:36 [Bug bootstrap/12024] New: i386-elf build references nonexistent crt0.o, libsim.a dhazeghi at yahoo dot com
2003-08-21 21:36 ` [Bug bootstrap/12024] " dhazeghi at yahoo dot com
2003-08-21 21:39 ` dhazeghi at yahoo dot com
2003-08-21 22:01 ` pinskia at gcc dot gnu dot org
2003-08-21 22:09 ` dhazeghi at yahoo dot com
2003-08-23 17:19 ` pinskia at gcc dot gnu dot org
2003-12-18 10:39 ` pinskia at gcc dot gnu dot org
     [not found] <bug-12024-4@http.gcc.gnu.org/bugzilla/>
2012-01-13  5:42 ` 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).