Error building 1.4 on armv7l: Unknown variable "have_arm_intrinsics_or_asm".
Open
Nobody has claimed this yet.
- Dominant language
- C
- Stars
- 3.3k
- Forks
- 808
- PR merge metrics
- No merged PRs in 30d
Description
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".
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Reproduce the armv7l configuration with the Meson command in the issue and review meson-log.txt for the feature checks. Start at silk/meson.build:28 and trace where have_arm_intrinsics_or_asm is expected to be defined; done means the Opus 1.4 build configuration completes without the unknown-variable error.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- c
- Domain
- build-system
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 38/100