Bug 276101 - Cannot build world for 14-stable
Summary: Cannot build world for 14-stable
Status: New
Alias: None
Product: Base System
Classification: Unclassified
Component: bin (show other bugs)
Version: 14.0-STABLE
Hardware: amd64 Any
: --- Affects Only Me
Assignee: freebsd-bugs (Nobody)
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2024-01-03 17:15 UTC by gja822
Modified: 2024-01-12 18:12 UTC (History)
4 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description gja822 2024-01-03 17:15:53 UTC
In an attempt to upgrade from 12-stable amd64 system to 14-stable, I've got new sources via git, just like it is said in the Handbook.
But the `make buildworld` command fails with these errors:

--- all_subdir_usr.sbin/jail ---
/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.
*** [jaillex.o] Error code 1

make[4]: stopped in /usr/src/usr.sbin/jail
--- all_subdir_usr.bin ---
--- all_subdir_usr.bin/lex ---
--- all_subdir_usr.bin/clang ---
--- all_subdir_tests ---
--- all_subdir_usr.bin ---
--- all_subdir_usr.bin/kyua ---
--- all_subdir_lib ---


------------
Apart from that I get a bunch of warnings like these, but I suppose it should not stop the world from building:

__cxa_thread_call_dtors: dtr 0xc34b10 from unloaded dso, skipping
__cxa_thread_call_dtors: dtr 0xc35190 from unloaded dso, skipping
__cxa_thread_call_dtors: dtr 0xc354c0 from unloaded dso, skipping
__cxa_thread_call_dtors: dtr 0xbc35f0 from unloaded dso, skipping
__cxa_thread_call_dtors: dtr 0xc35190 from unloaded dso, skipping
__cxa_thread_call_dtors: dtr 0xc354c0 from unloaded dso, skipping
__cxa_thread_call_dtors: dtr 0xc34b10 from unloaded dso, skipping

-----------
Comment 1 marquis 2024-01-09 18:45:51 UTC
Confirming this error on another 12.X AMD64 system.  Wondering if it  with 12 -> 14 or would also manifest in a 14.0 build on a 13.X system?
Comment 2 Artem Viklenko 2024-01-11 07:09:30 UTC
I've got the same issue trying to build world for 14.0-RELEASE.
Also on 12.4-RELEASE-p1 FreeBSD 12.4-RELEASE-p1 GENERIC  amd64.
Comment 3 Warner Losh freebsd_committer freebsd_triage 2024-01-12 18:12:57 UTC
While we've supported multiple major version jumping in the past, the minimum has always been only one major release

To work around this, upgrade to stable/13 first.