LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware > Slackware - ARM
User Name
Password
Slackware - ARM This forum is for the discussion of Slackware ARM.

Notices


Reply
  Search this Thread
Old 04-30-2022, 05:55 AM   #1
pm_a_cup_of_tea
Member
 
Registered: May 2021
Posts: 58

Rep: Reputation: Disabled
Help with Slackbuilds - aarch64


Hi,

I've just installed aarch64 on my raspi4 8GB and have installed some slackbuilds from the 15.0 repository (there hasn't been much change in current so thought it should be fine).

On the whole I haven't had too many failures. I have found that I have had to adapt some of the scripts by adding a couple of lines, especially when dealing with libraries to make sure that 1) they build 2) they build in the correct place.

eg:
Code:
if [ -z "$ARCH" ]; then
  case "$( uname -m )" in
    i?86) ARCH=i586 ;;
    arm*) ARCH=arm ;;
    aarch64*) ARCH=aarch64 ;;
       *) ARCH=$( uname -m ) ;;
  esac
fi

...

if [ "$ARCH" = "i586" ]; then
  SLKCFLAGS="-O2 -march=i586 -mtune=i686"
  LIBDIRSUFFIX=""
elif [ "$ARCH" = "i686" ]; then
  SLKCFLAGS="-O2 -march=i686 -mtune=i686"
  LIBDIRSUFFIX=""
elif [ "$ARCH" = "x86_64" ]; then
  SLKCFLAGS="-O2 -fPIC"
  LIBDIRSUFFIX="64"
elif [ "$ARCH" = "aarch64" ]; then
  SLKCFLAGS="-02 -fPIC"
  LIBDIRSUFFIX="64"
else
  SLKCFLAGS="-O2"
  LIBDIRSUFFIX=""
fi
The problem that I am having is with the dependency to Abiword... 'Wv'.

I am getting this message:

Quote:
checking build system type... Invalid configuration `aarch64-slackware-linux': machine `aarch64-slackware' not recognized
configure: error: /bin/sh ./config.sub aarch64-slackware-linux failed
I tried to build directly from source.. just to experiment.. and I am geting a very similar message. Before installing slackwarearm64 I toyed with 64 bit on the pi using both arch and the raspberrypi OS and was able to install Abiword successfully.

Is there something I can do? I'm only a computer hobbyist so there is a very strong likelihood that I missed something. I require a word processor and the thought of building Libreoffice just for writer does not spark joy.

On a side note:

I am having problems with firefox it seems xcompmgr maybe, at least superficially, be the issue. My setup is fluxbox, rxvt-unicode and xcompmgr, I've overclocked to 1400 and have over voltage set to 4. Everytime I right click on firefox it freezes and I can only get rid of it by xkill, sometimes the whole display freezes and I have to unplug and reboot. I've disabled xcompmgr and this seems to fix the right click problem but occasionally I am still getting the complete freeze (I tried overclocking to see if that fixes it but it doesn't seem to be making a difference).*

*this should probably have been a separate post.

Last edited by pm_a_cup_of_tea; 04-30-2022 at 06:50 AM.
 
Old 04-30-2022, 12:03 PM   #2
mralk3
Slackware Contributor
 
Registered: May 2015
Distribution: Slackware
Posts: 1,900

Rep: Reputation: 1050Reputation: 1050Reputation: 1050Reputation: 1050Reputation: 1050Reputation: 1050Reputation: 1050Reputation: 1050
You can try adding autoreconf -fi right above the configure within the SlackBuild. That should set the build target straight. You will see warnings in the configure output and that is consistent with my experience. It fixes the issue but is an ugly hack. Let me know here if you find a better solution.

Regarding the ARCH variable, that will be set to the right architecture without edit, due to uname -m.

The last change:

Code:
elif [ "$ARCH" = "aarch64" ]; then
  SLKCFLAGS="-02 -fPIC"
  LIBDIRSUFFIX="64"
Is accurate and I do the same thing.
 
4 members found this post helpful.
Old 04-30-2022, 01:38 PM   #3
pm_a_cup_of_tea
Member
 
Registered: May 2021
Posts: 58

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by mralk3 View Post
You can try adding autoreconf -fi
Thanks for the suggestion. I'll look into it
 
2 members found this post helpful.
Old 05-09-2022, 04:55 AM   #4
Dunc.
Member
 
Registered: Jul 2012
Location: Cumbria UK
Distribution: Slackware
Posts: 58

Rep: Reputation: 30
The problem with the build system type is down to automake. Or more precisely the automake used in the original package which might be so old aarch64 was not a valid system when they ran automake. The way round it might be as simple as going for the latest version which has an update to automake in it. If that is not an option you can copy 2 files from your system to overwrite the old ones.

In a slackbuild you typically unpack the package and cd into the directory. This is where I put the copy commands which is just before the configure or cmake.

Code:
cp /usr/share/automake*/config.sub .
cp /usr/share/automake*/config.guess .
Dunc.
 
2 members found this post helpful.
Old 05-09-2022, 10:22 AM   #5
mralk3
Slackware Contributor
 
Registered: May 2015
Distribution: Slackware
Posts: 1,900

Rep: Reputation: 1050Reputation: 1050Reputation: 1050Reputation: 1050Reputation: 1050Reputation: 1050Reputation: 1050Reputation: 1050
Thank you for clarifying Dunc. You reminded me that the mozilla-thunderbird slackbuild addresses this already.

Code:
find ./ -name config.sub -exec cp /usr/share/automake-*/config.sub {} ';'
find ./ -name config.guess -exec cp /usr/share/automake-*/config.guess {} ';'
 
  


Reply

Tags
aarch64, slackbuilds



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
LXer: The State Of 64-Bit ARM (AArch64) On LLVM/Clang LXer Syndicated Linux News 0 11-21-2012 03:10 AM
LXer: Ubuntu 13.04 Aims For 64-bit ARM Support (AArch64) LXer Syndicated Linux News 0 11-01-2012 04:10 AM
LXer: AArch64 Called For Merging To GCC Trunk LXer Syndicated Linux News 0 10-23-2012 05:42 PM
LXer: ARM64/AArch64 Support Going Into Linux 3.7 Kernel LXer Syndicated Linux News 0 10-02-2012 06:20 AM
Use SlackBuilds.org or my own hosting to offer up SlackBuilds? hollywoodb Slackware 6 11-30-2006 08:56 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware > Slackware - ARM

All times are GMT -5. The time now is 03:21 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration