public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug bootstrap/21751] New: [csl-arm-branch] fails to bootstrap with EABI
@ 2005-05-25 14:15 bero at arklinux dot org
  2005-05-25 14:48 ` [Bug bootstrap/21751] " bero at arklinux dot org
                   ` (4 more replies)
  0 siblings, 5 replies; 8+ messages in thread
From: bero at arklinux dot org @ 2005-05-25 14:15 UTC (permalink / raw)
  To: gcc-bugs

Compiling csl-arm-branch with --with-abi=iwmmxt fails in csl_arm_branch as of  
2005/05/25:   
   
gcc/crtstuff.c: In function `__do_global_dtors_aux':  
gcc/crtstuff.c:260: error: `__DTOR_LIST__' undeclared (first use in this  
function)  
gcc/crtstuff.c:260: error: (Each undeclared identifier is reported only once  
gcc/crtstuff.c:260: error: for each function it appears in.)  
make[1]: *** [crtbegin.o] Error 1  
  
 
The problem is that crtstuff.c (__do_global_dtors_aux()) uses __DTOR_LIST__ 
whenever FINI_ARRAY_SECTION_ASM_OP isn't set (which is the case for arm w/ 
EABI), but DTOR_LIST_BEGIN isn't #defined to define __DTOR_LIST__ if 
__ARM_EABI__ is defined (gcc/config/arm/arm.h).

-- 
           Summary: [csl-arm-branch] fails to bootstrap with EABI
           Product: gcc
           Version: 3.4.4
            Status: UNCONFIRMED
          Severity: normal
          Priority: P2
         Component: bootstrap
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: bero at arklinux dot org
                CC: gcc-bugs at gcc dot gnu dot org
 GCC build triplet: i686-ark-linux
  GCC host triplet: i686-ark-linux
GCC target triplet: armv5tel-ark-linux


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


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

* [Bug bootstrap/21751] [csl-arm-branch] fails to bootstrap with EABI
  2005-05-25 14:15 [Bug bootstrap/21751] New: [csl-arm-branch] fails to bootstrap with EABI bero at arklinux dot org
@ 2005-05-25 14:48 ` bero at arklinux dot org
  2005-05-26 20:10 ` [Bug bootstrap/21751] [csl-arm-branch and HEAD] " bero at arklinux dot org
                   ` (3 subsequent siblings)
  4 siblings, 0 replies; 8+ messages in thread
From: bero at arklinux dot org @ 2005-05-25 14:48 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From bero at arklinux dot org  2005-05-25 14:28 -------
Created an attachment (id=8966)
 --> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=8966&action=view)
possible fix

Attaching a patch that makes it compile and (at least to me) looks like it'll
generate the right code.

The patch itself is definitely wrong though (breaks other arches) - it's
probably a matter of adding the right #include somewhere (not familiar with gcc
internals to figure out what exactly should be done).

-- 


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


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

* [Bug bootstrap/21751] [csl-arm-branch and HEAD] fails to bootstrap with EABI
  2005-05-25 14:15 [Bug bootstrap/21751] New: [csl-arm-branch] fails to bootstrap with EABI bero at arklinux dot org
  2005-05-25 14:48 ` [Bug bootstrap/21751] " bero at arklinux dot org
@ 2005-05-26 20:10 ` bero at arklinux dot org
  2005-05-27 19:35 ` drow at gcc dot gnu dot org
                   ` (2 subsequent siblings)
  4 siblings, 0 replies; 8+ messages in thread
From: bero at arklinux dot org @ 2005-05-26 20:10 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From bero at arklinux dot org  2005-05-26 19:49 -------
This is reproducable on HEAD branch as well; it's not limited to  
csl-arm-branch. 
 
The patch I've attached is not sufficient to fix it; the resulting compiler 
sort of works, but produces something like this: 
descriptor_test.o(.text+0xc88): In function `global constructors keyed to 
main': 
descriptor_test.cpp: undefined reference to `__aeabi_atexit' 
/stuff/tmp/cross/lib/gcc/arm-linux/3.4.3/../../../../arm-linux/bin/ld: 
warning: .fini_array section has zero size 
 
when building C++ libraries. 

-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
            Summary|[csl-arm-branch] fails to   |[csl-arm-branch and HEAD]
                   |bootstrap with EABI         |fails to bootstrap with EABI


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


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

* [Bug bootstrap/21751] [csl-arm-branch and HEAD] fails to bootstrap with EABI
  2005-05-25 14:15 [Bug bootstrap/21751] New: [csl-arm-branch] fails to bootstrap with EABI bero at arklinux dot org
  2005-05-25 14:48 ` [Bug bootstrap/21751] " bero at arklinux dot org
  2005-05-26 20:10 ` [Bug bootstrap/21751] [csl-arm-branch and HEAD] " bero at arklinux dot org
@ 2005-05-27 19:35 ` drow at gcc dot gnu dot org
  2005-05-27 21:02 ` bero at arklinux dot org
  2005-05-27 21:10 ` drow at gcc dot gnu dot org
  4 siblings, 0 replies; 8+ messages in thread
From: drow at gcc dot gnu dot org @ 2005-05-27 19:35 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From drow at gcc dot gnu dot org  2005-05-27 19:28 -------
You haven't said how you configured GCC.  I'm guessing you configured for
arm-linux, but with an AAPCS-compatible ABI; you can't do that.  The error isn't
the greatest, but it's hard to guard against all possible misuses of --with options.

The target is arm-none-linux-gnueabi, or arm-none-linuxeabi.

The later error is because your glibc does not include EABI support.  Please see
the libc-alpha list archives for patches, or the source tarballs available from
my company's ARM toolchains for an already-patched version of glibc:
  http://www.codesourcery.com/gnu_toolchains/arm/


-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |drow at gcc dot gnu dot org


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


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

* [Bug bootstrap/21751] [csl-arm-branch and HEAD] fails to bootstrap with EABI
  2005-05-25 14:15 [Bug bootstrap/21751] New: [csl-arm-branch] fails to bootstrap with EABI bero at arklinux dot org
                   ` (2 preceding siblings ...)
  2005-05-27 19:35 ` drow at gcc dot gnu dot org
@ 2005-05-27 21:02 ` bero at arklinux dot org
  2005-05-27 21:10 ` drow at gcc dot gnu dot org
  4 siblings, 0 replies; 8+ messages in thread
From: bero at arklinux dot org @ 2005-05-27 21:02 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From bero at arklinux dot org  2005-05-27 20:57 -------
Yes, configuration was  
  
../confiugre --prefix=/usr --target=armv5tel-ark-linux --with-abi=iwmmxt  
--with-arch=iwmmxt --with-cpu=iwmmxt  
  
Trying with -gnueabi now -- but shouldn't --with-abi=iwmmxt imply that 
automatically? 

-- 


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


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

* [Bug bootstrap/21751] [csl-arm-branch and HEAD] fails to bootstrap with EABI
  2005-05-25 14:15 [Bug bootstrap/21751] New: [csl-arm-branch] fails to bootstrap with EABI bero at arklinux dot org
                   ` (3 preceding siblings ...)
  2005-05-27 21:02 ` bero at arklinux dot org
@ 2005-05-27 21:10 ` drow at gcc dot gnu dot org
  4 siblings, 0 replies; 8+ messages in thread
From: drow at gcc dot gnu dot org @ 2005-05-27 21:10 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From drow at gcc dot gnu dot org  2005-05-27 21:02 -------
Subject: Re:  [csl-arm-branch and HEAD] fails to bootstrap with EABI

On Fri, May 27, 2005 at 08:57:59PM -0000, bero at arklinux dot org wrote:
> Yes, configuration was  
>   
> ../confiugre --prefix=/usr --target=armv5tel-ark-linux --with-abi=iwmmxt  
> --with-arch=iwmmxt --with-cpu=iwmmxt  
>   
> Trying with -gnueabi now -- but shouldn't --with-abi=iwmmxt imply that 
> automatically? 

You still won't be able to build it without the glibc patches...

I don't know if it should or not.



-- 


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


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

* [Bug bootstrap/21751] [csl-arm-branch and HEAD] fails to bootstrap with EABI
       [not found] <bug-21751-5606@http.gcc.gnu.org/bugzilla/>
  2009-04-29 16:22 ` ramana at gcc dot gnu dot org
@ 2009-04-29 16:41 ` drow at gcc dot gnu dot org
  1 sibling, 0 replies; 8+ messages in thread
From: drow at gcc dot gnu dot org @ 2009-04-29 16:41 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #7 from drow at gcc dot gnu dot org  2009-04-29 16:40 -------
GLIBC patches are no longer required and I know folks have built
iwmmxt-targeted ARM Linux toolchains since this was filed.


-- 

drow at gcc dot gnu dot org changed:

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


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


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

* [Bug bootstrap/21751] [csl-arm-branch and HEAD] fails to bootstrap with EABI
       [not found] <bug-21751-5606@http.gcc.gnu.org/bugzilla/>
@ 2009-04-29 16:22 ` ramana at gcc dot gnu dot org
  2009-04-29 16:41 ` drow at gcc dot gnu dot org
  1 sibling, 0 replies; 8+ messages in thread
From: ramana at gcc dot gnu dot org @ 2009-04-29 16:22 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #6 from ramana at gcc dot gnu dot org  2009-04-29 16:22 -------
Is the csl-arm-branch still alive ? Can we clear this one up otherwise?


-- 


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


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

end of thread, other threads:[~2009-04-29 16:41 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2005-05-25 14:15 [Bug bootstrap/21751] New: [csl-arm-branch] fails to bootstrap with EABI bero at arklinux dot org
2005-05-25 14:48 ` [Bug bootstrap/21751] " bero at arklinux dot org
2005-05-26 20:10 ` [Bug bootstrap/21751] [csl-arm-branch and HEAD] " bero at arklinux dot org
2005-05-27 19:35 ` drow at gcc dot gnu dot org
2005-05-27 21:02 ` bero at arklinux dot org
2005-05-27 21:10 ` drow at gcc dot gnu dot org
     [not found] <bug-21751-5606@http.gcc.gnu.org/bugzilla/>
2009-04-29 16:22 ` ramana at gcc dot gnu dot org
2009-04-29 16:41 ` drow 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).