NDK 12b bug, yasm: warning: can open only one input file, only the last file will be processed,

474 views
Skip to first unread message

Xu Jianbin

unread,
Jan 22, 2017, 4:55:18 PM1/22/17
to android-ndk
 When I complile libjpeg-turbo for x86 and x86_64, 
I saw yasm warnings like below: 
 /cygdrive/c/android-ndk-r12b/prebuilt/windows-x86_64/bin/yasm -I../../packages/libjpeg-turbo-android-7.1.1_r13/simd -I../../packages/libjpeg-turbo-android-7.1.1_r13 -isystem C:/android-ndk-r12b/platforms/android-16/arch-x86/usr/include -f elf32 -m x86 ../../packages/libjpeg-turbo-android-7.1.1_r13/simd/jccolor-mmx.asm -o ./objsout/debug/local/x86/objs-debug/jpeg-turbo_static/simd/jccolor-mmx.o
yasm: warning: can open only one input file, only the last file will be processed

I think that yasm cant't recognize the argument "-isystem", so I don't found out -isystem in yasm help.
But yams listed -i and -I.

The asm building rule is defined build/core/definitions.mk
But I don't know if it's a bug. Please check it. 
   1598 # -----------------------------------------------------------------------------
   1599 # Template  : ev-compile-c-source
   1600 # Arguments : 1: single C source file name (relative to LOCAL_PATH)
   1601 #             2: target object file (without path)
   1602 # Returns   : None
   1603 # Usage     : $(eval $(call ev-compile-c-source,<srcfile>,<objfile>)
   1604 # Rationale : Internal template evaluated by compile-c-source and
   1605 #             compile-s-source
   1606 # -----------------------------------------------------------------------------
   1607 define  ev-compile-c-source
   1608 _SRC:=$$(call local-source-file-path,$(1))
   1609 _OBJ:=$$(LOCAL_OBJS_DIR:%/=%)/$(2)
   1610
   1611 _FLAGS := $$($$(my)CFLAGS) \
   1612           $$(call get-src-file-target-cflags,$(1)) \
   1613           $$(call host-c-includes,$$(LOCAL_C_INCLUDES) $$(LOCAL_PATH)) \
   1614           $$(LOCAL_CFLAGS) \
   1615           $$(LOCAL_CONLYFLAGS) \
   1616           $$(NDK_APP_CFLAGS) \
   1617           $$(NDK_APP_CONLYFLAGS) \
   1618           -isystem $$(call host-path,$$(SYSROOT_INC)/usr/include) \
   1619           -c \
   1620
   1621 _TEXT := Compile $$(call get-src-file-text,$1)
   1622 _CC   := $$(NDK_CCACHE) $$(TARGET_CC)
   1623
   1624 $$(eval $$(call ev-build-source-file))
   1625 endef

  

Dan Albert

unread,
Jan 25, 2017, 3:02:03 PM1/25/17
to android-ndk
Looks like you found a bug :) Filed https://github.com/android-ndk/ndk/issues/288

The warnings should be harmless so I've triaged for r15.

--
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/517e904b-b301-4a06-889e-803fe8ba66e5%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply all
Reply to author
Forward
0 new messages