Compiling on Ubuntu 20.04 Armv8

  • 2 Replies
  • 361 Views
Compiling on Ubuntu 20.04 Armv8
« on: April 19, 2022, 06:33:40 PM »
Hi,

I have encountered an issue in compiling ScopeFun release 2.2.0 for Ubuntu 20.04 Armv8. I am not sure if anyone else has experienced this but I get this error.

Quote
   === configuring in src/tiff (/home/ubuntu/scopefun-software/lib/wxWidgets-3.0.5/sfBuildRelease/src/tiff)
   configure: running /bin/bash ../../../src/tiff/configure --disable-option-checking '--prefix=/usr/local'  '--disable-shared' '--with-libtiff=builtin' '--with-libjpeg=builtin' --cache-file=/dev/null --srcdir=../../../src/tiff
   checking build system type... ../../../src/tiff/config/config.guess: unable to guess system type
   
   This script, last modified 2008-01-08, 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://savannah.gnu.org/cgi-bin/viewcvs/*checkout*/config/config/config.guess
   and
     http://savannah.gnu.org/cgi-bin/viewcvs/*checkout*/config/config/config.sub
   
   If the version you run (../../../src/tiff/config/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-08
   
   uname -m = aarch64
   uname -r = 5.4.24-2.1.0+gbabac00
   uname -s = Linux
   uname -v = #1 SMP PREEMPT Tue Nov 10 12:51:59 UTC 2020
   
   /usr/bin/uname -p = aarch64
   /bin/uname -X     =
   
   hostinfo               =
   /bin/universe          =
   /usr/bin/arch -k       =
   /bin/arch              = aarch64
   /usr/bin/oslevel       =
   /usr/convex/getsysinfo =
   
   UNAME_MACHINE = aarch64
   UNAME_RELEASE = 5.4.24-2.1.0+gbabac00
   UNAME_SYSTEM  = Linux
   UNAME_VERSION = #1 SMP PREEMPT Tue Nov 10 12:51:59 UTC 2020
   configure: error: cannot guess build type; you must specify one
   configure: error: ../../../src/tiff/configure failed for src/tiff
   make[2]: *** [lib/CMakeFiles/wxWidgets305.dir/build.make:92: ../lib/wxWidgets-3.0.5/src/wxWidgets305-stamp/wxWidgets305-configure] Error 1
   make[1]: *** [CMakeFiles/Makefile2:182: lib/CMakeFiles/wxWidgets305.dir/all] Error 2
   make: *** [Makefile:156: all] Error 2

I have tried downloading and adding config.guess in src/tiff/config/ from http://savannah.gnu.org/cgi-bin/viewcvs/*checkout*/config/config/config.guess but to no avail.

Any suggestions on how to resolve this issue?

*

Dejan

  • *****
  • 129
    • View Profile
Re: Compiling on Ubuntu 20.04 Armv8
« Reply #1 on: April 20, 2022, 07:56:27 AM »
I haven't tried to compile for ARM, I'm not sure what needs to be changed to make it work.

What is the output of configure step after you replaced the config.guess file?

Re: Compiling on Ubuntu 20.04 Armv8
« Reply #2 on: April 20, 2022, 09:49:18 PM »
It seems I have been replacing the wrong config.guess file repeatedly somehow. Maybe got confused of the wxWidgets versions. So I just needed to replace the one located in scopefun-software/lib/wxWidgets-3.0.5/src/tiff/config/config.guess which is somehow harboring a config.guess file from 2008.

btw, its here https://gitlab.com/scopefun/scopefun-software/-/blob/Release_v2.2.0/lib/wxWidgets-3.0.5/src/tiff/config/config.guess

make package now works fine.

Thanks.