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

Commit 470f5912 breaks build on M1 mac #144

Open
jeffli678 opened this issue Apr 24, 2022 · 4 comments
Open

Commit 470f5912 breaks build on M1 mac #144

jeffli678 opened this issue Apr 24, 2022 · 4 comments

Comments

@jeffli678
Copy link

jeffli678 commented Apr 24, 2022

After the commit 470f591, I get this error message when building libtheora:

building libtheora - version 1.1.1
=======================
Downloading https://ftp.osuosl.org/pub/xiph/releases/theora/libtheora-1.1.1.tar.gz as libtheora-1.1.1.tar.gz
... Done
Extracted libtheora-1.1.1.tar.gz
$ ./configure --prefix=/Users/jeff/ffmpeg-build-script/workspace --with-ogg-libraries=/Users/jeff/ffmpeg-build-script/workspace/lib --with-ogg-includes=/Users/jeff/ffmpeg-build-script/workspace/include/ --with-vorbis-libraries=/Users/jeff/ffmpeg-build-script/workspace/lib --with-vorbis-includes=/Users/jeff/ffmpeg-build-script/workspace/include/ --enable-static --disable-shared --disable-oggtest --disable-vorbistest --disable-examples --disable-asm --disable-spec
checking build system type... Invalid configuration `aarch64-apple-darwin21.4.0': machine `aarch64-apple' not recognized
configure: error: /bin/sh ./config.sub aarch64-apple-darwin21.4.0 failed

Failed to Execute ./configure --prefix=/Users/jeff/ffmpeg-build-script/workspace --with-ogg-libraries=/Users/jeff/ffmpeg-build-script/workspace/lib --with-ogg-includes=/Users/jeff/ffmpeg-build-script/workspace/include/ --with-vorbis-libraries=/Users/jeff/ffmpeg-build-script/workspace/lib --with-vorbis-includes=/Users/jeff/ffmpeg-build-script/workspace/include/ --enable-static --disable-shared --disable-oggtest --disable-vorbistest --disable-examples --disable-asm --disable-spec
@jeffli678
Copy link
Author

jeffli678 commented Apr 24, 2022

The config.guess that comes with the libtheora returns arm-apple-darwin21.4.0, while the gcc one returns aarch64-apple-darwin21.4.0. The libtheira configure script, however, rejects the name aarch64.

It appears to me that libtheora needs some fix to accept the name aarch64, so I am not super sure how we should fix it.

Maybe we can find a different config.guess script?

@krono-i2
Copy link

krono-i2 commented Aug 30, 2022

Same here using release.

$ ./configure --prefix=/Users/krono/workspace/ffmpeg-build-script-1.39/workspace --with-ogg-libraries=/Users/krono/workspace/ffmpeg-build-script-1.39/workspace/lib --with-ogg-includes=/Users/krono/workspace/ffmpeg-build-script-1.39/workspace/include/ --with-vorbis-libraries=/Users/krono/workspace/ffmpeg-build-script-1.39/workspace/lib --with-vorbis-includes=/Users/krono/workspace/ffmpeg-build-script-1.39/workspace/include/ --enable-static --disable-shared --disable-oggtest --disable-vorbistest --disable-examples --disable-asm --disable-spec
checking build system type... Invalid configuration `aarch64-apple-darwin21.6.0': machine `aarch64-apple' not recognized
configure: error: /bin/sh ./config.sub aarch64-apple-darwin21.6.0 failed

Failed to Execute ./configure --prefix=/Users/krono/workspace/ffmpeg-build-script-1.39/workspace --with-ogg-libraries=/Users/krono/workspace/ffmpeg-build-script-1.39/workspace/lib --with-ogg-includes=/Users/krono/workspace/ffmpeg-build-script-1.39/workspace/include/ --with-vorbis-libraries=/Users/krono/workspace/ffmpeg-build-script-1.39/workspace/lib --with-vorbis-includes=/Users/krono/workspace/ffmpeg-build-script-1.39/workspace/include/ --enable-static --disable-shared --disable-oggtest --disable-vorbistest --disable-examples --disable-asm --disable-spec

Do you have suggestions?

[UPDATE]
A workaround is to comment the lines of the incriminated commit.

@jamauai
Copy link

jamauai commented Sep 9, 2022

A workaround is to comment the lines of the incriminated commit.

@krono86: Sorry, which lines did you comment out?

@krono-i2
Copy link

krono-i2 commented Sep 9, 2022

The lines of commit 470f591 at the top of the page.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
3 participants