Determining if the PHYSFS_getPrefDir exist failed with the following output: Change Dir: /tmp/instance-1/output-1/build/supertux-0.6.0/CMakeFiles/CMakeTmp Run Build Command(s):/usr/bin/make cmTC_c7835/fast && make[1]: Entering directory '/tmp/instance-1/output-1/build/supertux-0.6.0/CMakeFiles/CMakeTmp' /usr/bin/make -f CMakeFiles/cmTC_c7835.dir/build.make CMakeFiles/cmTC_c7835.dir/build make[2]: Entering directory '/tmp/instance-1/output-1/build/supertux-0.6.0/CMakeFiles/CMakeTmp' Building C object CMakeFiles/cmTC_c7835.dir/CheckSymbolExists.c.o /tmp/instance-1/output-1/host/bin/nios2-linux-gcc --sysroot=/tmp/instance-1/output-1/host/nios2-buildroot-linux-gnu/sysroot -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 -Os -DNDEBUG -o CMakeFiles/cmTC_c7835.dir/CheckSymbolExists.c.o -c /tmp/instance-1/output-1/build/supertux-0.6.0/CMakeFiles/CMakeTmp/CheckSymbolExists.c Linking C executable cmTC_c7835 /usr/bin/cmake -E cmake_link_script CMakeFiles/cmTC_c7835.dir/link.txt --verbose=1 /tmp/instance-1/output-1/host/bin/nios2-linux-gcc --sysroot=/tmp/instance-1/output-1/host/nios2-buildroot-linux-gnu/sysroot -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 -Os -DNDEBUG CMakeFiles/cmTC_c7835.dir/CheckSymbolExists.c.o -o cmTC_c7835 /tmp/instance-1/output-1/host/opt/ext-toolchain/bin/../lib/gcc/nios2-buildroot-linux-gnu/8.3.0/../../../../nios2-buildroot-linux-gnu/bin/ld: CMakeFiles/cmTC_c7835.dir/CheckSymbolExists.c.o: in function `main': CheckSymbolExists.c:(.text.startup+0x4): undefined reference to `PHYSFS_getPrefDir' /tmp/instance-1/output-1/host/opt/ext-toolchain/bin/../lib/gcc/nios2-buildroot-linux-gnu/8.3.0/../../../../nios2-buildroot-linux-gnu/bin/ld: CheckSymbolExists.c:(.text.startup+0xc): undefined reference to `PHYSFS_getPrefDir' collect2: error: ld returned 1 exit status make[2]: *** [CMakeFiles/cmTC_c7835.dir/build.make:87: cmTC_c7835] Error 1 make[2]: Leaving directory '/tmp/instance-1/output-1/build/supertux-0.6.0/CMakeFiles/CMakeTmp' make[1]: *** [Makefile:121: cmTC_c7835/fast] Error 2 make[1]: Leaving directory '/tmp/instance-1/output-1/build/supertux-0.6.0/CMakeFiles/CMakeTmp' File /tmp/instance-1/output-1/build/supertux-0.6.0/CMakeFiles/CMakeTmp/CheckSymbolExists.c: /* */ #include int main(int argc, char** argv) { (void)argv; #ifndef PHYSFS_getPrefDir return ((int*)(&PHYSFS_getPrefDir))[argc]; #else (void)argc; return 0; #endif } Performing C++ SOURCE FILE Test HAVE_ICONV_CONST failed with the following output: Change Dir: /tmp/instance-1/output-1/build/supertux-0.6.0/CMakeFiles/CMakeTmp Run Build Command(s):/usr/bin/make cmTC_001d3/fast && make[1]: Entering directory '/tmp/instance-1/output-1/build/supertux-0.6.0/CMakeFiles/CMakeTmp' /usr/bin/make -f CMakeFiles/cmTC_001d3.dir/build.make CMakeFiles/cmTC_001d3.dir/build make[2]: Entering directory '/tmp/instance-1/output-1/build/supertux-0.6.0/CMakeFiles/CMakeTmp' Building CXX object CMakeFiles/cmTC_001d3.dir/src.cxx.o /tmp/instance-1/output-1/host/bin/nios2-linux-g++ --sysroot=/tmp/instance-1/output-1/host/nios2-buildroot-linux-gnu/sysroot -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 -Os -DGLEW_NO_GLU -DHAVE_ICONV_CONST -DNDEBUG -o CMakeFiles/cmTC_001d3.dir/src.cxx.o -c /tmp/instance-1/output-1/build/supertux-0.6.0/CMakeFiles/CMakeTmp/src.cxx /tmp/instance-1/output-1/build/supertux-0.6.0/CMakeFiles/CMakeTmp/src.cxx:4:9: error: ambiguating new declaration of 'double iconv(iconv_t, char**, size_t*, char**, size_t*)' double iconv(iconv_t cd, char **inbuf, size_t *inbytesleft, char **outbuf, size_t *outbytesleft); ^~~~~ In file included from /tmp/instance-1/output-1/build/supertux-0.6.0/CMakeFiles/CMakeTmp/src.cxx:2: /tmp/instance-1/output-1/host/nios2-buildroot-linux-gnu/sysroot/usr/include/iconv.h:42:15: note: old declaration 'size_t iconv(iconv_t, char**, size_t*, char**, size_t*)' extern size_t iconv (iconv_t __cd, char **__restrict __inbuf, ^~~~~ make[2]: *** [CMakeFiles/cmTC_001d3.dir/build.make:66: CMakeFiles/cmTC_001d3.dir/src.cxx.o] Error 1 make[2]: Leaving directory '/tmp/instance-1/output-1/build/supertux-0.6.0/CMakeFiles/CMakeTmp' make[1]: *** [Makefile:121: cmTC_001d3/fast] Error 2 make[1]: Leaving directory '/tmp/instance-1/output-1/build/supertux-0.6.0/CMakeFiles/CMakeTmp' Source file was: #include // this declaration will fail when there already exists a non const char** version which returns size_t double iconv(iconv_t cd, char **inbuf, size_t *inbytesleft, char **outbuf, size_t *outbytesleft); int main() { return 0; }