unrecognized option --sysroot error for assembly .s files.

89 views
Skip to first unread message

mun24

unread,
Nov 16, 2017, 7:23:04 PM11/16/17
to android-ndk
prebuilt\windows-x86_64\bin\arm-linux-androideabi-as.exe: unrecognized option `--sysroot=C:/Users/username/AppData/Local/Android/sdk/ndk-bundle/platforms/android-19/arch-arm


How to remove --sysroot flag for assembly .s files.


Thanks

Dan Albert

unread,
Nov 17, 2017, 2:30:49 PM11/17/17
to android-ndk

--
You received this message because you are subscribed to the Google Groups "android-ndk" group.
To unsubscribe from this group and stop receiving emails from it, send an email to android-ndk+unsubscribe@googlegroups.com.
To post to this group, send email to andro...@googlegroups.com.
Visit this group at https://groups.google.com/group/android-ndk.
To view this discussion on the web visit https://groups.google.com/d/msgid/android-ndk/259351f1-c44f-48c1-a2cc-834901cd31a0%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

mun24

unread,
Nov 18, 2017, 8:38:56 PM11/18/17
to android-ndk
rules.ninja has this command for  .s files
AppData\Local\Android\sdk\ndk-bundle\toolchains\arm-linux-androideabi-4.9\prebuilt\windows-x86_64\bin\arm-linux-androideabi-as.exe --sysroot=C:/Users/username/AppData/Local/Android/sdk/ndk-bundle/platforms/android-19/arch-arm $FLAGS -MD -MT $out -MF $DEP_FILE -o $out $IN_ABS. Also add -O0 and -Dandroid options for arm-linux-androideabi-as.exe which is invalid for assembler. Add .s and .c files in same CMakeLists.txt. for your test.

I am using Android studio. Before compiling Android studio creates rules.ninja using android.toolchain.cmake
Thx.

On Friday, 17 November 2017 14:30:49 UTC-5, Dan Albert wrote:
On Thu, Nov 16, 2017 at 1:34 PM, mun24 <ajitm...@gmail.com> wrote:
prebuilt\windows-x86_64\bin\arm-linux-androideabi-as.exe: unrecognized option `--sysroot=C:/Users/username/AppData/Local/Android/sdk/ndk-bundle/platforms/android-19/arch-arm


How to remove --sysroot flag for assembly .s files.


Thanks

--
You received this message because you are subscribed to the Google Groups "android-ndk" group.
To unsubscribe from this group and stop receiving emails from it, send an email to android-ndk...@googlegroups.com.
Reply all
Reply to author
Forward
0 new messages