Cool VL Viewer forum

View unanswered posts | View active topics It is currently 2024-04-20 02:21:58



Reply to topic  [ 5 posts ] 
The linux-build.sh script doesn't detect the x86_64 arch 
Author Message

Joined: 2021-03-12 16:12:52
Posts: 2
Reply with quote
Using the source archive, from line 126 onward in the linux-build.sh script, this loop:

Code:
ARCH=`uname -i`
if [ "$ARCH" != "x86_64" ] ; then
   echo "Sorry, the viewer now can only be built for 64 bits targets !"
   exit 1
fi


doesn't correctly detect my architecture:

Code:
~ % uname -i
GenuineIntel


but uname -m does:
Code:
~ % uname -m
x86_64


2021-03-12 16:40:22
Profile

Joined: 2009-03-17 18:42:51
Posts: 5546
Reply with quote
:shock:

What is this distribution of yours which does not report the architecture with `uname -i` ???

It is the first time I see this (and for as long as the -i option got added to uname) !

I always use "-i" in all my build scripts because for a 32 bits x86 OS, it always returns i386 (architecture) instead of i386/i486/i586/i686 with "-m" (depending on the CPU target option used to build the kernel). Granted, here I test for "x86_64", so "-m" will do as well...


2021-03-12 17:24:50
Profile WWW

Joined: 2010-03-14 21:12:58
Posts: 86
Reply with quote
Debian apparently doesn't:

$ uname -a
Linux gandalf 5.10.0-4-amd64 #1 SMP Debian 5.10.19-1 (2021-03-02) x86_64 GNU/Linux
$ uname -i
unknown
$ uname -m
x86_64


2021-03-13 01:55:07
Profile

Joined: 2009-03-17 18:42:51
Posts: 5546
Reply with quote
Admittedly, and while I do use Debian forks (e.g. Ubuntu), I did not use much Debian itself (and never for compiling my software)... Apparently, very few people are using it to build the viewer, since in all these years, this is the first such report !

Anyway, `uname -m` is now used in the viewer build script. Hopefully, no one will come back and tell me it does not work for their distro ! :?


2021-03-13 10:09:21
Profile WWW

Joined: 2021-03-12 16:12:52
Posts: 2
Reply with quote
I'm personally on Gentoo, thanks for the fix!


2021-03-13 13:26:16
Profile
Display posts from previous:  Sort by  
Reply to topic   [ 5 posts ] 

Who is online

Users browsing this forum: No registered users and 109 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
cron
Powered by phpBB® Forum Software © phpBB Group
Designed by ST Software.