Skip to content
This repository has been archived by the owner on Jan 6, 2025. It is now read-only.

Issue building nettle for iOS #553

Closed
milos1290 opened this issue Sep 24, 2020 · 1 comment
Closed

Issue building nettle for iOS #553

milos1290 opened this issue Sep 24, 2020 · 1 comment
Assignees
Labels

Comments

@milos1290
Copy link

milos1290 commented Sep 24, 2020

Description
Command fails to build gnutls due to nettle dependency failing to configure and build.

./ios.sh -x -f --enable-gmp --enable-gnutls --disable-arm64e --disable-armv7 --disable-armv7s --disable-i386 --enable-ios-audiotoolbox --enable-ios-avfoundation --enable-ios-bzip2 --enable-ios-zlib --enable-ios-libiconv

Expected behavior
Build passing

Current behavior
When running command above, it will fail due to nettle dependency failing to build

Logs
The build fails due to configure not finding compilers

nettle/configure.log

configure:4703: checking build system compiler gcc
configure:4716: gcc conftest.c
conftest.c:4:3: error: implicitly declaring library function 'exit' with type 'void (int) __attribute__((noreturn))' [-Werror,-Wimplicit-function-declaration]
  exit(0);
  ^
conftest.c:4:3: note: include the header <stdlib.h> or explicitly provide a declaration for 'exit'
1 error generated.
configure:4720: $? = 1
configure:4727: result: no
configure:4703: checking build system compiler cc
configure:4716: cc conftest.c
conftest.c:4:3: error: implicitly declaring library function 'exit' with type 'void (int) __attribute__((noreturn))' [-Werror,-Wimplicit-function-declaration]
  exit(0);
  ^
conftest.c:4:3: note: include the header <stdlib.h> or explicitly provide a declaration for 'exit'
1 error generated.
configure:4720: $? = 1
configure:4727: result: no
configure:4703: checking build system compiler c89
configure:4716: c89 conftest.c
conftest.c:4:3: error: implicitly declaring library function 'exit' with type 'void (int) __attribute__((noreturn))' [-Werror,-Wimplicit-function-declaration]
  exit(0);
  ^
conftest.c:4:3: note: include the header <stdlib.h> or explicitly provide a declaration for 'exit'
1 error generated.
configure:4720: $? = 1
configure:4727: result: no
configure:4703: checking build system compiler c99
configure:4716: c99 conftest.c
conftest.c:4:3: error: implicitly declaring library function 'exit' with type 'void (int) __attribute__((noreturn))' [-Werror,-Wimplicit-function-declaration]
  exit(0);
  ^
conftest.c:4:3: note: include the header <stdlib.h> or explicitly provide a declaration for 'exit'
1 error generated.
configure:4720: $? = 1
configure:4727: result: no
configure:4738: error: Cannot find a build system compiler 

build.log

checking build system type... x86_64-apple-darwin19.6.0
checking host system type... aarch64-ios-darwin
checking for -R flag... none
Searching for libraries
checking /Users/milos/Developer/mobile-ffmpeg/prebuilt/ios-arm64/gmp/lib... added
checking /Users/milos/Developer/mobile-ffmpeg/prebuilt/ios-arm64/nettle/lib... not found
checking /usr/local/lib... added
checking /sw/local/lib... not found
checking /sw/lib... not found
checking /usr/gnu/lib... not found
checking /opt/gnu/lib... not found
checking /sw/gnu/lib... not found
checking /usr/freeware/lib... not found
checking /usr/pkg/lib... not found
checking for aarch64-ios-darwin-gcc... 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 we are using the GNU C compiler... yes
checking whether clang accepts -g... yes
checking for clang option to accept ISO C89... none needed
checking for ifunc support... no
checking whether we are using the GNU C++ compiler... yes
checking whether clang++ accepts -g... yes
checking if LD -Wl,--version-script works... no
checking whether make sets $(MAKE)... yes
checking for aarch64-ios-darwin-ranlib... /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/ranlib
checking for aarch64-ios-darwin-nm... no
checking for nm... nm
configure: WARNING: using cross tools not prefixed with host triplet
checking for aarch64-ios-darwin-objdump... no
checking for objdump... objdump
checking for aarch64-ios-darwin-ar... /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/ar
checking for a BSD-compatible install... /usr/bin/install -c
checking for a thread-safe mkdir -p... ./install-sh -c -d
checking whether ln -s works... yes
checking build system compiler gcc... no
checking build system compiler cc... no
checking build system compiler c89... no
checking build system compiler c99... no
configure: error: Cannot find a build system compiler 

Environment

  • Platform: iOS
  • Architecture: x86_64, arm64
  • Source branch: 4.4
  • Xcode version: 12.0
tanersener added a commit that referenced this issue Sep 26, 2020
@tanersener tanersener self-assigned this Sep 26, 2020
@tanersener tanersener added the enhancement New feature or request label Sep 26, 2020
@tanersener
Copy link
Owner

Fixed in both development & master.

imostovyi pushed a commit to imostovyi/mobile-ffmpeg that referenced this issue Apr 2, 2021
* development: (155 commits)
  fix android async example
  update ios manual test application
  update android test app
  support iOS 14, fixes tanersener#553
  Support Android scoped storage (tanersener#440)
  Update arch-common.sh (tanersener#534)
  fix monitorWait method for android, fixes tanersener#520
  reorganise android.mk for cpu-features
  update the packaging for android arm-v7a and arm-v7a-neon architectures and remove custom abi rules for releases, fixes tanersener#511
  fix proguard rules, fixes tanersener#508
  target android api level 30
  update android gradle version
  Update README
  move tooltips to resources
  fix android release packaging script
  update ios test-app settings
  fix ios/tvos system library indexes in ffmpeg build scripts
  use v4.4.LTS in test applications
  release v4.4.LTS
  fix mobile-ffmpeg videotoolbox flags for tvos
  ...

# Conflicts:
#	ios/configure
#	ios/src/MobileFFmpeg.h
#	ios/src/MobileFFmpeg.m
#	src/ffmpeg/configure
#	src/ffmpeg/libswscale/aarch64/hscale.S
#	src/libvorbis/doc/Vorbis_I_spec.html
#	src/libvorbis/doc/Vorbis_I_spec.pdf
# for free to subscribe to this conversation on GitHub. Already have an account? #.
Labels
Projects
None yet
Development

No branches or pull requests

2 participants