Menu

#17 [Presage Build Failed on RISC-V board] Please consider updating autotool scripts.

v0.9.2
open
nobody
None
5
2023-03-17
2023-03-17
TinySnow
No

Hello, I'm from ArchRISC-V Team, a community porting Arch Linux software to RISC-V architecture.

Description

  • While packaging presage, we found an error, which cannot guess system type. Here comes the error log.
checking build system type... ./config.guess: unable to guess system type           

This script, last modified 2012-02-10, 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 = 2012-02-10                                  

uname -m = riscv64                                                                
uname -r = 6.2.5-arch1-1                                                                
uname -s = Linux
uname -v = #1 SMP PREEMPT_DYNAMIC Sat, 11 Mar 2023 14:28:13 +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 = 6.2.5-arch1-1                 
UNAME_SYSTEM  = Linux                  
UNAME_VERSION = #1 SMP PREEMPT_DYNAMIC Sat, 11 Mar 2023 14:28:13 +0000
configure: error: cannot guess build type; you must specify one
==> ERROR: A failure occurred in build().                                   
    Aborting...                  
==> ERROR: Build failed, check /var/lib/archbuild/extra-riscv64/tinysnow/build
  • The config.guess file is too old to work.

  • So our team gives this advice.

Advice

  • You can find the patch here that how we fix it.

  • Or just see the patch below.(in ArchLinux PKGBUILD file):

--- PKGBUILD                                                                       
+++ PKGBUILD                                                                       
@@ -23,6 +23,8 @@ prepare() {                                               
   patch -p1 -i ../presage-gcc6.patch # Fix build with GCC 6         
   patch -p1 -i ../presage-c++17.patch # Fix build with C++17 (Debian)         
   patch -p1 -i ../presage-format-security.patch # Fix build with Werror=format-security (Debi
an)                                                                       

+  autoreconf -fiv                                                                       
+  autoupdate                                                                       
 }
  • Please consider updating the configure script tools (Especially config.guess file). As part of our duty, we do suggest our upstreams doing this once and for all instead.

Sincerely thanks.

:)

Arch Linux RISC-V Team,

TinySnow

Discussion


Log in to post a comment.

MongoDB Logo MongoDB