Cmake in a Conda Environment

Hello.

I am using anaconda 21.48.22.159-1 to create an env. I would like to install the ANTs package (refferenced via this tutorial) Install Advanced Normalization Tools | Greydon Gilmore.

In terms of the environment I have…
gcc - (Anaconda gcc) 11.2.0
g++ (Anaconda gcc) 11.2.0
cmake version 3.22.1

I am able to conifure, but once I call the make command, I receive the error "The C++ compiler “path/to/g++” is not able to compile a simple test program.

When I type which gcc and g++, I am shown the path to the correct versions I installed in my environment.

What I have tried:
CC=which gcc and so forth.

Putting ```
set(CMAKE_TRY_COMPILE_TARGET_TYPE “STATIC_LIBRARY”)
in make Cmake lists file.

Has anyone run into this issue before??

CMake has more context when the compiler fails to work at all. Could you provide that output?

Hi Ben,

I ended up fixing my first problem. But now am running into a an error at 100% Linking CXX executable itk test driver.

CMakeError.txt:

Source file was:
int main() { return 0; }
Performing C++ SOURCE FILE Test have_gold failed with the following output:
Change Dir: /space/namor/1/users/dbalentine/packages/ANTs/bin/ANTs/CMakeFiles/CMakeTmp

Run Build Command(s):/usr/bin/gmake -f Makefile cmTC_2ae3f/fast && /usr/bin/gmake  -f CMakeFiles/cmTC_2ae3f.dir/build.make CMakeFiles/cmTC_2ae3f.dir/build
gmake[1]: Entering directory `/autofs/space/namor_001/users/dbalentine/packages/ANTs/bin/ANTs/CMakeFiles/CMakeTmp'
Building CXX object CMakeFiles/cmTC_2ae3f.dir/src.cxx.o
/space/namor/1/users/dbalentine/packages/anaconda3/envs/ALD_proc_2/bin/x86_64-conda-linux-gnu-c++ -Dhave_gold  -fvisibility-inlines-hidden -std=c++17 -fmessage-length=0 -march=nocona -mtune=haswell -ftree-vectorize -fPIC -fstack-protector-strong -fno-plt -O2 -ffunction-sections -pipe -isystem /space/namor/1/users/dbalentine/packages/anaconda3/envs/ALD_proc_2/include  -fuse-ld=gold -std=c++14 -o CMakeFiles/cmTC_2ae3f.dir/src.cxx.o -c /space/namor/1/users/dbalentine/packages/ANTs/bin/ANTs/CMakeFiles/CMakeTmp/src.cxx
Linking CXX executable cmTC_2ae3f
/autofs/space/namor_001/users/dbalentine/packages/anaconda3/envs/ALD_proc_2/bin/cmake -E cmake_link_script CMakeFiles/cmTC_2ae3f.dir/link.txt --verbose=1
/space/namor/1/users/dbalentine/packages/anaconda3/envs/ALD_proc_2/bin/x86_64-conda-linux-gnu-c++ -fvisibility-inlines-hidden -std=c++17 -fmessage-length=0 -march=nocona -mtune=haswell -ftree-vectorize -fPIC -fstack-protector-strong -fno-plt -O2 -ffunction-sections -pipe -isystem /space/namor/1/users/dbalentine/packages/anaconda3/envs/ALD_proc_2/include  -fuse-ld=gold -Wl,-O2 -Wl,--sort-common -Wl,--as-needed -Wl,-z,relro -Wl,-z,now -Wl,--disable-new-dtags -Wl,--gc-sections -Wl,-rpath,/space/namor/1/users/dbalentine/packages/anaconda3/envs/ALD_proc_2/lib -Wl,-rpath-link,/space/namor/1/users/dbalentine/packages/anaconda3/envs/ALD_proc_2/lib -L/space/namor/1/users/dbalentine/packages/anaconda3/envs/ALD_proc_2/lib  CMakeFiles/cmTC_2ae3f.dir/src.cxx.o -o cmTC_2ae3f 
/space/namor/1/users/dbalentine/packages/anaconda3/envs/ALD_proc_2/lib/libstdc++.so: error: undefined reference to 'clock_gettime', version 'GLIBC_2.17'
/space/namor/1/users/dbalentine/packages/anaconda3/envs/ALD_proc_2/lib/libstdc++.so: error: undefined reference to 'aligned_alloc', version 'GLIBC_2.16'
collect2: error: ld returned 1 exit status
gmake[1]: *** [cmTC_2ae3f] Error 1
gmake[1]: Leaving directory `/autofs/space/namor_001/users/dbalentine/packages/ANTs/bin/ANTs/CMakeFiles/CMakeTmp'
gmake: *** [cmTC_2ae3f/fast] Error 2


Source file was:
int main() { return 0;}
Performing C++ SOURCE FILE Test CXX_HAS_DISABLE_OPTIMIZATION_FLAG failed with the following output:
Change Dir: /space/namor/1/users/dbalentine/packages/ANTs/bin/ANTs/CMakeFiles/CMakeTmp

Run Build Command(s):/usr/bin/gmake -f Makefile cmTC_a6e3f/fast && /usr/bin/gmake  -f CMakeFiles/cmTC_a6e3f.dir/build.make CMakeFiles/cmTC_a6e3f.dir/build
gmake[1]: Entering directory `/autofs/space/namor_001/users/dbalentine/packages/ANTs/bin/ANTs/CMakeFiles/CMakeTmp'
Building CXX object CMakeFiles/cmTC_a6e3f.dir/src.cxx.o
/space/namor/1/users/dbalentine/packages/anaconda3/envs/ALD_proc_2/bin/x86_64-conda-linux-gnu-c++ -DCXX_HAS_DISABLE_OPTIMIZATION_FLAG  -fvisibility-inlines-hidden -std=c++17 -fmessage-length=0 -march=nocona -mtune=haswell -ftree-vectorize -fPIC -fstack-protector-strong -fno-plt -O2 -ffunction-sections -pipe -isystem /space/namor/1/users/dbalentine/packages/anaconda3/envs/ALD_proc_2/include  -std=c++14 -o CMakeFiles/cmTC_a6e3f.dir/src.cxx.o -c /space/namor/1/users/dbalentine/packages/ANTs/bin/ANTs/CMakeFiles/CMakeTmp/src.cxx
/space/namor/1/users/dbalentine/packages/ANTs/bin/ANTs/CMakeFiles/CMakeTmp/src.cxx:1:1: error: expected unqualified-id before '-' token
 ^
gmake[1]: *** [CMakeFiles/cmTC_a6e3f.dir/src.cxx.o] Error 1
gmake[1]: Leaving directory `/autofs/space/namor_001/users/dbalentine/packages/ANTs/bin/ANTs/CMakeFiles/CMakeTmp'
gmake: *** [cmTC_a6e3f/fast] Error 2


Source file was:
-O0

CMakeCache.txt:

# This is the CMakeCache file.
# For build in directory: /space/namor/1/users/dbalentine/packages/ANTs/bin/ANTs
# It was generated by CMake: /autofs/space/namor_001/users/dbalentine/packages/anaconda3/envs/ALD_proc_2/bin/cmake
# You can edit this file to change values found and used by cmake.
# If you do not want to change any of the values, simply exit the editor.
# If you do want to change a value, simply edit, save, and exit the editor.
# The syntax for the file is as follows:
# KEY:TYPE=VALUE
# KEY is the name of a variable in the cache.
# TYPE is a hint to GUIs for the type of VALUE, DO NOT EDIT TYPE!.
# VALUE is the current value for the KEY.

########################
# EXTERNAL cache entries
########################

//Build ANTS using ccache if available.
ANTS_BUILD_WITH_CCACHE:BOOL=ON

//Install development support include and libraries for external
// packages.
ANTS_INSTALL_DEVELOPMENT:BOOL=OFF

//Do not install binaries
ANTS_INSTALL_LIBS_ONLY:BOOL=OFF

//Build ANTS and the projects it depends on via SuperBuild.cmake.
ANTS_SUPERBUILD:BOOL=ON

//Find and use Qt with VTK to build GUI Tools
ANTS_USE_QT:BOOL=OFF

//Build all ANTs apps
BUILD_ALL_ANTS_APPS:BOOL=ON

//Build ITK with shared libraries.
BUILD_SHARED_LIBS:BOOL=OFF

//Build uncrustify, cppcheck, & KWStyle
BUILD_STYLE_UTILS:BOOL=OFF

//Build the testing tree.
BUILD_TESTING:BOOL=ON

//Path to a program.
CCACHE_PROGRAM:FILEPATH=CCACHE_PROGRAM-NOTFOUND

//Path to a program.
CMAKE_ADDR2LINE:FILEPATH=/space/namor/1/users/dbalentine/packages/anaconda3/envs/ALD_proc_2/bin/x86_64-conda-linux-gnu-addr2line

//Path to a program.
CMAKE_AR:FILEPATH=/space/namor/1/users/dbalentine/packages/anaconda3/envs/ALD_proc_2/bin/x86_64-conda-linux-gnu-ar

//Choose the type of build.
CMAKE_BUILD_TYPE:STRING=Release

//Enable/Disable color output during build.
CMAKE_COLOR_MAKEFILE:BOOL=ON

//CXX compiler
CMAKE_CXX_COMPILER:FILEPATH=/space/namor/1/users/dbalentine/packages/anaconda3/envs/ALD_proc_2/bin/x86_64-conda-linux-gnu-c++

//A wrapper around 'ar' adding the appropriate '--plugin' option
// for the GCC compiler
CMAKE_CXX_COMPILER_AR:FILEPATH=/space/namor/1/users/dbalentine/packages/anaconda3/envs/ALD_proc_2/bin/x86_64-conda-linux-gnu-gcc-ar

//A wrapper around 'ranlib' adding the appropriate '--plugin' option
// for the GCC compiler
CMAKE_CXX_COMPILER_RANLIB:FILEPATH=/space/namor/1/users/dbalentine/packages/anaconda3/envs/ALD_proc_2/bin/x86_64-conda-linux-gnu-gcc-ranlib

//Flags used by the CXX compiler during all build types.
CMAKE_CXX_FLAGS:STRING=-fvisibility-inlines-hidden -std=c++17 -fmessage-length=0 -march=nocona -mtune=haswell -ftree-vectorize -fPIC -fstack-protector-strong -fno-plt -O2 -ffunction-sections -pipe -isystem /space/namor/1/users/dbalentine/packages/anaconda3/envs/ALD_proc_2/include

//Flags used by the CXX compiler during DEBUG builds.
CMAKE_CXX_FLAGS_DEBUG:STRING=-g

//Flags used by the CXX compiler during MINSIZEREL builds.
CMAKE_CXX_FLAGS_MINSIZEREL:STRING=-Os -DNDEBUG

//Flags used by the CXX compiler during RELEASE builds.
CMAKE_CXX_FLAGS_RELEASE:STRING=-O3 -DNDEBUG

//Flags used by the CXX compiler during RELWITHDEBINFO builds.
CMAKE_CXX_FLAGS_RELWITHDEBINFO:STRING=-O2 -g -DNDEBUG

//C compiler
CMAKE_C_COMPILER:FILEPATH=/space/namor/1/users/dbalentine/packages/anaconda3/envs/ALD_proc_2/bin/x86_64-conda-linux-gnu-cc

//A wrapper around 'ar' adding the appropriate '--plugin' option
// for the GCC compiler
CMAKE_C_COMPILER_AR:FILEPATH=/space/namor/1/users/dbalentine/packages/anaconda3/envs/ALD_proc_2/bin/x86_64-conda-linux-gnu-gcc-ar

//A wrapper around 'ranlib' adding the appropriate '--plugin' option
// for the GCC compiler
CMAKE_C_COMPILER_RANLIB:FILEPATH=/space/namor/1/users/dbalentine/packages/anaconda3/envs/ALD_proc_2/bin/x86_64-conda-linux-gnu-gcc-ranlib

//Flags used by the C compiler during all build types.
CMAKE_C_FLAGS:STRING=-march=nocona -mtune=haswell -ftree-vectorize -fPIC -fstack-protector-strong -fno-plt -O2 -ffunction-sections -pipe -isystem /space/namor/1/users/dbalentine/packages/anaconda3/envs/ALD_proc_2/include

//Flags used by the C compiler during DEBUG builds.
CMAKE_C_FLAGS_DEBUG:STRING=-g

//Flags used by the C compiler during MINSIZEREL builds.
CMAKE_C_FLAGS_MINSIZEREL:STRING=-Os -DNDEBUG

//Flags used by the C compiler during RELEASE builds.
CMAKE_C_FLAGS_RELEASE:STRING=-O3 -DNDEBUG

//Flags used by the C compiler during RELWITHDEBINFO builds.
CMAKE_C_FLAGS_RELWITHDEBINFO:STRING=-O2 -g -DNDEBUG

//Path to a program.
CMAKE_DLLTOOL:FILEPATH=CMAKE_DLLTOOL-NOTFOUND

//Flags used by the linker during all build types.
CMAKE_EXE_LINKER_FLAGS:STRING=-Wl,-O2 -Wl,--sort-common -Wl,--as-needed -Wl,-z,relro -Wl,-z,now -Wl,--disable-new-dtags -Wl,--gc-sections -Wl,-rpath,/space/namor/1/users/dbalentine/packages/anaconda3/envs/ALD_proc_2/lib -Wl,-rpath-link,/space/namor/1/users/dbalentine/packages/anaconda3/envs/ALD_proc_2/lib -L/space/namor/1/users/dbalentine/packages/anaconda3/envs/ALD_proc_2/lib

//Flags used by the linker during DEBUG builds.
CMAKE_EXE_LINKER_FLAGS_DEBUG:STRING=

//Flags used by the linker during MINSIZEREL builds.
CMAKE_EXE_LINKER_FLAGS_MINSIZEREL:STRING=

//Flags used by the linker during RELEASE builds.
CMAKE_EXE_LINKER_FLAGS_RELEASE:STRING=

//Flags used by the linker during RELWITHDEBINFO builds.
CMAKE_EXE_LINKER_FLAGS_RELWITHDEBINFO:STRING=

//Enable/Disable output of compile commands during generation.
CMAKE_EXPORT_COMPILE_COMMANDS:BOOL=

//User executables (bin)
CMAKE_INSTALL_BINDIR:PATH=bin

//Read-only architecture-independent data (DATAROOTDIR)
CMAKE_INSTALL_DATADIR:PATH=

//Read-only architecture-independent data root (share)
CMAKE_INSTALL_DATAROOTDIR:PATH=share

//Documentation root (DATAROOTDIR/doc/PROJECT_NAME)
CMAKE_INSTALL_DOCDIR:PATH=

//C header files (include)
CMAKE_INSTALL_INCLUDEDIR:PATH=include

//Info documentation (DATAROOTDIR/info)
CMAKE_INSTALL_INFODIR:PATH=

//Object code libraries (lib64)
CMAKE_INSTALL_LIBDIR:PATH=lib64

//Program executables (libexec)
CMAKE_INSTALL_LIBEXECDIR:PATH=libexec

//Locale-dependent data (DATAROOTDIR/locale)
CMAKE_INSTALL_LOCALEDIR:PATH=

//Modifiable single-machine data (var)
CMAKE_INSTALL_LOCALSTATEDIR:PATH=var

//Man documentation (DATAROOTDIR/man)
CMAKE_INSTALL_MANDIR:PATH=

//C header files for non-gcc (/usr/include)
CMAKE_INSTALL_OLDINCLUDEDIR:PATH=/usr/include

//Default ANTs install path
CMAKE_INSTALL_PREFIX:PATH=/opt/ANTs

//Run-time variable data (LOCALSTATEDIR/run)
CMAKE_INSTALL_RUNSTATEDIR:PATH=

//System admin executables (sbin)
CMAKE_INSTALL_SBINDIR:PATH=sbin

//Modifiable architecture-independent data (com)
CMAKE_INSTALL_SHAREDSTATEDIR:PATH=com

//Read-only single-machine data (etc)
CMAKE_INSTALL_SYSCONFDIR:PATH=etc

//Path to a program.
CMAKE_LINKER:FILEPATH=/space/namor/1/users/dbalentine/packages/anaconda3/envs/ALD_proc_2/bin/x86_64-conda-linux-gnu-ld

//Path to a program.
CMAKE_MAKE_PROGRAM:FILEPATH=/usr/bin/gmake

//Flags used by the linker during the creation of modules during
// all build types.
CMAKE_MODULE_LINKER_FLAGS:STRING=-Wl,-O2 -Wl,--sort-common -Wl,--as-needed -Wl,-z,relro -Wl,-z,now -Wl,--disable-new-dtags -Wl,--gc-sections -Wl,-rpath,/space/namor/1/users/dbalentine/packages/anaconda3/envs/ALD_proc_2/lib -Wl,-rpath-link,/space/namor/1/users/dbalentine/packages/anaconda3/envs/ALD_proc_2/lib -L/space/namor/1/users/dbalentine/packages/anaconda3/envs/ALD_proc_2/lib

//Flags used by the linker during the creation of modules during
// DEBUG builds.
CMAKE_MODULE_LINKER_FLAGS_DEBUG:STRING=

//Flags used by the linker during the creation of modules during
// MINSIZEREL builds.
CMAKE_MODULE_LINKER_FLAGS_MINSIZEREL:STRING=

//Flags used by the linker during the creation of modules during
// RELEASE builds.
CMAKE_MODULE_LINKER_FLAGS_RELEASE:STRING=

//Flags used by the linker during the creation of modules during
// RELWITHDEBINFO builds.
CMAKE_MODULE_LINKER_FLAGS_RELWITHDEBINFO:STRING=

//Path to a program.
CMAKE_NM:FILEPATH=/space/namor/1/users/dbalentine/packages/anaconda3/envs/ALD_proc_2/bin/x86_64-conda-linux-gnu-nm

//Path to a program.
CMAKE_OBJCOPY:FILEPATH=/space/namor/1/users/dbalentine/packages/anaconda3/envs/ALD_proc_2/bin/x86_64-conda-linux-gnu-objcopy

//Path to a program.
CMAKE_OBJDUMP:FILEPATH=/space/namor/1/users/dbalentine/packages/anaconda3/envs/ALD_proc_2/bin/x86_64-conda-linux-gnu-objdump

//Value Computed by CMake
CMAKE_PROJECT_DESCRIPTION:STATIC=Optional superbuild step to build external support libraries for ANTs

//Value Computed by CMake
CMAKE_PROJECT_HOMEPAGE_URL:STATIC=

//Value Computed by CMake
CMAKE_PROJECT_NAME:STATIC=SuperBuild_ANTS

//Path to a program.
CMAKE_RANLIB:FILEPATH=/space/namor/1/users/dbalentine/packages/anaconda3/envs/ALD_proc_2/bin/x86_64-conda-linux-gnu-ranlib

//Path to a program.
CMAKE_READELF:FILEPATH=/space/namor/1/users/dbalentine/packages/anaconda3/envs/ALD_proc_2/bin/x86_64-conda-linux-gnu-readelf

//Flags used by the linker during the creation of shared libraries
// during all build types.
CMAKE_SHARED_LINKER_FLAGS:STRING=-Wl,-O2 -Wl,--sort-common -Wl,--as-needed -Wl,-z,relro -Wl,-z,now -Wl,--disable-new-dtags -Wl,--gc-sections -Wl,-rpath,/space/namor/1/users/dbalentine/packages/anaconda3/envs/ALD_proc_2/lib -Wl,-rpath-link,/space/namor/1/users/dbalentine/packages/anaconda3/envs/ALD_proc_2/lib -L/space/namor/1/users/dbalentine/packages/anaconda3/envs/ALD_proc_2/lib

//Flags used by the linker during the creation of shared libraries
// during DEBUG builds.
CMAKE_SHARED_LINKER_FLAGS_DEBUG:STRING=

//Flags used by the linker during the creation of shared libraries
// during MINSIZEREL builds.
CMAKE_SHARED_LINKER_FLAGS_MINSIZEREL:STRING=

//Flags used by the linker during the creation of shared libraries
// during RELEASE builds.
CMAKE_SHARED_LINKER_FLAGS_RELEASE:STRING=

//Flags used by the linker during the creation of shared libraries
// during RELWITHDEBINFO builds.
CMAKE_SHARED_LINKER_FLAGS_RELWITHDEBINFO:STRING=

//If set, runtime paths are not added when installing shared libraries,
// but are added when building.
CMAKE_SKIP_INSTALL_RPATH:BOOL=NO

//If set, runtime paths are not added when using shared libraries.
CMAKE_SKIP_RPATH:BOOL=NO

//Flags used by the linker during the creation of static libraries
// during all build types.
CMAKE_STATIC_LINKER_FLAGS:STRING=

//Flags used by the linker during the creation of static libraries
// during DEBUG builds.
CMAKE_STATIC_LINKER_FLAGS_DEBUG:STRING=

//Flags used by the linker during the creation of static libraries
// during MINSIZEREL builds.
CMAKE_STATIC_LINKER_FLAGS_MINSIZEREL:STRING=

//Flags used by the linker during the creation of static libraries
// during RELEASE builds.
CMAKE_STATIC_LINKER_FLAGS_RELEASE:STRING=

//Flags used by the linker during the creation of static libraries
// during RELWITHDEBINFO builds.
CMAKE_STATIC_LINKER_FLAGS_RELWITHDEBINFO:STRING=

//Path to a program.
CMAKE_STRIP:FILEPATH=/space/namor/1/users/dbalentine/packages/anaconda3/envs/ALD_proc_2/bin/x86_64-conda-linux-gnu-strip

//If this value is on, makefiles will be generated without the
// .SILENT directive, and all commands will be echoed to the console
// during the make.  This is useful for debugging only. With Visual
// Studio IDE projects all commands are done without /nologo.
CMAKE_VERBOSE_MAKEFILE:BOOL=FALSE

//Path to the coverage program that CTest uses for performing coverage
// inspection
COVERAGE_COMMAND:FILEPATH=/usr/bin/gcov

//Extra command line flags to pass to the coverage tool
COVERAGE_EXTRA_FLAGS:STRING=-l

//Enable to build Debian packages
CPACK_BINARY_DEB:BOOL=OFF

//Enable to build FreeBSD packages
CPACK_BINARY_FREEBSD:BOOL=OFF

//Enable to build IFW packages
CPACK_BINARY_IFW:BOOL=OFF

//Enable to build NSIS packages
CPACK_BINARY_NSIS:BOOL=OFF

//Enable to build RPM packages
CPACK_BINARY_RPM:BOOL=OFF

//Enable to build STGZ packages
CPACK_BINARY_STGZ:BOOL=ON

//Enable to build TBZ2 packages
CPACK_BINARY_TBZ2:BOOL=OFF

//Enable to build TGZ packages
CPACK_BINARY_TGZ:BOOL=ON

//Enable to build TXZ packages
CPACK_BINARY_TXZ:BOOL=OFF

//Enable to build TZ packages
CPACK_BINARY_TZ:BOOL=ON

//Enable to build RPM source packages
CPACK_SOURCE_RPM:BOOL=OFF

//Enable to build TBZ2 source packages
CPACK_SOURCE_TBZ2:BOOL=ON

//Enable to build TGZ source packages
CPACK_SOURCE_TGZ:BOOL=ON

//Enable to build TXZ source packages
CPACK_SOURCE_TXZ:BOOL=ON

//Enable to build TZ source packages
CPACK_SOURCE_TZ:BOOL=ON

//Enable to build ZIP source packages
CPACK_SOURCE_ZIP:BOOL=OFF

//How many times to retry timed-out CTest submissions.
CTEST_SUBMIT_RETRY_COUNT:STRING=3

//How long to wait between timed-out CTest submissions.
CTEST_SUBMIT_RETRY_DELAY:STRING=5

//Maximum time allowed before CTest will kill the test.
DART_TESTING_TIMEOUT:STRING=1500

//Default build type for support libraries
EXTERNAL_PROJECT_BUILD_TYPE:STRING=Release
//Force rebuilding of external project (if they are updated)
FORCE_EXTERNAL_BUILDS:BOOL=OFF

//Path to a program.
GITCOMMAND:FILEPATH=/usr/bin/git

//Git command line client
GIT_EXECUTABLE:FILEPATH=/usr/bin/git

//Build support for MINC2
ITK_BUILD_MINC_SUPPORT:BOOL=OFF

//Use system png library if found
ITK_USE_SYSTEM_PNG:BOOL=OFF

//Choose the expected ITK major version to build ANTS only version
// 5 allowed.
ITK_VERSION_MAJOR:STRING=5

//Command to build the project
MAKECOMMAND:STRING=/autofs/space/namor_001/users/dbalentine/packages/anaconda3/envs/ALD_proc_2/bin/cmake --build . --config "${CTEST_CONFIGURATION_TYPE}"

//Path to the memory checking command, used for memory error detection.
MEMORYCHECK_COMMAND:FILEPATH=/usr/bin/valgrind

//File that contains suppressions for the memory checker
MEMORYCHECK_SUPPRESSIONS_FILE:FILEPATH=

This seems to be a problem with the libc that is being selected. This would seem to be the main problem.

Some try_compile seems very confused here.