This is the mail archive of the
glibc-bugs@sourceware.org
mailing list for the glibc project.
[Bug libc/6988] New: glibc compile failure with kernel-header >= 2.6.25 on sh architecture
- From: "masaki dot chikama at gmail dot com" <sourceware-bugzilla at sourceware dot org>
- To: glibc-bugs at sources dot redhat dot com
- Date: 27 Oct 2008 04:17:09 -0000
- Subject: [Bug libc/6988] New: glibc compile failure with kernel-header >= 2.6.25 on sh architecture
- Reply-to: sourceware-bugzilla at sourceware dot org
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.