public inbox for glibc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug ports/12097] New: glibc is unbuildable on an EABI ARMv4 system.
@ 2010-10-05 18:00 filip.zyzniewski at gmail dot com
  2010-10-05 18:12 ` [Bug ports/12097] " filip.zyzniewski at gmail dot com
                   ` (9 more replies)
  0 siblings, 10 replies; 11+ messages in thread
From: filip.zyzniewski at gmail dot com @ 2010-10-05 18:00 UTC (permalink / raw)
  To: glibc-bugs

http://sourceware.org/bugzilla/show_bug.cgi?id=12097

           Summary: glibc is unbuildable on an EABI ARMv4 system.
           Product: glibc
           Version: 2.12
            Status: UNCONFIRMED
          Severity: critical
          Priority: P2
         Component: ports
        AssignedTo: roland@gnu.org
        ReportedBy: filip.zyzniewski@gmail.com


I am one of the developers of jlime (http://www.jlime.org). I was
trying to build an userland for the HP Jornada 720 (SA-1110 based
machine) today and I have noticed that it won't build. It fails when
building eglibc with the following error message:

=========================================================
arm-oe-linux-gnueabi-gcc -march=armv4 -mtune=strongarm
-mthumb-interwork -mno-thumb
../ports/sysdeps/unix/sysv/linux/arm/eabi/libc-do-syscall.S -c
-I../include
-I/home/users/filip.zyzniewski/build/tmp/work/armv4-oe-linux-gnueabi/eglibc-initial-2.12-r14.5+svnr11306/build-arm-oe-linux-gnueabi/csu
@/home/users/filip.zyzniewski/build/tmp/work/armv4-oe-linux-gnueabi/eglibc-initial-2.12-r14.5+svnr11306/build-arm-oe-linux-gnueabi/includes
-I.. -I../libio -I. -D_LIBC_REENTRANT -include
../include/libc-symbols.h       -DHAVE_INITFINI -DASSEMBLER
-I/home/users/filip.zyzniewski/build/tmp/work/armv4-oe-linux-gnueabi/eglibc-initial-2.12-r14.5+svnr11306/build-arm-oe-linux-gnueabi/csu/.
 -Wa,--noexecstack   -o
/home/users/filip.zyzniewski/build/tmp/work/armv4-oe-linux-gnueabi/eglibc-initial-2.12-r14.5+svnr11306/build-arm-oe-linux-gnueabi/csu/libc-do-syscall.o
-MD -MP -MF
/home/users/filip.zyzniewski/build/tmp/work/armv4-oe-linux-gnueabi/eglibc-initial-2.12-r14.5+svnr11306/build-arm-oe-linux-gnueabi/csu/libc-do-syscall.o.dt
-MT
/home/users/filip.zyzniewski/build/tmp/work/armv4-oe-linux-gnueabi/eglibc-initial-2.12-r14.5+svnr11306/build-arm-oe-linux-gnueabi/csu/libc-do-syscall.o
../ports/sysdeps/unix/sysv/linux/arm/eabi/libc-do-syscall.S: Assembler
messages:
../ports/sysdeps/unix/sysv/linux/arm/eabi/libc-do-syscall.S:28: Error:
selected processor does not support THUMB opcodes
../ports/sysdeps/unix/sysv/linux/arm/eabi/libc-do-syscall.S:34: Error:
selected processor does not support `push {r7,lr}'
../ports/sysdeps/unix/sysv/linux/arm/eabi/libc-do-syscall.S:39: Error:
selected processor does not support `mov r7,ip'
../ports/sysdeps/unix/sysv/linux/arm/eabi/libc-do-syscall.S:40: Error:
selected processor does not support `swi 0x0'
../ports/sysdeps/unix/sysv/linux/arm/eabi/libc-do-syscall.S:41: Error:
selected processor does not support `pop {r7,pc}'
make[2]: ***
[/home/users/filip.zyzniewski/build/tmp/work/armv4-oe-linux-gnueabi/eglibc-initial-2.12-r14.5+svnr11306/build-arm-oe-linux-gnueabi/csu/libc-do-syscall.o]
Error 1
=========================================================

gcc-4.4.2 and binutils-2.18 (or 2.20, I'm not sure) are capable of
creating working EABI executables for ARMv4 processors. THUMB mode
instructions in the file above cause (e)glibc to be unbuildable in
this configuration.
I've tracked this file down
http://repo.or.cz/w/glibc-ports.git/commitdiff/2dcd7ed8fd149a5aefc8c7a7ff041ff389348b4f
and here I am :).

-- 
Configure bugmail: http://sourceware.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.


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

* [Bug ports/12097] glibc is unbuildable on an EABI ARMv4 system.
  2010-10-05 18:00 [Bug ports/12097] New: glibc is unbuildable on an EABI ARMv4 system filip.zyzniewski at gmail dot com
@ 2010-10-05 18:12 ` filip.zyzniewski at gmail dot com
  2010-10-05 20:04 ` joseph at codesourcery dot com
                   ` (8 subsequent siblings)
  9 siblings, 0 replies; 11+ messages in thread
From: filip.zyzniewski at gmail dot com @ 2010-10-05 18:12 UTC (permalink / raw)
  To: glibc-bugs

http://sourceware.org/bugzilla/show_bug.cgi?id=12097

Filip Zyzniewski <filip.zyzniewski at gmail dot com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Target|                            |armv4-oe-linux-gnueabi
               Host|                            |armv4-oe-linux-gnueabi
              Build|                            |x86_64-linux

-- 
Configure bugmail: http://sourceware.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.


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

* [Bug ports/12097] glibc is unbuildable on an EABI ARMv4 system.
  2010-10-05 18:00 [Bug ports/12097] New: glibc is unbuildable on an EABI ARMv4 system filip.zyzniewski at gmail dot com
  2010-10-05 18:12 ` [Bug ports/12097] " filip.zyzniewski at gmail dot com
@ 2010-10-05 20:04 ` joseph at codesourcery dot com
  2010-10-05 20:24 ` raj.khem at gmail dot com
                   ` (7 subsequent siblings)
  9 siblings, 0 replies; 11+ messages in thread
From: joseph at codesourcery dot com @ 2010-10-05 20:04 UTC (permalink / raw)
  To: glibc-bugs

http://sourceware.org/bugzilla/show_bug.cgi?id=12097

--- Comment #1 from joseph at codesourcery dot com <joseph at codesourcery dot com> 2010-10-05 20:04:19 UTC ---
I think it should be OK to condition the entire contents of 
libc-do-syscall.S on #ifdef __thumb__; this hidden function is only used 
when building glibc as Thumb.

-- 
Configure bugmail: http://sourceware.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.


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

* [Bug ports/12097] glibc is unbuildable on an EABI ARMv4 system.
  2010-10-05 18:00 [Bug ports/12097] New: glibc is unbuildable on an EABI ARMv4 system filip.zyzniewski at gmail dot com
  2010-10-05 18:12 ` [Bug ports/12097] " filip.zyzniewski at gmail dot com
  2010-10-05 20:04 ` joseph at codesourcery dot com
@ 2010-10-05 20:24 ` raj.khem at gmail dot com
  2010-10-05 20:29 ` raj.khem at gmail dot com
                   ` (6 subsequent siblings)
  9 siblings, 0 replies; 11+ messages in thread
From: raj.khem at gmail dot com @ 2010-10-05 20:24 UTC (permalink / raw)
  To: glibc-bugs

http://sourceware.org/bugzilla/show_bug.cgi?id=12097

--- Comment #2 from Khem Raj <raj.khem at gmail dot com> 2010-10-05 20:24:01 UTC ---
Created attachment 5038
  --> http://sourceware.org/bugzilla/attachment.cgi?id=5038
fix

please try this untested patch.

-- 
Configure bugmail: http://sourceware.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.


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

* [Bug ports/12097] glibc is unbuildable on an EABI ARMv4 system.
  2010-10-05 18:00 [Bug ports/12097] New: glibc is unbuildable on an EABI ARMv4 system filip.zyzniewski at gmail dot com
                   ` (2 preceding siblings ...)
  2010-10-05 20:24 ` raj.khem at gmail dot com
@ 2010-10-05 20:29 ` raj.khem at gmail dot com
  2010-11-03 22:03 ` bryanhundven at gmail dot com
                   ` (5 subsequent siblings)
  9 siblings, 0 replies; 11+ messages in thread
From: raj.khem at gmail dot com @ 2010-10-05 20:29 UTC (permalink / raw)
  To: glibc-bugs

http://sourceware.org/bugzilla/show_bug.cgi?id=12097

Khem Raj <raj.khem at gmail dot com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |raj.khem at gmail dot com

--- Comment #3 from Khem Raj <raj.khem at gmail dot com> 2010-10-05 20:29:21 UTC ---
(In reply to comment #1)
> I think it should be OK to condition the entire contents of 
> libc-do-syscall.S on #ifdef __thumb__; this hidden function is only used 
> when building glibc as Thumb.

heh exactly. you comments beat my patch :)

-- 
Configure bugmail: http://sourceware.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.


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

* [Bug ports/12097] glibc is unbuildable on an EABI ARMv4 system.
  2010-10-05 18:00 [Bug ports/12097] New: glibc is unbuildable on an EABI ARMv4 system filip.zyzniewski at gmail dot com
                   ` (3 preceding siblings ...)
  2010-10-05 20:29 ` raj.khem at gmail dot com
@ 2010-11-03 22:03 ` bryanhundven at gmail dot com
  2010-11-03 22:34 ` bryanhundven at gmail dot com
                   ` (4 subsequent siblings)
  9 siblings, 0 replies; 11+ messages in thread
From: bryanhundven at gmail dot com @ 2010-11-03 22:03 UTC (permalink / raw)
  To: glibc-bugs

http://sourceware.org/bugzilla/show_bug.cgi?id=12097

Bryan Hundven <bryanhundven at gmail dot com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |bryanhundven at gmail dot
                   |                            |com

--- Comment #4 from Bryan Hundven <bryanhundven at gmail dot com> 2010-11-03 22:03:27 UTC ---
I get the same problem with:
armeb-unknown-linux-gnueabi -march=armv5 -mtune=xscale -mno-thumb

And applying the above patch works for me.

-- 
Configure bugmail: http://sourceware.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.


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

* [Bug ports/12097] glibc is unbuildable on an EABI ARMv4 system.
  2010-10-05 18:00 [Bug ports/12097] New: glibc is unbuildable on an EABI ARMv4 system filip.zyzniewski at gmail dot com
                   ` (4 preceding siblings ...)
  2010-11-03 22:03 ` bryanhundven at gmail dot com
@ 2010-11-03 22:34 ` bryanhundven at gmail dot com
  2010-11-03 22:39 ` bryanhundven at gmail dot com
                   ` (3 subsequent siblings)
  9 siblings, 0 replies; 11+ messages in thread
From: bryanhundven at gmail dot com @ 2010-11-03 22:34 UTC (permalink / raw)
  To: glibc-bugs

http://sourceware.org/bugzilla/show_bug.cgi?id=12097

--- Comment #5 from Bryan Hundven <bryanhundven at gmail dot com> 2010-11-03 22:34:35 UTC ---
Ignore my previous note.

-march=armv5 -mtune=xscale

produces bad binaries for xscale.

./hello
Illegal instruction

building with -mcpu=xscale (no -march or -mtune) does not need this patch.

-- 
Configure bugmail: http://sourceware.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.


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

* [Bug ports/12097] glibc is unbuildable on an EABI ARMv4 system.
  2010-10-05 18:00 [Bug ports/12097] New: glibc is unbuildable on an EABI ARMv4 system filip.zyzniewski at gmail dot com
                   ` (5 preceding siblings ...)
  2010-11-03 22:34 ` bryanhundven at gmail dot com
@ 2010-11-03 22:39 ` bryanhundven at gmail dot com
  2011-08-03 12:09 ` dbaryshkov at gmail dot com
                   ` (2 subsequent siblings)
  9 siblings, 0 replies; 11+ messages in thread
From: bryanhundven at gmail dot com @ 2010-11-03 22:39 UTC (permalink / raw)
  To: glibc-bugs

http://sourceware.org/bugzilla/show_bug.cgi?id=12097

Bryan Hundven <bryanhundven at gmail dot com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|bryanhundven at gmail dot   |
                   |com                         |

-- 
Configure bugmail: http://sourceware.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.


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

* [Bug ports/12097] glibc is unbuildable on an EABI ARMv4 system.
  2010-10-05 18:00 [Bug ports/12097] New: glibc is unbuildable on an EABI ARMv4 system filip.zyzniewski at gmail dot com
                   ` (6 preceding siblings ...)
  2010-11-03 22:39 ` bryanhundven at gmail dot com
@ 2011-08-03 12:09 ` dbaryshkov at gmail dot com
  2012-02-15 22:30 ` jsm28 at gcc dot gnu.org
  2014-06-30  7:53 ` fweimer at redhat dot com
  9 siblings, 0 replies; 11+ messages in thread
From: dbaryshkov at gmail dot com @ 2011-08-03 12:09 UTC (permalink / raw)
  To: glibc-bugs

http://sourceware.org/bugzilla/show_bug.cgi?id=12097

Dmitry Eremin-Solenikov <dbaryshkov at gmail dot com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |bryanhundven at gmail dot
                   |                            |com, dbaryshkov at gmail
                   |                            |dot com

--- Comment #6 from Dmitry Eremin-Solenikov <dbaryshkov at gmail dot com> 2011-08-03 12:08:16 UTC ---
Any progress on this bug?

-- 
Configure bugmail: http://sourceware.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.


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

* [Bug ports/12097] glibc is unbuildable on an EABI ARMv4 system.
  2010-10-05 18:00 [Bug ports/12097] New: glibc is unbuildable on an EABI ARMv4 system filip.zyzniewski at gmail dot com
                   ` (7 preceding siblings ...)
  2011-08-03 12:09 ` dbaryshkov at gmail dot com
@ 2012-02-15 22:30 ` jsm28 at gcc dot gnu.org
  2014-06-30  7:53 ` fweimer at redhat dot com
  9 siblings, 0 replies; 11+ messages in thread
From: jsm28 at gcc dot gnu.org @ 2012-02-15 22:30 UTC (permalink / raw)
  To: glibc-bugs

http://sourceware.org/bugzilla/show_bug.cgi?id=12097

Joseph Myers <jsm28 at gcc dot gnu.org> changed:

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

--- Comment #7 from Joseph Myers <jsm28 at gcc dot gnu.org> 2012-02-15 22:10:33 UTC ---
Thanks, I've committed this patch.

-- 
Configure bugmail: http://sourceware.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.


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

* [Bug ports/12097] glibc is unbuildable on an EABI ARMv4 system.
  2010-10-05 18:00 [Bug ports/12097] New: glibc is unbuildable on an EABI ARMv4 system filip.zyzniewski at gmail dot com
                   ` (8 preceding siblings ...)
  2012-02-15 22:30 ` jsm28 at gcc dot gnu.org
@ 2014-06-30  7:53 ` fweimer at redhat dot com
  9 siblings, 0 replies; 11+ messages in thread
From: fweimer at redhat dot com @ 2014-06-30  7:53 UTC (permalink / raw)
  To: glibc-bugs

https://sourceware.org/bugzilla/show_bug.cgi?id=12097

Florian Weimer <fweimer at redhat dot com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
              Flags|                            |security-

-- 
You are receiving this mail because:
You are on the CC list for the bug.


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

end of thread, other threads:[~2014-06-30  7:53 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2010-10-05 18:00 [Bug ports/12097] New: glibc is unbuildable on an EABI ARMv4 system filip.zyzniewski at gmail dot com
2010-10-05 18:12 ` [Bug ports/12097] " filip.zyzniewski at gmail dot com
2010-10-05 20:04 ` joseph at codesourcery dot com
2010-10-05 20:24 ` raj.khem at gmail dot com
2010-10-05 20:29 ` raj.khem at gmail dot com
2010-11-03 22:03 ` bryanhundven at gmail dot com
2010-11-03 22:34 ` bryanhundven at gmail dot com
2010-11-03 22:39 ` bryanhundven at gmail dot com
2011-08-03 12:09 ` dbaryshkov at gmail dot com
2012-02-15 22:30 ` jsm28 at gcc dot gnu.org
2014-06-30  7:53 ` fweimer at redhat dot com

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).