Bug 5462 - glibc-2.7 fails to build for sh4 targets.
Summary: glibc-2.7 fails to build for sh4 targets.
Status: RESOLVED DUPLICATE of bug 333
Alias: None
Product: glibc
Classification: Unclassified
Component: libc (show other bugs)
Version: unspecified
: P1 normal
Target Milestone: ---
Assignee: Ulrich Drepper
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-12-09 15:15 UTC by Arthur Loiret
Modified: 2014-07-03 11:52 UTC (History)
1 user (show)

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Arthur Loiret 2007-12-09 15:15:03 UTC
Here is the error:

make[2]: Entering directory `/home/arthur/glibc-2.7/glibc-2.7/misc'
sh4-linux-gnu-gcc ../sysdeps/unix/sysv/linux/ptrace.c -c -std=gnu99
-fgnu89-inline -O2 -Wall -Winline -Wwrite-strings -fmerge-all-constants -g
-Wstrict-prototypes      -I../include -I/home/arthur/glibc-2.7/build-sh4/misc
-I/home/arthur/glibc-2.7/build-sh4 -I../sysdeps/sh/elf
-I../nptl/sysdeps/unix/sysv/linux/sh/sh4 -I../sysdeps/unix/sysv/linux/sh/sh4
-I../nptl/sysdeps/unix/sysv/linux/sh -I../sysdeps/unix/sysv/linux/sh
-I../nptl/sysdeps/unix/sysv/linux -I../nptl/sysdeps/pthread -I../sysdeps/pthread
-I../sysdeps/unix/sysv/linux -I../sysdeps/gnu -I../sysdeps/unix/common
-I../sysdeps/unix/mman -I../sysdeps/unix/inet -I../nptl/sysdeps/unix/sysv
-I../sysdeps/unix/sysv -I../sysdeps/unix/sh -I../nptl/sysdeps/unix
-I../sysdeps/unix -I../sysdeps/posix -I../sysdeps/sh/sh4/fpu -I../sysdeps/sh/sh4
-I../nptl/sysdeps/sh -I../sysdeps/sh -I../sysdeps/wordsize-32
-I../sysdeps/ieee754/flt-32 -I../sysdeps/ieee754/dbl-64 -I../sysdeps/ieee754
-I../sysdeps/generic/elf -I../sysdeps/generic -I../nptl  -I.. -I../libio -I. 
-D_LIBC_REENTRANT -include ../include/libc-symbols.h       -o
/home/arthur/glibc-2.7/build-sh4/misc/ptrace.o -MD -MP -MF
/home/arthur/glibc-2.7/build-sh4/misc/ptrace.o.dt -MT
/home/arthur/glibc-2.7/build-sh4/misc/ptrace.o
In file included from ../sysdeps/unix/sysv/linux/ptrace.c:21:
../sysdeps/unix/sysv/linux/sys/ptrace.h:135: error: expected identifier before
numeric constant
make[2]: *** [/home/arthur/glibc-2.7/build-sh4/misc/ptrace.o] Error 1
make[2]: Leaving directory `/home/arthur/glibc-2.7/glibc-2.7/misc'
make[1]: *** [misc/subdir_lib] Error 2
make[1]: Leaving directory `/home/arthur/glibc-2.7/glibc-2.7'
make: *** [all] Error 2


Used glibc-2.7.tar.bz2 tarball from ftp.gnu.org.


$ sh4-linux-gnu-gcc --version
sh4-linux-gnu-gcc (GCC) 4.2.3 20071014 (prerelease) (Debian 4.2.2-3)


Thanks.
Comment 1 Ulrich Drepper 2007-12-10 02:25:29 UTC

*** This bug has been marked as a duplicate of 333 ***