last day (22 days later) » 

2:04 PM
0
Q: cc1: error: unrecognized command line option '-std=c11'

sunil sunnyI got this error while compiling cc1: error: unrecognized command line option '-std=c11' a project. All the related issues suggest to use a gcc greater than 4.7 but I already have a gcc greater than 4.7.This is the details gcc version 6.3.0 20170519 (Ubuntu/Linaro 6.3.0-18ubuntu2~16.04) I am t...

 
@muru I am trying to compile this github.com/rhdunn/espeak/tree/master/android . Issue is happening in this file github.com/rhdunn/espeak/blob/master/android/jni/Android.mk while ndk-build.
@muru Can you please check my edit. I don't know how to make it more clear.This error occured while using 'ndk-build' command.
 
Where is the MIPS compiler located on your system? What version is it? I'd guess that it's not the same version as /usr/bin/gcc. Also, which build procedure are you using? ndk-build doesn't appear in README.md at all.
 
@DavidFoerster I am following Android make apk-release is failing with the same error. All the other steps where successfull.MIPS is located here /usr/lib/gcc-cross/mips-linux-gnu with version 5 and 5.4.0 available. gcc is located in /usr/lib/gcc/i686-linux-gnu with version 5,5.4.1,6 and 6.3.0. How to make both same ?
 
What's your Ubuntu release and how did you install the two GCCs?
What's the output of $CC -c -xc -std=c11 -o /dev/null /dev/null where $CC is the path to your MIPS C compiler?
 
@DavidFoerster ubuntu is 16.0.4 and I am using a virtualbox. Because of the mentioned error I tried to change my gcc using this gist.github.com/application2000/… and it worked. I tried your command but got these errors. -vbox:~/eSpeak/espeak-master# /usr/lib/gcc-cross/mips-linux-gnu/5.4.0/cc1 -c -xc -std=c11 -o /dev/null /dev/null cc1: error: command line option ‘-c’ is valid for the driver but not for C cc1: error: command line option ‘-xc’ is valid for the driver but not for C I dont have cc only have cc1.
 
2:04 PM
You shouldn't invoke the cc1 command directly because it doesn't work that way. Please use the related gcc wrapper command instead.
How did you install the MIPS C compiler?
 
 
3 hours later…
5:14 PM
Using this command 'sudo apt-get install gcc-mips-linux-gnu'
 
 
4 hours later…
9:27 PM
@sunilsunny: Then the executable of GCC for MIPS is mips-linux-gnu-gcc. What's the output of mips-linux-gnu-gcc -c -xc -std=c11 -o /dev/null /dev/null?
 

  last day (22 days later) »