Subject: Could not compile -current
To: None <port-sparc64@netbsd.org>
From: Pierre Pronchery <khorben@defora.org>
List: port-sparc64
Date: 06/04/2007 14:08:55
	Hi port-sparc64@,

compiling -current failed for me yesterday with the following error:

#   compile  libc/memmove.o
/usr/tools/bin/sparc64--netbsd-gcc -O2 -Wall -Wstrict-prototypes
-Wmissing-proto
types -Wpointer-arith -Wno-sign-compare -Wno-traditional -Wreturn-type
-Wswitch
-Wshadow -Wcast-qual -Wwrite-strings -Wextra -Wno-unused-parameter
-std=gnu99  -
Werror  -fstack-protector -Wstack-protector --param ssp-buffer-size=1
-D_LIBC
-DLIBC_SCCS -DSYSLIBC_SCCS -D_REENTRANT -DHESIOD -DINET6 -DNLS -DYP
-I/usr/src/l
ib/libc/include -I/usr/src/lib/libc -DSOFTFLOATSPARC64_FOR_GCC
-I/usr/src/lib/li
bc/arch/sparc64/softfloat -I/usr/src/lib/libc/softfloat
-I/usr/src/lib/libc/sof
tfloat/bits64 -I/usr/src/sys -I/usr/src/lib/libc/compat/stdlib
-I/usr/src/lib/li
bc/compat/../stdlib -I/usr/src/lib/libc/../../common/lib/libc/quad
-I/usr/src/li
b/libc/../../common/lib/libc/string
-I/usr/src/lib/libc/../../common/lib/libc/ar
ch/sparc64/string -D__DBINTERFACE_PRIVATE -DI18NMODULE_MAJOR=4 -DCITRUS
-I/usr/s
rc/libexec/ld.elf_so -I/usr/src/lib/libc/dlfcn -I/usr/src/lib/libc/gdtoa
-DNO_FE
NV_H -I/usr/src/lib/libc/arch/sparc64/gdtoa -DCITRUS_ICONV -DWITH_RUNE
-I/usr/sr
c/lib/libc -DPOSIX_MISTAKE -DCOMPAT__RES -DUSE_POLL -DPORTMAP
-DWIDE_DOUBLE -DAL
L_STATE -DUSG_COMPAT  -D_FORTIFY_SOURCE=2  -nostdinc -isystem
/usr/obj/destdir.s
parc64/usr/include -c
/usr/src/lib/libc/../../common/lib/libc/string/memmove.
c -o memmove.o
In file included from
/usr/src/lib/libc/../../common/lib/libc/string/memmove.c:4
:
/usr/src/lib/libc/../../common/lib/libc/string/bcopy.c:71: error:
expected ')' b
efore numeric constant
/usr/src/lib/libc/../../common/lib/libc/string/bcopy.c:71: error:
expected ')' b
efore '!=' token
/usr/src/lib/libc/../../common/lib/libc/string/bcopy.c:71: error:
expected ')' b
efore '?' token
/usr/src/lib/libc/../../common/lib/libc/string/bcopy.c:80: error:
expected ident
ifier or '(' before '{' token

*** Failed target:  memmove.o
*** Failed command: /usr/tools/bin/sparc64--netbsd-gcc -O2 -Wall
-Wstrict-protot
ypes -Wmissing-prototypes -Wpointer-arith -Wno-sign-compare
-Wno-traditional -Wr
eturn-type -Wswitch -Wshadow -Wcast-qual -Wwrite-strings -Wextra
-Wno-unused-par
ameter -std=gnu99 -Werror -fstack-protector -Wstack-protector --param
ssp-buffer
-size=1 -D_LIBC -DLIBC_SCCS -DSYSLIBC_SCCS -D_REENTRANT -DHESIOD -DINET6
-DNLS -
DYP -I/usr/src/lib/libc/include -I/usr/src/lib/libc
-DSOFTFLOATSPARC64_FOR_GCC -
I/usr/src/lib/libc/arch/sparc64/softfloat -I/usr/src/lib/libc/softfloat
-I/usr/s
rc/lib/libc/softfloat/bits64 -I/usr/src/sys
-I/usr/src/lib/libc/compat/stdlib -I
/usr/src/lib/libc/compat/../stdlib
-I/usr/src/lib/libc/../../common/lib/libc/qua
d -I/usr/src/lib/libc/../../common/lib/libc/string
-I/usr/src/lib/libc/../../com
mon/lib/libc/arch/sparc64/string -D__DBINTERFACE_PRIVATE
-DI18NMODULE_MAJOR=4 -D
CITRUS -I/usr/src/libexec/ld.elf_so -I/usr/src/lib/libc/dlfcn
-I/usr/src/lib/lib
c/gdtoa -DNO_FENV_H -I/usr/src/lib/libc/arch/sparc64/gdtoa
-DCITRUS_ICONV -DWITH
_RUNE -I/usr/src/lib/libc -DPOSIX_MISTAKE -DCOMPAT__RES -DUSE_POLL
-DPORTMAP -DW
IDE_DOUBLE -DALL_STATE -DUSG_COMPAT -D_FORTIFY_SOURCE=2 -nostdinc
-isystem /usr/
obj/destdir.sparc64/usr/include -c
/usr/src/lib/libc/../../common/lib/libc/strin
g/memmove.c -o memmove.o
*** Error code 1

Stop.
nbmake: stopped in /usr/src/lib/libc

*** Failed target:  dependall
*** Failed command: cd /usr/src/lib/libc; /usr/tools/bin/nbmake realall
*** Error code 1

Stop.
nbmake: stopped in /usr/src/lib/libc
*** Failed target:  do-lib-libc
*** Failed command: _makedirtarget() { dir="$1"; shift; target="$1";
shift; case
 "${dir}" in /*) this="${dir}/"; real="${dir}" ;; .) this="";
real="/usr/src" ;;
 *) this="${dir}/"; real="/usr/src/${dir}" ;; esac; show=${this:-.};
echo "${tar
get} ===> ${show%/}${1:+ (with: $@)}"; cd "${real}" &&
/usr/tools/bin/nbmake _TH
ISDIR_="${this}" "$@" ${target}; }; _makedirtarget lib/libc dependall
*** Error code 1

Stop.
nbmake: stopped in /usr/src

*** Failed target:  build
*** Failed command: _makedirtarget() { dir="$1"; shift; target="$1";
shift; case
 "${dir}" in /*) this="${dir}/"; real="${dir}" ;; .) this="";
real="/usr/src" ;;
 *) this="${dir}/"; real="/usr/src/${dir}" ;; esac; show=${this:-.};
echo "${tar
get} ===> ${show%/}${1:+ (with: $@)}"; cd "${real}" &&
/usr/tools/bin/nbmake _TH
ISDIR_="${this}" "$@" ${target}; }; _makedirtarget . do-lib-libc
*** Error code 1

Stop.
nbmake: stopped in /usr/src

*** Failed target:  distribution
*** Failed command: _makedirtarget() { dir="$1"; shift; target="$1";
shift; case
 "${dir}" in /*) this="${dir}/"; real="${dir}" ;; .) this="";
real="/usr/src" ;;
 *) this="${dir}/"; real="/usr/src/${dir}" ;; esac; show=${this:-.};
echo "${tar
get} ===> ${show%/}${1:+ (with: $@)}"; cd "${real}" &&
/usr/tools/bin/nbmake _TH
ISDIR_="${this}" "$@" ${target}; }; _makedirtarget . build NOPOSTINSTALL=1
*** Error code 1

Stop.
nbmake: stopped in /usr/src

ERROR: Failed to make distribution
*** BUILD ABORTED ***


HTH,
-- 
khorben