DICOM @ OFFIS

Discussion Forum for OFFIS DICOM Tools - For registration, send email with desired user name to the OFFIS DICOM team
It is currently Mon, 2017-12-18, 23:07

All times are UTC + 1 hour




Post new topic Reply to topic  [ 30 posts ]  Go to page 1, 2  Next
Author Message
PostPosted: Fri, 2015-06-19, 13:13 
Offline

Joined: Wed, 2012-04-11, 17:02
Posts: 16
I got exactly the same error at:

Code:
CMakeLists.txt:45 (INSPECT_FUNDAMENTAL_ARITHMETIC_TYPES)

but apparently it is nothing to do with spaces. I am using Linux (Ubuntu 14.04) and have no spaces in the path but anyway I tried what you suggested without success.

If it helps, here is my log:

Code:
CMake Error at CMake/GenerateDCMTKConfigure.cmake:776 (MESSAGE):
  Change Dir:
  /home/julia/Downloads/DCMTK-Android/CMakeTmp/Arith/CMakeFiles/CMakeTmp

 

  Run Build Command:"/usr/bin/make" "cmTryCompileExec1745143144/fast"

  /usr/bin/make -f CMakeFiles/cmTryCompileExec1745143144.dir/build.make
  CMakeFiles/cmTryCompileExec1745143144.dir/build

  make[1]: Entering directory
  `/home/julia/Downloads/DCMTK-Android/CMakeTmp/Arith/CMakeFiles/CMakeTmp'

  /home/julia/Downloads/cmake-3.2.3-Linux-x86_64/bin/cmake -E
  cmake_progress_report
  /home/julia/Downloads/DCMTK-Android/CMakeTmp/Arith/CMakeFiles/CMakeTmp/CMakeFiles
  1

  Building CXX object CMakeFiles/cmTryCompileExec1745143144.dir/arith.cc.o

 
  /home/julia/android-ndk-r10e/toolchains/arm-linux-androideabi-4.9/prebuilt/linux-x86_64/bin/arm-linux-androideabi-g++
  -DANDROID -fexceptions -frtti -Wno-psabi
  --sysroot=/home/julia/android-ndk-r10e/platforms/android-21/arch-arm -fpic
  -funwind-tables -finline-limit=64 -fsigned-char -no-canonical-prefixes
  -march=armv7-a -mfloat-abi=softfp -mfpu=vfpv3-d16 -fdata-sections
  -ffunction-sections -Wa,--noexecstack -fvisibility=hidden
  -D_XOPEN_SOURCE_EXTENDED -D_XOPEN_SOURCE=500 -D_BSD_SOURCE -D_BSD_COMPAT
  -D_OSF_SOURCE -D_POSIX_C_SOURCE=199506L -isystem
  /home/julia/android-ndk-r10e/platforms/android-21/arch-arm/usr/include
  -isystem
  /home/julia/android-ndk-r10e/sources/cxx-stl/gnu-libstdc++/4.9/include
  -isystem
  /home/julia/android-ndk-r10e/sources/cxx-stl/gnu-libstdc++/4.9/libs/armeabi-v7a/include
  -I"/home/julia/Downloads/DCMTK-Android/config/include"
  -I"/home/julia/Downloads/dcmtk-3.6.1_20150217/ofstd/include" -o
  CMakeFiles/cmTryCompileExec1745143144.dir/arith.cc.o -c
  /home/julia/Downloads/dcmtk-3.6.1_20150217/config/arith.cc

  In file included from
  /home/julia/Downloads/dcmtk-3.6.1_20150217/ofstd/include/dcmtk/ofstd/ofstdinc.h:219:0,


                   from /home/julia/Downloads/dcmtk-3.6.1_20150217/config/arith.cc:33:

 
  /home/julia/android-ndk-r10e/sources/cxx-stl/gnu-libstdc++/4.9/include/cmath:
  In function 'typename
  __gnu_cxx::__enable_if<std::__is_arithmetic<_Tp>::__value, int>::__type
  std::fpclassify(_Tp)':

 
  /home/julia/android-ndk-r10e/sources/cxx-stl/gnu-libstdc++/4.9/include/cmath:812:35:
  error: 'FP_NAN' was not declared in this scope

         return __builtin_fpclassify(FP_NAN, FP_INFINITE, FP_NORMAL,
                                     ^

 
  /home/julia/android-ndk-r10e/sources/cxx-stl/gnu-libstdc++/4.9/include/cmath:812:43:
  error: 'FP_INFINITE' was not declared in this scope

         return __builtin_fpclassify(FP_NAN, FP_INFINITE, FP_NORMAL,
                                             ^

 
  /home/julia/android-ndk-r10e/sources/cxx-stl/gnu-libstdc++/4.9/include/cmath:812:56:
  error: 'FP_NORMAL' was not declared in this scope

         return __builtin_fpclassify(FP_NAN, FP_INFINITE, FP_NORMAL,
                                                          ^

 
  /home/julia/android-ndk-r10e/sources/cxx-stl/gnu-libstdc++/4.9/include/cmath:813:7:
  error: 'FP_SUBNORMAL' was not declared in this scope

         FP_SUBNORMAL, FP_ZERO, __type(__f));
         ^

 
  /home/julia/android-ndk-r10e/sources/cxx-stl/gnu-libstdc++/4.9/include/cmath:813:21:
  error: 'FP_ZERO' was not declared in this scope

         FP_SUBNORMAL, FP_ZERO, __type(__f));
                       ^

  make[1]: *** [CMakeFiles/cmTryCompileExec1745143144.dir/arith.cc.o] Error 1

  make[1]: Leaving directory
  `/home/julia/Downloads/DCMTK-Android/CMakeTmp/Arith/CMakeFiles/CMakeTmp'

  make: *** [cmTryCompileExec1745143144/fast] Error 2

Call Stack (most recent call first):
  CMakeLists.txt:45 (INSPECT_FUNDAMENTAL_ARITHMETIC_TYPES)

Thanks in advance.


Last edited by Jan Schlamelcher on Tue, 2015-06-23, 10:15, edited 1 time in total.
Moved posts to a new topic


Top
 Profile  
 
PostPosted: Fri, 2015-06-19, 13:28 
Offline
OFFIS DICOM Team
OFFIS DICOM Team

Joined: Mon, 2014-03-03, 09:51
Posts: 223
Location: Oldenburg, Germany
Are you building for Android? If so, some special steps are necessary to build for Android. I was working on a tutorial page in our Wiki but the current version is still a bit missleading, therefore I won't post the link now unless it's urgent.
In general the problem seems to be in you toolchain setup, looking at the log your ".../gnu-libstdc++/4.9/include/cmath" misses some definitions like FP_ZERO. These are part of the compiler / toolchain and not part of DCMTK, so something is generally wrong with you setup.


Top
 Profile  
 
PostPosted: Mon, 2015-06-22, 09:08 
Offline

Joined: Wed, 2012-04-11, 17:02
Posts: 16
Yes, I am trying to build for Android following the instructions you mentioned from http://support.dcmtk.org/redmine/projects/dcmtk/wiki/Howto_CompileAndroid.
I followed all steps carefully and used the supplied android.toolchain.cmake file in the last nightly build.
So what do you suggest then?


Top
 Profile  
 
PostPosted: Mon, 2015-06-22, 11:51 
Offline
OFFIS DICOM Team
OFFIS DICOM Team

Joined: Mon, 2014-03-03, 09:51
Posts: 223
Location: Oldenburg, Germany
I see, so you are already using the "forbidden fruit" aka the unfinished Wiki article. I would think the problem results from "unsupported settings". One reason I called it misleading is for example the following statement:
Quote:
The toolchain file will set all of its CMake variables to default values, which should work for many users.

Which is a correction of a colleague that did not understand my original intention in the (prior to his corrections) badly phrased sentence. Correct would be something like: The toolchain file will set all of its CMake variables to default values, that have to be adjusted manually, because the default values do not work!.
So perhaps change "ANDROID_NATIVE_API_LEVEL" to 17 or higher (I always tested with 17) and maybe some of the other variables in the CMake cache.
Another thing might be they changed something in the NDK (I used r10d) during testing, so maybe the scripts will have to be adjusted (I don't hope so).

I hope this helps at least a bit, sorry that the Android support is still quite experimental.


Top
 Profile  
 
PostPosted: Mon, 2015-06-22, 15:29 
Offline

Joined: Wed, 2012-04-11, 17:02
Posts: 16
Found the fruit googling a simple search :roll:
Indeed I was using last NDK available (r10e) and "ANDROID_NATIVE_API_LEVEL" to 21. So first I tried with "ANDROID_NATIVE_API_LEVEL" to 17 without success and then I downloaded NDK r10d which led me to almost the same point:

Code:
CMake Error at CMake/GenerateDCMTKConfigure.cmake:773 (MESSAGE):
  error: only position independent executables (PIE) are supported.

Call Stack (most recent call first):
  CMakeLists.txt:45 (INSPECT_FUNDAMENTAL_ARITHMETIC_TYPES)

Now it is supposed to have the same configuration, isn't it Jan?
Thanks for the feedback.


Top
 Profile  
 
PostPosted: Mon, 2015-06-22, 15:50 
Offline
OFFIS DICOM Team
OFFIS DICOM Team

Joined: Mon, 2014-03-03, 09:51
Posts: 223
Location: Oldenburg, Germany
julialecat wrote:
Found the fruit googling a simple search :roll:

Yes, it's not actually 'hidden', but just not finished. I had wanted to finish it month ago but somehow was busy doing other things :(.

julialecat wrote:
Indeed I was using last NDK available (r10e) and "ANDROID_NATIVE_API_LEVEL" to 21. So first I tried with "ANDROID_NATIVE_API_LEVEL" to 17 without success and then I downloaded NDK r10d which led me to almost the same point
I see, but it seems you got a bit farther with the r10d toolchain. As I interpret this message in conjuction with the code in CMake/GenerateDCMTKConfigure.cmake:773, this time compilation succeeded but the code could not be run on the emulated device because it is not position independent (missing -fPIC compiler option). Idk why your emulated device needs this, I've never seen this in my tests. But I think you should either change the CMake settings to include -fPIC or change the emulator settings to work without it.


Top
 Profile  
 
PostPosted: Tue, 2015-06-23, 09:33 
Offline

Joined: Wed, 2012-04-11, 17:02
Posts: 16
Weird thing is -fPIC option is already set in the toolchain file:

Code:
# NDK flags
if( ARMEABI OR ARMEABI_V7A )
 set( ANDROID_CXX_FLAGS "${ANDROID_CXX_FLAGS} -fpic -funwind-tables" )

And of course my ANDROID_ABI variable is set to "armeabi-v7a". Also tried to add this setting in CMakeLists.txt and in cmake-gui without success.
So where else should I add this setting? On the other hand I didn't find anything to set up in AVD Manager.


Top
 Profile  
 
PostPosted: Tue, 2015-06-23, 10:08 
Offline
OFFIS DICOM Team
OFFIS DICOM Team

Joined: Mon, 2014-03-03, 09:51
Posts: 223
Location: Oldenburg, Germany
Hmm, this explains why it worked for me (if the toolchain file sets it) and it seems bugged if you ask me, not sure at which position. However, there is one thing I can think of: the try_compile command of CMake does not share the same settings as the normal project being built. The original Android toolchain file only worked for in-source builds for that reason, because they wrote the necessary settings to a config file in the source directory "on-the-fly". As in-source builds are strongly discouraged, I modified this ugly hack to still be ugly but at least support out of source builds:
Code:
get_property( _CMAKE_IN_TRY_COMPILE GLOBAL PROPERTY IN_TRY_COMPILE )
if( _CMAKE_IN_TRY_COMPILE )
 if( NOT ANDROID_TOOLCHAIN_CONFIG_FILE )
  set( ANDROID_TOOLCHAIN_CONFIG_FILE "${CMAKE_BINARY_DIR}/../android.toolchain.config.cmake" )
 endif()
 include( "${ANDROID_TOOLCHAIN_CONFIG_FILE}" )
endif()

So my idea would be that maybe not all variables get exported to ${ANDROID_TOOLCHAIN_CONFIG_FILE} and it is missing -fPIC during try_compile. Can you look at your generated ${ANDROID_TOOLCHAIN_CONFIG_FILE} and inquire my presumption further?


Top
 Profile  
 
PostPosted: Tue, 2015-06-23, 10:44 
Offline

Joined: Wed, 2012-04-11, 17:02
Posts: 16
Yep, you are absolutely right. No trace of ANDROID_CXX_FLAGS variable in my generated toolchain config file.


Top
 Profile  
 
PostPosted: Tue, 2015-06-23, 11:07 
Offline
OFFIS DICOM Team
OFFIS DICOM Team

Joined: Mon, 2014-03-03, 09:51
Posts: 223
Location: Oldenburg, Germany
I fear it's not that easy ;-). ANDROID_CXX_FLAGS won't be contained in the ${ANDROID_TOOLCHAIN_CONFIG_FILE}, since it works (roughly) the following way: CMake runs the android.toolchain.cmake file during try_compile, which imports ${ANDROID_TOOLCHAIN_CONFIG_FILE}. The ${ANDROID_TOOLCHAIN_CONFIG_FILE} contains all user settings that the android.toolchain.cmake file can't 'detect' iself (e. g. ANDROID_ABI). Variables like ANDROID_CXX_FLAGS will then be set depending on those settings, so as long as the ${ANDROID_TOOLCHAIN_CONFIG_FILE} contains the correct value for ANDROID_ABI, '-fpic' should be set by the statement you quoted. You can look at lines 1680ff in android.toolchain.cmake to see what should get exported.

However, I found out something else comparing the lines I quoted before and 1680ff:
Code:
set( ANDROID_TOOLCHAIN_CONFIG_FILE ${CMAKE_BINARY_DIR}${CMAKE_FILES_DIRECTORY}/android.toolchain.config.cmake" CACHE INTERNAL "" )

vs
Code:
set( ANDROID_TOOLCHAIN_CONFIG_FILE "${CMAKE_BINARY_DIR}/../android.toolchain.config.cmake" )

It seems I forgot to change the latter statement when I decided to move the android.toolchain.config.cmake to the CMakeFiles directory :-(, sorry for that. I probably didn't notice it so far because I still had a file in ${CMAKE_BINARY_DIR}/.. in my build tree from previous experiments :-(. So, please try if the following patch helps:
Code:
diff --git a/CMake/android.toolchain.cmake b/CMake/android.toolchain.cmake
index 94f7da4..60e0626 100644
--- a/CMake/android.toolchain.cmake
+++ b/CMake/android.toolchain.cmake
@@ -345,7 +345,7 @@ endif()
 get_property( _CMAKE_IN_TRY_COMPILE GLOBAL PROPERTY IN_TRY_COMPILE )
 if( _CMAKE_IN_TRY_COMPILE )
  if( NOT ANDROID_TOOLCHAIN_CONFIG_FILE )
-  set( ANDROID_TOOLCHAIN_CONFIG_FILE "${CMAKE_BINARY_DIR}/../android.toolchain.config.cmake" )
+  set( ANDROID_TOOLCHAIN_CONFIG_FILE "${CMAKE_BINARY_DIR}${CMAKE_FILES_DIRECTORY}/android.toolchain.config.cmake" )
  endif()
  include( "${ANDROID_TOOLCHAIN_CONFIG_FILE}" )
 endif()


EDIT: I just thought about it a bit more, maybe it won't help. I think the different paths might have been used intentionally because ${CMAKE_BINARY_DIR} will evaluate to ${CMAKE_BINARY_DIR}${CMAKE_FILES_DIRECTORY}/<some_random_try_compile_identifier> during try compile, therefore ${CMAKE_BINARY_DIR}/.. might be correct as it would evaluate to the original ${CMAKE_FILES_DIRECTORY}. I fear CMake's try_compile magic is a bit confusing :roll:, so you might still try my first idea while we lack a proper alternative. I'll see if I can reproduce the problem on my system in the meantime, so could you perhaps provide your settings in more detail, please?

EDIT2: Okay, I just did a fresh configure run (from the latest git though). I can confirm ANDROID_NATIVE_API_LEVEL 21 does not work, the same error that you got. ANDROID_NATIVE_API_LEVEL 19 did work, however, and the configure test could also be run on the emulated device. Stupid questions: did you clear the CMake Cache when you changed the NDK and the native API to 17? Do you have multiple Android toolchains installed on you system, so CMake might still use the wrong one (or even worse: mix tools from different toolchains)?


Top
 Profile  
 
PostPosted: Tue, 2015-06-23, 13:10 
Offline

Joined: Wed, 2012-04-11, 17:02
Posts: 16
Well, I thought it was the last modification but after seeing your edit I realized it was that I didn't clear the cache :oops:
Now it seems we moved one step farther but I think something else is missing. Anyway here is the log:

Code:
CMake Error at CMake/GenerateDCMTKConfigure.cmake:776 (MESSAGE):
  Change Dir:
  /home/julia/Downloads/DCMTK-Android/CMakeTmp/Arith/CMakeFiles/CMakeTmp

 

  Run Build Command:"/usr/bin/make" "cmTryCompileExec768461158/fast"

  /usr/bin/make -f CMakeFiles/cmTryCompileExec768461158.dir/build.make
  CMakeFiles/cmTryCompileExec768461158.dir/build

  make[1]: Entering directory
  `/home/julia/Downloads/DCMTK-Android/CMakeTmp/Arith/CMakeFiles/CMakeTmp'

  /home/julia/Downloads/cmake-3.2.3-Linux-x86_64/bin/cmake -E
  cmake_progress_report
  /home/julia/Downloads/DCMTK-Android/CMakeTmp/Arith/CMakeFiles/CMakeTmp/CMakeFiles
  1

  Building CXX object CMakeFiles/cmTryCompileExec768461158.dir/arith.cc.o

 
  /home/julia/android-ndk-r10d/toolchains/arm-linux-androideabi-4.9/prebuilt/linux-x86_64/bin/arm-linux-androideabi-g++
  -DANDROID -fexceptions -frtti -Wno-psabi
  --sysroot=/home/julia/android-ndk-r10d/platforms/android-17/arch-arm -fpic
  -funwind-tables -finline-limit=64 -fsigned-char -no-canonical-prefixes
  -march=armv7-a -mfloat-abi=softfp -mfpu=vfpv3-d16 -fdata-sections
  -ffunction-sections -Wa,--noexecstack -D_XOPEN_SOURCE_EXTENDED
  -D_XOPEN_SOURCE=500 -D_BSD_SOURCE -D_BSD_COMPAT -D_OSF_SOURCE
  -D_POSIX_C_SOURCE=199506L -isystem
  /home/julia/android-ndk-r10d/platforms/android-17/arch-arm/usr/include
  -isystem
  /home/julia/android-ndk-r10d/sources/cxx-stl/gnu-libstdc++/4.9/include
  -isystem
  /home/julia/android-ndk-r10d/sources/cxx-stl/gnu-libstdc++/4.9/libs/armeabi-v7a/include
  -I"/home/julia/Downloads/DCMTK-Android/config/include"
  -I"/home/julia/Downloads/dcmtk-3.6.1_20150217/ofstd/include" -o
  CMakeFiles/cmTryCompileExec768461158.dir/arith.cc.o -c
  /home/julia/Downloads/dcmtk-3.6.1_20150217/config/arith.cc

  In file included from
  /home/julia/Downloads/dcmtk-3.6.1_20150217/config/arith.cc:34:0:

 
  /home/julia/Downloads/dcmtk-3.6.1_20150217/ofstd/include/dcmtk/ofstd/ofstream.h:43:2:
  error: #error DCMTK needs stringstream or strstream type

   #error DCMTK needs stringstream or strstream type
    ^

 
  /home/julia/Downloads/dcmtk-3.6.1_20150217/ofstd/include/dcmtk/ofstd/ofstream.h:118:23:
  error: 'strstream' in namespace 'std' does not name a type

   typedef STD_NAMESPACE strstream OFStringStream;
                         ^

 
  /home/julia/Downloads/dcmtk-3.6.1_20150217/ofstd/include/dcmtk/ofstd/ofstream.h:119:23:
  error: 'ostrstream' in namespace 'std' does not name a type

   typedef STD_NAMESPACE ostrstream OFOStringStream;
                         ^

 
  /home/julia/Downloads/dcmtk-3.6.1_20150217/ofstd/include/dcmtk/ofstd/ofstream.h:120:23:
  error: 'istrstream' in namespace 'std' does not name a type

   typedef STD_NAMESPACE istrstream OFIStringStream;
                         ^

  make[1]: Leaving directory
  `/home/julia/Downloads/DCMTK-Android/CMakeTmp/Arith/CMakeFiles/CMakeTmp'

  make[1]: *** [CMakeFiles/cmTryCompileExec768461158.dir/arith.cc.o] Error 1

  make: *** [cmTryCompileExec768461158/fast] Error 2

Call Stack (most recent call first):
  CMakeLists.txt:48 (INSPECT_FUNDAMENTAL_ARITHMETIC_TYPES)

And here is my generated android.toolchain.config.cmake:

Code:
set( LIBRARY_OUTPUT_PATH_ROOT /home/julia/Downloads/DCMTK-Android CACHE INTERNAL "" )
set( ANDROID_FORBID_SYGWIN ON CACHE INTERNAL "" )
set( ANDROID_SET_OBSOLETE_VARIABLES ON CACHE INTERNAL "" )
set( ANDROID_NDK_HOST_X64 ON CACHE INTERNAL "" )
set( ANDROID_NDK /home/julia/android-ndk-r10d CACHE INTERNAL "" )
set( ANDROID_NDK_LAYOUT RELEASE CACHE INTERNAL "" )
set( ANDROID_TOOLCHAIN_NAME arm-linux-androideabi-4.9 CACHE INTERNAL "" )
set( ANDROID_ABI armeabi-v7a CACHE INTERNAL "" )
set( ANDROID_NATIVE_API_LEVEL 17 CACHE INTERNAL "" )
set( ANDROID_STL gnustl_static CACHE INTERNAL "" )
set( ANDROID_STL_FORCE_FEATURES ON CACHE INTERNAL "" )
set( ANDROID_FORCE_ARM_BUILD OFF CACHE INTERNAL "" )
set( ANDROID_NO_UNDEFINED ON CACHE INTERNAL "" )
set( ANDROID_SO_UNDEFINED ON CACHE INTERNAL "" )
set( ANDROID_FUNCTION_LEVEL_LINKING ON CACHE INTERNAL "" )
set( ANDROID_GOLD_LINKER ON CACHE INTERNAL "" )
set( ANDROID_NOEXECSTACK ON CACHE INTERNAL "" )
set( ANDROID_RELRO ON CACHE INTERNAL "" )
set( ANDROID_LIBM_PATH -lm CACHE INTERNAL "" )
set( ANDROID_EXPLICIT_CRT_LINK OFF CACHE INTERNAL "" )

Do you need more info?


Top
 Profile  
 
PostPosted: Tue, 2015-06-23, 13:42 
Offline
OFFIS DICOM Team
OFFIS DICOM Team

Joined: Mon, 2014-03-03, 09:51
Posts: 223
Location: Oldenburg, Germany
Okay, this is also weird. This error would mean that 'HAVE_SSTREAM' would not have been defined, which indeed really should be defined on any non-ancient system (therefore including Android probably any API). Can you quote the result of the respective configure test (should be in /home/julia/Downloads/DCMTK-Android/CMakeFiles/CMakeOutput.log or /home/julia/Downloads/DCMTK-Android/CMakeFiles/CMakeError.log)? Mine looks like this:
Code:
Determining if the include file sstream exists passed with the following output:
Change Dir: /home/jan/src/dcmtk/android/CMakeFiles/CMakeTmp

Run Build Command:"/usr/bin/make" "cmTryCompileExec1089345031/fast"
/usr/bin/make -f CMakeFiles/cmTryCompileExec1089345031.dir/build.make CMakeFiles/cmTryCompileExec1089345031.dir/build
make[1]: Entering directory '/home/jan/src/dcmtk/android/CMakeFiles/CMakeTmp'
/usr/bin/cmake -E cmake_progress_report /home/jan/src/dcmtk/android/CMakeFiles/CMakeTmp/CMakeFiles 1
Building CXX object CMakeFiles/cmTryCompileExec1089345031.dir/CheckIncludeFile.cxx.o
/opt/android-ndk/toolchains/arm-linux-androideabi-4.9/prebuilt/linux-x86_64/bin/arm-linux-androideabi-g++   -DANDROID -fexceptions -frtti -Wno-psabi --sysroot=/opt/android-ndk/platforms/android-19/arch-arm -fpic -funwind-tables -finline-limit=64 -fsigned-char -no-canonical-prefixes -march=armv7-a -mfloat-abi=softfp -mfpu=vfpv3-d16 -fdata-sections -ffunction-sections -Wa,--noexecstack  -D_XOPEN_SOURCE_EXTENDED -D_XOPEN_SOURCE=500 -D_BSD_SOURCE -D_BSD_COMPAT -D_OSF_SOURCE -D_POSIX_C_SOURCE=199506L  -isystem /opt/android-ndk/platforms/android-19/arch-arm/usr/include -isystem /opt/android-ndk/sources/cxx-stl/gnu-libstdc++/4.9/include -isystem /opt/android-ndk/sources/cxx-stl/gnu-libstdc++/4.9/libs/armeabi-v7a/include    -o CMakeFiles/cmTryCompileExec1089345031.dir/CheckIncludeFile.cxx.o -c /home/jan/src/dcmtk/android/CMakeFiles/CMakeTmp/CheckIncludeFile.cxx
Linking CXX executable cmTryCompileExec1089345031
/usr/bin/cmake -E cmake_link_script CMakeFiles/cmTryCompileExec1089345031.dir/link.txt --verbose=1
/opt/android-ndk/toolchains/arm-linux-androideabi-4.9/prebuilt/linux-x86_64/bin/arm-linux-androideabi-gcc -fexceptions -frtti -Wno-psabi --sysroot=/opt/android-ndk/platforms/android-19/arch-arm -fpic -funwind-tables -finline-limit=64 -fsigned-char -no-canonical-prefixes -march=armv7-a -mfloat-abi=softfp -mfpu=vfpv3-d16 -fdata-sections -ffunction-sections -Wa,--noexecstack  -D_XOPEN_SOURCE_EXTENDED -D_XOPEN_SOURCE=500 -D_BSD_SOURCE -D_BSD_COMPAT -D_OSF_SOURCE -D_POSIX_C_SOURCE=199506L    -Wl,--fix-cortex-a8 -Wl,--no-undefined -Wl,-allow-shlib-undefined -Wl,--gc-sections -Wl,-z,noexecstack -Wl,-z,relro -Wl,-z,now -Wl,-z,nocopyreloc  CMakeFiles/cmTryCompileExec1089345031.dir/CheckIncludeFile.cxx.o -o cmTryCompileExec1089345031  -L/libs/armeabi-v7a -rdynamic  "/opt/android-ndk/sources/cxx-stl/gnu-libstdc++/4.9/libs/armeabi-v7a/libgnustl_static.a" "/opt/android-ndk/sources/cxx-stl/gnu-libstdc++/4.9/libs/armeabi-v7a/libsupc++.a" -lm
make[1]: Leaving directory '/home/jan/src/dcmtk/android/CMakeFiles/CMakeTmp'


Btw: are you building inside the source directory?!


Top
 Profile  
 
PostPosted: Tue, 2015-06-23, 14:51 
Offline

Joined: Wed, 2012-04-11, 17:02
Posts: 16
Nope, different directories for source code and build output.

Here is my CMakeError.log http://pastebin.com/7ZTDwqRT and here my CMakeOutput.log:

Code:
The target system is: Linux - 1 - armv7-a
The host system is: Linux - 3.13.0-55-generic - x86_64
Determining if the __sync_add_and_fetch((int*)0,0) exist passed with the following output:
Change Dir: /home/julia/Downloads/DCMTK-Android/CMakeFiles/CMakeTmp

Run Build Command:"/usr/bin/make" "cmTryCompileExec756455166/fast"
/usr/bin/make -f CMakeFiles/cmTryCompileExec756455166.dir/build.make CMakeFiles/cmTryCompileExec756455166.dir/build
make[1]: Entering directory `/home/julia/Downloads/DCMTK-Android/CMakeFiles/CMakeTmp'
/home/julia/Downloads/cmake-3.2.3-Linux-x86_64/bin/cmake -E cmake_progress_report /home/julia/Downloads/DCMTK-Android/CMakeFiles/CMakeTmp/CMakeFiles 1
Building CXX object CMakeFiles/cmTryCompileExec756455166.dir/CheckSymbolExists.cxx.o
/home/julia/android-ndk-r10d/toolchains/arm-linux-androideabi-4.9/prebuilt/linux-x86_64/bin/arm-linux-androideabi-g++   -DANDROID -fexceptions -frtti -Wno-psabi --sysroot=/home/julia/android-ndk-r10d/platforms/android-17/arch-arm -fpic -funwind-tables -finline-limit=64 -fsigned-char -no-canonical-prefixes -march=armv7-a -mfloat-abi=softfp -mfpu=vfpv3-d16 -fdata-sections -ffunction-sections -Wa,--noexecstack  -D_XOPEN_SOURCE_EXTENDED -D_XOPEN_SOURCE=500 -D_BSD_SOURCE -D_BSD_COMPAT -D_OSF_SOURCE -D_POSIX_C_SOURCE=199506L  -isystem /home/julia/android-ndk-r10d/platforms/android-17/arch-arm/usr/include -isystem /home/julia/android-ndk-r10d/sources/cxx-stl/gnu-libstdc++/4.9/include -isystem /home/julia/android-ndk-r10d/sources/cxx-stl/gnu-libstdc++/4.9/libs/armeabi-v7a/include    -o CMakeFiles/cmTryCompileExec756455166.dir/CheckSymbolExists.cxx.o -c /home/julia/Downloads/DCMTK-Android/CMakeTmp/CheckSymbolExists.cxx
Linking CXX executable cmTryCompileExec756455166
/home/julia/Downloads/cmake-3.2.3-Linux-x86_64/bin/cmake -E cmake_link_script CMakeFiles/cmTryCompileExec756455166.dir/link.txt --verbose=1
/home/julia/android-ndk-r10d/toolchains/arm-linux-androideabi-4.9/prebuilt/linux-x86_64/bin/arm-linux-androideabi-gcc -fexceptions -frtti -Wno-psabi --sysroot=/home/julia/android-ndk-r10d/platforms/android-17/arch-arm -fpic -funwind-tables -finline-limit=64 -fsigned-char -no-canonical-prefixes -march=armv7-a -mfloat-abi=softfp -mfpu=vfpv3-d16 -fdata-sections -ffunction-sections -Wa,--noexecstack  -D_XOPEN_SOURCE_EXTENDED -D_XOPEN_SOURCE=500 -D_BSD_SOURCE -D_BSD_COMPAT -D_OSF_SOURCE -D_POSIX_C_SOURCE=199506L    -Wl,--fix-cortex-a8 -Wl,--no-undefined -Wl,-allow-shlib-undefined -Wl,--gc-sections -Wl,-z,noexecstack -Wl,-z,relro -Wl,-z,now -Wl,-z,nocopyreloc  CMakeFiles/cmTryCompileExec756455166.dir/CheckSymbolExists.cxx.o -o cmTryCompileExec756455166  -L/libs/armeabi-v7a -rdynamic  "/home/julia/android-ndk-r10d/sources/cxx-stl/gnu-libstdc++/4.9/libs/armeabi-v7a/libgnustl_static.a" "/home/julia/android-ndk-r10d/sources/cxx-stl/gnu-libstdc++/4.9/libs/armeabi-v7a/libsupc++.a" -lm
make[1]: Leaving directory `/home/julia/Downloads/DCMTK-Android/CMakeFiles/CMakeTmp'

File /home/julia/Downloads/DCMTK-Android/CMakeTmp/CheckSymbolExists.ccc:
/* */

int main()
{
__sync_add_and_fetch((int*)0,0);return 0;
}

Determining if the __sync_sub_and_fetch((int*)0,0) exist passed with the following output:
Change Dir: /home/julia/Downloads/DCMTK-Android/CMakeFiles/CMakeTmp

Run Build Command:"/usr/bin/make" "cmTryCompileExec894339711/fast"
/usr/bin/make -f CMakeFiles/cmTryCompileExec894339711.dir/build.make CMakeFiles/cmTryCompileExec894339711.dir/build
make[1]: Entering directory `/home/julia/Downloads/DCMTK-Android/CMakeFiles/CMakeTmp'
/home/julia/Downloads/cmake-3.2.3-Linux-x86_64/bin/cmake -E cmake_progress_report /home/julia/Downloads/DCMTK-Android/CMakeFiles/CMakeTmp/CMakeFiles 1
Building CXX object CMakeFiles/cmTryCompileExec894339711.dir/CheckSymbolExists.cxx.o
/home/julia/android-ndk-r10d/toolchains/arm-linux-androideabi-4.9/prebuilt/linux-x86_64/bin/arm-linux-androideabi-g++   -DANDROID -fexceptions -frtti -Wno-psabi --sysroot=/home/julia/android-ndk-r10d/platforms/android-17/arch-arm -fpic -funwind-tables -finline-limit=64 -fsigned-char -no-canonical-prefixes -march=armv7-a -mfloat-abi=softfp -mfpu=vfpv3-d16 -fdata-sections -ffunction-sections -Wa,--noexecstack  -D_XOPEN_SOURCE_EXTENDED -D_XOPEN_SOURCE=500 -D_BSD_SOURCE -D_BSD_COMPAT -D_OSF_SOURCE -D_POSIX_C_SOURCE=199506L  -isystem /home/julia/android-ndk-r10d/platforms/android-17/arch-arm/usr/include -isystem /home/julia/android-ndk-r10d/sources/cxx-stl/gnu-libstdc++/4.9/include -isystem /home/julia/android-ndk-r10d/sources/cxx-stl/gnu-libstdc++/4.9/libs/armeabi-v7a/include    -o CMakeFiles/cmTryCompileExec894339711.dir/CheckSymbolExists.cxx.o -c /home/julia/Downloads/DCMTK-Android/CMakeTmp/CheckSymbolExists.cxx
Linking CXX executable cmTryCompileExec894339711
/home/julia/Downloads/cmake-3.2.3-Linux-x86_64/bin/cmake -E cmake_link_script CMakeFiles/cmTryCompileExec894339711.dir/link.txt --verbose=1
/home/julia/android-ndk-r10d/toolchains/arm-linux-androideabi-4.9/prebuilt/linux-x86_64/bin/arm-linux-androideabi-gcc -fexceptions -frtti -Wno-psabi --sysroot=/home/julia/android-ndk-r10d/platforms/android-17/arch-arm -fpic -funwind-tables -finline-limit=64 -fsigned-char -no-canonical-prefixes -march=armv7-a -mfloat-abi=softfp -mfpu=vfpv3-d16 -fdata-sections -ffunction-sections -Wa,--noexecstack  -D_XOPEN_SOURCE_EXTENDED -D_XOPEN_SOURCE=500 -D_BSD_SOURCE -D_BSD_COMPAT -D_OSF_SOURCE -D_POSIX_C_SOURCE=199506L    -Wl,--fix-cortex-a8 -Wl,--no-undefined -Wl,-allow-shlib-undefined -Wl,--gc-sections -Wl,-z,noexecstack -Wl,-z,relro -Wl,-z,now -Wl,-z,nocopyreloc  CMakeFiles/cmTryCompileExec894339711.dir/CheckSymbolExists.cxx.o -o cmTryCompileExec894339711  -L/libs/armeabi-v7a -rdynamic  "/home/julia/android-ndk-r10d/sources/cxx-stl/gnu-libstdc++/4.9/libs/armeabi-v7a/libgnustl_static.a" "/home/julia/android-ndk-r10d/sources/cxx-stl/gnu-libstdc++/4.9/libs/armeabi-v7a/libsupc++.a" -lm
make[1]: Leaving directory `/home/julia/Downloads/DCMTK-Android/CMakeFiles/CMakeTmp'

File /home/julia/Downloads/DCMTK-Android/CMakeTmp/CheckSymbolExists.ccc:
/* */

int main()
{
__sync_sub_and_fetch((int*)0,0);return 0;
}

Determining if the long long definition exist passed with the following output:
Change Dir: /home/julia/Downloads/DCMTK-Android/CMakeFiles/CMakeTmp

Run Build Command:"/usr/bin/make" "cmTryCompileExec1712032791/fast"
/usr/bin/make -f CMakeFiles/cmTryCompileExec1712032791.dir/build.make CMakeFiles/cmTryCompileExec1712032791.dir/build
make[1]: Entering directory `/home/julia/Downloads/DCMTK-Android/CMakeFiles/CMakeTmp'
/home/julia/Downloads/cmake-3.2.3-Linux-x86_64/bin/cmake -E cmake_progress_report /home/julia/Downloads/DCMTK-Android/CMakeFiles/CMakeTmp/CMakeFiles 1
Building CXX object CMakeFiles/cmTryCompileExec1712032791.dir/CheckSymbolExists.cxx.o
/home/julia/android-ndk-r10d/toolchains/arm-linux-androideabi-4.9/prebuilt/linux-x86_64/bin/arm-linux-androideabi-g++   -DANDROID -fexceptions -frtti -Wno-psabi --sysroot=/home/julia/android-ndk-r10d/platforms/android-17/arch-arm -fpic -funwind-tables -finline-limit=64 -fsigned-char -no-canonical-prefixes -march=armv7-a -mfloat-abi=softfp -mfpu=vfpv3-d16 -fdata-sections -ffunction-sections -Wa,--noexecstack  -D_XOPEN_SOURCE_EXTENDED -D_XOPEN_SOURCE=500 -D_BSD_SOURCE -D_BSD_COMPAT -D_OSF_SOURCE -D_POSIX_C_SOURCE=199506L  -isystem /home/julia/android-ndk-r10d/platforms/android-17/arch-arm/usr/include -isystem /home/julia/android-ndk-r10d/sources/cxx-stl/gnu-libstdc++/4.9/include -isystem /home/julia/android-ndk-r10d/sources/cxx-stl/gnu-libstdc++/4.9/libs/armeabi-v7a/include    -o CMakeFiles/cmTryCompileExec1712032791.dir/CheckSymbolExists.cxx.o -c /home/julia/Downloads/DCMTK-Android/CMakeTmp/CheckSymbolExists.cxx
Linking CXX executable cmTryCompileExec1712032791
/home/julia/Downloads/cmake-3.2.3-Linux-x86_64/bin/cmake -E cmake_link_script CMakeFiles/cmTryCompileExec1712032791.dir/link.txt --verbose=1
/home/julia/android-ndk-r10d/toolchains/arm-linux-androideabi-4.9/prebuilt/linux-x86_64/bin/arm-linux-androideabi-gcc -fexceptions -frtti -Wno-psabi --sysroot=/home/julia/android-ndk-r10d/platforms/android-17/arch-arm -fpic -funwind-tables -finline-limit=64 -fsigned-char -no-canonical-prefixes -march=armv7-a -mfloat-abi=softfp -mfpu=vfpv3-d16 -fdata-sections -ffunction-sections -Wa,--noexecstack  -D_XOPEN_SOURCE_EXTENDED -D_XOPEN_SOURCE=500 -D_BSD_SOURCE -D_BSD_COMPAT -D_OSF_SOURCE -D_POSIX_C_SOURCE=199506L    -Wl,--fix-cortex-a8 -Wl,--no-undefined -Wl,-allow-shlib-undefined -Wl,--gc-sections -Wl,-z,noexecstack -Wl,-z,relro -Wl,-z,now -Wl,-z,nocopyreloc  CMakeFiles/cmTryCompileExec1712032791.dir/CheckSymbolExists.cxx.o -o cmTryCompileExec1712032791  -L/libs/armeabi-v7a -rdynamic  "/home/julia/android-ndk-r10d/sources/cxx-stl/gnu-libstdc++/4.9/libs/armeabi-v7a/libgnustl_static.a" "/home/julia/android-ndk-r10d/sources/cxx-stl/gnu-libstdc++/4.9/libs/armeabi-v7a/libsupc++.a" -lm
make[1]: Leaving directory `/home/julia/Downloads/DCMTK-Android/CMakeFiles/CMakeTmp'

File /home/julia/Downloads/DCMTK-Android/CMakeTmp/CheckSymbolExists.ccc:
/* */

int main()
{
long long definition;return 0;
}

Determining if the unsigned long long definition exist passed with the following output:
Change Dir: /home/julia/Downloads/DCMTK-Android/CMakeFiles/CMakeTmp

Run Build Command:"/usr/bin/make" "cmTryCompileExec2955224229/fast"
/usr/bin/make -f CMakeFiles/cmTryCompileExec2955224229.dir/build.make CMakeFiles/cmTryCompileExec2955224229.dir/build
make[1]: Entering directory `/home/julia/Downloads/DCMTK-Android/CMakeFiles/CMakeTmp'
/home/julia/Downloads/cmake-3.2.3-Linux-x86_64/bin/cmake -E cmake_progress_report /home/julia/Downloads/DCMTK-Android/CMakeFiles/CMakeTmp/CMakeFiles 1
Building CXX object CMakeFiles/cmTryCompileExec2955224229.dir/CheckSymbolExists.cxx.o
/home/julia/android-ndk-r10d/toolchains/arm-linux-androideabi-4.9/prebuilt/linux-x86_64/bin/arm-linux-androideabi-g++   -DANDROID -fexceptions -frtti -Wno-psabi --sysroot=/home/julia/android-ndk-r10d/platforms/android-17/arch-arm -fpic -funwind-tables -finline-limit=64 -fsigned-char -no-canonical-prefixes -march=armv7-a -mfloat-abi=softfp -mfpu=vfpv3-d16 -fdata-sections -ffunction-sections -Wa,--noexecstack  -D_XOPEN_SOURCE_EXTENDED -D_XOPEN_SOURCE=500 -D_BSD_SOURCE -D_BSD_COMPAT -D_OSF_SOURCE -D_POSIX_C_SOURCE=199506L  -isystem /home/julia/android-ndk-r10d/platforms/android-17/arch-arm/usr/include -isystem /home/julia/android-ndk-r10d/sources/cxx-stl/gnu-libstdc++/4.9/include -isystem /home/julia/android-ndk-r10d/sources/cxx-stl/gnu-libstdc++/4.9/libs/armeabi-v7a/include    -o CMakeFiles/cmTryCompileExec2955224229.dir/CheckSymbolExists.cxx.o -c /home/julia/Downloads/DCMTK-Android/CMakeTmp/CheckSymbolExists.cxx
Linking CXX executable cmTryCompileExec2955224229
/home/julia/Downloads/cmake-3.2.3-Linux-x86_64/bin/cmake -E cmake_link_script CMakeFiles/cmTryCompileExec2955224229.dir/link.txt --verbose=1
/home/julia/android-ndk-r10d/toolchains/arm-linux-androideabi-4.9/prebuilt/linux-x86_64/bin/arm-linux-androideabi-gcc -fexceptions -frtti -Wno-psabi --sysroot=/home/julia/android-ndk-r10d/platforms/android-17/arch-arm -fpic -funwind-tables -finline-limit=64 -fsigned-char -no-canonical-prefixes -march=armv7-a -mfloat-abi=softfp -mfpu=vfpv3-d16 -fdata-sections -ffunction-sections -Wa,--noexecstack  -D_XOPEN_SOURCE_EXTENDED -D_XOPEN_SOURCE=500 -D_BSD_SOURCE -D_BSD_COMPAT -D_OSF_SOURCE -D_POSIX_C_SOURCE=199506L    -Wl,--fix-cortex-a8 -Wl,--no-undefined -Wl,-allow-shlib-undefined -Wl,--gc-sections -Wl,-z,noexecstack -Wl,-z,relro -Wl,-z,now -Wl,-z,nocopyreloc  CMakeFiles/cmTryCompileExec2955224229.dir/CheckSymbolExists.cxx.o -o cmTryCompileExec2955224229  -L/libs/armeabi-v7a -rdynamic  "/home/julia/android-ndk-r10d/sources/cxx-stl/gnu-libstdc++/4.9/libs/armeabi-v7a/libgnustl_static.a" "/home/julia/android-ndk-r10d/sources/cxx-stl/gnu-libstdc++/4.9/libs/armeabi-v7a/libsupc++.a" -lm
make[1]: Leaving directory `/home/julia/Downloads/DCMTK-Android/CMakeFiles/CMakeTmp'

File /home/julia/Downloads/DCMTK-Android/CMakeTmp/CheckSymbolExists.ccc:
/* */

int main()
{
unsigned long long definition;return 0;
}

C++ type bool exists passed with the following output:
Change Dir: /home/julia/Downloads/DCMTK-Android/CMakeFiles/CMakeTmp

Run Build Command:"/usr/bin/make" "cmTryCompileExec1327740721/fast"
/usr/bin/make -f CMakeFiles/cmTryCompileExec1327740721.dir/build.make CMakeFiles/cmTryCompileExec1327740721.dir/build
make[1]: Entering directory `/home/julia/Downloads/DCMTK-Android/CMakeFiles/CMakeTmp'
/home/julia/Downloads/cmake-3.2.3-Linux-x86_64/bin/cmake -E cmake_progress_report /home/julia/Downloads/DCMTK-Android/CMakeFiles/CMakeTmp/CMakeFiles 1
Building CXX object CMakeFiles/cmTryCompileExec1327740721.dir/src.cxx.o
/home/julia/android-ndk-r10d/toolchains/arm-linux-androideabi-4.9/prebuilt/linux-x86_64/bin/arm-linux-androideabi-g++   -DANDROID -fexceptions -frtti -Wno-psabi --sysroot=/home/julia/android-ndk-r10d/platforms/android-17/arch-arm -fpic -funwind-tables -finline-limit=64 -fsigned-char -no-canonical-prefixes -march=armv7-a -mfloat-abi=softfp -mfpu=vfpv3-d16 -fdata-sections -ffunction-sections -Wa,--noexecstack  -D_XOPEN_SOURCE_EXTENDED -D_XOPEN_SOURCE=500 -D_BSD_SOURCE -D_BSD_COMPAT -D_OSF_SOURCE -D_POSIX_C_SOURCE=199506L  -isystem /home/julia/android-ndk-r10d/platforms/android-17/arch-arm/usr/include -isystem /home/julia/android-ndk-r10d/sources/cxx-stl/gnu-libstdc++/4.9/include -isystem /home/julia/android-ndk-r10d/sources/cxx-stl/gnu-libstdc++/4.9/libs/armeabi-v7a/include    -o CMakeFiles/cmTryCompileExec1327740721.dir/src.cxx.o -c /home/julia/Downloads/DCMTK-Android/CMakeFiles/CMakeTmp/src.cxx
Linking CXX executable cmTryCompileExec1327740721
/home/julia/Downloads/cmake-3.2.3-Linux-x86_64/bin/cmake -E cmake_link_script CMakeFiles/cmTryCompileExec1327740721.dir/link.txt --verbose=1
/home/julia/android-ndk-r10d/toolchains/arm-linux-androideabi-4.9/prebuilt/linux-x86_64/bin/arm-linux-androideabi-gcc -fexceptions -frtti -Wno-psabi --sysroot=/home/julia/android-ndk-r10d/platforms/android-17/arch-arm -fpic -funwind-tables -finline-limit=64 -fsigned-char -no-canonical-prefixes -march=armv7-a -mfloat-abi=softfp -mfpu=vfpv3-d16 -fdata-sections -ffunction-sections -Wa,--noexecstack  -D_XOPEN_SOURCE_EXTENDED -D_XOPEN_SOURCE=500 -D_BSD_SOURCE -D_BSD_COMPAT -D_OSF_SOURCE -D_POSIX_C_SOURCE=199506L    -Wl,--fix-cortex-a8 -Wl,--no-undefined -Wl,-allow-shlib-undefined -Wl,--gc-sections -Wl,-z,noexecstack -Wl,-z,relro -Wl,-z,now -Wl,-z,nocopyreloc  CMakeFiles/cmTryCompileExec1327740721.dir/src.cxx.o -o cmTryCompileExec1327740721  -L/libs/armeabi-v7a -rdynamic  "/home/julia/android-ndk-r10d/sources/cxx-stl/gnu-libstdc++/4.9/libs/armeabi-v7a/libgnustl_static.a" "/home/julia/android-ndk-r10d/sources/cxx-stl/gnu-libstdc++/4.9/libs/armeabi-v7a/libsupc++.a" -lm
make[1]: Leaving directory `/home/julia/Downloads/DCMTK-Android/CMakeFiles/CMakeTmp'

pthread_t is an integer type passed with the following output:
Change Dir: /home/julia/Downloads/DCMTK-Android/CMakeFiles/CMakeTmp

Run Build Command:"/usr/bin/make" "cmTryCompileExec96645517/fast"
/usr/bin/make -f CMakeFiles/cmTryCompileExec96645517.dir/build.make CMakeFiles/cmTryCompileExec96645517.dir/build
make[1]: Entering directory `/home/julia/Downloads/DCMTK-Android/CMakeFiles/CMakeTmp'
/home/julia/Downloads/cmake-3.2.3-Linux-x86_64/bin/cmake -E cmake_progress_report /home/julia/Downloads/DCMTK-Android/CMakeFiles/CMakeTmp/CMakeFiles 1
Building CXX object CMakeFiles/cmTryCompileExec96645517.dir/src.cxx.o
/home/julia/android-ndk-r10d/toolchains/arm-linux-androideabi-4.9/prebuilt/linux-x86_64/bin/arm-linux-androideabi-g++   -DANDROID -fexceptions -frtti -Wno-psabi --sysroot=/home/julia/android-ndk-r10d/platforms/android-17/arch-arm -fpic -funwind-tables -finline-limit=64 -fsigned-char -no-canonical-prefixes -march=armv7-a -mfloat-abi=softfp -mfpu=vfpv3-d16 -fdata-sections -ffunction-sections -Wa,--noexecstack  -D_XOPEN_SOURCE_EXTENDED -D_XOPEN_SOURCE=500 -D_BSD_SOURCE -D_BSD_COMPAT -D_OSF_SOURCE -D_POSIX_C_SOURCE=199506L  -isystem /home/julia/android-ndk-r10d/platforms/android-17/arch-arm/usr/include -isystem /home/julia/android-ndk-r10d/sources/cxx-stl/gnu-libstdc++/4.9/include -isystem /home/julia/android-ndk-r10d/sources/cxx-stl/gnu-libstdc++/4.9/libs/armeabi-v7a/include    -o CMakeFiles/cmTryCompileExec96645517.dir/src.cxx.o -c /home/julia/Downloads/DCMTK-Android/CMakeFiles/CMakeTmp/src.cxx
Linking CXX executable cmTryCompileExec96645517
/home/julia/Downloads/cmake-3.2.3-Linux-x86_64/bin/cmake -E cmake_link_script CMakeFiles/cmTryCompileExec96645517.dir/link.txt --verbose=1
/home/julia/android-ndk-r10d/toolchains/arm-linux-androideabi-4.9/prebuilt/linux-x86_64/bin/arm-linux-androideabi-gcc -fexceptions -frtti -Wno-psabi --sysroot=/home/julia/android-ndk-r10d/platforms/android-17/arch-arm -fpic -funwind-tables -finline-limit=64 -fsigned-char -no-canonical-prefixes -march=armv7-a -mfloat-abi=softfp -mfpu=vfpv3-d16 -fdata-sections -ffunction-sections -Wa,--noexecstack  -D_XOPEN_SOURCE_EXTENDED -D_XOPEN_SOURCE=500 -D_BSD_SOURCE -D_BSD_COMPAT -D_OSF_SOURCE -D_POSIX_C_SOURCE=199506L    -Wl,--fix-cortex-a8 -Wl,--no-undefined -Wl,-allow-shlib-undefined -Wl,--gc-sections -Wl,-z,noexecstack -Wl,-z,relro -Wl,-z,now -Wl,-z,nocopyreloc  CMakeFiles/cmTryCompileExec96645517.dir/src.cxx.o -o cmTryCompileExec96645517  -L/libs/armeabi-v7a -rdynamic  "/home/julia/android-ndk-r10d/sources/cxx-stl/gnu-libstdc++/4.9/libs/armeabi-v7a/libgnustl_static.a" "/home/julia/android-ndk-r10d/sources/cxx-stl/gnu-libstdc++/4.9/libs/armeabi-v7a/libsupc++.a" -lm
make[1]: Leaving directory `/home/julia/Downloads/DCMTK-Android/CMakeFiles/CMakeTmp'

typename works correctly passed with the following output:
Change Dir: /home/julia/Downloads/DCMTK-Android/CMakeFiles/CMakeTmp

Run Build Command:"/usr/bin/make" "cmTryCompileExec3384016484/fast"
/usr/bin/make -f CMakeFiles/cmTryCompileExec3384016484.dir/build.make CMakeFiles/cmTryCompileExec3384016484.dir/build
make[1]: Entering directory `/home/julia/Downloads/DCMTK-Android/CMakeFiles/CMakeTmp'
/home/julia/Downloads/cmake-3.2.3-Linux-x86_64/bin/cmake -E cmake_progress_report /home/julia/Downloads/DCMTK-Android/CMakeFiles/CMakeTmp/CMakeFiles 1
Building CXX object CMakeFiles/cmTryCompileExec3384016484.dir/src.cxx.o
/home/julia/android-ndk-r10d/toolchains/arm-linux-androideabi-4.9/prebuilt/linux-x86_64/bin/arm-linux-androideabi-g++   -DANDROID -fexceptions -frtti -Wno-psabi --sysroot=/home/julia/android-ndk-r10d/platforms/android-17/arch-arm -fpic -funwind-tables -finline-limit=64 -fsigned-char -no-canonical-prefixes -march=armv7-a -mfloat-abi=softfp -mfpu=vfpv3-d16 -fdata-sections -ffunction-sections -Wa,--noexecstack  -D_XOPEN_SOURCE_EXTENDED -D_XOPEN_SOURCE=500 -D_BSD_SOURCE -D_BSD_COMPAT -D_OSF_SOURCE -D_POSIX_C_SOURCE=199506L  -isystem /home/julia/android-ndk-r10d/platforms/android-17/arch-arm/usr/include -isystem /home/julia/android-ndk-r10d/sources/cxx-stl/gnu-libstdc++/4.9/include -isystem /home/julia/android-ndk-r10d/sources/cxx-stl/gnu-libstdc++/4.9/libs/armeabi-v7a/include    -o CMakeFiles/cmTryCompileExec3384016484.dir/src.cxx.o -c /home/julia/Downloads/DCMTK-Android/CMakeFiles/CMakeTmp/src.cxx
Linking CXX executable cmTryCompileExec3384016484
/home/julia/Downloads/cmake-3.2.3-Linux-x86_64/bin/cmake -E cmake_link_script CMakeFiles/cmTryCompileExec3384016484.dir/link.txt --verbose=1
/home/julia/android-ndk-r10d/toolchains/arm-linux-androideabi-4.9/prebuilt/linux-x86_64/bin/arm-linux-androideabi-gcc -fexceptions -frtti -Wno-psabi --sysroot=/home/julia/android-ndk-r10d/platforms/android-17/arch-arm -fpic -funwind-tables -finline-limit=64 -fsigned-char -no-canonical-prefixes -march=armv7-a -mfloat-abi=softfp -mfpu=vfpv3-d16 -fdata-sections -ffunction-sections -Wa,--noexecstack  -D_XOPEN_SOURCE_EXTENDED -D_XOPEN_SOURCE=500 -D_BSD_SOURCE -D_BSD_COMPAT -D_OSF_SOURCE -D_POSIX_C_SOURCE=199506L    -Wl,--fix-cortex-a8 -Wl,--no-undefined -Wl,-allow-shlib-undefined -Wl,--gc-sections -Wl,-z,noexecstack -Wl,-z,relro -Wl,-z,now -Wl,-z,nocopyreloc  CMakeFiles/cmTryCompileExec3384016484.dir/src.cxx.o -o cmTryCompileExec3384016484  -L/libs/armeabi-v7a -rdynamic  "/home/julia/android-ndk-r10d/sources/cxx-stl/gnu-libstdc++/4.9/libs/armeabi-v7a/libgnustl_static.a" "/home/julia/android-ndk-r10d/sources/cxx-stl/gnu-libstdc++/4.9/libs/armeabi-v7a/libsupc++.a" -lm
make[1]: Leaving directory `/home/julia/Downloads/DCMTK-Android/CMakeFiles/CMakeTmp'

ENAMETOOLONG is defined passed with the following output:
Change Dir: /home/julia/Downloads/DCMTK-Android/CMakeFiles/CMakeTmp

Run Build Command:"/usr/bin/make" "cmTryCompileExec3185223218/fast"
/usr/bin/make -f CMakeFiles/cmTryCompileExec3185223218.dir/build.make CMakeFiles/cmTryCompileExec3185223218.dir/build
make[1]: Entering directory `/home/julia/Downloads/DCMTK-Android/CMakeFiles/CMakeTmp'
/home/julia/Downloads/cmake-3.2.3-Linux-x86_64/bin/cmake -E cmake_progress_report /home/julia/Downloads/DCMTK-Android/CMakeFiles/CMakeTmp/CMakeFiles 1
Building CXX object CMakeFiles/cmTryCompileExec3185223218.dir/src.cxx.o
/home/julia/android-ndk-r10d/toolchains/arm-linux-androideabi-4.9/prebuilt/linux-x86_64/bin/arm-linux-androideabi-g++   -DANDROID -fexceptions -frtti -Wno-psabi --sysroot=/home/julia/android-ndk-r10d/platforms/android-17/arch-arm -fpic -funwind-tables -finline-limit=64 -fsigned-char -no-canonical-prefixes -march=armv7-a -mfloat-abi=softfp -mfpu=vfpv3-d16 -fdata-sections -ffunction-sections -Wa,--noexecstack  -D_XOPEN_SOURCE_EXTENDED -D_XOPEN_SOURCE=500 -D_BSD_SOURCE -D_BSD_COMPAT -D_OSF_SOURCE -D_POSIX_C_SOURCE=199506L  -isystem /home/julia/android-ndk-r10d/platforms/android-17/arch-arm/usr/include -isystem /home/julia/android-ndk-r10d/sources/cxx-stl/gnu-libstdc++/4.9/include -isystem /home/julia/android-ndk-r10d/sources/cxx-stl/gnu-libstdc++/4.9/libs/armeabi-v7a/include    -o CMakeFiles/cmTryCompileExec3185223218.dir/src.cxx.o -c /home/julia/Downloads/DCMTK-Android/CMakeFiles/CMakeTmp/src.cxx
Linking CXX executable cmTryCompileExec3185223218
/home/julia/Downloads/cmake-3.2.3-Linux-x86_64/bin/cmake -E cmake_link_script CMakeFiles/cmTryCompileExec3185223218.dir/link.txt --verbose=1
/home/julia/android-ndk-r10d/toolchains/arm-linux-androideabi-4.9/prebuilt/linux-x86_64/bin/arm-linux-androideabi-gcc -fexceptions -frtti -Wno-psabi --sysroot=/home/julia/android-ndk-r10d/platforms/android-17/arch-arm -fpic -funwind-tables -finline-limit=64 -fsigned-char -no-canonical-prefixes -march=armv7-a -mfloat-abi=softfp -mfpu=vfpv3-d16 -fdata-sections -ffunction-sections -Wa,--noexecstack  -D_XOPEN_SOURCE_EXTENDED -D_XOPEN_SOURCE=500 -D_BSD_SOURCE -D_BSD_COMPAT -D_OSF_SOURCE -D_POSIX_C_SOURCE=199506L    -Wl,--fix-cortex-a8 -Wl,--no-undefined -Wl,-allow-shlib-undefined -Wl,--gc-sections -Wl,-z,noexecstack -Wl,-z,relro -Wl,-z,now -Wl,-z,nocopyreloc  CMakeFiles/cmTryCompileExec3185223218.dir/src.cxx.o -o cmTryCompileExec3185223218  -L/libs/armeabi-v7a -rdynamic  "/home/julia/android-ndk-r10d/sources/cxx-stl/gnu-libstdc++/4.9/libs/armeabi-v7a/libgnustl_static.a" "/home/julia/android-ndk-r10d/sources/cxx-stl/gnu-libstdc++/4.9/libs/armeabi-v7a/libsupc++.a" -lm
make[1]: Leaving directory `/home/julia/Downloads/DCMTK-Android/CMakeFiles/CMakeTmp'

strerror_r returns an int passed with the following output:
Change Dir: /home/julia/Downloads/DCMTK-Android/CMakeFiles/CMakeTmp

Run Build Command:"/usr/bin/make" "cmTryCompileExec533618864/fast"
/usr/bin/make -f CMakeFiles/cmTryCompileExec533618864.dir/build.make CMakeFiles/cmTryCompileExec533618864.dir/build
make[1]: Entering directory `/home/julia/Downloads/DCMTK-Android/CMakeFiles/CMakeTmp'
/home/julia/Downloads/cmake-3.2.3-Linux-x86_64/bin/cmake -E cmake_progress_report /home/julia/Downloads/DCMTK-Android/CMakeFiles/CMakeTmp/CMakeFiles 1
Building CXX object CMakeFiles/cmTryCompileExec533618864.dir/src.cxx.o
/home/julia/android-ndk-r10d/toolchains/arm-linux-androideabi-4.9/prebuilt/linux-x86_64/bin/arm-linux-androideabi-g++   -DANDROID -fexceptions -frtti -Wno-psabi --sysroot=/home/julia/android-ndk-r10d/platforms/android-17/arch-arm -fpic -funwind-tables -finline-limit=64 -fsigned-char -no-canonical-prefixes -march=armv7-a -mfloat-abi=softfp -mfpu=vfpv3-d16 -fdata-sections -ffunction-sections -Wa,--noexecstack  -D_XOPEN_SOURCE_EXTENDED -D_XOPEN_SOURCE=500 -D_BSD_SOURCE -D_BSD_COMPAT -D_OSF_SOURCE -D_POSIX_C_SOURCE=199506L  -isystem /home/julia/android-ndk-r10d/platforms/android-17/arch-arm/usr/include -isystem /home/julia/android-ndk-r10d/sources/cxx-stl/gnu-libstdc++/4.9/include -isystem /home/julia/android-ndk-r10d/sources/cxx-stl/gnu-libstdc++/4.9/libs/armeabi-v7a/include    -o CMakeFiles/cmTryCompileExec533618864.dir/src.cxx.o -c /home/julia/Downloads/DCMTK-Android/CMakeFiles/CMakeTmp/src.cxx
Linking CXX executable cmTryCompileExec533618864
/home/julia/Downloads/cmake-3.2.3-Linux-x86_64/bin/cmake -E cmake_link_script CMakeFiles/cmTryCompileExec533618864.dir/link.txt --verbose=1
/home/julia/android-ndk-r10d/toolchains/arm-linux-androideabi-4.9/prebuilt/linux-x86_64/bin/arm-linux-androideabi-gcc -fexceptions -frtti -Wno-psabi --sysroot=/home/julia/android-ndk-r10d/platforms/android-17/arch-arm -fpic -funwind-tables -finline-limit=64 -fsigned-char -no-canonical-prefixes -march=armv7-a -mfloat-abi=softfp -mfpu=vfpv3-d16 -fdata-sections -ffunction-sections -Wa,--noexecstack  -D_XOPEN_SOURCE_EXTENDED -D_XOPEN_SOURCE=500 -D_BSD_SOURCE -D_BSD_COMPAT -D_OSF_SOURCE -D_POSIX_C_SOURCE=199506L    -Wl,--fix-cortex-a8 -Wl,--no-undefined -Wl,-allow-shlib-undefined -Wl,--gc-sections -Wl,-z,noexecstack -Wl,-z,relro -Wl,-z,now -Wl,-z,nocopyreloc  CMakeFiles/cmTryCompileExec533618864.dir/src.cxx.o -o cmTryCompileExec533618864  -L/libs/armeabi-v7a -rdynamic  "/home/julia/android-ndk-r10d/sources/cxx-stl/gnu-libstdc++/4.9/libs/armeabi-v7a/libgnustl_static.a" "/home/julia/android-ndk-r10d/sources/cxx-stl/gnu-libstdc++/4.9/libs/armeabi-v7a/libsupc++.a" -lm
make[1]: Leaving directory `/home/julia/Downloads/DCMTK-Android/CMakeFiles/CMakeTmp'

variable length arrays are supported passed with the following output:
Change Dir: /home/julia/Downloads/DCMTK-Android/CMakeFiles/CMakeTmp

Run Build Command:"/usr/bin/make" "cmTryCompileExec2639798947/fast"
/usr/bin/make -f CMakeFiles/cmTryCompileExec2639798947.dir/build.make CMakeFiles/cmTryCompileExec2639798947.dir/build
make[1]: Entering directory `/home/julia/Downloads/DCMTK-Android/CMakeFiles/CMakeTmp'
/home/julia/Downloads/cmake-3.2.3-Linux-x86_64/bin/cmake -E cmake_progress_report /home/julia/Downloads/DCMTK-Android/CMakeFiles/CMakeTmp/CMakeFiles 1
Building CXX object CMakeFiles/cmTryCompileExec2639798947.dir/src.cxx.o
/home/julia/android-ndk-r10d/toolchains/arm-linux-androideabi-4.9/prebuilt/linux-x86_64/bin/arm-linux-androideabi-g++   -DANDROID -fexceptions -frtti -Wno-psabi --sysroot=/home/julia/android-ndk-r10d/platforms/android-17/arch-arm -fpic -funwind-tables -finline-limit=64 -fsigned-char -no-canonical-prefixes -march=armv7-a -mfloat-abi=softfp -mfpu=vfpv3-d16 -fdata-sections -ffunction-sections -Wa,--noexecstack  -D_XOPEN_SOURCE_EXTENDED -D_XOPEN_SOURCE=500 -D_BSD_SOURCE -D_BSD_COMPAT -D_OSF_SOURCE -D_POSIX_C_SOURCE=199506L  -isystem /home/julia/android-ndk-r10d/platforms/android-17/arch-arm/usr/include -isystem /home/julia/android-ndk-r10d/sources/cxx-stl/gnu-libstdc++/4.9/include -isystem /home/julia/android-ndk-r10d/sources/cxx-stl/gnu-libstdc++/4.9/libs/armeabi-v7a/include    -o CMakeFiles/cmTryCompileExec2639798947.dir/src.cxx.o -c /home/julia/Downloads/DCMTK-Android/CMakeFiles/CMakeTmp/src.cxx
Linking CXX executable cmTryCompileExec2639798947
/home/julia/Downloads/cmake-3.2.3-Linux-x86_64/bin/cmake -E cmake_link_script CMakeFiles/cmTryCompileExec2639798947.dir/link.txt --verbose=1
/home/julia/android-ndk-r10d/toolchains/arm-linux-androideabi-4.9/prebuilt/linux-x86_64/bin/arm-linux-androideabi-gcc -fexceptions -frtti -Wno-psabi --sysroot=/home/julia/android-ndk-r10d/platforms/android-17/arch-arm -fpic -funwind-tables -finline-limit=64 -fsigned-char -no-canonical-prefixes -march=armv7-a -mfloat-abi=softfp -mfpu=vfpv3-d16 -fdata-sections -ffunction-sections -Wa,--noexecstack  -D_XOPEN_SOURCE_EXTENDED -D_XOPEN_SOURCE=500 -D_BSD_SOURCE -D_BSD_COMPAT -D_OSF_SOURCE -D_POSIX_C_SOURCE=199506L    -Wl,--fix-cortex-a8 -Wl,--no-undefined -Wl,-allow-shlib-undefined -Wl,--gc-sections -Wl,-z,noexecstack -Wl,-z,relro -Wl,-z,now -Wl,-z,nocopyreloc  CMakeFiles/cmTryCompileExec2639798947.dir/src.cxx.o -o cmTryCompileExec2639798947  -L/libs/armeabi-v7a -rdynamic  "/home/julia/android-ndk-r10d/sources/cxx-stl/gnu-libstdc++/4.9/libs/armeabi-v7a/libgnustl_static.a" "/home/julia/android-ndk-r10d/sources/cxx-stl/gnu-libstdc++/4.9/libs/armeabi-v7a/libsupc++.a" -lm
make[1]: Leaving directory `/home/julia/Downloads/DCMTK-Android/CMakeFiles/CMakeTmp'

socket functions accept an int* argument passed with the following output:
Change Dir: /home/julia/Downloads/DCMTK-Android/CMakeFiles/CMakeTmp

Run Build Command:"/usr/bin/make" "cmTryCompileExec1128236020/fast"
/usr/bin/make -f CMakeFiles/cmTryCompileExec1128236020.dir/build.make CMakeFiles/cmTryCompileExec1128236020.dir/build
make[1]: Entering directory `/home/julia/Downloads/DCMTK-Android/CMakeFiles/CMakeTmp'
/home/julia/Downloads/cmake-3.2.3-Linux-x86_64/bin/cmake -E cmake_progress_report /home/julia/Downloads/DCMTK-Android/CMakeFiles/CMakeTmp/CMakeFiles 1
Building CXX object CMakeFiles/cmTryCompileExec1128236020.dir/src.cxx.o
/home/julia/android-ndk-r10d/toolchains/arm-linux-androideabi-4.9/prebuilt/linux-x86_64/bin/arm-linux-androideabi-g++   -DANDROID -fexceptions -frtti -Wno-psabi --sysroot=/home/julia/android-ndk-r10d/platforms/android-17/arch-arm -fpic -funwind-tables -finline-limit=64 -fsigned-char -no-canonical-prefixes -march=armv7-a -mfloat-abi=softfp -mfpu=vfpv3-d16 -fdata-sections -ffunction-sections -Wa,--noexecstack  -D_XOPEN_SOURCE_EXTENDED -D_XOPEN_SOURCE=500 -D_BSD_SOURCE -D_BSD_COMPAT -D_OSF_SOURCE -D_POSIX_C_SOURCE=199506L  -isystem /home/julia/android-ndk-r10d/platforms/android-17/arch-arm/usr/include -isystem /home/julia/android-ndk-r10d/sources/cxx-stl/gnu-libstdc++/4.9/include -isystem /home/julia/android-ndk-r10d/sources/cxx-stl/gnu-libstdc++/4.9/libs/armeabi-v7a/include    -o CMakeFiles/cmTryCompileExec1128236020.dir/src.cxx.o -c /home/julia/Downloads/DCMTK-Android/CMakeFiles/CMakeTmp/src.cxx
Linking CXX executable cmTryCompileExec1128236020
/home/julia/Downloads/cmake-3.2.3-Linux-x86_64/bin/cmake -E cmake_link_script CMakeFiles/cmTryCompileExec1128236020.dir/link.txt --verbose=1
/home/julia/android-ndk-r10d/toolchains/arm-linux-androideabi-4.9/prebuilt/linux-x86_64/bin/arm-linux-androideabi-gcc -fexceptions -frtti -Wno-psabi --sysroot=/home/julia/android-ndk-r10d/platforms/android-17/arch-arm -fpic -funwind-tables -finline-limit=64 -fsigned-char -no-canonical-prefixes -march=armv7-a -mfloat-abi=softfp -mfpu=vfpv3-d16 -fdata-sections -ffunction-sections -Wa,--noexecstack  -D_XOPEN_SOURCE_EXTENDED -D_XOPEN_SOURCE=500 -D_BSD_SOURCE -D_BSD_COMPAT -D_OSF_SOURCE -D_POSIX_C_SOURCE=199506L    -Wl,--fix-cortex-a8 -Wl,--no-undefined -Wl,-allow-shlib-undefined -Wl,--gc-sections -Wl,-z,noexecstack -Wl,-z,relro -Wl,-z,now -Wl,-z,nocopyreloc  CMakeFiles/cmTryCompileExec1128236020.dir/src.cxx.o -o cmTryCompileExec1128236020  -L/libs/armeabi-v7a -rdynamic  "/home/julia/android-ndk-r10d/sources/cxx-stl/gnu-libstdc++/4.9/libs/armeabi-v7a/libgnustl_static.a" "/home/julia/android-ndk-r10d/sources/cxx-stl/gnu-libstdc++/4.9/libs/armeabi-v7a/libsupc++.a" -lm
make[1]: Leaving directory `/home/julia/Downloads/DCMTK-Android/CMakeFiles/CMakeTmp'

__alignof__ is supported passed with the following output:
Change Dir: /home/julia/Downloads/DCMTK-Android/CMakeFiles/CMakeTmp

Run Build Command:"/usr/bin/make" "cmTryCompileExec1158176751/fast"
/usr/bin/make -f CMakeFiles/cmTryCompileExec1158176751.dir/build.make CMakeFiles/cmTryCompileExec1158176751.dir/build
make[1]: Entering directory `/home/julia/Downloads/DCMTK-Android/CMakeFiles/CMakeTmp'
/home/julia/Downloads/cmake-3.2.3-Linux-x86_64/bin/cmake -E cmake_progress_report /home/julia/Downloads/DCMTK-Android/CMakeFiles/CMakeTmp/CMakeFiles 1
Building CXX object CMakeFiles/cmTryCompileExec1158176751.dir/src.cxx.o
/home/julia/android-ndk-r10d/toolchains/arm-linux-androideabi-4.9/prebuilt/linux-x86_64/bin/arm-linux-androideabi-g++   -DANDROID -fexceptions -frtti -Wno-psabi --sysroot=/home/julia/android-ndk-r10d/platforms/android-17/arch-arm -fpic -funwind-tables -finline-limit=64 -fsigned-char -no-canonical-prefixes -march=armv7-a -mfloat-abi=softfp -mfpu=vfpv3-d16 -fdata-sections -ffunction-sections -Wa,--noexecstack  -D_XOPEN_SOURCE_EXTENDED -D_XOPEN_SOURCE=500 -D_BSD_SOURCE -D_BSD_COMPAT -D_OSF_SOURCE -D_POSIX_C_SOURCE=199506L  -isystem /home/julia/android-ndk-r10d/platforms/android-17/arch-arm/usr/include -isystem /home/julia/android-ndk-r10d/sources/cxx-stl/gnu-libstdc++/4.9/include -isystem /home/julia/android-ndk-r10d/sources/cxx-stl/gnu-libstdc++/4.9/libs/armeabi-v7a/include    -o CMakeFiles/cmTryCompileExec1158176751.dir/src.cxx.o -c /home/julia/Downloads/DCMTK-Android/CMakeFiles/CMakeTmp/src.cxx
Linking CXX executable cmTryCompileExec1158176751
/home/julia/Downloads/cmake-3.2.3-Linux-x86_64/bin/cmake -E cmake_link_script CMakeFiles/cmTryCompileExec1158176751.dir/link.txt --verbose=1
/home/julia/android-ndk-r10d/toolchains/arm-linux-androideabi-4.9/prebuilt/linux-x86_64/bin/arm-linux-androideabi-gcc -fexceptions -frtti -Wno-psabi --sysroot=/home/julia/android-ndk-r10d/platforms/android-17/arch-arm -fpic -funwind-tables -finline-limit=64 -fsigned-char -no-canonical-prefixes -march=armv7-a -mfloat-abi=softfp -mfpu=vfpv3-d16 -fdata-sections -ffunction-sections -Wa,--noexecstack  -D_XOPEN_SOURCE_EXTENDED -D_XOPEN_SOURCE=500 -D_BSD_SOURCE -D_BSD_COMPAT -D_OSF_SOURCE -D_POSIX_C_SOURCE=199506L    -Wl,--fix-cortex-a8 -Wl,--no-undefined -Wl,-allow-shlib-undefined -Wl,--gc-sections -Wl,-z,noexecstack -Wl,-z,relro -Wl,-z,now -Wl,-z,nocopyreloc  CMakeFiles/cmTryCompileExec1158176751.dir/src.cxx.o -o cmTryCompileExec1158176751  -L/libs/armeabi-v7a -rdynamic  "/home/julia/android-ndk-r10d/sources/cxx-stl/gnu-libstdc++/4.9/libs/armeabi-v7a/libgnustl_static.a" "/home/julia/android-ndk-r10d/sources/cxx-stl/gnu-libstdc++/4.9/libs/armeabi-v7a/libsupc++.a" -lm
make[1]: Leaving directory `/home/julia/Downloads/DCMTK-Android/CMakeFiles/CMakeTmp'

__alignof is supported passed with the following output:
Change Dir: /home/julia/Downloads/DCMTK-Android/CMakeFiles/CMakeTmp

Run Build Command:"/usr/bin/make" "cmTryCompileExec3085261182/fast"
/usr/bin/make -f CMakeFiles/cmTryCompileExec3085261182.dir/build.make CMakeFiles/cmTryCompileExec3085261182.dir/build
make[1]: Entering directory `/home/julia/Downloads/DCMTK-Android/CMakeFiles/CMakeTmp'
/home/julia/Downloads/cmake-3.2.3-Linux-x86_64/bin/cmake -E cmake_progress_report /home/julia/Downloads/DCMTK-Android/CMakeFiles/CMakeTmp/CMakeFiles 1
Building CXX object CMakeFiles/cmTryCompileExec3085261182.dir/src.cxx.o
/home/julia/android-ndk-r10d/toolchains/arm-linux-androideabi-4.9/prebuilt/linux-x86_64/bin/arm-linux-androideabi-g++   -DANDROID -fexceptions -frtti -Wno-psabi --sysroot=/home/julia/android-ndk-r10d/platforms/android-17/arch-arm -fpic -funwind-tables -finline-limit=64 -fsigned-char -no-canonical-prefixes -march=armv7-a -mfloat-abi=softfp -mfpu=vfpv3-d16 -fdata-sections -ffunction-sections -Wa,--noexecstack  -D_XOPEN_SOURCE_EXTENDED -D_XOPEN_SOURCE=500 -D_BSD_SOURCE -D_BSD_COMPAT -D_OSF_SOURCE -D_POSIX_C_SOURCE=199506L  -isystem /home/julia/android-ndk-r10d/platforms/android-17/arch-arm/usr/include -isystem /home/julia/android-ndk-r10d/sources/cxx-stl/gnu-libstdc++/4.9/include -isystem /home/julia/android-ndk-r10d/sources/cxx-stl/gnu-libstdc++/4.9/libs/armeabi-v7a/include    -o CMakeFiles/cmTryCompileExec3085261182.dir/src.cxx.o -c /home/julia/Downloads/DCMTK-Android/CMakeFiles/CMakeTmp/src.cxx
Linking CXX executable cmTryCompileExec3085261182
/home/julia/Downloads/cmake-3.2.3-Linux-x86_64/bin/cmake -E cmake_link_script CMakeFiles/cmTryCompileExec3085261182.dir/link.txt --verbose=1
/home/julia/android-ndk-r10d/toolchains/arm-linux-androideabi-4.9/prebuilt/linux-x86_64/bin/arm-linux-androideabi-gcc -fexceptions -frtti -Wno-psabi --sysroot=/home/julia/android-ndk-r10d/platforms/android-17/arch-arm -fpic -funwind-tables -finline-limit=64 -fsigned-char -no-canonical-prefixes -march=armv7-a -mfloat-abi=softfp -mfpu=vfpv3-d16 -fdata-sections -ffunction-sections -Wa,--noexecstack  -D_XOPEN_SOURCE_EXTENDED -D_XOPEN_SOURCE=500 -D_BSD_SOURCE -D_BSD_COMPAT -D_OSF_SOURCE -D_POSIX_C_SOURCE=199506L    -Wl,--fix-cortex-a8 -Wl,--no-undefined -Wl,-allow-shlib-undefined -Wl,--gc-sections -Wl,-z,noexecstack -Wl,-z,relro -Wl,-z,now -Wl,-z,nocopyreloc  CMakeFiles/cmTryCompileExec3085261182.dir/src.cxx.o -o cmTryCompileExec3085261182  -L/libs/armeabi-v7a -rdynamic  "/home/julia/android-ndk-r10d/sources/cxx-stl/gnu-libstdc++/4.9/libs/armeabi-v7a/libgnustl_static.a" "/home/julia/android-ndk-r10d/sources/cxx-stl/gnu-libstdc++/4.9/libs/armeabi-v7a/libsupc++.a" -lm
make[1]: Leaving directory `/home/julia/Downloads/DCMTK-Android/CMakeFiles/CMakeTmp'

__attribute__((aligned)) is supported passed with the following output:
Change Dir: /home/julia/Downloads/DCMTK-Android/CMakeFiles/CMakeTmp

Run Build Command:"/usr/bin/make" "cmTryCompileExec1172226297/fast"
/usr/bin/make -f CMakeFiles/cmTryCompileExec1172226297.dir/build.make CMakeFiles/cmTryCompileExec1172226297.dir/build
make[1]: Entering directory `/home/julia/Downloads/DCMTK-Android/CMakeFiles/CMakeTmp'
/home/julia/Downloads/cmake-3.2.3-Linux-x86_64/bin/cmake -E cmake_progress_report /home/julia/Downloads/DCMTK-Android/CMakeFiles/CMakeTmp/CMakeFiles 1
Building CXX object CMakeFiles/cmTryCompileExec1172226297.dir/src.cxx.o
/home/julia/android-ndk-r10d/toolchains/arm-linux-androideabi-4.9/prebuilt/linux-x86_64/bin/arm-linux-androideabi-g++   -DANDROID -fexceptions -frtti -Wno-psabi --sysroot=/home/julia/android-ndk-r10d/platforms/android-17/arch-arm -fpic -funwind-tables -finline-limit=64 -fsigned-char -no-canonical-prefixes -march=armv7-a -mfloat-abi=softfp -mfpu=vfpv3-d16 -fdata-sections -ffunction-sections -Wa,--noexecstack  -D_XOPEN_SOURCE_EXTENDED -D_XOPEN_SOURCE=500 -D_BSD_SOURCE -D_BSD_COMPAT -D_OSF_SOURCE -D_POSIX_C_SOURCE=199506L  -isystem /home/julia/android-ndk-r10d/platforms/android-17/arch-arm/usr/include -isystem /home/julia/android-ndk-r10d/sources/cxx-stl/gnu-libstdc++/4.9/include -isystem /home/julia/android-ndk-r10d/sources/cxx-stl/gnu-libstdc++/4.9/libs/armeabi-v7a/include    -o CMakeFiles/cmTryCompileExec1172226297.dir/src.cxx.o -c /home/julia/Downloads/DCMTK-Android/CMakeFiles/CMakeTmp/src.cxx
Linking CXX executable cmTryCompileExec1172226297
/home/julia/Downloads/cmake-3.2.3-Linux-x86_64/bin/cmake -E cmake_link_script CMakeFiles/cmTryCompileExec1172226297.dir/link.txt --verbose=1
/home/julia/android-ndk-r10d/toolchains/arm-linux-androideabi-4.9/prebuilt/linux-x86_64/bin/arm-linux-androideabi-gcc -fexceptions -frtti -Wno-psabi --sysroot=/home/julia/android-ndk-r10d/platforms/android-17/arch-arm -fpic -funwind-tables -finline-limit=64 -fsigned-char -no-canonical-prefixes -march=armv7-a -mfloat-abi=softfp -mfpu=vfpv3-d16 -fdata-sections -ffunction-sections -Wa,--noexecstack  -D_XOPEN_SOURCE_EXTENDED -D_XOPEN_SOURCE=500 -D_BSD_SOURCE -D_BSD_COMPAT -D_OSF_SOURCE -D_POSIX_C_SOURCE=199506L    -Wl,--fix-cortex-a8 -Wl,--no-undefined -Wl,-allow-shlib-undefined -Wl,--gc-sections -Wl,-z,noexecstack -Wl,-z,relro -Wl,-z,now -Wl,-z,nocopyreloc  CMakeFiles/cmTryCompileExec1172226297.dir/src.cxx.o -o cmTryCompileExec1172226297  -L/libs/armeabi-v7a -rdynamic  "/home/julia/android-ndk-r10d/sources/cxx-stl/gnu-libstdc++/4.9/libs/armeabi-v7a/libgnustl_static.a" "/home/julia/android-ndk-r10d/sources/cxx-stl/gnu-libstdc++/4.9/libs/armeabi-v7a/libsupc++.a" -lm
make[1]: Leaving directory `/home/julia/Downloads/DCMTK-Android/CMakeFiles/CMakeTmp'


Top
 Profile  
 
PostPosted: Tue, 2015-06-23, 15:12 
Offline
OFFIS DICOM Team
OFFIS DICOM Team

Joined: Mon, 2014-03-03, 09:51
Posts: 223
Location: Oldenburg, Germany
julialecat wrote:
Nope, different directories for source code and build output.

Good, it just irritated me that you were building in you 'Downloads' folder.

Regarding the log: I fear the pastebin one is also the CMakeOutput.log, so I still don't know what error CMake might have reported.


Top
 Profile  
 
PostPosted: Tue, 2015-06-23, 15:21 
Offline

Joined: Wed, 2012-04-11, 17:02
Posts: 16
Ooops, updated CMakeError.log in the same link, sorry!


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 30 posts ]  Go to page 1, 2  Next

All times are UTC + 1 hour


Who is online

Users browsing this forum: No registered users and 1 guest


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
Jump to:  
Powered by phpBB® Forum Software © phpBB Group