LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Slackware - ARM (https://www.linuxquestions.org/questions/slackware-arm-108/)
-   -   libmpeg2? (https://www.linuxquestions.org/questions/slackware-arm-108/libmpeg2-4175693277/)

pchristy 04-07-2021 09:52 AM

libmpeg2?
 
Has anyone managed to get libmpeg2 to compile on aarch64? When I try, I get an "invalid configuration" error:

Code:

checking build system type... Invalid configuration `aarch64-slackware-linux': machine `aarch64-slackware' not recognized
configure: error: /bin/sh .auto/config.sub aarch64-slackware-linux failed

I've tried deleting everything in the --build string except "aarch64" and also replacing "slackware" with "slarm" to no effect. I've also tried deleting the --build string altogether, but it didn't like that, either!

Other distros seem to have built this library on aarch64, but I haven't been able to find any patches for it, and it doesn't seem to have been maintained for years!

Any suggestions gratefully received!

--
Pete

sndwvs 04-07-2021 10:44 AM

Code:

./configure --build=aarch64-unknown-linux

drmozes 04-07-2021 10:50 AM

Quote:

Originally Posted by pchristy (Post 6238198)
Code:

checking build system type... Invalid configuration `aarch64-slackware-linux': machine `aarch64-slackware' not recognized
configure: error: /bin/sh .auto/config.sub aarch64-slackware-linux failed


Try this within the source dir:
Code:

find . -name config.guess -print0 | xargs -0i cp -favv /usr/share/libtool/build-aux/config.guess '{}'
find . -name config.sub -print0 | xargs -0i cp -favv /usr/share/libtool/build-aux/config.sub '{}'

The toolchain quadlet for Slackware AArch64 will be: aarch64-slackware-linux-gnu btw.

pchristy 04-07-2021 11:19 AM

Thanks for the prompt replies, folks!

sndwvs: Yes! Substituting "unknown" in the --build string seems to have sorted it! Many thanks!

Drmozes:

Code:

find . -name config.guess -print0 | xargs -0i cp -favv /usr/share/libtool/build-aux/config.guess '{}'
'/usr/share/libtool/build-aux/config.guess' -> './.auto/config.guess'

find . -name config.sub -print0 | xargs -0i cp -favv /usr/share/libtool/build-aux/config.sub '{}'
'/usr/share/libtool/build-aux/config.sub' -> './.auto/config.sub'

I'm afraid that doesn't mean a lot to me - definitely not a programmer (though I used to be pretty good on 6502 code back in the day! ;) ) those config.sub and config.guess files do exist in the locations found, and since substituting "unknown" into the --build string seems to work, I guess its all working as it should!

Anyway, I learn something new everyday!

Many thanks!

--
Pete

sndwvs 04-07-2021 11:26 AM

one more solution

Code:

xzcat $CWD/config.guess.xz > config.guess || exit 1
xzcat $CWD/config.sub.xz > config.sub || exit 1


drmozes 04-07-2021 11:26 AM

Quote:

Originally Posted by pchristy (Post 6238237)
Code:

find . -name config.sub -print0 | xargs -0i cp -favv /usr/share/libtool/build-aux/config.sub '{}'
'/usr/share/libtool/build-aux/config.sub' -> './.auto/config.sub'

I'm afraid that doesn't mean a lot to me [..]

These are the scripts libtool uses to determine what it can do for a particular architecture.
The problem is that the libtool scripts packaged within that source are old. Updating them with newer ones will most likely fix it. I've updated 100s of package build scripts like this for Slackware AArch64.
Glad it works for you!

pchristy 04-07-2021 12:43 PM

Quote:

Originally Posted by drmozes (Post 6238240)
I've updated 100s of package build scripts like this for Slackware AArch64.

And I'm looking forward to being able to try out the fruits of your labour!

Thanks for your efforts and advice - and sdnwvs, as well!

--
Pete


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