Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

forced target system type for libid3tag and libmad configure #2

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

oprog
Copy link

@oprog oprog commented Nov 3, 2022

I followed the instructions to build the bin using the docker but compilation failed since in 2 cases the configure was unable to guess the target system type. My host is an Apple M1 Pro with MacOS Ventura 13.0 but I don't think this is the cause of the issue. Probably that happens since Dockerfile contains "FROM amazonlinux:2" and since this code was released several updates on that images were released.

I've forced libid3tag and libmad not to guess the target system adding "--build=aarch64-unknown-linux-gnu"

N.B. I've just tested it on my above environment, if you can test it on some different hosts please.

This is the error I got without this PR:

2022-11-03 12:43:12 (1.15 MB/s) - 'libid3tag-0.15.1b.tar.gz' saved [338143/338143]

+ tar xzf libid3tag-0.15.1b.tar.gz
+ cd libid3tag-0.15.1b
+ sed -i 's/ -fforce-mem//' configure
+ ./configure --disable-shared --prefix=/usr --libdir=/usr/lib64
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for gawk... gawk
checking whether make sets $(MAKE)... yes
checking build system type... ./config.guess: unable to guess system type

This script, last modified 2004-01-05, 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

    ftp://ftp.gnu.org/pub/gnu/config/

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 <[email protected]> in order to provide the needed
information to handle your system.

config.guess timestamp = 2004-01-05

uname -m = aarch64
uname -r = 5.10.124-linuxkit
uname -s = Linux
uname -v = #1 SMP PREEMPT Thu Jun 30 08:18:26 UTC 2022

/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.10.124-linuxkit
UNAME_SYSTEM  = Linux
UNAME_VERSION = #1 SMP PREEMPT Thu Jun 30 08:18:26 UTC 2022
configure: error: cannot guess build type; you must specify one

@oprog oprog changed the title forced target type for libid3tag and libmad configure forced target system type for libid3tag and libmad configure Nov 3, 2022
@oprog oprog closed this Nov 3, 2022
@oprog oprog reopened this Nov 3, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant