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

Configured for android. #70

Open
mosentest opened this issue Feb 8, 2022 · 1 comment
Open

Configured for android. #70

mosentest opened this issue Feb 8, 2022 · 1 comment

Comments

@mosentest
Copy link

Configured for android.

*** Because of configuration changes, you MUST do the following before
*** building:

make depend

make: Entering directory /tmp/curl-android-ios/curl-compile-scripts' make: Nothing to be done for ssl'.
make: Nothing to be done for crypto'. make: Leaving directory /tmp/curl-android-ios/curl-compile-scripts'
HOST_OS=linux
HOST_EXE=
HOST_ARCH=x86_64
HOST_TAG=linux-x86_64
HOST_NUM_CPUS=8
BUILD_NUM_CPUS=16
ERROR: Failed to create toolchain.
checking whether to enable maintainer-specific portions of Makefiles... no
checking whether make supports nested variables... yes
checking whether to enable debug build options... no
checking whether to enable compiler optimizer... (assumed) yes
checking whether to enable strict compiler warnings... no
checking whether to enable compiler warnings as errors... no
checking whether to enable curl debug memory tracking... no
checking whether to enable hiding of library internal symbols... yes
checking whether to enable c-ares for DNS lookups... no
checking whether to disable dependency on -lrt... (assumed no)
checking for path separator... :
checking for sed... /usr/bin/sed
checking for grep... /usr/bin/grep
checking for egrep... /usr/bin/grep -E
checking for a BSD-compatible install... /usr/bin/install -c
checking for arm-linux-androideabi-gcc... /tmp/curl-android-ios/curl-compile-scripts/./../toolchain/bin/arm-linux-androideabi-gcc
checking whether the C compiler works... no
configure: error: in /tmp/curl-android-ios/curl': configure: error: C compiler cannot create executables See config.log' for more details
Error running the configure program

@Udinanon
Copy link

I encountered the same error and i think the problem is that the /tmp/curl-android-ios/curl-compile-scripts/./../toolchain/bin/arm-linux-androideabi-gcc does not exist because the script invokes $NDK_ROOT/build/tools/make-standalone-toolchain.sh which in newer versions of ndk has been substituted with $NDK_ROOT/build/tools/make_standalone_toolchain.py, with slightly different arguments

I tried substituting line 58 from:
$NDK_ROOT/build/tools/make-standalone-toolchain.sh --arch=arm --platform=$TARGET --install-dir=$TOOLCHAIN
to
python $NDK_ROOT/build/tools/make_standalone_toolchain.py --arch=arm --api=$TARGET --install-dir=$TOOLCHAIN
and while this goes further down the compilation, it still fails.
if any devs can confirm this

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

2 participants