Re: NanoBSD: CURRENT unable to compile 13-STABLE : error: a function definition without a prototype is deprecated ... in C

From: Mark Millard <marklmi_at_yahoo.com>
Date: Thu, 09 Mar 2023 17:07:38 UTC
FreeBSD User <freebsd_at_walstatt-de.de> wrote on
Date: Thu, 09 Mar 2023 08:42:44 UTC  :

> Having set
> 
> WITHOUT_CROSS_COMPILER=YES
> WITHOUT_SYSTEM_COMPILER=YES
> WITHOUT_SYSTEM_LINKER=YES
> 

This is contradictory: a mix of a setting that
first tells it to not build some things and
then some settings telling it to build some
of those same things.

WITHOUT_CROSS_COMPILER
Do not build any cross compiler in the cross-tools stage of
buildworld. . . . When set, it enforces these options:

WITHOUT_CLANG_BOOTSTRAP
[Do not build the Clang C/C++ compiler during the bootstrap phase
of the build.]

WITHOUT_ELFTOOLCHAIN_BOOTSTRAP
[Do not build ELF Tool Chain tools (addr2line, nm, size, strings
and strip) as part of the bootstrap process.]

WITHOUT_LLD_BOOTSTRAP
[Do not build the LLD linker during the bootstrap phase of the
build.]


But, using Ed's new wording suggestion:

WITHOUT_SYSTEM_COMPILER
Build a cross-compiler during the build bootstrap phase, rather than
opportunistically using the host's compiler.

WITHOUT_SYSTEM_LINKER
Build a cross-linker during the build bootstrap phase, rather than
opportunistically using the host's linker.


May be such a build attempt should abort with a message
about the lack of uniformity in the criteria?


Side note:

> ld: error: args.o: Opaque pointers are only supported in -opaque-pointers mode (Producer:
> 'LLVM15.0.7' Reader: 'LLVM 14.0.5') cc: error: linker command failed with exit code 1 (use -v
> to see invocation) *** [gh-bc] Error code 1

seems to indicate that llvm15 was used to produce a file
at some point but later llvm14 was used to process the
file.

===
Mark Millard
marklmi at yahoo.com