https://gcc.gnu.org/bugzilla/show_bug.cgi?id=123366
--- Comment #22 from Mark Millard <markmigm at gmail dot com> ---
Odd differences in BAD vs. GOOD ?
diff -ru /wrkdirs/usr/ports/lang/gcc16-devel/work.BAD/.build/gcc/auto-host.h
/wrkdirs/usr/ports/lang/gcc16-devel/work.GOOD/.build/gcc/auto-host.h
--- /wrkdirs/usr/ports/lang/gcc16-devel/work.BAD/.build/gcc/auto-host.h
2026-02-04 05:56:02.544124000 +0000
+++ /wrkdirs/usr/ports/lang/gcc16-devel/work.GOOD/.build/gcc/auto-host.h
2026-02-03 21:29:09.873515000 +0000
@@ -1676,7 +1676,7 @@
/* Define if you have the iconv() function and it works. */
#ifndef USED_FOR_TARGET
-/* #undef HAVE_ICONV */
+#define HAVE_ICONV 1
#endif
@@ -2267,14 +2267,14 @@
/* Define to 1 if `fork' works. */
#ifndef USED_FOR_TARGET
-/* #undef HAVE_WORKING_FORK */
+#define HAVE_WORKING_FORK 1
#endif
/* Define this macro if mbstowcs does not crash when its first argument is
NULL. */
#ifndef USED_FOR_TARGET
-/* #undef HAVE_WORKING_MBSTOWCS */
+#define HAVE_WORKING_MBSTOWCS 1
#endif
And:
diff -ru /wrkdirs/usr/ports/lang/gcc16-devel/work.BAD/.build/gcc/config.cache
/wrkdirs/usr/ports/lang/gcc16-devel/work.GOOD/.build/gcc/config.cache
--- /wrkdirs/usr/ports/lang/gcc16-devel/work.BAD/.build/gcc/config.cache
2026-02-04 05:56:02.273738000 +0000
+++ /wrkdirs/usr/ports/lang/gcc16-devel/work.GOOD/.build/gcc/config.cache
2026-02-03 21:29:09.605540000 +0000
@@ -73,7 +73,7 @@
ac_cv_func_fgets_unlocked=${ac_cv_func_fgets_unlocked=no}
ac_cv_func_fileno_unlocked=${ac_cv_func_fileno_unlocked=yes}
ac_cv_func_fork=${ac_cv_func_fork=yes}
-ac_cv_func_fork_works=${ac_cv_func_fork_works=no}
+ac_cv_func_fork_works=${ac_cv_func_fork_works=yes}
ac_cv_func_fprintf_unlocked=${ac_cv_func_fprintf_unlocked=no}
ac_cv_func_fputc_unlocked=${ac_cv_func_fputc_unlocked=yes}
ac_cv_func_fputs_unlocked=${ac_cv_func_fputs_unlocked=yes}
@@ -250,8 +250,8 @@
acx_cv_prog_cc_warning__fno_rtti=${acx_cv_prog_cc_warning__fno_rtti=yes}
am_cv_CXX_dependencies_compiler_type=${am_cv_CXX_dependencies_compiler_type=gcc3}
am_cv_func_iconv=${am_cv_func_iconv=yes}
-am_cv_func_iconv_summary=${am_cv_func_iconv_summary='not working, consider
installing GNU libiconv'}
-am_cv_func_iconv_works=${am_cv_func_iconv_works=no}
+am_cv_func_iconv_summary=${am_cv_func_iconv_summary='yes, in libc'}
+am_cv_func_iconv_works=${am_cv_func_iconv_works=yes}
am_cv_langinfo_codeset=${am_cv_langinfo_codeset=yes}
am_cv_lib_iconv=${am_cv_lib_iconv=no}
am_cv_val_LC_MESSAGES=${am_cv_val_LC_MESSAGES=yes}
@@ -327,7 +327,7 @@
gcc_cv_decl_char_bit=${gcc_cv_decl_char_bit=yes}
gcc_cv_decl_map_anon=${gcc_cv_decl_map_anon=yes}
gcc_cv_dsymutil=${gcc_cv_dsymutil=''}
-gcc_cv_func_mbstowcs_works=${gcc_cv_func_mbstowcs_works=no}
+gcc_cv_func_mbstowcs_works=${gcc_cv_func_mbstowcs_works=yes}
gcc_cv_func_mmap_anon=${gcc_cv_func_mmap_anon=yes}
gcc_cv_func_mmap_dev_zero=${gcc_cv_func_mmap_dev_zero=yes}
gcc_cv_func_mmap_file=${gcc_cv_func_mmap_file=yes}
And:
configure:10693:
/wrkdirs/usr/ports/lang/gcc16-devel/work/.build/./prev-gcc/xg++
-B/wrkdirs/usr/ports/lang/gcc16-devel/work/.build/./prev-gcc/
-B/usr/local/x86_64-portbld-freebsd16.0/bin/ -nostdinc++
-B/wrkdirs/usr/ports/lang/gcc16-devel/work/.build/prev-x86_64-portbld-freebsd16.0/libstdc++-v3/src/.libs
-B/wrkdirs/usr/ports/lang/gcc16-devel/work/.build/prev-x86_64-portbld-freebsd16.0/libstdc++-v3/libsupc++/.libs
-isystem
/wrkdirs/usr/ports/lang/gcc16-devel/work/.build/prev-x86_64-portbld-freebsd16.0/libstdc++-v3/include/x86_64-portbld-freebsd16.0
-isystem
/wrkdirs/usr/ports/lang/gcc16-devel/work/.build/prev-x86_64-portbld-freebsd16.0/libstdc++-v3/include
-isystem
/wrkdirs/usr/ports/lang/gcc16-devel/work/gcc-16-20251130/libstdc++-v3/libsupc++
-L/wrkdirs/usr/ports/lang/gcc16-devel/work/.build/prev-x86_64-portbld-freebsd16.0/libstdc++-v3/src/.libs
-L/wrkdirs/usr/ports/lang/gcc16-devel/work/.build/prev-x86_64-portbld-freebsd16.0/libstdc++-v3/libsupc++/.libs
-o conftest -DLIBICONV_PLUG conftest.cpp >&5
configure:10693: $? = 0
configure:10693: ./conftest
-ld-elf.so.1: Shared object "libstdc++.so.6" not found, required by "conftest"
-configure:10693: $? = 1
-configure: program exited with status 1
-configure: failed program was:
-| /* confdefs.h */
-| #define PACKAGE_NAME ""
-| #define PACKAGE_TARNAME ""
-| #define PACKAGE_VERSION ""
-| #define PACKAGE_STRING ""
-| #define PACKAGE_BUGREPORT ""
-| #define PACKAGE_URL ""
-| #define ENABLE_STDLIB_OPTION 1
-| #define DEFAULT_LINKER "/usr/local/bin/ld"
-| #define DEFAULT_ASSEMBLER "/usr/local/bin/as"
-| #define STDC_HEADERS 1
-| #define HAVE_SYS_TYPES_H 1
-| #define HAVE_SYS_STAT_H 1
-| #define HAVE_STDLIB_H 1
-| #define HAVE_STRING_H 1
-| #define HAVE_MEMORY_H 1
-| #define HAVE_STRINGS_H 1
-| #define HAVE_INTTYPES_H 1
-| #define HAVE_STDINT_H 1
-| #define HAVE_UNISTD_H 1
-| #define __EXTENSIONS__ 1
-| #define _ALL_SOURCE 1
-| #define _GNU_SOURCE 1
-| #define _POSIX_PTHREAD_SEMANTICS 1
-| #define _TANDEM_SOURCE 1
-| #define SIZEOF_INO_T 8
-| #define SIZEOF_DEV_T 8
-| #define SIZEOF_VOID_P 8
-| #define SIZEOF_SHORT 2
-| #define SIZEOF_INT 4
-| #define SIZEOF_LONG 8
-| #define HAVE_LONG_LONG 1
-| #define SIZEOF_LONG_LONG 8
-| #define HAVE_UNSIGNED_LONG_LONG_INT 1
-| #define HAVE_LONG_LONG_INT 1
-| #define HAVE_INTMAX_T 1
-| #define HAVE_INTPTR_T 1
-| #define HAVE_UINTMAX_T 1
-| #define HAVE_UINTPTR_T 1
-| #define INT64_T_IS_LONG 1
-| #define HAVE_SWAP_IN_UTILITY 1
-| #define CHECKING_P 1
-| #define ENABLE_EXTRA_CHECKING 1
-| #define ENABLE_ASSERT_CHECKING 1
-| #define ENABLE_GIMPLE_CHECKING 1
-| #define ENABLE_RUNTIME_CHECKING 1
-| #define ENABLE_TREE_CHECKING 1
-| #define ENABLE_TYPES_CHECKING 1
-| #define ENABLE_RTL_FLAG_CHECKING 1
-| #define ENABLE_GC_CHECKING 1
-| #define GATHER_STATISTICS 0
-| #define DEFAULT_STK_CLASH_GUARD_SIZE 0
-| #define ENABLE_DECIMAL_FLOAT 0
-| #define ENABLE_DECIMAL_BID_FORMAT 0
-| #define ENABLE_FIXED_POINT 0
-| #define ENABLE_VTABLE_VERIFY 0
-| #define ENABLE_ANALYZER 1
-| #define DOCUMENTATION_ROOT_URL "https://gcc.gnu.org/onlinedocs/"
-| #define CHANGES_ROOT_URL "https://gcc.gnu.org/"
-| #define OFFLOAD_TARGETS ""
-| #define ENABLE_OFFLOADING 0
-| #define STDC_HEADERS 1
-| #define TIME_WITH_SYS_TIME 1
-| #define STRING_WITH_STRINGS 1
-| #define HAVE_SYS_WAIT_H 1
-| #define HAVE_LIMITS_H 1
-| #define HAVE_STDDEF_H 1
-| #define HAVE_STRING_H 1
-| #define HAVE_STRINGS_H 1
-| #define HAVE_STDLIB_H 1
-| #define HAVE_TIME_H 1
-| #define HAVE_ICONV_H 1
-| #define HAVE_FCNTL_H 1
-| #define HAVE_FTW_H 1
-| #define HAVE_UNISTD_H 1
-| #define HAVE_SYS_AUXV_H 1
-| #define HAVE_SYS_FILE_H 1
-| #define HAVE_SYS_TIME_H 1
-| #define HAVE_SYS_MMAN_H 1
-| #define HAVE_SYS_RESOURCE_H 1
-| #define HAVE_SYS_PARAM_H 1
-| #define HAVE_SYS_TIMES_H 1
-| #define HAVE_SYS_STAT_H 1
-| #define HAVE_MALLOC_H 1
-| #define HAVE_LANGINFO_H 1
-| #define HAVE_LOCALE_H 1
-| #define HAVE_WCHAR_H 1
-| #define HAVE_LIBGEN_H 1
-| #define HAVE_UNORDERED_MAP 1
-| #define HAVE_TR1_UNORDERED_MAP 1
-| #define HAVE_EXT_HASH_MAP 1
-| #define HAVE_INTTYPES_H 1
-| #define HAVE_TIMES 1
-| #define HAVE_CLOCK 1
-| #define HAVE_KILL 1
-| #define HAVE_GETRLIMIT 1
-| #define HAVE_SETRLIMIT 1
-| #define HAVE_POPEN 1
-| #define HAVE_SYSCONF 1
-| #define HAVE_STRSIGNAL 1
-| #define HAVE_GETRUSAGE 1
-| #define HAVE_NL_LANGINFO 1
-| #define HAVE_GETTIMEOFDAY 1
-| #define HAVE_MBSTOWCS 1
-| #define HAVE_WCSWIDTH 1
-| #define HAVE_MMAP 1
-| #define HAVE_POSIX_FALLOCATE 1
-| #define HAVE_SETLOCALE 1
-| #define HAVE_CLEARERR_UNLOCKED 1
-| #define HAVE_FEOF_UNLOCKED 1
-| #define HAVE_FERROR_UNLOCKED 1
-| #define HAVE_FFLUSH_UNLOCKED 1
-| #define HAVE_FILENO_UNLOCKED 1
-| #define HAVE_FPUTC_UNLOCKED 1
-| #define HAVE_FPUTS_UNLOCKED 1
-| #define HAVE_FREAD_UNLOCKED 1
-| #define HAVE_FWRITE_UNLOCKED 1
-| #define HAVE_GETCHAR_UNLOCKED 1
-| #define HAVE_GETC_UNLOCKED 1
-| #define HAVE_PUTCHAR_UNLOCKED 1
-| #define HAVE_PUTC_UNLOCKED 1
-| #define HAVE_MADVISE 1
-| #define HAVE_FSTATAT 1
-| #define HAVE_CLOCK_GETTIME 1
-| #define HAVE_MUNMAP 1
-| #define HAVE_MSYNC 1
-| #define HAVE_MEMRCHR 1
-| /* end confdefs.h. */
-| #include <stdlib.h>
-| int main()
-| {
-| mbstowcs(0, "", 0);
-| return 0;
-| }
-configure:10703: result: no
+configure:10693: $? = 0
+configure:10703: result: yes
And so on . . .