Compilation issue with NDk r8.

610 views
Skip to first unread message

poornima

unread,
May 21, 2012, 3:39:01 AM5/21/12
to android-ndk
Dear all,

I am facing problem with android NDK r8 version while compiling my
library.
Library compilation works perfectly fine with NDK r5c version.

When I compile my library using android NDK r8 I get following error,

Compile++ thumb : CppUnitLite2 <= ExceptionHandler.cpp
/home/android-ndk-r8/toolchains/arm-linux-androideabi-4.4.3/prebuilt/
linux-x86/bin/arm-linux-androideabi-g++ -MMD -MP -MF ./obj/local/
armeabi/objs-debug/CppUnitLite2/__/Sources/ExceptionHandler.o.d -fpic -
ffunction-sections -funwind-tables -fstack-protector -D__ARM_ARCH_5__ -
D__ARM_ARCH_5T__ -D__ARM_ARCH_5E__ -D__ARM_ARCH_5TE__ -Wno-psabi -
march=armv5te -mtune=xscale -msoft-float -fno-exceptions -fno-rtti -
mthumb -Os -fomit-frame-pointer -fno-strict-aliasing -finline-limit=64
-I/home/CppUnitLite2/jni/../Headers -I/home/android-ndk-r8/sources/cxx-
stl/gnu-libstdc++/include -I/home/android-ndk-r8/sources/cxx-stl/gnu-
libstdc++/libs/armeabi/include -I/home/CppUnitLite2/jni -DANDROID -
DDEBUG=1 -D_DEBUG=1 -g -O0 -Wall -Wa,--noexecstack -O2 -DNDEBUG -g
-I/home/android-ndk-r8/platforms/android-3/arch-arm/usr/include -c /
home/CppUnitLite2/jni/../Sources/ExceptionHandler.cpp -o ./obj/local/
armeabi/objs-debug/CppUnitLite2/__/Sources/ExceptionHandler.o
Compile++ thumb : CppUnitLite2 <= Test.cpp
/home/android-ndk-r8/toolchains/arm-linux-androideabi-4.4.3/prebuilt/
linux-x86/bin/arm-linux-androideabi-g++ -MMD -MP -MF ./obj/local/
armeabi/objs-debug/CppUnitLite2/__/Sources/Test.o.d -fpic -ffunction-
sections -funwind-tables -fstack-protector -D__ARM_ARCH_5__ -
D__ARM_ARCH_5T__ -D__ARM_ARCH_5E__ -D__ARM_ARCH_5TE__ -Wno-psabi -
march=armv5te -mtune=xscale -msoft-float -fno-exceptions -fno-rtti -
mthumb -Os -fomit-frame-pointer -fno-strict-aliasing -finline-limit=64
-I/home/CppUnitLite2/jni/../Headers -I/home/android-ndk-r8/sources/cxx-
stl/gnu-libstdc++/include -I/home/android-ndk-r8/sources/cxx-stl/gnu-
libstdc++/libs/armeabi/include -I/home/CppUnitLite2/jni -DANDROID -
DDEBUG=1 -D_DEBUG=1 -g -O0 -Wall -Wa,--noexecstack -O2 -DNDEBUG -g
-I/home/android-ndk-r8/platforms/android-3/arch-arm/usr/include -c /
home/CppUnitLite2/jni/../Sources/Test.cpp -o ./obj/local/armeabi/objs-
debug/CppUnitLite2/__/Sources/Test.o
Compile++ thumb : CppUnitLite2 <= Failure.cpp
/home/android-ndk-r8/toolchains/arm-linux-androideabi-4.4.3/prebuilt/
linux-x86/bin/arm-linux-androideabi-g++ -MMD -MP -MF ./obj/local/
armeabi/objs-debug/CppUnitLite2/__/Sources/Failure.o.d -fpic -
ffunction-sections -funwind-tables -fstack-protector -D__ARM_ARCH_5__ -
D__ARM_ARCH_5T__ -D__ARM_ARCH_5E__ -D__ARM_ARCH_5TE__ -Wno-psabi -
march=armv5te -mtune=xscale -msoft-float -fno-exceptions -fno-rtti -
mthumb -Os -fomit-frame-pointer -fno-strict-aliasing -finline-limit=64
-I/home/CppUnitLite2/jni/../Headers -I/home/android-ndk-r8/sources/cxx-
stl/gnu-libstdc++/include -I/home/android-ndk-r8/sources/cxx-stl/gnu-
libstdc++/libs/armeabi/include -I/home/CppUnitLite2/jni -DANDROID -
DDEBUG=1 -D_DEBUG=1 -g -O0 -Wall -Wa,--noexecstack -O2 -DNDEBUG -g
-I/home/android-ndk-r8/platforms/android-3/arch-arm/usr/include -c /
home/CppUnitLite2/jni/../Sources/Failure.cpp -o ./obj/local/armeabi/
objs-debug/CppUnitLite2/__/Sources/Failure.o
Compile++ thumb : CppUnitLite2 <= TestException.cpp
/home/android-ndk-r8/toolchains/arm-linux-androideabi-4.4.3/prebuilt/
linux-x86/bin/arm-linux-androideabi-g++ -MMD -MP -MF ./obj/local/
armeabi/objs-debug/CppUnitLite2/__/Sources/TestException.o.d -fpic -
ffunction-sections -funwind-tables -fstack-protector -D__ARM_ARCH_5__ -
D__ARM_ARCH_5T__ -D__ARM_ARCH_5E__ -D__ARM_ARCH_5TE__ -Wno-psabi -
march=armv5te -mtune=xscale -msoft-float -fno-exceptions -fno-rtti -
mthumb -Os -fomit-frame-pointer -fno-strict-aliasing -finline-limit=64
-I/home/CppUnitLite2/jni/../Headers -I/home/android-ndk-r8/sources/cxx-
stl/gnu-libstdc++/include -I/home/android-ndk-r8/sources/cxx-stl/gnu-
libstdc++/libs/armeabi/include -I/home/CppUnitLite2/jni -DANDROID -
DDEBUG=1 -D_DEBUG=1 -g -O0 -Wall -Wa,--noexecstack -O2 -DNDEBUG -g
-I/home/android-ndk-r8/platforms/android-3/arch-arm/usr/include -c /
home/CppUnitLite2/jni/../Sources/TestException.cpp -o ./obj/local/
armeabi/objs-debug/CppUnitLite2/__/Sources/TestException.o
Compile++ thumb : CppUnitLite2 <= TestRegistry.cpp
/home/android-ndk-r8/toolchains/arm-linux-androideabi-4.4.3/prebuilt/
linux-x86/bin/arm-linux-androideabi-g++ -MMD -MP -MF ./obj/local/
armeabi/objs-debug/CppUnitLite2/__/Sources/TestRegistry.o.d -fpic -
ffunction-sections -funwind-tables -fstack-protector -D__ARM_ARCH_5__ -
D__ARM_ARCH_5T__ -D__ARM_ARCH_5E__ -D__ARM_ARCH_5TE__ -Wno-psabi -
march=armv5te -mtune=xscale -msoft-float -fno-exceptions -fno-rtti -
mthumb -Os -fomit-frame-pointer -fno-strict-aliasing -finline-limit=64
-I/home/CppUnitLite2/jni/../Headers -I/home/android-ndk-r8/sources/cxx-
stl/gnu-libstdc++/include -I/home/android-ndk-r8/sources/cxx-stl/gnu-
libstdc++/libs/armeabi/include -I/home/CppUnitLite2/jni -DANDROID -
DDEBUG=1 -D_DEBUG=1 -g -O0 -Wall -Wa,--noexecstack -O2 -DNDEBUG -g
-I/home/android-ndk-r8/platforms/android-3/arch-arm/usr/include -c /
home/CppUnitLite2/jni/../Sources/TestRegistry.cpp -o ./obj/local/
armeabi/objs-debug/CppUnitLite2/__/Sources/TestRegistry.o
Compile++ thumb : CppUnitLite2 <= TestResult.cpp
/home/android-ndk-r8/toolchains/arm-linux-androideabi-4.4.3/prebuilt/
linux-x86/bin/arm-linux-androideabi-g++ -MMD -MP -MF ./obj/local/
armeabi/objs-debug/CppUnitLite2/__/Sources/TestResult.o.d -fpic -
ffunction-sections -funwind-tables -fstack-protector -D__ARM_ARCH_5__ -
D__ARM_ARCH_5T__ -D__ARM_ARCH_5E__ -D__ARM_ARCH_5TE__ -Wno-psabi -
march=armv5te -mtune=xscale -msoft-float -fno-exceptions -fno-rtti -
mthumb -Os -fomit-frame-pointer -fno-strict-aliasing -finline-limit=64
-I/home/CppUnitLite2/jni/../Headers -I/home/android-ndk-r8/sources/cxx-
stl/gnu-libstdc++/include -I/home/android-ndk-r8/sources/cxx-stl/gnu-
libstdc++/libs/armeabi/include -I/home/CppUnitLite2/jni -DANDROID -
DDEBUG=1 -D_DEBUG=1 -g -O0 -Wall -Wa,--noexecstack -O2 -DNDEBUG -g
-I/home/android-ndk-r8/platforms/android-3/arch-arm/usr/include -c /
home/CppUnitLite2/jni/../Sources/TestResult.cpp -o ./obj/local/armeabi/
objs-debug/CppUnitLite2/__/Sources/TestResult.o
Compile++ thumb : CppUnitLite2 <= TestResultStdErr.cpp
/home/android-ndk-r8/toolchains/arm-linux-androideabi-4.4.3/prebuilt/
linux-x86/bin/arm-linux-androideabi-g++ -MMD -MP -MF ./obj/local/
armeabi/objs-debug/CppUnitLite2/__/Sources/TestResultStdErr.o.d -fpic -
ffunction-sections -funwind-tables -fstack-protector -D__ARM_ARCH_5__ -
D__ARM_ARCH_5T__ -D__ARM_ARCH_5E__ -D__ARM_ARCH_5TE__ -Wno-psabi -
march=armv5te -mtune=xscale -msoft-float -fno-exceptions -fno-rtti -
mthumb -Os -fomit-frame-pointer -fno-strict-aliasing -finline-limit=64
-I/home/CppUnitLite2/jni/../Headers -I/home/android-ndk-r8/sources/cxx-
stl/gnu-libstdc++/include -I/home/android-ndk-r8/sources/cxx-stl/gnu-
libstdc++/libs/armeabi/include -I/home/CppUnitLite2/jni -DANDROID -
DDEBUG=1 -D_DEBUG=1 -g -O0 -Wall -Wa,--noexecstack -O2 -DNDEBUG -g
-I/home/android-ndk-r8/platforms/android-3/arch-arm/usr/include -c /
home/CppUnitLite2/jni/../Sources/TestResultStdErr.cpp -o ./obj/local/
armeabi/objs-debug/CppUnitLite2/__/Sources/TestResultStdErr.o
Prebuilt : libgnustl_static.a <= <NDK>/sources/cxx-stl/gnu-
libstdc++/libs/armeabi/
cp -f /home/android-ndk-r8/sources/cxx-stl/gnu-libstdc++/libs/armeabi/
libgnustl_static.a obj/local/armeabi/libgnustl_static.a
StaticLibrary : libCppUnitLite2.a
rm -f obj/local/armeabi/libCppUnitLite2.a
/home/android-ndk-r8/toolchains/arm-linux-androideabi-4.4.3/prebuilt/
linux-x86/bin/arm-linux-androideabi-ar crs obj/local/armeabi/
libCppUnitLite2.a ./obj/local/armeabi/objs-debug/CppUnitLite2/__/
Sources/ExceptionHandler.o ./obj/local/armeabi/objs-debug/CppUnitLite2/
__/Sources/Test.o ./obj/local/armeabi/objs-debug/CppUnitLite2/__/
Sources/Failure.o ./obj/local/armeabi/objs-debug/CppUnitLite2/__/
Sources/TestException.o ./obj/local/armeabi/objs-debug/CppUnitLite2/__/
Sources/TestRegistry.o ./obj/local/armeabi/objs-debug/CppUnitLite2/__/
Sources/TestResult.o ./obj/local/armeabi/objs-debug/CppUnitLite2/__/
Sources/TestResultStdErr.o
/home/android-ndk-r8/toolchains/arm-linux-androideabi-4.4.3/prebuilt/
linux-x86/bin/arm-linux-androideabi-ar: ./obj/local/armeabi/objs-debug/
CppUnitLite2/__/Sources/ExceptionHandler.o: No such file or directory
make: *** [obj/local/armeabi/libCppUnitLite2.a] Error 1

when I use ndk r8 it searches objs inside ./obj/local/armeabi/objs/
CppUnitLite2/__/Sources and objs are not present.
and when I use ndk r5c it searches objs inside ./obj/local/armeabi/
objs/CppUnitLite2/../Sources. And obj are present.
The same code works fine with ndkr5c.
Does any one know what is the problem ? please help me to solve the
issue.

Thanks in advance,
Poornima



David Turner

unread,
May 21, 2012, 4:56:30 PM5/21/12
to andro...@googlegroups.com
The fact that NDK r8 looks into obj/local/armeabi/objs-debu/CppUnitLite2/__/Sources/ instead of .../CppUnitLite2/../Sources/ is normal. The build script will translate all ".." in object paths into "__" in order to avoid nasty problems.

Before this, if you used something like:

  LOCAL_SRC_FILES := .../foo.c

Then, the object file was generated into:

  obj/local/$ABI/objs-debug/module/../foo.o  i.e.
  obj/local/$ABI/objs-debug/foo.o

This caused problems when several modules compiled the same source file, and other few nastiness in edge cases.
The ".." to "__" translation avoids this problem completely.

What I don't understand is why your "StaticLibrary" command below cannot find the object file, which should clearly be generated from the first "Compile++" command in your log.

Can I ask you if the problem occurs when doing a non-parallel build (i.e. using ndk-build -j1). If not, this may be a real bug, i.e. a dependency problem between the static library and the object files.




--
You received this message because you are subscribed to the Google Groups "android-ndk" group.
To post to this group, send email to andro...@googlegroups.com.
To unsubscribe from this group, send email to android-ndk...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/android-ndk?hl=en.


poornima

unread,
May 23, 2012, 2:22:45 AM5/23/12
to andro...@googlegroups.com
Dear Digit and all,

Thanks for explaining the details. I am beginner for android platform.
Actually my log shows that obj files are getting created but if i follow the path there are no obj files found.
following is my directory structure
CppUnitLite2
|
|--Sources
|        |--TestResultStdErr.cpp etc
|--Headers
|        |--TestResultStdErr.h etc
|--jni
|   |--Application.mk
|   |--Android.mk

following is my application.mk file content

APP_MODULES      := CppUnitLite2
APP_ABI := armeabi armeabi-v7a
APP_STL :=   gnustl_static 

ifeq ($(BUILD), release)
APP_OPTIM := release
endif

ifeq ($(BUILD), debug)
APP_OPTIM := debug
endif

and following is my android.mk file
#
# Android Makefile CppUnitLite2
# BUILD= release or debug

LOCAL_PATH := $(call my-dir)

include $(CLEAR_VARS)

# target
LOCAL_MODULE := CppUnitLite2

CPPUNITLITE_HEADERS := Headers
CPPUNITLITE_SOURCES := ../Sources

LOCAL_C_INCLUDES := \
            $(LOCAL_PATH)/../$(CPPUNITLITE_HEADERS) \
            $(NULL)

#Source files are all relative to LOCAL_PATH
LOCAL_SRC_FILES := \
               $(CPPUNITLITE_SOURCES)/ExceptionHandler.cpp \
            $(CPPUNITLITE_SOURCES)/Test.cpp \
            $(CPPUNITLITE_SOURCES)/Failure.cpp \
            $(CPPUNITLITE_SOURCES)/TestException.cpp \
            $(CPPUNITLITE_SOURCES)/TestRegistry.cpp \
            $(CPPUNITLITE_SOURCES)/TestResult.cpp \
               $(CPPUNITLITE_SOURCES)/TestResultStdErr.cpp \
            $(NULL)       
ifeq (${BUILD}, debug)
LOCAL_CFLAGS += -DDEBUG=1 -D_DEBUG=1 -g -O0 -Wall
endif

ifeq (${BUILD}, release)
LOCAL_CFLAGS += -DNDEBUG=1 -O2 -Os
endif

include $(BUILD_STATIC_LIBRARY)

and i just go to CppUnitLite2 folder and issue following command
CppUnitLite2]#/home/android-ndk-r8/ndk-build V=1

I really don't know whats wrong. cos same thing works fine with ndkr5c.
And i am using linux os i.e fedora 12 and my gcc version is 4.4.4 and its 64-bit machine.
Could you please try to suggest me the solution for the above issue.

Thanks in advance,
Poornima Biradar



On Tuesday, 22 May 2012 02:26:30 UTC+5:30, Digit wrote:
The fact that NDK r8 looks into obj/local/armeabi/objs-debu/CppUnitLite2/__/Sources/ instead of .../CppUnitLite2/../Sources/ is normal. The build script will translate all ".." in object paths into "__" in order to avoid nasty problems.

Before this, if you used something like:

  LOCAL_SRC_FILES := .../foo.c

Then, the object file was generated into:

  obj/local/$ABI/objs-debug/module/../foo.o  i.e.
  obj/local/$ABI/objs-debug/foo.o

This caused problems when several modules compiled the same source file, and other few nastiness in edge cases.
The ".." to "__" translation avoids this problem completely.

What I don't understand is why your "StaticLibrary" command below cannot find the object file, which should clearly be generated from the first "Compile++" command in your log.

Can I ask you if the problem occurs when doing a non-parallel build (i.e. using ndk-build -j1). If not, this may be a real bug, i.e. a dependency problem between the static library and the object files.

To unsubscribe from this group, send email to android-ndk+unsubscribe@googlegroups.com.

RichardC

unread,
May 23, 2012, 6:22:38 AM5/23/12
to andro...@googlegroups.com
Move your header and source directories below the jni directory and change your android.mk to use the new directory structure.

Andrew Hsieh

unread,
May 23, 2012, 6:36:38 AM5/23/12
to andro...@googlegroups.com
Would you be able to compile the attached project (mirroring your source structure)?
On Ubuntu 12.04 64-bit, I did
cd /home/CppUnitLite2 ;  /home/android-ndk-r8/ndk-build V=1 BUILD=debug -B 2>&1 | tee log.0

To view this discussion on the web visit https://groups.google.com/d/msg/android-ndk/-/sUmPjKsDlZEJ.

To post to this group, send email to andro...@googlegroups.com.
To unsubscribe from this group, send email to android-ndk...@googlegroups.com.
CppUnitLite2.tar.bz2

poornima

unread,
May 24, 2012, 3:25:13 AM5/24/12
to andro...@googlegroups.com
Dear Andrew Hsieh,

Yes , i am able to compile my same source code on my ubuntu system with gcc 4.4.3.
it is only failing with fedora 12 system with gcc 4.4.4.
is it OS issue or a gcc version issue?

Regards,
Poornima



On Wednesday, 23 May 2012 16:06:38 UTC+5:30, Andrew Hsieh wrote:
Would you be able to compile the attached project (mirroring your source structure)?
On Ubuntu 12.04 64-bit, I did
cd /home/CppUnitLite2 ;  /home/android-ndk-r8/ndk-build V=1 BUILD=debug -B 2>&1 | tee log.0

David Turner

unread,
May 24, 2012, 4:54:45 AM5/24/12
to andro...@googlegroups.com
On Thu, May 24, 2012 at 9:25 AM, poornima <poornima...@gmail.com> wrote:
Dear Andrew Hsieh,

Yes , i am able to compile my same source code on my ubuntu system with gcc 4.4.3.
it is only failing with fedora 12 system with gcc 4.4.4.
is it OS issue or a gcc version issue?


ndk-build does not use your host gcc, so it's not a compiler issue. There definitely is something weird on your system though because the build commands seem to be about right.

You still didn't answer my question as if "ndk-build -j1" solved the problem for you.

Also, what version of make are you using here? (make -v)

Finally, what's the output of 'ndk-build NDK_LOG=1 <your-other-options>' ? this should tell us a little more about your system.

 
To view this discussion on the web visit https://groups.google.com/d/msg/android-ndk/-/CcFMEpXeI_kJ.

To post to this group, send email to andro...@googlegroups.com.
To unsubscribe from this group, send email to android-ndk...@googlegroups.com.

poornima

unread,
May 24, 2012, 5:13:34 AM5/24/12
to andro...@googlegroups.com
Dear David Turner ,

I used ndk-build -j1 but the result is same.
Following is the log

[root@CppUnitLite2]# /home/android-ndk-r8/ndk-build -j1

Compile++ thumb  : CppUnitLite2 <= ExceptionHandler.cpp
Compile++ thumb  : CppUnitLite2 <= Test.cpp
Compile++ thumb  : CppUnitLite2 <= Failure.cpp
Compile++ thumb  : CppUnitLite2 <= TestException.cpp
Compile++ thumb  : CppUnitLite2 <= TestRegistry.cpp
Compile++ thumb  : CppUnitLite2 <= TestResult.cpp
Compile++ thumb  : CppUnitLite2 <= TestResultStdErr.cpp
StaticLibrary  : libCppUnitLite2.a
/home/android-ndk-r8/toolchains/arm-linux-androideabi-4.4.3/prebuilt/linux-x86/bin/arm-linux-androideabi-ar: ./obj/local/armeabi/objs/CppUnitLite2/__/Sources/ExceptionHandler.o: No such file or directory

make: *** [obj/local/armeabi/libCppUnitLite2.a] Error 1

And my make version is as follows,
GNU Make 3.81
This program built for i386-redhat-linux-gnu

and my system details are as follows
[root@ CppUnitLite2]# uname -a
Linux  2.6.31.5-127.fc12.i686.PAE #1 SMP Sat Nov 7 21:25:57 EST 2009 i686 i686 i386 GNU/Linux

And the output of ndk-build NDK_LOG=1 is as follows,
[root@ CppUnitLite2]# /home/android-ndk-r8/ndk-build NDK_LOG=1
HOST_OS=linux
HOST_ARCH=x86
HOST_TAG=linux-x86
GNUMAKE=/home/android-ndk-r8/prebuilt/linux-x86/bin/make (NDK prebuilt)
Android NDK: NDK installation path auto-detected: '/home/android-ndk-r8'
Android NDK: GNU Make version 3.81 detected
Android NDK: Host OS was auto-detected: linux
Android NDK:  Host operating system detected: linux
Android NDK: Host CPU was auto-detected: x86
Android NDK: HOST_TAG set to linux-x86
Android NDK: Host tools prebuilt directory: /home/android-ndk-r8/prebuilt/linux-x86/bin
Android NDK: Host 'echo' tool: echo
Android NDK: Host 'awk' tool: /home/android-ndk-r8/prebuilt/linux-x86/bin/awk
Android NDK: Host 'awk' test returned: Pass
Android NDK:  This NDK supports the following target architectures and ABIS:
Android NDK:    arm: armeabi armeabi-v7a
Android NDK:    mips: mips
Android NDK:    x86: x86
Android NDK:  This NDK supports the following toolchains and target ABIs:
Android NDK:    arm-linux-androideabi-4.4.3:  armeabi armeabi-v7a
Android NDK:    mipsel-linux-android-4.4.3:  mips
Android NDK:    x86-4.4.3:  x86
Android NDK: Found platform root directory: /home/android-ndk-r8/platforms
Android NDK: Found supported platforms: android-14 android-3 android-4 android-5 android-8 android-9
Android NDK: PLATFORM android-14 supports: arm mips x86
Android NDK:   ABI arm sysroot is: /home/android-ndk-r8/platforms/android-14/arch-arm
Android NDK:   ABI mips sysroot is: /home/android-ndk-r8/platforms/android-14/arch-mips
Android NDK:   ABI x86 sysroot is: /home/android-ndk-r8/platforms/android-14/arch-x86
Android NDK: PLATFORM android-3 supports: arm mips x86
Android NDK:   ABI arm sysroot is: /home/android-ndk-r8/platforms/android-3/arch-arm
Android NDK:   ABI mips sysroot is: /home/android-ndk-r8/platforms/android-3/arch-mips
Android NDK:   ABI x86 sysroot is: /home/android-ndk-r8/platforms/android-3/arch-x86
Android NDK: PLATFORM android-4 supports: arm mips x86
Android NDK:   ABI arm sysroot is: /home/android-ndk-r8/platforms/android-4/arch-arm
Android NDK:   ABI mips sysroot is: /home/android-ndk-r8/platforms/android-4/arch-mips
Android NDK:   ABI x86 sysroot is: /home/android-ndk-r8/platforms/android-4/arch-x86
Android NDK: PLATFORM android-5 supports: arm mips x86
Android NDK:   ABI arm sysroot is: /home/android-ndk-r8/platforms/android-5/arch-arm
Android NDK:   ABI mips sysroot is: /home/android-ndk-r8/platforms/android-5/arch-mips
Android NDK:   ABI x86 sysroot is: /home/android-ndk-r8/platforms/android-5/arch-x86
Android NDK: PLATFORM android-8 supports: arm mips x86
Android NDK:   ABI arm sysroot is: /home/android-ndk-r8/platforms/android-8/arch-arm
Android NDK:   ABI mips sysroot is: /home/android-ndk-r8/platforms/android-8/arch-mips
Android NDK:   ABI x86 sysroot is: /home/android-ndk-r8/platforms/android-8/arch-x86
Android NDK: PLATFORM android-9 supports: arm mips x86
Android NDK:   ABI arm sysroot is: /home/android-ndk-r8/platforms/android-9/arch-arm
Android NDK:   ABI mips sysroot is: /home/android-ndk-r8/platforms/android-9/arch-mips
Android NDK:   ABI x86 sysroot is: /home/android-ndk-r8/platforms/android-9/arch-x86
Android NDK: Found stable platform levels: 14 3 4 5 8 9
Android NDK: Found max platform level: 14
Android NDK: Found project path: .
Android NDK: Ouput path: ./obj
Android NDK: Parsing ./jni/Application.mk
Android NDK:   Defaulted to APP_PLATFORM=android-3
Android NDK:   Defaulted to APP_BUILD_SCRIPT=./jni/Android.mk
Android NDK: Application 'local' is not debuggable
Android NDK: Selecting release optimization mode (app is not debuggable)
Android NDK: Adding import directory: /home/android-ndk-r8/sources
Android NDK: Building application 'local' for ABI 'armeabi'
Android NDK: Using target toolchain 'arm-linux-androideabi-4.4.3' for 'armeabi' ABI
Android NDK: Looking for imported module with tag 'cxx-stl/gnu-libstdc++'
Android NDK:   Probing /home/android-ndk-r8/sources/cxx-stl/gnu-libstdc++/Android.mk
Android NDK:     Found in /home/android-ndk-r8/sources/cxx-stl/gnu-libstdc++
Android NDK: Module 'CppUnitLite2' has C++ sources
Android NDK: Building application 'local' for ABI 'armeabi-v7a'
Android NDK: Using target toolchain 'arm-linux-androideabi-4.4.3' for 'armeabi-v7a' ABI
Android NDK: Looking for imported module with tag 'cxx-stl/gnu-libstdc++'
Android NDK:   Probing /home/android-ndk-r8/sources/cxx-stl/gnu-libstdc++/Android.mk
Android NDK:     Found in /home/android-ndk-r8/sources/cxx-stl/gnu-libstdc++
Android NDK: Module 'CppUnitLite2' has C++ sources

Compile++ thumb  : CppUnitLite2 <= ExceptionHandler.cpp
Compile++ thumb  : CppUnitLite2 <= Test.cpp
Compile++ thumb  : CppUnitLite2 <= Failure.cpp
Compile++ thumb  : CppUnitLite2 <= TestException.cpp
Compile++ thumb  : CppUnitLite2 <= TestRegistry.cpp
Compile++ thumb  : CppUnitLite2 <= TestResult.cpp
Compile++ thumb  : CppUnitLite2 <= TestResultStdErr.cpp
StaticLibrary  : libCppUnitLite2.a
/home/android-ndk-r8/toolchains/arm-linux-androideabi-4.4.3/prebuilt/linux-x86/bin/arm-linux-androideabi-ar: ./obj/local/armeabi/objs/CppUnitLite2/__/Sources/ExceptionHandler.o: No such file or directory

make: *** [obj/local/armeabi/libCppUnitLite2.a] Error 1


Regards,
Poornima


On Thursday, 24 May 2012 14:24:45 UTC+5:30, Digit wrote:

David Turner

unread,
May 24, 2012, 7:13:44 AM5/24/12
to andro...@googlegroups.com
Thanks, I don't think anything wrong here. What is the content of obj/local/armeabi exactly?
The output of 'tree obj/local' would be useful.

(Also, please stop the coloring, it's really distracting. Just change the font to monospace instead. Thanks).

To view this discussion on the web visit https://groups.google.com/d/msg/android-ndk/-/7UBeyOVuVrwJ.

To post to this group, send email to andro...@googlegroups.com.
To unsubscribe from this group, send email to android-ndk...@googlegroups.com.

poornima

unread,
May 24, 2012, 7:17:31 AM5/24/12
to andro...@googlegroups.com
Dear David Turner

The out put of tree obj/local is as follows,

[root@ CppUnitLite2]# tree obj/local
obj/local
âââ armeabi
    âââ libgnustl_static.a
    âââ objs
        âââ CppUnitLite2
            âââ __
                âââ Sources

5 directories, 1 file

Regards,
Poornima


On Thursday, 24 May 2012 16:43:44 UTC+5:30, Digit wrote:
Thanks, I don't think anything wrong here. What is the content of obj/local/armeabi exactly?
The output of 'tree obj/local' would be useful.

(Also, please stop the coloring, it's really distracting. Just change the font to monospace instead. Thanks).

David Turner

unread,
May 24, 2012, 7:18:41 AM5/24/12
to andro...@googlegroups.com
It looks like this doesn't contain any object files.

Can I ask you for the result of 'tree' in your project directory (the one on top of 'jni') then ?

To view this discussion on the web visit https://groups.google.com/d/msg/android-ndk/-/4PZg3RWej3YJ.

To post to this group, send email to andro...@googlegroups.com.
To unsubscribe from this group, send email to android-ndk...@googlegroups.com.

poornima

unread,
May 24, 2012, 7:23:30 AM5/24/12
to andro...@googlegroups.com
Dear David ,

Following is the out put of tree command,

[root@ Lib]# tree CppUnitLite2/
CppUnitLite2/
âââ CppUnitLite2.make
âââ CppUnitLite2.vcproj
âââ CppUnitLite2_WM6.vcproj
âââ CppUnitLite2_x64.vcproj
âââ Headers
â   âââ CppUnitLite2.h
â   âââ ExceptionHandler.h
â   âââ Failure.h
â   âââ Linux
â   â   âââ SignalHandler.h
â   âââ MockHelpers.h
â   âââ TestException.h
â   âââ Test.h
â   âââ TestMacros.h
â   âââ TestRegistry.h
â   âââ TestResult.h
â   âââ TestResultLogger.h
â   âââ TestResultStdErr.h
âââ jni
â   âââ Android.mk
â   âââ Application.mk
âââ log.txt
âââ Makefile
âââ obj
â   âââ local
â       âââ armeabi
â           âââ libgnustl_static.a
â           âââ objs
â               âââ CppUnitLite2
â                   âââ __
â                       âââ Sources
âââ Sources
    âââ ExceptionHandler.cpp
    âââ Failure.cpp
    âââ Linux
    â   âââ SignalHandler.cpp
    âââ Test.cpp
    âââ TestException.cpp
    âââ TestRegistry.cpp
    âââ TestResult.cpp
    âââ TestResultLogger.cpp
    âââ TestResultStdErr.cpp

12 directories, 30 files

Regards,
Poornima


On Thursday, 24 May 2012 16:48:41 UTC+5:30, Digit wrote:
It looks like this doesn't contain any object files.

Can I ask you for the result of 'tree' in your project directory (the one on top of 'jni') then ?

Reply all
Reply to author
Forward
0 new messages