Bug 2118243

Summary: Please update config.guess to support RISCV64
Product: [Community] LVM and device-mapper Reporter: Letu Ren <fantasquex>
Component: lvm2Assignee: Zdenek Kabelac <zkabelac>
lvm2 sub component: Compilation, building and portability QA Contact: cluster-qe <cluster-qe>
Status: POST --- Docs Contact:
Severity: medium    
Priority: unspecified CC: agk, heinzm, jbrassow, msnitzer, prajnoha, zkabelac
Version: unspecifiedFlags: pm-rhel: lvm-technical-solution?
pm-rhel: lvm-test-coverage?
Target Milestone: ---   
Target Release: ---   
Hardware: riscv64   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Letu Ren 2022-08-15 07:50:24 UTC
Description of problem:
Hi, I'm building packages for ArchLinux RISCV. When building lvm2 package executing `./configure`, an error occurred.

```
checking build system type... autoconf/config.guess: unable to guess system type

This script, last modified 2014-01-01, 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 (autoconf/config.guess) is already up to date, please
send the following data and any information you think might be
pertinent to <config-patches> in order to provide the needed
information to handle your system.

config.guess timestamp = 2014-01-01

uname -m = riscv64
uname -r = 5.18.7-arch1-1
uname -s = Linux
uname -v = #1 SMP PREEMPT_DYNAMIC Sat, 25 Jun 2022 20:22:01 +0000

/usr/bin/uname -p = unknown
/bin/uname -X     = 

hostinfo               = 
/bin/universe          = 
/usr/bin/arch -k       = 
/bin/arch              = 
/usr/bin/oslevel       = 
/usr/convex/getsysinfo = 

UNAME_MACHINE = riscv64
UNAME_RELEASE = 5.18.7-arch1-1
UNAME_SYSTEM  = Linux
UNAME_VERSION = #1 SMP PREEMPT_DYNAMIC Sat, 25 Jun 2022 20:22:01 +0000
configure: error: cannot guess build type; you must specify one
```

This is an issue because config,guess and config.sub are outdated. More recent version of them can recognize RISCV64 properly. What's more, I have tested lvm2 can be built successfully after executing `autoreconf -fiv`.

In conclusion, I would like to expect lvm2 to update config.guess and config.sub to support RISCV64 out of box.

Version-Release number of selected component (if applicable):
2.03.16

How reproducible:
Execute `./configure`

Comment 1 Zdenek Kabelac 2022-08-15 12:30:01 UTC
Pushed upstream change:

https://sourceware.org/git/?p=lvm2.git;a=commit;h=6b2e4ec5dc629c064a4f5472afd283faa233ca32

Comment 2 Letu Ren 2022-08-16 02:48:04 UTC
Thanks for quick fix