public inbox for glibc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug libc/6988] New: glibc compile failure with kernel-header >= 2.6.25 on sh architecture
@ 2008-10-27  4:18 masaki dot chikama at gmail dot com
  2008-10-27  4:19 ` [Bug libc/6988] " masaki dot chikama at gmail dot com
                   ` (2 more replies)
  0 siblings, 3 replies; 4+ messages in thread
From: masaki dot chikama at gmail dot com @ 2008-10-27  4:18 UTC (permalink / raw)
  To: glibc-bugs

Linux kernel >= 2.6.25 doesn't install asm/elf.h and asm/user.h
at make headers_install process.
This causes a glibc compile failure on sh architecture.
A proposed patch importing from kernel header is attached.

Here is build error log.

In file included from ../sysdeps/unix/sysv/linux/sh/sys/procfs.h:31,
                 from ../nptl/../nptl_db/thread_db.h:29,
                 from ../nptl/descr.h:33,
                 from ../nptl/sysdeps/sh/tls.h:87,
                 from ../include/tls.h:6,
                 from ../sysdeps/unix/sysv/linux/sh/sysdep.h:27,
                 from ../sysdeps/unix/sysv/linux/sh/sh4/sysdep.h:4,
                 from <stdin>:1:
../sysdeps/unix/sysv/linux/sh/sys/user.h:24:22: error: asm/user.h: No such file 
or directory
In file included from ../nptl/../nptl_db/thread_db.h:29,
                 from ../nptl/descr.h:33,
                 from ../nptl/sysdeps/sh/tls.h:87,
                 from ../include/tls.h:6,
                 from ../sysdeps/unix/sysv/linux/sh/sysdep.h:27,
                 from ../sysdeps/unix/sysv/linux/sh/sh4/sysdep.h:4,
                 from <stdin>:1:
../sysdeps/unix/sysv/linux/sh/sys/procfs.h:32:21: error: asm/elf.h: No such
file
 or directory
In file included from ../nptl/../nptl_db/thread_db.h:29,
                 from ../nptl/descr.h:33,
                 from ../nptl/sysdeps/sh/tls.h:87,
                 from ../include/tls.h:6,
                 from ../sysdeps/unix/sysv/linux/sh/sysdep.h:27,
                 from ../sysdeps/unix/sysv/linux/sh/sh4/sysdep.h:4,
                 from <stdin>:1:
../sysdeps/unix/sysv/linux/sh/sys/procfs.h:76: error: expected
specifier-qualifier-list before 'elf_gregset_t'
../sysdeps/unix/sysv/linux/sh/sys/procfs.h:102: error: expected '=', ',', ';',
'asm' or '__attribute__' before 'prgregset_t'
../sysdeps/unix/sysv/linux/sh/sys/procfs.h:103: error: expected '=', ',', ';',
'asm' or '__attribute__' before 'prfpregset_t'
In file included from ../nptl/descr.h:33,
                 from ../nptl/sysdeps/sh/tls.h:87,
                 from ../include/tls.h:6,
                 from ../sysdeps/unix/sysv/linux/sh/sysdep.h:27,
                 from ../sysdeps/unix/sysv/linux/sh/sh4/sysdep.h:4,
                 from <stdin>:1:
../nptl/../nptl_db/thread_db.h:383: error: expected declaration specifiers or
'...' before 'prfpregset_t'
../nptl/../nptl_db/thread_db.h:387: error: expected declaration specifiers or
'...' before 'prgregset_t'
../nptl/../nptl_db/thread_db.h:397: warning: type defaults to 'int' in
declaration of 'prfpregset_t'
../nptl/../nptl_db/thread_db.h:397: error: expected ';', ',' or ')' before '*'
token
../nptl/../nptl_db/thread_db.h:401: error: expected declaration specifiers or
'...' before 'prgregset_t'
make[2]: ***
[/builddir/build/BUILD/glibc-20080828T1623/build-sh4-linuxnptl/tcb-offsets.h]
Error 1
make[2]: Leaving directory `/builddir/build/BUILD/glibc-20080828T1623/csu'

-- 
           Summary: glibc compile failure with kernel-header >= 2.6.25 on sh
                    architecture
           Product: glibc
           Version: 2.8
            Status: NEW
          Severity: normal
          Priority: P2
         Component: libc
        AssignedTo: drepper at redhat dot com
        ReportedBy: masaki dot chikama at gmail dot com
                CC: glibc-bugs at sources dot redhat dot com
 GCC build triplet: sh4-redhat-linux
  GCC host triplet: sh4-redhat-linux
GCC target triplet: sh4-redhat-linux


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

------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.


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

* [Bug libc/6988] glibc compile failure with kernel-header >= 2.6.25 on sh architecture
  2008-10-27  4:18 [Bug libc/6988] New: glibc compile failure with kernel-header >= 2.6.25 on sh architecture masaki dot chikama at gmail dot com
@ 2008-10-27  4:19 ` masaki dot chikama at gmail dot com
  2008-12-27  3:17 ` vapier at gentoo dot org
  2010-06-01  2:21 ` pasky at suse dot cz
  2 siblings, 0 replies; 4+ messages in thread
From: masaki dot chikama at gmail dot com @ 2008-10-27  4:19 UTC (permalink / raw)
  To: glibc-bugs


------- Additional Comments From masaki dot chikama at gmail dot com  2008-10-27 04:18 -------
Created an attachment (id=3027)
 --> (http://sourceware.org/bugzilla/attachment.cgi?id=3027&action=view)
glibc-2.8-shasm.patch


-- 


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

------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.


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

* [Bug libc/6988] glibc compile failure with kernel-header >= 2.6.25 on sh architecture
  2008-10-27  4:18 [Bug libc/6988] New: glibc compile failure with kernel-header >= 2.6.25 on sh architecture masaki dot chikama at gmail dot com
  2008-10-27  4:19 ` [Bug libc/6988] " masaki dot chikama at gmail dot com
@ 2008-12-27  3:17 ` vapier at gentoo dot org
  2010-06-01  2:21 ` pasky at suse dot cz
  2 siblings, 0 replies; 4+ messages in thread
From: vapier at gentoo dot org @ 2008-12-27  3:17 UTC (permalink / raw)
  To: glibc-bugs


------- Additional Comments From vapier at gentoo dot org  2008-12-27 03:15 -------
i think you're missing unistd.h include as well

http://sources.gentoo.org/gentoo/src/patchsets/glibc/2.9/6415_all_sh-glibc-2.5-no-asm-user-header.patch
http://sources.gentoo.org/gentoo/src/patchsets/glibc/2.9/6416_all_sh-glibc-2.5-no-asm-elf-header.patch

-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |toolchain at gentoo dot org


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

------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.


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

* [Bug libc/6988] glibc compile failure with kernel-header >= 2.6.25 on sh architecture
  2008-10-27  4:18 [Bug libc/6988] New: glibc compile failure with kernel-header >= 2.6.25 on sh architecture masaki dot chikama at gmail dot com
  2008-10-27  4:19 ` [Bug libc/6988] " masaki dot chikama at gmail dot com
  2008-12-27  3:17 ` vapier at gentoo dot org
@ 2010-06-01  2:21 ` pasky at suse dot cz
  2 siblings, 0 replies; 4+ messages in thread
From: pasky at suse dot cz @ 2010-06-01  2:21 UTC (permalink / raw)
  To: glibc-bugs


------- Additional Comments From pasky at suse dot cz  2010-06-01 02:21 -------
A different but similar patch has been checked in on 2009-02-26.

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


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

------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.


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

end of thread, other threads:[~2010-06-01  2:21 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2008-10-27  4:18 [Bug libc/6988] New: glibc compile failure with kernel-header >= 2.6.25 on sh architecture masaki dot chikama at gmail dot com
2008-10-27  4:19 ` [Bug libc/6988] " masaki dot chikama at gmail dot com
2008-12-27  3:17 ` vapier at gentoo dot org
2010-06-01  2:21 ` pasky at suse dot cz

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