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

Error building 1.4 on armv7l: Unknown variable "have_arm_intrinsics_or_asm". #273

Open
satmandu opened this issue Apr 20, 2023 · 4 comments · Fixed by LibreELEC/LibreELEC.tv#8065

Comments

@satmandu
Copy link

satmandu commented Apr 20, 2023

Using gcc 12.2.1 on armv7l/Chromebrew.

Using these configuration options:

meson setup -Dprefix=/usr/local -Dlibdir=/usr/local/lib -Dmandir=/usr/local/share/man -Dbuildtype=release -Db_lto=true -Dstrip=true -Db_pie=true -Dcpp_args='-O2 -pipe -ffat-lto-objects -fPIC -mfloat-abi=hard -mthumb -mfpu=neon -march=armv7-a+fp -fuse-ld=mold ' -Dc_args='-O2 -pipe -ffat-lto-objects -fPIC -mfloat-abi=hard -mthumb -mfpu=neon -march=armv7-a+fp -fuse-ld=mold ' \
      -Dcustom-modes=true \
      -Ddocs=disabled \
      -Dtests=disabled \
      builddir

This is what I get:

The Meson build system
Version: 1.1.0
Source dir: /usr/local/tmp/crew/opus.20230420152709.dir/opus-1.4
Build dir: /usr/local/tmp/crew/opus.20230420152709.dir/opus-1.4/builddir
Build type: native build
Project name: opus
Project version: 1.4
C compiler for the host machine: ccache cc (gcc 12.2.1 "cc (GCC) 12.2.1 20230130")
C linker for the host machine: cc ld.gold 2.40
Host machine cpu family: arm
Host machine cpu: armv8l
Compiler for C supports arguments -fvisibility=hidden: YES 
Compiler for C supports arguments -Wcast-align: YES 
Compiler for C supports arguments -Wnested-externs: YES 
Compiler for C supports arguments -Wshadow: YES 
Compiler for C supports arguments -Wstrict-prototypes: YES 
Compiler for C supports arguments -fstack-protector-strong: YES 
Library m found: YES
Checking for function "lrintf" with dependency -lm: YES 
Checking for function "lrint" with dependency -lm: YES 
Checking for function "__malloc_hook" : YES 
Check usable header "stdint.h" : YES 
Checking if "restrict keyword" compiles: YES 
Checking if "C99 variable-size arrays" compiles: YES 
Checking if "compiler supports ARMv7/AArch64 NEON intrinsics" : links: YES 
Checking if "compiler supports AArch64 NEON intrinsics" : links: NO 
Checking if "compiler supports AArch64 NEON intrinsics with -mfpu=neon" : links: NO 
Message: Compiler does not support AArch64 NEON intrinsics

silk/meson.build:28:45: ERROR: Unknown variable "have_arm_intrinsics_or_asm".

meson-log.txt

@satmandu
Copy link
Author

Looks like this is fixed by #267

@AlessandroBono
Copy link

This looks like it might be fixed in master with 20c032d. Could you please check?

@satmandu
Copy link
Author

Building with meson from git appears to fail:

 /usr/local/tmp/crew/opus.20230612152307.dir/meson/get-version.py --package-version
fatal: No tags can describe '20c032d27c59d65b19b8ffbb2608e5282fe817eb'.
Try --always, or create some tags.
ERROR: Could not extract package version via `git describe` in /usr/local/tmp/crew/opus.20230612152307.dir

@AlessandroBono
Copy link

That sounds like another error. On my side the error Unknown variable "have_arm_intrinsics_or_asm" is fixed with 20c032d.

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 a pull request may close this issue.

2 participants