Unable to guess system type on Chrome OS with linux (beta)

I get the following error in Julia’s package mode.

(@v1.5) pkg> build ForwardDiff Documenter Interpolations Roots IntervalArithmetic QuadGK OffsetArrays LinearAlgebra
   Building CRlibm → `~/.julia/packages/CRlibm/NFCH5/deps/build.log`
┌ Error: Error building `CRlibm`: 
│ ./config.guess: unable to guess system type
│ 
│ This script, last modified 2008-01-23, has failed to recognize
│ the operating system you are using. It is advised that you
│ download the most up to date version of the config scripts from
│ 
│   http://git.savannah.gnu.org/gitweb/?p=config.git;a=blob_plain;f=config.guess;hb=HEAD
│ and
│   http://git.savannah.gnu.org/gitweb/?p=config.git;a=blob_plain;f=config.sub;hb=HEAD
│ 
│ If the version you run (./config.guess) is already up to date, please
│ send the following data and any information you think might be
│ pertinent to <config-patches@gnu.org> in order to provide the needed
│ information to handle your system.
│ 
│ config.guess timestamp = 2008-01-23
│ 
│ uname -m = aarch64
│ uname -r = 5.4.67-09356-gf3ed4c0c4a31
│ uname -s = Linux
│ uname -v = #1 SMP PREEMPT Sun Sep 27 20:30:52 PDT 2020
│ 
│ /usr/bin/uname -p = 
│ /bin/uname -X     = 
│ 
│ hostinfo               = 
│ /bin/universe          = 
│ /usr/bin/arch -k       = 
│ /bin/arch              = 
│ /usr/bin/oslevel       = 
│ /usr/convex/getsysinfo = 
│ 
│ UNAME_MACHINE = aarch64
│ UNAME_RELEASE = 5.4.67-09356-gf3ed4c0c4a31
│ UNAME_SYSTEM  = Linux
│ UNAME_VERSION = #1 SMP PREEMPT Sun Sep 27 20:30:52 PDT 2020
│ configure: error: cannot guess build type; you must specify one
│ ERROR: LoadError: failed process: Process(`./configure --silent 'CFLAGS=-fpic -w'`, ProcessExited(1)) [1]
│ 
│ Stacktrace:
│  [1] pipeline_error at ./process.jl:525 [inlined]
│  [2] run(::Cmd; wait::Bool) at ./process.jl:440
│  [3] run(::Cmd) at ./process.jl:438
│  [4] top-level scope at /home/aaronjkaw/.julia/packages/CRlibm/NFCH5/deps/build.jl:23
│  [5] include(::String) at ./client.jl:457
│  [6] top-level scope at none:5
│ in expression starting at /home/aaronjkaw/.julia/packages/CRlibm/NFCH5/deps/build.jl:23
│ Working in /home/aaronjkaw/.julia/packages/CRlibm/NFCH5/deps/src/crlibm-1.0beta4
└ @ Pkg.Operations /buildworker/worker/package_linuxaarch64/build/usr/share/julia/stdlib/v1.5/Pkg/src/Operations.jl:949

I’ve downloaded the config.guess and config.sub files suggested

$ wget -O config.guess "http://git.savannah.gnu.org/gitweb/?p=con
fig.git;a=blob_plain;f=config.guess;hb=HEAD";
$ wget -O config.sub "http://git.savannah.gnu.org/gitweb/?p=config.git;a=blob_plain;f=config.sub;hb=HEAD";

and replaced the respective files for them in the CRlibm library directory

$ cp -f "/home/aaronjkaw/config.guess" "/home/aaronjkaw/.julia/packages/CRlibm/NFCH5/deps/src/crlibm-1.0beta4"
$ cp -f "/home/aaronjkaw/config.sub" "/home/aaronjkaw/.julia/packages/CRlibm/NFCH5/deps/src/crlibm-1.0beta4/config.sub"

but the Julia error above persists. What’s going on here? How do I fix this and build the Julia packages?

Maybe the config.guess replacement was not effective… What do you see when you run the new config.guess alone, e.g. by calling bash config.guess?

1 Like