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

undeclared identifier 'OPUS_ARCHMASK' in arm_dnn_map.c #377

Open
nguditi opened this issue Nov 6, 2024 · 0 comments
Open

undeclared identifier 'OPUS_ARCHMASK' in arm_dnn_map.c #377

nguditi opened this issue Nov 6, 2024 · 0 comments

Comments

@nguditi
Copy link

nguditi commented Nov 6, 2024

I'm using NDK 21.4.7075529 (also tried with 22.0.7026061)
Clone opus from tag v1.5.2
Run configure on mac intel for host armeabi-v7a

I meet some error while compiling
image

In the config log, i see something like force-enable NEON instructions, maybe arm_dnn_map.c files are missing header to dnn_arm.h which is needed to handle case OPUS_ARM_MAY_HAVE_NEON 1 && OPUS_ARM_PRESUME_NEON 0

Config:
--host=arm-linux-androideabi --with-sysroot=/Users/Android/sdk/ndk/21.4.7075529/toolchains/llvm/prebuilt/darwin-x86_64/sysroot --with-pic=yes --enable-shared --disable-static --disable-doc --disable-extra-programs --disable-maintainer-mode --disable-fast-install --disable-fixed-point --enable-rtcd --enable-custom-modes --enable-intrinsics --enable-dependency-tracking --enable-float-api --enable-check-asm --enable-asm --disable-fuzzing --enable-dred --enable-osce --disable-assertions --disable-hardening --disable-fixed-point-debug

Output:

checking whether make supports nested variables... yes
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for arm-linux-androideabi-strip... arm-linux-androideabi-strip
checking for a race-free mkdir -p... ./install-sh -c -d
checking for gawk... no
checking for mawk... no
checking for nawk... no
checking for awk... awk
checking whether make sets $(MAKE)... yes
checking whether to enable maintainer-specific portions of Makefiles... no
checking build system type... i386-apple-darwin23.1.0
checking host system type... arm-unknown-linux-androideabi
checking how to print strings... printf
checking whether make supports the include directive... yes (GNU style)
checking for arm-linux-androideabi-gcc... armv7a-linux-androideabi21-clang
checking whether the C compiler works... yes
checking for C compiler default output file name... a.out
checking for suffix of executables... 
checking whether we are cross compiling... yes
checking for suffix of object files... o
checking whether the compiler supports GNU C... yes
checking whether armv7a-linux-androideabi21-clang accepts -g... yes
checking for armv7a-linux-androideabi21-clang option to enable C11 features... unsupported
checking for armv7a-linux-androideabi21-clang option to enable C99 features... none needed
checking whether armv7a-linux-androideabi21-clang understands -c and -o together... yes
checking dependency style of armv7a-linux-androideabi21-clang... gcc3
checking for a sed that does not truncate output... /usr/bin/sed
checking for grep that handles long lines and -e... /usr/bin/grep
checking for egrep... /usr/bin/grep -E
checking for fgrep... /usr/bin/grep -F
checking for ld used by armv7a-linux-androideabi21-clang... arm-linux-androideabi-ld
checking if the linker (arm-linux-androideabi-ld) is GNU ld... yes
checking for BSD- or MS-compatible name lister (nm)... /Users/Android/sdk/ndk/21.4.7075529/toolchains/llvm/prebuilt/darwin-x86_64/bin/arm-linux-androideabi-nm -B
checking the name lister (/Users/Android/sdk/ndk/21.4.7075529/toolchains/llvm/prebuilt/darwin-x86_64/bin/arm-linux-androideabi-nm -B) interface... BSD nm
checking whether ln -s works... yes
checking the maximum length of command line arguments... 786432
checking how to convert i386-apple-darwin23.1.0 file names to arm-unknown-linux-androideabi format... func_convert_file_noop
checking how to convert i386-apple-darwin23.1.0 file names to toolchain format... func_convert_file_noop
checking for arm-linux-androideabi-ld option to reload object files... -r
checking for file... file
checking for arm-linux-androideabi-objdump... arm-linux-androideabi-objdump
checking how to recognize dependent libraries... pass_all
checking for arm-linux-androideabi-dlltool... no
checking for dlltool... no
checking how to associate runtime and link libraries... printf %s\n
checking for arm-linux-androideabi-ranlib... arm-linux-androideabi-ranlib
checking for arm-linux-androideabi-ar... arm-linux-androideabi-ar
checking for archiver @FILE support... @
checking for arm-linux-androideabi-strip... (cached) arm-linux-androideabi-strip
checking command to parse /Users/Android/sdk/ndk/21.4.7075529/toolchains/llvm/prebuilt/darwin-x86_64/bin/arm-linux-androideabi-nm -B output from armv7a-linux-androideabi21-clang object... ok
checking for sysroot... /Users/Android/sdk/ndk/21.4.7075529/toolchains/llvm/prebuilt/darwin-x86_64/sysroot
checking for a working dd... /bin/dd
checking how to truncate binary pipes... /bin/dd bs=4096 count=1
checking for arm-linux-androideabi-mt... no
checking for mt... no
checking if : is a manifest tool... no
checking for stdio.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for strings.h... yes
checking for sys/stat.h... yes
checking for sys/types.h... yes
checking for unistd.h... yes
checking for dlfcn.h... yes
checking for objdir... .libs
checking if armv7a-linux-androideabi21-clang supports -fno-rtti -fno-exceptions... yes
checking for armv7a-linux-androideabi21-clang option to produce PIC... -fPIC -DPIC
checking if armv7a-linux-androideabi21-clang PIC flag -fPIC -DPIC works... yes
checking if armv7a-linux-androideabi21-clang static flag -static works... no
checking if armv7a-linux-androideabi21-clang supports -c -o file.o... yes
checking if armv7a-linux-androideabi21-clang supports -c -o file.o... (cached) yes
checking whether the armv7a-linux-androideabi21-clang linker (arm-linux-androideabi-ld) supports shared libraries... yes
checking whether -lc should be explicitly linked in... no
checking dynamic linker characteristics... Android linker
checking how to hardcode library paths into programs... immediate
checking whether stripping libraries is possible... yes
checking if libtool supports shared libraries... yes
checking whether to build shared libraries... yes
checking whether to build static libraries... no
checking for an ANSI C-conforming const... yes
checking for inline... inline
checking dependency style of armv7a-linux-androideabi21-clang... gcc3
checking for C/C++ restrict keyword... __restrict
checking for C99 variable-size arrays... yes
checking for cos in -lm... yes
checking how to run the C preprocessor... armv7a-linux-androideabi21-clang -E
checking if compiler supports gcc-style inline assembly... yes
checking if assembler supports EDSP instructions on ARM... yes
checking if assembler supports ARMv6 media instructions on ARM... yes
checking if assembler supports NEON instructions on ARM... no
checking for perl... yes
configure: Trying to force-enable NEON instructions...
checking if assembler supports NEON instructions on ARM... yes
checking for apple style tools... no
checking if compiler supports ARM Neon intrinsics... no
checking if compiler supports ARM Neon intrinsics with -mfpu=neon -mfloat-abi=softfp... no
configure: WARNING: Compiler does not support ARM intrinsics
checking argument osce training data... no
checking if armv7a-linux-androideabi21-clang supports -fvisibility=hidden... yes
checking whether to add -D_FORTIFY_SOURCE=2 to CFLAGS... yes
checking if armv7a-linux-androideabi21-clang supports -Wall -Wextra -Wcast-align -Wnested-externs -Wshadow -Wstrict-prototypes... yes
checking for lrintf... yes
checking for lrint... yes
checking for __malloc_hook... no
checking that generated files are newer than configure... done
configure: creating ./config.status
config.status: creating Makefile
config.status: creating opus.pc
config.status: creating opus-uninstalled.pc
config.status: creating celt/arm/armopts.s
config.status: creating doc/Makefile
config.status: creating doc/Doxyfile
config.status: creating config.h
config.status: executing depfiles commands
config.status: executing libtool commands
configure:
------------------------------------------------------------------------
  opus 1.5.2:  Automatic configuration OK.

    Compiler support:

      C99 var arrays: ................ yes
      C99 lrintf: .................... yes
      Use alloca: .................... no (using var arrays)

    General configuration:

      Floating point support: ........ yes
      Fast float approximations: ..... yes
      Fixed point debugging: ......... no
      Inline Assembly Optimizations: . ARM (EDSP) (Media)
      External Assembly Optimizations: ARM (EDSP) (Media)
      Intrinsics Optimizations: ...... no
      Run-time CPU detection: ........ ARM (NEON)
      Custom modes: .................. yes
      Assertion checking: ............ no
      Hardening: ..................... no
      Fuzzing: ....................... no
      Check ASM: ..................... yes

      API documentation: ............. no
      Extra programs: ................ no
------------------------------------------------------------------------
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

No branches or pull requests

1 participant