config.guess says aarch64c-unknown-freebsd14.0
(cfarm240.cfarm.net, an Arm Morello SoC, quad-core aarch64
Neoverse N1-based CPU implementing CHERI)
but config.sub aarch64c-unknown-freebsd14.0 fails
the fixes it:
--- config.sub.o2023-08-23 20:39:41.744506000 +0100
+++ config.sub 2023-08-23
Use utsname version instead of preprocessor macros on
{vax,mips}-dec-ultrix >= 3.0
This was tested on mips-dec-ultrix3.1, vax-dec-ultrix3.0 and
vax-dec-ultrix3.1
With the old code vax-dec-ultrix3.0 was detected as vax-dec-ultrix only.
Note: the original ultrix3 /bin/sh don't know shell functions,
quot;hardcode" that in the patch.
ChangeLog:
2019-03-28 Urs Janßen
* config.sub recognize m68k-next-openstep* as openstep*, not nextstep3
--- config.sub.o 2019-03-28 21:52:46.476144364 +0100
+++ config.sub 2019-03-28 21:55:53.506810964 +0100
@@ -822,7 +822,9 @@
cpu=m68k
vendor=n
this time the attched patch was actually tested on
m68k-sony-newsos and mips-dec-ultrix3
=== modified file 'config.guess'
--- config.guess 2019-02-20 15:01:38 +
+++ config.guess 2019-03-03 08:35:10 +
@@ -2,7 +2,7 @@
# Attempt to guess a canonical system name.
# Copyright 1992-2019 Free
at some point in the past someone removed a huge code block at the very end
to detect various systems lacking uname - one of them was m68k-sony-newsos.
the current autoconf does not recognize the system anymore, the attached
patch should resurrect the old code (for sony-newsos; you may want to
rei
patch attached
--- config.guess 2019-02-18 23:36:29.408738687 +0100
+++ config.guess 2019-02-18 23:36:42.569260656 +0100
@@ -1113,7 +1113,7 @@
*Pentium) UNAME_MACHINE=i586 ;;
*Pent*|*Celeron) UNAME_MACHINE=i686 ;;
esac
- echo "$UNAME_MACHINE-unknown-sysv${UNAME_RELEASE}${UNAME_SY
config.sub:152: patern ==> pattern
config.sub:953: cannonical ==> canonical
config.sub:1104: cannonical ==> canonical
config.sub:1153: cannonical ==> canonical
=== modified file 'config.sub'
--- config.sub 2018-09-17 13:36:47 +
+++ config.sub 2018-10-16 22:56:28 +
@@ -149,7 +149,7 @@
current config.guess reports
# ./config.guess
OpenBSD.amd64-unknown-libertybsd5.8
# uname -r -s -m
LibertyBSD 5.8 amd64
the attached patch fixes the issue, you might want to be less generic
and use
sed 's/^OpenBSD\.//'
or
sed -e 's/^LibertyBSD\.//' -e 's/^OpenBSD\.//'
HTH,
urs
--- config.guess 2
The brute-force patch below fixes an issue with pgcc as $CC in Linux.
Problem:
~ > ./config.guess
config.guess: 1: eval: LIBC: not found
x86_64-unknown-linux-gnu
Root cause - additional whitespaces introduced:
~ > grep ^LIBC /tmp/cgRTvJMC/dummy.c
LIBC=uclibc
LIBC=dietlibc
LIBC=gnu
~ > pgcc -E /