Bug 6988 - glibc compile failure with kernel-header >= 2.6.25 on sh architecture
Summary: glibc compile failure with kernel-header >= 2.6.25 on sh architecture
Status: RESOLVED FIXED
Alias: None
Product: glibc
Classification: Unclassified
Component: libc (show other bugs)
Version: 2.8
: P2 normal
Target Milestone: ---
Assignee: Ulrich Drepper
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-10-27 04:17 UTC by CHIKAMA Masaki
Modified: 2014-07-02 06:03 UTC (History)
2 users (show)

See Also:
Host: sh4-redhat-linux
Target: sh4-redhat-linux
Build: sh4-redhat-linux
Last reconfirmed:
fweimer: security-


Attachments
glibc-2.8-shasm.patch (842 bytes, patch)
2008-10-27 04:18 UTC, CHIKAMA Masaki
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description CHIKAMA Masaki 2008-10-27 04:17:08 UTC
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'
Comment 1 CHIKAMA Masaki 2008-10-27 04:18:16 UTC
Created attachment 3027 [details]
glibc-2.8-shasm.patch
Comment 3 Petr Baudis 2010-06-01 02:21:16 UTC
A different but similar patch has been checked in on 2009-02-26.