吉田@Niftyです。

FreeBSD 12.4-RELEASE-p7のシステムをFreeBSD 14.0-RELEASE-p1へ一気に
バージョンアップしようとしているのですが、buildworldでコンパイルエラーと
なるため悩んでいます。
ググっても以下Bugzilla / MLを見てもそのような報告が見当たらないため、
皆様のお知恵を拝借したい次第です。
 FreeBSD Bugzilla
 freebsd-bugs
 freebsd-amd64
 freebsd-current
 freebsd-stable

ソースはgit.freebsd.orgからのgitupで取得しており、configはGENERICです。
エラー個所は下記の通りで、/usr/src/usr.sbin/jail/jaillex.l辺りで型の
不一致が起きているようですが、報告事例がないことが気になっております。
本エラーは、FreeBSD 14.0-RELEASEでも発生します。

相談1.jailは不要なので、できればjailなしでコンパイルしてひとまず
    逃げたいと思っております。方法はありましたでしょうか。
    (そんなことよりOpenSSlを早く3.0系に上げたい)

相談2.FreeBSD Bugzillaで報告したほうが良いのでしょうか。
    英語で説明できる自信がないのですが。

----console log----
===> usr.sbin/jail (all)
lex   -ojaillex.c /usr/src/usr.sbin/jail/jaillex.l
yacc -d -v  /usr/src/usr.sbin/jail/jailparse.y
yacc: w - line 154 of "/usr/src/usr.sbin/jail/jailparse.y", the default action for param assigns an undefined value to $$
cp y.tab.c jailparse.c
echo jail.full: /usr/obj/usr/src/amd64.amd64/tmp/usr/lib/libc.a /usr/obj/usr/src/amd64.amd64/tmp/usr/lib/libjail.a /usr/obj/usr/src/amd64.amd64/tmp/usr/lib/libkvm.a /usr/obj/usr/src/amd64.amd64/tmp/usr/lib/libutil.a >> .depend cc -target x86_64-unknown-freebsd14.0 --sysroot=/usr/obj/usr/src/amd64.amd64/tmp -B/usr/obj/usr/src/amd64.amd64/tmp/usr/bin -O2 -pipe -fno-common -I. -I/usr/src/usr.sbin/jail -DINET6 -DINET -fPIE -g -gz=zlib -MD -MF.depend.jail.o -MTjail.o -std=gnu99 -Wno-format-zero-length -fstack-protector-strong -Wsystem-headers -Werror -Wall -Wno-format-y2k -W -Wno-unused-parameter -Wstrict-prototypes -Wmissing-prototypes -Wpointer-arith -Wreturn-type -Wcast-qual -Wwrite-strings -Wswitch -Wshadow -Wunused-parameter -Wcast-align -Wchar-subscripts -Wnested-externs -Wold-style-definition -Wno-pointer-sign -Wdate-time -Wthread-safety -Wno-empty-body -Wno-string-plus-int -Wno-unused-const-variable -Wno-error=unused-but-set-parameter -Qunused-arguments -c /usr/src/usr.sbin/jail/jail.c -o jail.o cc -target x86_64-unknown-freebsd14.0 --sysroot=/usr/obj/usr/src/amd64.amd64/tmp -B/usr/obj/usr/src/amd64.amd64/tmp/usr/bin -O2 -pipe -fno-common -I. -I/usr/src/usr.sbin/jail -DINET6 -DINET -fPIE -g -gz=zlib -MD -MF.depend.command.o -MTcommand.o -std=gnu99 -Wno-format-zero-length -fstack-protector-strong -Wsystem-headers -Werror -Wall -Wno-format-y2k -W -Wno-unused-parameter -Wstrict-prototypes -Wmissing-prototypes -Wpointer-arith -Wreturn-type -Wcast-qual -Wwrite-strings -Wswitch -Wshadow -Wunused-parameter -Wcast-align -Wchar-subscripts -Wnested-externs -Wold-style-definition -Wno-pointer-sign -Wdate-time -Wthread-safety -Wno-empty-body -Wno-string-plus-int -Wno-unused-const-variable -Wno-error=unused-but-set-parameter -Qunused-arguments -c /usr/src/usr.sbin/jail/command.c -o command.o cc -target x86_64-unknown-freebsd14.0 --sysroot=/usr/obj/usr/src/amd64.amd64/tmp -B/usr/obj/usr/src/amd64.amd64/tmp/usr/bin -O2 -pipe -fno-common -I. -I/usr/src/usr.sbin/jail -DINET6 -DINET -fPIE -g -gz=zlib -MD -MF.depend.config.o -MTconfig.o -std=gnu99 -Wno-format-zero-length -fstack-protector-strong -Wsystem-headers -Werror -Wall -Wno-format-y2k -W -Wno-unused-parameter -Wstrict-prototypes -Wmissing-prototypes -Wpointer-arith -Wreturn-type -Wcast-qual -Wwrite-strings -Wswitch -Wshadow -Wunused-parameter -Wcast-align -Wchar-subscripts -Wnested-externs -Wold-style-definition -Wno-pointer-sign -Wdate-time -Wthread-safety -Wno-empty-body -Wno-string-plus-int -Wno-unused-const-variable -Wno-error=unused-but-set-parameter -Qunused-arguments -c /usr/src/usr.sbin/jail/config.c -o config.o cc -target x86_64-unknown-freebsd14.0 --sysroot=/usr/obj/usr/src/amd64.amd64/tmp -B/usr/obj/usr/src/amd64.amd64/tmp/usr/bin -O2 -pipe -fno-common -I. -I/usr/src/usr.sbin/jail -DINET6 -DINET -fPIE -g -gz=zlib -MD -MF.depend.state.o -MTstate.o -std=gnu99 -Wno-format-zero-length -fstack-protector-strong -Wsystem-headers -Werror -Wall -Wno-format-y2k -W -Wno-unused-parameter -Wstrict-prototypes -Wmissing-prototypes -Wpointer-arith -Wreturn-type -Wcast-qual -Wwrite-strings -Wswitch -Wshadow -Wunused-parameter -Wcast-align -Wchar-subscripts -Wnested-externs -Wold-style-definition -Wno-pointer-sign -Wdate-time -Wthread-safety -Wno-empty-body -Wno-string-plus-int -Wno-unused-const-variable -Wno-error=unused-but-set-parameter -Qunused-arguments -c /usr/src/usr.sbin/jail/state.c -o state.o cc -target x86_64-unknown-freebsd14.0 --sysroot=/usr/obj/usr/src/amd64.amd64/tmp -B/usr/obj/usr/src/amd64.amd64/tmp/usr/bin -O2 -pipe -fno-common -I. -I/usr/src/usr.sbin/jail -DINET6 -DINET -fPIE -g -gz=zlib -MD -MF.depend.jaillex.o -MTjaillex.o -std=gnu99 -Wno-format-zero-length -fstack-protector-strong -Wsystem-headers -Werror -Wall -Wno-format-y2k -W -Wno-unused-parameter -Wstrict-prototypes -Wmissing-prototypes -Wpointer-arith -Wreturn-type -Wcast-qual -Wwrite-strings -Wswitch -Wshadow -Wunused-parameter -Wcast-align -Wchar-subscripts -Wnested-externs -Wold-style-definition -Wno-pointer-sign -Wdate-time -Wthread-safety -Wno-empty-body -Wno-string-plus-int -Wno-unused-const-variable -Wno-error=unused-but-set-parameter -Qunused-arguments -c jaillex.c -o jaillex.o /usr/src/usr.sbin/jail/jaillex.l:106:6: error: comparison of integers of different signs: 'int' and 'yy_size_t' (aka 'unsigned long') [-Werror,-Wsign-compare]
                                        yyless(atvar);
                                        ^~~~~~~~~~~~~
jaillex.c:215:9: note: expanded from macro 'yyless'
        YY_LESS_LINENO(yyless_macro_arg);\
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
jaillex.c:204:36: note: expanded from macro 'YY_LESS_LINENO'
                for ( yyl = n; yyl < yyleng; ++yyl )\
                               ~~~ ^ ~~~~~~
/usr/src/usr.sbin/jail/jaillex.l:146:5: error: comparison of integers of different signs: 'int' and 'yy_size_t' (aka 'unsigned long') [-Werror,-Wsign-compare]
                                yyless(0);
                                ^~~~~~~~~
jaillex.c:215:9: note: expanded from macro 'yyless'
        YY_LESS_LINENO(yyless_macro_arg);\
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
jaillex.c:204:36: note: expanded from macro 'YY_LESS_LINENO'
                for ( yyl = n; yyl < yyleng; ++yyl )\
                               ~~~ ^ ~~~~~~
jaillex.c:1906:58: error: unused parameter 'yyscanner' [-Werror,-Wunused-parameter]
static void yy_fatal_error (yyconst char* msg , yyscan_t yyscanner)
                                                         ^
jaillex.c:2226:43: error: unused parameter 'yyscanner' [-Werror,-Wunused-parameter]
void *yyalloc (yy_size_t  size , yyscan_t yyscanner)
                                          ^
jaillex.c:2231:58: error: unused parameter 'yyscanner' [-Werror,-Wunused-parameter]
void *yyrealloc  (void * ptr, yy_size_t  size , yyscan_t yyscanner)
                                                         ^
jaillex.c:2243:36: error: unused parameter 'yyscanner' [-Werror,-Wunused-parameter]
void yyfree (void * ptr , yyscan_t yyscanner)
                                   ^
6 errors generated.
*** Error code 1

Stop.
make[4]: stopped in /usr/src/usr.sbin/jail
*** Error code 1
*** Error code 1
     1640.94 real      1544.06 user       110.48 sys
*** Error code 1
*** Error code 1

----console log----

以上、よろしくお願いいたします。

Reply via email to