On Sat, 12 Nov 2016, Paul Goyette wrote:
I was looking into some other (irrelevant) issue, and wanted to try and
build a 6-0 release.
Using the command
./build.sh -T /build/netbsd-6-0/tools/x86_64/amd64 \
-D /build/netbsd-6-0/dest/amd64 -O /build/netbsd-6-0/obj/amd64 \
-R /build/netbsd-6-0 /release -V RELEASEMACHINEDIR=amd64 -V \
MKKDEBUG=yes -U -m amd64 -j1 -U tools
It gets most of the way through, then fails on building gcc. The first
error message is
cc -c -DHAVE_CONFIG_H -O -DNETBSD_TOOLS -DTARGET_SYSTEM_ROOT=0
-DTARGET_SYSTEM_ROOT_RELOCATABLE -I.
-I/build/netbsd-6-0/src/tools/gcc/../../external/gpl3/gcc/dist/libiberty/../include
-W -Wall -Wwrite-strings -Wc++-compat -Wstrict-prototypes -pedantic
/build/netbsd-6-0/src/tools/gcc/../../external/gpl3/gcc/dist/libi
berty/regex.c -o regex.o
/build/netbsd-6-0/src/tools/gcc/../../external/gpl3/gcc/dist/libiberty/regex.c:In
function 'byte_regex_compile':
/build/netbsd-6-0/src/tools/gcc/../../external/gpl3/gcc/dist/libiberty/regex.c:152:47:
warning: right-hand operand of comma expression has no effect
[-Wunused-value]
# define bzero(s, n) (memset (s, '\0', n), (s))
^
/build/netbsd-6-0/src/tools/gcc/../../external/gpl3/gcc/dist/libiberty/regex.c:3124:13:
note: in expansion of macro 'bzero'
bzero (b, (1 << BYTEWIDTH) / BYTEWIDTH);
^
My build host is running a 7.99.42 kernel from yesterday, with a 7.99.36
userland.
Any clue on what's broken?
I was reminded on irc that tools build allows errors, so the above is not the
real problem.
A short while further down the log file, I do find a real error:
# cc -c -O -DIN_GCC -DCROSS_DIRECTORY_STRUCTURE -W -Wall -Wwrite-strings
-Wcast-qual -Wstrict-prototypes -Wmissing-prototypes
-Wmissing-format-attribute -pedantic -Wno-long-long -Wno-variadic-macros
-Wno-overlength-strings -Wold-style-definition -Wc++-compat -DHAVE_CONFIG_H
-I. -Icp -I/build/netbsd-6-0/src/tools/gcc/../../external/gpl3/gcc/dist/gcc
-I/build/netbsd-6-0/src/tools/gcc/../../external/gpl3/gcc/dist/gcc/cp
-I/build/netbsd-6-0/src/tools/gcc/../../external/gpl3/gcc/dist/gcc/../include
-I/build/netbsd-6-0/src/tools/gcc/../../external/gpl3/gcc/dist/gcc/../libcpp/include
-I/build/netbsd-6-0/tools/x86_64/amd64/include
-I/build/netbsd-6-0/tools/x86_64/amd64/include
-I/build/netbsd-6-0/tools/x86_64/amd64/include
-I/build/netbsd-6-0/src/tools/gcc/../../external/gpl3/gcc/dist/gcc/../libdecnumber
-I/build/netbsd-6-0/src/tools/gcc/../../external/gpl3/gcc/dist/gcc/../libdecnumber/dpd
-I../libdecnumber -I/usr/include/libelf -DNETBSD_TOOLS
-DTARGET_SYSTEM_ROOT=0 -DTARGET_SYSTEM_ROOT_RELOCATABLE
/build/netbsd-6-0/src/tools/gcc/../../external/gpl3/gcc/dist/gcc/cp/except.c
-o cp/except.o
<several warnings have been snipped>
/build/netbsd-6-0/src/tools/gcc/../../external/gpl3/gcc/dist/gcc/cp/except.c:352:7:
note: in expansion of macro 'gcc_unreachable'
gcc_unreachable ();
^
In file included from
/build/netbsd-6-0/src/tools/gcc/../../external/gpl3/gcc/dist/gcc/cp/except.c:927:0:
cfns.gperf: At top level:
cfns.gperf:101:1: error: 'gnu_inline' attribute present on 'libc_name_p'
cfns.gperf:26:14: error: but not here
nbgmake[1]: *** [cp/except.o] Error 1
+------------------+--------------------------+------------------------+
| Paul Goyette | PGP Key fingerprint: | E-mail addresses: |
| (Retired) | FA29 0E3B 35AF E8AE 6651 | paul at whooppee.com |
| Kernel Developer | 0786 F758 55DE 53BA 7731 | pgoyette at netbsd.org |
+------------------+--------------------------+------------------------+
!DSPAM:5826d024162992100015842!