Bug 2118243 - Please update config.guess to support RISCV64
Summary: Please update config.guess to support RISCV64
Keywords:
Status: POST
Alias: None
Product: LVM and device-mapper
Classification: Community
Component: lvm2
Version: unspecified
Hardware: riscv64
OS: Linux
unspecified
medium
Target Milestone: ---
: ---
Assignee: Zdenek Kabelac
QA Contact: cluster-qe
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2022-08-15 07:50 UTC by Letu Ren
Modified: 2023-08-10 15:40 UTC (History)
6 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed:
Embargoed:
pm-rhel: lvm-technical-solution?
pm-rhel: lvm-test-coverage?


Attachments (Terms of Use)

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


Note You need to log in before you can comment on or make changes to this bug.