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

configure failed. Please help. #13

Open
udexon opened this issue Feb 12, 2020 · 2 comments
Open

configure failed. Please help. #13

udexon opened this issue Feb 12, 2020 · 2 comments
Assignees

Comments

@udexon
Copy link

udexon commented Feb 12, 2020

Here's my config.log starting from line 340. Any ideas?

configure:10521: checking C++ compiler aarch64-linux-android-g++  -O2 -g -pedantic -fomit-frame-pointer -Wa,--noexecstack -ffunction-sections -funwind-tables -no-canonical-prefixes -fno-strict-aliasing -fstack-protector-strong -finline-limit=300 -funswitch-loops
Test compile: 
configure:10535: aarch64-linux-android-g++  -O2 -g -pedantic -fomit-frame-pointer -Wa,--noexecstack -ffunction-sections -funwind-tables -no-canonical-prefixes -fno-strict-aliasing -fstack-protector-strong -finline-limit=300 -funswitch-loops conftest.cc >&5
clang80++: warning: optimization flag '-finline-limit=300' is not supported [-Wignored-optimization-argument]
clang80++: warning: optimization flag '-funswitch-loops' is not supported [-Wignored-optimization-argument]
/home/hongwu/devel/2020/Android/my-toolchain/bin/../lib/gcc/aarch64-linux-android/4.9.x/../../../../aarch64-linux-android/bin/ld: cannot find crtbegin_dynamic.o: No such file or directory
/home/hongwu/devel/2020/Android/my-toolchain/bin/../lib/gcc/aarch64-linux-android/4.9.x/../../../../aarch64-linux-android/bin/ld: cannot find -lc++
/home/hongwu/devel/2020/Android/my-toolchain/bin/../lib/gcc/aarch64-linux-android/4.9.x/../../../../aarch64-linux-android/bin/ld: cannot find crtend_android.o: No such file or directory
clang80++: error: linker command failed with exit code 1 (use -v to see invocation)
configure:10538: $? = 1
failed program was:

int main (void) { return 0; }
configure:10650: result: no
configure:10521: checking C++ compiler aarch64-linux-android-g++  -g -O2
Test compile: 
configure:10535: aarch64-linux-android-g++  -g -O2 conftest.cc >&5
/home/hongwu/devel/2020/Android/my-toolchain/bin/../lib/gcc/aarch64-linux-android/4.9.x/../../../../aarch64-linux-android/bin/ld: cannot find crtbegin_dynamic.o: No such file or directory
/home/hongwu/devel/2020/Android/my-toolchain/bin/../lib/gcc/aarch64-linux-android/4.9.x/../../../../aarch64-linux-android/bin/ld: cannot find -lc++
/home/hongwu/devel/2020/Android/my-toolchain/bin/../lib/gcc/aarch64-linux-android/4.9.x/../../../../aarch64-linux-android/bin/ld: cannot find crtend_android.o: No such file or directory
clang80++: error: linker command failed with exit code 1 (use -v to see invocation)
configure:10538: $? = 1
failed program was:

int main (void) { return 0; }
configure:10650: result: no
configure:10666: error: C++ compiler not available, see config.log for details
@Rupan
Copy link
Owner

Rupan commented Apr 5, 2020

Sorry its taken so long to respond. I suspect you're missing something in your development environment. I just rebuilt GMP 6.2.0 with NDK 21 and things worked fairly smoothly -- only a couple of changes to the build scripts were required.

@Rupan
Copy link
Owner

Rupan commented Apr 5, 2020

If you're not using Ubuntu then I suggest installing a VM with 19.10. Install the meta-package build-essential and download gmp-6.2.0 in /tmp (so the unpacked GMP path is /tmp/gmp-6.2.0). Now under the Android NDK under /tmp, enter /tmp/gmp-6.2.0 and run compile-gmp-arm.sh.

@Rupan Rupan self-assigned this Apr 5, 2020
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