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

cc1: error: unrecognized command line option '-std=c11' (Android) #115

Open
sunilsunny565 opened this issue Nov 13, 2017 · 0 comments
Open

Comments

@sunilsunny565
Copy link

sunilsunny565 commented Nov 13, 2017

I got this error while compiling Android version
cc1: error: unrecognized command line option '-std=c11'
But I have gcc installed in my system.
$ gcc -std=c11 --version is giving me the the below out

-vbox:~/eSpeak/espeak-master$ gcc -std=c11 --version

gcc (Ubuntu 5.4.0-6ubuntu1~16.04.5) 5.4.0 20160609
Copyright (C) 2015 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.  There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

make apk-release this is the command that is giving this error.

root@ap-vbox:~/eSpeak/espeak-master# make apk-releasecd android && ndk-build
/home/sunil/android-ndk/build/extract_manifest.py: 16: /home/sunil/android-ndk/build/extract_manifest.py: Extracts values from the AndroidManifest.xml file.: not found
/home/sunil/android-ndk/build/extract_manifest.py: 22: /home/sunil/android-ndk/build/extract_manifest.py: Syntax error: "(" unexpected
Android NDK: WARNING: APP_PLATFORM android-14 is higher than android:minSdkVersion 1 in ./AndroidManifest.xml. NDK binaries will *not* be comptible with devices older than android-14. See https://android.googlesource.com/platform/ndk/+/master/docs/user/common_problems.md for more information.    
/home/sunil/android-ndk/build/extract_manifest.py: 16: /home/sunil/android-ndk/build/extract_manifest.py: Extracts values from the AndroidManifest.xml file.: not found
/home/sunil/android-ndk/build/extract_manifest.py: 22: /home/sunil/android-ndk/build/extract_manifest.py: Syntax error: "(" unexpected
make[1]: Entering directory `/home/sunil/eSpeak/espeak-master/android'
[mips] SharedLibrary  : libttsespeak.so
/home/sunil/android-ndk/toolchains/llvm/prebuilt/linux-x86/bin/clang++: 1: /home/sunil/android-ndk/toolchains/llvm/prebuilt/linux-x86/bin/clang++: Syntax error: ")" unexpected
make[1]: *** [obj/local/mips/libttsespeak.so] Error 2
make[1]: Leaving directory `/home/sunil/eSpeak/espeak-master/android'
make: *** [jni] Error 2

Can anyone help to fix this.Thanks.

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