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

cp: cannot stat 'out/target/product/bxtp_abl/obj_x86/SHARED_LIBRARIES/afl-llvm-rt_intermediates/llvm_mode/afl-llvm-rt.o.o': #15

Open
sky8336 opened this issue Jul 20, 2017 · 0 comments

Comments

@sky8336
Copy link

sky8336 commented Jul 20, 2017

hi
when i build it on android m , x86 arch, i found a strange way that could fix this compiled error, but it's ugly.

when i built using (1), the error is:
cp: cannot stat 'out/target/product/bxtp_abl/obj_x86/SHARED_LIBRARIES/afl-llvm-rt_intermediates/llvm_mode/afl-llvm-rt.o.o': No such file or directory
Then I built it using (2), success.

when i built it using (2), the error is:
cp: cannot stat 'out/target/product/bxtp_abl/obj/SHARED_LIBRARIES/afl-llvm-rt_intermediates/llvm_mode/afl-llvm-rt.o.o': No such file or directory
Then I built using (1), also success.

i don't know why. And out/target/product/bxtp_abl/obj/SHARED_LIBRARIES/afl-llvm-rt_intermediates/llvm_mode/afl-llvm-rt.o.o is different from out/target/product/bxtp_abl/obj_x86/SHARED_LIBRARIES/afl-llvm-rt_intermediates/llvm_mode/afl-llvm-rt.o.

Is anyone know why and how to fix this problem?

Android.mk
when i build it on android m , x86 arch, i found a strange way that could fix this compiled error, but it's ugly.

when i built using (1), the error is:
cp: cannot stat 'out/target/product/bxtp_abl/obj_x86/SHARED_LIBRARIES/afl-llvm-rt_intermediates/llvm_mode/afl-llvm-rt.o.o': No such file or directory
Then I built it using (2), success.

when i built it using (2), the error is:
cp: cannot stat 'out/target/product/bxtp_abl/obj/SHARED_LIBRARIES/afl-llvm-rt_intermediates/llvm_mode/afl-llvm-rt.o.o': No such file or directory
Then I built using (1), also success.

i don't know why. And out/target/product/bxtp_abl/obj/SHARED_LIBRARIES/afl-llvm-rt_intermediates/llvm_mode/afl-llvm-rt.o.o is different from out/target/product/bxtp_abl/obj_x86/SHARED_LIBRARIES/afl-llvm-rt_intermediates/llvm_mode/afl-llvm-rt.o.

Is anyone know why and how to fix this problem?

#Android.mk
152 ################################afl-llvm-rt#################################
153

  • 154 BUILD_OPTION_ONE=true
  • 155 #cp: cannot stat 'out/target/product/bxtp_abl/obj_x86/SHARED_LIBRARIES/afl-llvm-rt_intermediates/llvm_mode/afl-llvm-rt.o.o': No such file or directory
  • 156 # switch (1)->(2) or (2)->(1), then success, don't knowe why
  • 157 #
  • 158 ifeq ($(BUILD_OPTION_ONE), true)
  • 159 #########(1)-start########
    160 include $(CLEAR_VARS)
    161
    162 LOCAL_SRC_FILES := llvm_mode/afl-llvm-rt.o.c
    163 LOCAL_CLANG := true
    164 LOCAL_MULTILIB := both
    165 LOCAL_CC := /usr/bin/clang-3.8
    166 LOCAL_CFLAGS := $(common_CFLAGS)
    167 LOCAL_MODULE := afl-llvm-rt
    168 ifeq ($(TARGET_2ND_ARCH),)
    169 LOCAL_POST_INSTALL_CMD := $(hide) cp -f $(TARGET_OUT_INTERMEDIATES)/SHARED_LIBRARIES/afl-llvm-rt_intermediates/llvm_mode/afl-llvm-rt.o.o $(HELPER_PATH)/afl-llvm-rt.o;
    170 else
    171 LOCAL_POST_INSTALL_CMD := $(hide) cp -f $(TARGET_OUT_INTERMEDIATES)/SHARED_LIBRARIES/afl-llvm-rt_intermediates/llvm_mode/afl-llvm-rt.o.o $(HELPER_PATH)/afl-llvm-rt-64.o;
    172 cp -f $(TARGET_OUT_INTERMEDIATES)_$(TARGET_2ND_ARCH)/SHARED_LIBRARIES/afl-llvm-rt_intermediates/llvm_mode/afl-llvm-rt.o.o $(HELPER_PA TH)/afl-llvm-rt.o;
    173 endif
    174 include $(BUILD_SHARED_LIBRARY)
    175
  • 176 #######(1)-end#############
  • 177 else
  • 178 #######(2)-start############
  • 179 include $(CLEAR_VARS)
  • 180
  • 181 LOCAL_SRC_FILES := llvm_mode/afl-llvm-rt.o.c
  • 182 LOCAL_CLANG := true
  • 183 LOCAL_MULTILIB := 32
  • 184 LOCAL_CC := /usr/bin/clang-3.8
  • 185 LOCAL_CFLAGS := $(common_CFLAGS)
  • 186 LOCAL_MODULE := afl-llvm-rt
  • 187 LOCAL_POST_INSTALL_CMD := $(hide) cp -f $(TARGET_OUT_INTERMEDIATES)/SHARED_LIBRARIES/afl-llvm-rt_intermediates/llvm_mode/afl-llvm-rt.o.o $(HELPER_PATH)/afl-llvm-rt-64.o;
  • 188 include $(BUILD_SHARED_LIBRARY)
  • 189
  • 190 include $(CLEAR_VARS)
  • 191
  • 192 LOCAL_SRC_FILES := llvm_mode/afl-llvm-rt.o.c
  • 193 LOCAL_CLANG := true
  • 194 LOCAL_MULTILIB := 64
  • 195 LOCAL_CC := /usr/bin/clang-3.8
  • 196 LOCAL_CFLAGS := $(common_CFLAGS)
  • 197 LOCAL_MODULE := afl-llvm-rt
  • 198 LOCAL_POST_INSTALL_CMD := $(hide) cp -f $(TARGET_OUT_INTERMEDIATES)_$(TARGET_2ND_ARCH)/SHARED_LIBRARIES/afl-llvm-rt_intermediates/llvm_mo de/afl-llvm-rt.o.o $(HELPER_PATH)/afl-llvm-rt.o;
  • 199 include $(BUILD_SHARED_LIBRARY)
  • 200 endif
  • 201 ########(2)-end###############
  • 202
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