Subject: misc/37073: libc fails to build
To: None <misc-bug-people@netbsd.org, gnats-admin@netbsd.org,>
From: bharder <bharder@methodlogic.net>
List: netbsd-bugs
Date: 10/07/2007 21:00:01
>Number: 37073
>Category: misc
>Synopsis: NetBSD 4RC2 fails to build on libc
>Confidential: no
>Severity: serious
>Priority: high
>Responsible: misc-bug-people
>State: open
>Class: sw-bug
>Submitter-Id: net
>Arrival-Date: Sun Oct 07 21:00:01 +0000 2007
>Originator: =09
>Release: NetBSD 4.0_RC2
>Organization:
Method Digital Logic (http://www.methodlogic.net)
>Environment:
System: NetBSD manchester 4.0_RC2 NetBSD 4.0_RC2 (manchester) #56: Sat Oct =
6 08:06:13 PDT 2007 root@manchester:/usr/obj/sys/arch/i386/compile/manchest=
er i386
Architecture: i386
Machine: i386
>Description:
(Source is up-to-date as of Sun Oct 7 13:50:15 PDT 2007)
libc fails to build with ./build.sh distribution:
# compile libc/arc4random.o
/usr/src/obj/tooldir.NetBSD-4.0_RC2-i386/bin/i386--netbsdelf-gcc -O2 -mtune=
=3Dpentium-m -Wall -Wstrict-prototypes -Wmissing-prototypes -Wpointer-arith=
-Wno-sign-compare -Wno-traditional -Wreturn-type -Wswitch -Wshadow -Wcast-=
qual -Wwrite-strings -Wextra -Wno-unused-parameter -std=3Dgnu99 -Werror -=
fstack-protector -Wstack-protector --param ssp-buffer-size=3D1 -D_LIBC -D=
LIBC_SCCS -DSYSLIBC_SCCS -D_REENTRANT -DHESIOD -DINET6 -DNLS -DYP -I/usr/sr=
c/lib/libc/include -I/usr/src/lib/libc -I/usr/src/sys -I/usr/src/lib/libc/c=
ompat/stdlib -I/usr/src/lib/libc/compat/../stdlib -I/usr/src/lib/libc/../..=
/common/lib/libc/quad -I/usr/src/lib/libc/../../common/lib/libc/string -I/u=
sr/src/lib/libc/../../common/lib/libc/arch/i386/string -D__DBINTERFACE_PRIV=
ATE -DI18NMODULE_MAJOR=3D4 -DCITRUS -I/usr/src/libexec/ld.elf_so -I/usr/src=
/lib/libc/dlfcn -I/usr/src/lib/libc/gdtoa -DNO_FENV_H -I/usr/src/lib/libc/a=
rch/i386/gdtoa -DCITRUS_ICONV -DWITH_RUNE -I/usr/src/lib/libc -DPOSIX_MISTA=
KE -DCOMPAT__RES -DUSE_POLL -DPORTMAP -DWIDE_DOUBLE -DALL_STATE -DUSG_COMPA=
T -D_FORTIFY_SOURCE=3D2 -nostdinc -isystem /usr/src/obj/destdir.i386/usr/=
include -c /usr/src/lib/libc/gen/arc4random.c -o arc4random.o
cc1: warnings being treated as errors
/usr/src/lib/libc/gen/arc4random.c: In function 'arc4_stir':
/usr/src/lib/libc/gen/arc4random.c:107: warning: implicit declaration of fu=
nction '___read_alias'
*** Failed target: arc4random.o
*** Failed command: /usr/src/obj/tooldir.NetBSD-4.0_RC2-i386/bin/i386--netb=
sdelf-gcc -O2 -mtune=3Dpentium-m -Wall -Wstrict-prototypes -Wmissing-protot=
ypes -Wpointer-arith -Wno-sign-compare -Wno-traditional -Wreturn-type -Wswi=
tch -Wshadow -Wcast-qual -Wwrite-strings -Wextra -Wno-unused-parameter -std=
=3Dgnu99 -Werror -fstack-protector -Wstack-protector --param ssp-buffer-siz=
e=3D1 -D_LIBC -DLIBC_SCCS -DSYSLIBC_SCCS -D_REENTRANT -DHESIOD -DINET6 -DNL=
S -DYP -I/usr/src/lib/libc/include -I/usr/src/lib/libc -I/usr/src/sys -I/us=
r/src/lib/libc/compat/stdlib -I/usr/src/lib/libc/compat/../stdlib -I/usr/sr=
c/lib/libc/../../common/lib/libc/quad -I/usr/src/lib/libc/../../common/lib/=
libc/string -I/usr/src/lib/libc/../../common/lib/libc/arch/i386/string -D__=
DBINTERFACE_PRIVATE -DI18NMODULE_MAJOR=3D4 -DCITRUS -I/usr/src/libexec/ld.e=
lf_so -I/usr/src/lib/libc/dlfcn -I/usr/src/lib/libc/gdtoa -DNO_FENV_H -I/us=
r/src/lib/libc/arch/i386/gdtoa -DCITRUS_ICONV -DWITH_RUNE -I/usr/src/lib/li=
bc -DPOSIX_MISTAKE -DCOMPAT__RES -DUSE_POLL -DPORTMAP -DWIDE_DOUBLE -DALL_S=
TATE -DUSG_COMPAT -D_FORTIFY_SOURCE=3D2 -nostdinc -isystem /usr/src/obj/des=
tdir.i386/usr/include -c /usr/src/lib/libc/gen/arc4random.c -o arc4random.o
*** Error code 1
Stop.
nbmake: stopped in /usr/src/lib/libc
*** Failed target: dependall
*** Failed command: cd /usr/src/lib/libc; /usr/src/obj/tooldir.NetBSD-4.0_R=
C2-i386/bin/nbmake realall
*** Error code 1
Stop.
[etc]
>How-To-Repeat:
cd /usr/src; ./build.sh distribution
>Fix: