Compiling on unsupported system

Hi.

I’m trying to compile ROOT 6.06.02 on the unsupported system.
The other packages using cmake were just okay with compiling
and for the packages using configure I used --build=sparc64-unknown-linux-gnu option and just worked fine.

I’m using gcc 4.8.5 compiled by myself and cmake 3.5.4.
Does anyone have idea where to start?

Just trying to compile will give me this.
I managed to recognize the system by editing config.guess in llvm and after that
the weird thing is that my compiler does support -fPIC and -std=c++11, but it doesn’t recognize it.

-- Found GCC. Major version 4, minor version 8
-- Found a 64bit system
-- Found GNU compiler collection
-- ROOT Platform: linux
-- ROOT Architecture: linuxx8664gcc
-- Build Type: RelWithDebInfo
-- Compiler Flags: -O3  -pipe -m64 -Wall -W -Woverloaded-virtual -fsigned-char -fPIC -pthread -std=c++11 -Wno-deprecated-declarations -DR__HAVE_CONFIG -O2 -g -DNDEBUG
-- Looking for ZLib
-- Looking for Freetype
-- Looking for PCRE
-- Building LZMA version 5.2.1 included in ROOT itself
-- Looking for X11
-- Could NOT find GIF (missing:  GIF_LIBRARY GIF_INCLUDE_DIR) 
-- Could NOT find TIFF (missing:  TIFF_LIBRARY TIFF_INCLUDE_DIR) 
-- Could NOT find PNG (missing:  PNG_LIBRARY PNG_PNG_INCLUDE_DIR) 
-- Could NOT find JPEG (missing:  JPEG_LIBRARY JPEG_INCLUDE_DIR) 
-- Looking for GSL
-- Looking for Python
-- Found Python interpreter version 2.7
-- Looking for OpenGL
-- Looking for Kerberos 5
-- Looking for LibXml2
-- Could NOT find LibXml2 (missing:  LIBXML2_LIBRARIES LIBXML2_INCLUDE_DIR) 
-- LibXml2 not found. Switching off xml option
-- Looking for OpenSSL
-- Looking for MySQL
-- Could NOT find MYSQL (missing:  MYSQL_INCLUDE_DIR MYSQL_LIBRARIES) 
-- MySQL not found. Switching off mysql option
-- Looking for PostgreSQL
-- Looking for SQLite
-- Looking for Pythia6
-- Looking for Pythia8
-- Looking for XROOTD
-- Enabled support for:  asimage astiff builtin_afterimage builtin_ftgl builtin_glew builtin_lzma builtin_llvm cxx11 cling exceptions explicitlink fortran gdml genvector gnuinstall http krb5 mathmore memstat minuit2 opengl pch pgsql pythia6 pythia8 python roofit shadowpw shared soversion sqlite ssl thread tmva vc vdt xft x11 xrootd
-- Warning: LLVM will be built thread-unsafe because atomic builtins are missing
-- Target triple: sparc64-unknown-linux-gnu
-- Native target Sparc is not selected; lli will not JIT code
-- Threads disabled.
-- Doxygen disabled.
-- Sphinx disabled.
-- Go bindings disabled.
-- Could NOT find OCaml (missing:  OCAMLFIND OCAML_VERSION OCAML_STDLIB_PATH) 
-- Could NOT find OCaml (missing:  OCAMLFIND OCAML_VERSION OCAML_STDLIB_PATH) 
-- OCaml bindings disabled.
CMake Warning at interpreter/llvm/src/cmake/modules/HandleLLVMOptions.cmake:145 (message):
  -fPIC is not supported.
Call Stack (most recent call first):
  interpreter/llvm/src/cmake/modules/HandleLLVMOptions.cmake:157 (add_flag_or_print_warning)
  interpreter/llvm/src/CMakeLists.txt:349 (include)


CMake Error at interpreter/llvm/src/cmake/modules/HandleLLVMOptions.cmake:350 (message):
  LLVM requires C++11 support but the '-std=c++11' flag isn't supported.
Call Stack (most recent call first):
  interpreter/llvm/src/CMakeLists.txt:349 (include)


-- Configuring incomplete, errors occurred!
See also "/data/Q16264/common/gw/sources/FairSoft.jul15p2.source/tools/root/build_for_fair/CMakeFiles/CMakeOutput.log".
See also "/data/Q16264/common/gw/sources/FairSoft.jul15p2.source/tools/root/build_for_fair/CMakeFiles/CMakeError.log".
make: *** No targets specified and no makefile found.  Stop.
make: *** No rule to make target `install'.  Stop.

Here’s the uname info from configure of the other program.

uname -m = s64fx
uname -r = 2.6.32
uname -s = Linux
uname -v = #2 SMP Wed Dec 2 15:57:26 JST 2015

and this is the /proc/cpuinfo

cpu		: FUJITSU SPARC64 XIfx
manufacture	: 4 (Fujitsu)
impl		: 12
mask		: 17
serial		: 0
fpu		: FUJITSU SPARC64 XIfx
pmu		: SPARC64XIfx
prom		: CPUFW-1.5.0
type		: s64fx
ncpus probed	: 34
ncpus active	: 34
L2$ size	: 12288 KB

Can you start with a clean build directory? The first two output lines of cmake should tell what compiler you are actually using.

Sure! Thank you for the reply.

The command I used is

cmake ../root-6.06.02 -DCMAKE_C_COMPILER=gcc -DCMAKE_CXX_COMPILER=g++

Here’s the one I did with clean build directory.

[code]-- The C compiler identification is GNU 4.8.5
– The CXX compiler identification is GNU 4.8.5
– Check for working C compiler: /data/Q16264/common/gw/local/bin/gcc
– Check for working C compiler: /data/Q16264/common/gw/local/bin/gcc – works
– Detecting C compiler ABI info
– Detecting C compiler ABI info - done
– Detecting C compile features
– Detecting C compile features - done
– Check for working CXX compiler: /data/Q16264/common/gw/local/bin/g++
– Check for working CXX compiler: /data/Q16264/common/gw/local/bin/g++ – works
– Detecting CXX compiler ABI info
– Detecting CXX compiler ABI info - done
– Detecting CXX compile features
– Detecting CXX compile features - done
– The Fortran compiler identification is GNU 4.8.5
– Check for working Fortran compiler: /data/Q16264/common/gw/local/bin/gfortran
– Check for working Fortran compiler: /data/Q16264/common/gw/local/bin/gfortran – works
– Detecting Fortran compiler ABI info
– Detecting Fortran compiler ABI info - done
– Checking whether /data/Q16264/common/gw/local/bin/gfortran supports Fortran 90
– Checking whether /data/Q16264/common/gw/local/bin/gfortran supports Fortran 90 – yes
– Found GCC. Major version 4, minor version 8
– Performing Test HAS_CXX11
– Performing Test HAS_CXX11 - Success
– Looking for pthread.h
– Looking for pthread.h - found
– Looking for pthread_create
– Looking for pthread_create - not found
– Looking for pthread_create in pthreads
– Looking for pthread_create in pthreads - not found
– Looking for pthread_create in pthread
– Looking for pthread_create in pthread - found
– Found Threads: TRUE
– Found a 32bit system
– Found GNU compiler collection
– ROOT Platform: linux
– ROOT Architecture: linux
– Build Type: RelWithDebInfo
– Compiler Flags: -pipe -m32 -Wall -W -Woverloaded-virtual -fsigned-char -fPIC -pthread -std=c++11 -Wno-deprecated-declarations -O2 -g -DNDEBUG
– Looking for ZLib
– Found ZLIB: /usr/lib64/libz.so (found version “1.2.3”)
– Looking for Freetype
– Found Freetype: /data/Q16264/common/gw/local/lib/libfreetype.so (found version “2.4.7”)
– Looking for PCRE
– Found PCRE version 7.8 using /usr/bin/pcre-config
– Looking for LZMA
– LZMA not found. Switching on builtin_lzma option
– Building LZMA version 5.2.1 included in ROOT itself
– Looking for X11
– Looking for XOpenDisplay in /data/Q16264/common/gw/local/lib/libX11.so;/data/Q16264/common/gw/local/lib/libXext.so
– Looking for XOpenDisplay in /data/Q16264/common/gw/local/lib/libX11.so;/data/Q16264/common/gw/local/lib/libXext.so - not found
– Looking for dnet_ntoa in dnet
– Looking for dnet_ntoa in dnet - not found
– Looking for dnet_ntoa in dnet_stub
– Looking for dnet_ntoa in dnet_stub - not found
– Looking for gethostbyname
– Looking for gethostbyname - not found
– Looking for gethostbyname in nsl
– Looking for gethostbyname in nsl - not found
– Looking for gethostbyname in bsd
– Looking for gethostbyname in bsd - not found
– Looking for connect
– Looking for connect - not found
– Looking for connect in socket
– Looking for connect in socket - not found
– Looking for remove
– Looking for remove - not found
– Looking for remove in posix
– Looking for remove in posix - not found
– Looking for shmat
– Looking for shmat - not found
– Looking for shmat in ipc
– Looking for shmat in ipc - not found
– Looking for IceConnectionNumber in ICE
– Looking for IceConnectionNumber in ICE - not found
– Found X11: /data/Q16264/common/gw/local/lib/libX11.so
– X11_INCLUDE_DIR: /data/Q16264/common/gw/local/include;/usr/include
– X11_LIBRARIES: /data/Q16264/common/gw/local/lib/libX11.so;/data/Q16264/common/gw/local/lib/libXext.so
– X11_Xpm_INCLUDE_PATH: /data/Q16264/common/gw/local/include
– X11_Xpm_LIB: /data/Q16264/common/gw/local/lib/libXpm.so
– X11_Xft_INCLUDE_PATH: /data/Q16264/common/gw/local/include
– X11_Xft_LIB: /data/Q16264/common/gw/local/lib/libXft.so
– X11_Xext_INCLUDE_PATH:
– X11_Xext_LIB: /data/Q16264/common/gw/local/lib/libXext.so
– Could NOT find GIF (missing: GIF_LIBRARY GIF_INCLUDE_DIR)
– Could NOT find TIFF (missing: TIFF_LIBRARY TIFF_INCLUDE_DIR)
– Could NOT find PNG (missing: PNG_LIBRARY PNG_PNG_INCLUDE_DIR)
– Could NOT find JPEG (missing: JPEG_LIBRARY JPEG_INCLUDE_DIR)
– Looking for GSL
– FindGSL: gsl-config not found.
– GSL not found. Set variable GSL_DIR to point to your GSL installation
– Alternatively, you can also enable the option ‘builtin_gsl’ to build the GSL libraries internally’
– For the time being switching OFF ‘mathmore’ option
– Looking for Python
– Found PythonInterp: /data/Q16264/common/gw/local/bin/python (found version “2.7.10”)
– Found Python interpreter version 2.7
– Found PythonLibs: /data/Q16264/common/gw/local/lib/libpython2.7.so (found version “2.7.10”)
– Looking for OpenGL
– Found OpenGL: /data/Q16264/common/gw/local/lib/libGL.so
– Looking for Graphviz
– Could NOT find GRAPHVIZ (missing: GRAPHVIZ_INCLUDE_DIR GRAPHVIZ_cdt_LIBRARY GRAPHVIZ_gvc_LIBRARY GRAPHVIZ_graph_LIBRARY GRAPHVIZ_pathplan_LIBRARY)
– Graphviz not found. Switching off gviz option
– Looking for Bonjour
– Checking whether Bonjour/Avahi is supported
– Bonjour not found. Switching off bonjour option
– Looking for Kerberos 5
– Found KRB5: /usr/lib64/libkrb5.so
– Looking for LibXml2
– Could NOT find LibXml2 (missing: LIBXML2_LIBRARIES LIBXML2_INCLUDE_DIR)
– LibXml2 not found. Switching off xml option
– Looking for OpenSSL
– Found OpenSSL: /usr/lib64/libssl.so;/usr/lib64/libcrypto.so (found version “1.0.1e”)
– Looking for Castor
– Castor not found. Switching off castor/rfio option
– Looking for MySQL
– Could NOT find MYSQL (missing: MYSQL_INCLUDE_DIR MYSQL_LIBRARIES)
– MySQL not found. Switching off mysql option
– Looking for Oracle
– Oracle not found.
– Oracle: You can specify includes: -DORACLE_PATH_INCLUDES=/usr/include/oracle/10.2.0.3/client
– currently found includes:
– Oracle: You can specify libs: -DORACLE_PATH_LIB=/usr/lib/oracle/10.2.0.3/client/lib
– currently found libs: ORACLE_LIBRARY_OCCI-NOTFOUND;ORACLE_LIBRARY_CLNTSH-NOTFOUND;ORACLE_LIBRARY_LNNZ-NOTFOUND
– Oracle not found. Switching off oracle option
– Looking for ODBC
– ODBC not found. Switching off odbc option
– Looking for PostgreSQL
– Found PostgreSQL: /data/Q16264/common/gw/local/include
– Looking for SQLite
– Found PkgConfig: /data/Q16264/common/gw/local/bin/pkg-config (found version “0.29”)
– Found Sqlite: /usr/include
– Looking for Pythia6
– Pythia6 not found. Switching off pythia6 option
– Looking for Pythia8
– Could NOT find Pythia8 (missing: PYTHIA8_INCLUDE_DIR PYTHIA8_LIBRARY)
– Pythia8 not found. Switching off pythia8 option
– Looking for FFTW3
– FFTW3 not found. Set [environment] variable FFTW_DIR to point to your FFTW3 installation
– Alternatively, you can also enable the option ‘builtin_fftw3’ to build FFTW3 internally’
– For the time being switching OFF ‘fftw3’ option
– Looking for CFITSIO
– Could NOT find CFITSIO (missing: CFITSIO_INCLUDE_DIR CFITSIO_LIBRARY)
– CFITSIO not found. You can enable the option ‘builtin_cfitsio’ to build the library internally’
– For the time being switching off ‘fitsio’ option
– Alien API not found. Set variable ALIEN_DIR to point to your Alien installation
– For the time being switching OFF ‘alien’ option
– Monalisa not found. Set variable MONALISA_DIR to point to your Monalisa installation
– For the time being switching OFF ‘monalisa’ option
– Looking for XROOTD
– XROOTD not found. Set environment variable XRDSYS to point to your XROOTD installation
– Alternatively, you can also enable the option ‘builtin_xrootd’ to build XROOTD internally’
– For the time being switching OFF ‘xrootd’ option
– Could NOT find GFAL (missing: GFAL_INCLUDE_DIR SRM_IFCE_INCLUDE_DIR GFAL_LIBRARIES)
– GFAL library not found. Set variable GFAL_DIR to point to your gfal installation
and the variable SRM_IFCE_DIR to the srm_ifce installation
– For the time being switching OFF ‘gfal’ option
– Could NOT find DCAP (missing: DCAP_INCLUDE_DIR DCAP_LIBRARY)
– dCap library not found. Set variable DCAP_DIR to point to your dCache installation
– For the time being switching OFF ‘dcache’ option
– Could NOT find LDAP (missing: LDAP_INCLUDE_DIR LDAP_LIBRARY)
– ldap library not found. Set variable LDAP_DIR to point to your ldap installation
– For the time being switching OFF ‘ldap’ option
– Could NOT find CHIRP (missing: CHIRP_INCLUDE_DIR CHIRP_LIBRARY)
– chirp library not found. Set variable CHIRP_DIR to point to your chirp installation
– For the time being switching OFF ‘chirp’ option
– Could NOT find HDFS (missing: HDFS_INCLUDE_DIR HDFS_LIBRARY)
– hdfs library not found. Set variable HDFS_DIR to point to your hdfs installation
– For the time being switching OFF ‘hdfs’ option
– Looking for DAVIX
– Could NOT find DAVIX (missing: DAVIX_INCLUDE_DIRS DAVIX_LIBRARIES)
– Davix not found. You can enable the option ‘builtin_davix’ to build the library internally’
– For the time being switching off ‘davix’ option
– >>> Option ‘glite’ not implemented yet! Signal your urgency to pere.mato@cern.ch
– >>> Option ‘sapdb’ not implemented yet! Signal your urgency to pere.mato@cern.ch
– >>> Option ‘srp’ not implemented yet! Signal your urgency to pere.mato@cern.ch
– Enabled support for: asimage astiff builtin_afterimage builtin_ftgl builtin_glew builtin_lzma builtin_llvm cxx11 cling exceptions explicitlink fortran genvector krb5 memstat opengl pch pgsql python shadowpw shared sqlite ssl thread tmva vdt xft x11
– Warning: LLVM will be built thread-unsafe because atomic builtins are missing
/home/genie/root-6.06.02/interpreter/llvm/src/autoconf/config.guess: unable to guess system type

This script, last modified 2011-08-20, has failed to recognize
the operating system you are using. It is advised that you
download the most up to date version of the config scripts from

http://git.savannah.gnu.org/gitweb/?p=config.git;a=blob_plain;f=config.guess;hb=HEAD
and
http://git.savannah.gnu.org/gitweb/?p=config.git;a=blob_plain;f=config.sub;hb=HEAD

If the version you run (/home/genie/root-6.06.02/interpreter/llvm/src/autoconf/config.guess) is already up to date, please
send the following data and any information you think might be
pertinent to config-patches@gnu.org in order to provide the needed
information to handle your system.

config.guess timestamp = 2011-08-20

uname -m = s64fx
uname -r = 2.6.32
uname -s = Linux
uname -v = #2 SMP Wed Dec 2 15:57:26 JST 2015

/usr/bin/uname -p =
/bin/uname -X =

hostinfo =
/bin/universe =
/usr/bin/arch -k =
/bin/arch = s64fx
/usr/bin/oslevel =
/usr/convex/getsysinfo =

UNAME_MACHINE = s64fx
UNAME_RELEASE = 2.6.32
UNAME_SYSTEM = Linux
UNAME_VERSION = #2 SMP Wed Dec 2 15:57:26 JST 2015
CMake Error at interpreter/llvm/src/cmake/modules/GetHostTriple.cmake:24 (message):
Failed to execute
/home/genie/root-6.06.02/interpreter/llvm/src/autoconf/config.guess
Call Stack (most recent call first):
interpreter/llvm/src/cmake/config-ix.cmake:336 (get_host_triple)
interpreter/llvm/src/CMakeLists.txt:340 (include)

– Configuring incomplete, errors occurred!
See also “/home/genie/build/CMakeFiles/CMakeOutput.log”.
See also “/home/genie/build/CMakeFiles/CMakeError.log”.
[/code]

And after I changed the interpreter/llvm/src/cmake/modules/GetHostTriple.cmake file like this to make it recognize my triple target.

[code]# Returns the host triple.

Invokes config.guess

function( get_host_triple var )
if( MSVC )
if( CMAKE_CL_64 )
set( value “x86_64-pc-win32” )
else()
set( value “i686-pc-win32” )
endif()
elseif( MINGW AND NOT MSYS )
if( CMAKE_SIZEOF_VOID_P EQUAL 8 )
set( value “x86_64-w64-mingw32” )
else()
set( value “i686-pc-mingw32” )
endif()
else( MSVC )
set( value “sparc64-unknown-linux-gnu” )

set(config_guess ${LLVM_MAIN_SRC_DIR}/autoconf/config.guess)

execute_process(COMMAND sh ${config_guess}

RESULT_VARIABLE TT_RV

OUTPUT_VARIABLE TT_OUT

OUTPUT_STRIP_TRAILING_WHITESPACE)

if( NOT TT_RV EQUAL 0 )

message(FATAL_ERROR “Failed to execute ${config_guess}”)

endif( NOT TT_RV EQUAL 0 )

set( value ${TT_OUT} )

endif( MSVC )
set( ${var} ${value} PARENT_SCOPE )
message(STATUS “Target triple: ${value}”)
endfunction( get_host_triple var )
[/code]

This is the result of that. Also done in the other clean build directory with the same command.

[code]-- The C compiler identification is GNU 4.8.5
– The CXX compiler identification is GNU 4.8.5
– Check for working C compiler: /data/Q16264/common/gw/local/bin/gcc
– Check for working C compiler: /data/Q16264/common/gw/local/bin/gcc – works
– Detecting C compiler ABI info
– Detecting C compiler ABI info - done
– Detecting C compile features
– Detecting C compile features - done
– Check for working CXX compiler: /data/Q16264/common/gw/local/bin/g++
– Check for working CXX compiler: /data/Q16264/common/gw/local/bin/g++ – works
– Detecting CXX compiler ABI info
– Detecting CXX compiler ABI info - done
– Detecting CXX compile features
– Detecting CXX compile features - done
– The Fortran compiler identification is GNU 4.8.5
– Check for working Fortran compiler: /data/Q16264/common/gw/local/bin/gfortran
– Check for working Fortran compiler: /data/Q16264/common/gw/local/bin/gfortran – works
– Detecting Fortran compiler ABI info
– Detecting Fortran compiler ABI info - done
– Checking whether /data/Q16264/common/gw/local/bin/gfortran supports Fortran 90
– Checking whether /data/Q16264/common/gw/local/bin/gfortran supports Fortran 90 – yes
– Found GCC. Major version 4, minor version 8
– Performing Test HAS_CXX11
– Performing Test HAS_CXX11 - Success
– Looking for pthread.h
– Looking for pthread.h - found
– Looking for pthread_create
– Looking for pthread_create - not found
– Looking for pthread_create in pthreads
– Looking for pthread_create in pthreads - not found
– Looking for pthread_create in pthread
– Looking for pthread_create in pthread - found
– Found Threads: TRUE
– Found a 32bit system
– Found GNU compiler collection
– ROOT Platform: linux
– ROOT Architecture: linux
– Build Type: RelWithDebInfo
– Compiler Flags: -pipe -m32 -Wall -W -Woverloaded-virtual -fsigned-char -fPIC -pthread -std=c++11 -Wno-deprecated-declarations -O2 -g -DNDEBUG
– Looking for ZLib
– Found ZLIB: /usr/lib64/libz.so (found version “1.2.3”)
– Looking for Freetype
– Found Freetype: /data/Q16264/common/gw/local/lib/libfreetype.so (found version “2.4.7”)
– Looking for PCRE
– Found PCRE version 7.8 using /usr/bin/pcre-config
– Looking for LZMA
– LZMA not found. Switching on builtin_lzma option
– Building LZMA version 5.2.1 included in ROOT itself
– Looking for X11
– Looking for XOpenDisplay in /data/Q16264/common/gw/local/lib/libX11.so;/data/Q16264/common/gw/local/lib/libXext.so
– Looking for XOpenDisplay in /data/Q16264/common/gw/local/lib/libX11.so;/data/Q16264/common/gw/local/lib/libXext.so - not found
– Looking for dnet_ntoa in dnet
– Looking for dnet_ntoa in dnet - not found
– Looking for dnet_ntoa in dnet_stub
– Looking for dnet_ntoa in dnet_stub - not found
– Looking for gethostbyname
– Looking for gethostbyname - not found
– Looking for gethostbyname in nsl
– Looking for gethostbyname in nsl - not found
– Looking for gethostbyname in bsd
– Looking for gethostbyname in bsd - not found
– Looking for connect
– Looking for connect - not found
– Looking for connect in socket
– Looking for connect in socket - not found
– Looking for remove
– Looking for remove - not found
– Looking for remove in posix
– Looking for remove in posix - not found
– Looking for shmat
– Looking for shmat - not found
– Looking for shmat in ipc
– Looking for shmat in ipc - not found
– Looking for IceConnectionNumber in ICE
– Looking for IceConnectionNumber in ICE - not found
– Found X11: /data/Q16264/common/gw/local/lib/libX11.so
– X11_INCLUDE_DIR: /data/Q16264/common/gw/local/include;/usr/include
– X11_LIBRARIES: /data/Q16264/common/gw/local/lib/libX11.so;/data/Q16264/common/gw/local/lib/libXext.so
– X11_Xpm_INCLUDE_PATH: /data/Q16264/common/gw/local/include
– X11_Xpm_LIB: /data/Q16264/common/gw/local/lib/libXpm.so
– X11_Xft_INCLUDE_PATH: /data/Q16264/common/gw/local/include
– X11_Xft_LIB: /data/Q16264/common/gw/local/lib/libXft.so
– X11_Xext_INCLUDE_PATH:
– X11_Xext_LIB: /data/Q16264/common/gw/local/lib/libXext.so
– Could NOT find GIF (missing: GIF_LIBRARY GIF_INCLUDE_DIR)
– Could NOT find TIFF (missing: TIFF_LIBRARY TIFF_INCLUDE_DIR)
– Could NOT find PNG (missing: PNG_LIBRARY PNG_PNG_INCLUDE_DIR)
– Could NOT find JPEG (missing: JPEG_LIBRARY JPEG_INCLUDE_DIR)
– Looking for GSL
– FindGSL: gsl-config not found.
– GSL not found. Set variable GSL_DIR to point to your GSL installation
– Alternatively, you can also enable the option ‘builtin_gsl’ to build the GSL libraries internally’
– For the time being switching OFF ‘mathmore’ option
– Looking for Python
– Found PythonInterp: /data/Q16264/common/gw/local/bin/python (found version “2.7.10”)
– Found Python interpreter version 2.7
– Found PythonLibs: /data/Q16264/common/gw/local/lib/libpython2.7.so (found version “2.7.10”)
– Looking for OpenGL
– Found OpenGL: /data/Q16264/common/gw/local/lib/libGL.so
– Looking for Graphviz
– Could NOT find GRAPHVIZ (missing: GRAPHVIZ_INCLUDE_DIR GRAPHVIZ_cdt_LIBRARY GRAPHVIZ_gvc_LIBRARY GRAPHVIZ_graph_LIBRARY GRAPHVIZ_pathplan_LIBRARY)
– Graphviz not found. Switching off gviz option
– Looking for Bonjour
– Checking whether Bonjour/Avahi is supported
– Bonjour not found. Switching off bonjour option
– Looking for Kerberos 5
– Found KRB5: /usr/lib64/libkrb5.so
– Looking for LibXml2
– Could NOT find LibXml2 (missing: LIBXML2_LIBRARIES LIBXML2_INCLUDE_DIR)
– LibXml2 not found. Switching off xml option
– Looking for OpenSSL
– Found OpenSSL: /usr/lib64/libssl.so;/usr/lib64/libcrypto.so (found version “1.0.1e”)
– Looking for Castor
– Castor not found. Switching off castor/rfio option
– Looking for MySQL
– Could NOT find MYSQL (missing: MYSQL_INCLUDE_DIR MYSQL_LIBRARIES)
– MySQL not found. Switching off mysql option
– Looking for Oracle
– Oracle not found.
– Oracle: You can specify includes: -DORACLE_PATH_INCLUDES=/usr/include/oracle/10.2.0.3/client
– currently found includes:
– Oracle: You can specify libs: -DORACLE_PATH_LIB=/usr/lib/oracle/10.2.0.3/client/lib
– currently found libs: ORACLE_LIBRARY_OCCI-NOTFOUND;ORACLE_LIBRARY_CLNTSH-NOTFOUND;ORACLE_LIBRARY_LNNZ-NOTFOUND
– Oracle not found. Switching off oracle option
– Looking for ODBC
– ODBC not found. Switching off odbc option
– Looking for PostgreSQL
– Found PostgreSQL: /data/Q16264/common/gw/local/include
– Looking for SQLite
– Found PkgConfig: /data/Q16264/common/gw/local/bin/pkg-config (found version “0.29”)
– Found Sqlite: /usr/include
– Looking for Pythia6
– Pythia6 not found. Switching off pythia6 option
– Looking for Pythia8
– Could NOT find Pythia8 (missing: PYTHIA8_INCLUDE_DIR PYTHIA8_LIBRARY)
– Pythia8 not found. Switching off pythia8 option
– Looking for FFTW3
– FFTW3 not found. Set [environment] variable FFTW_DIR to point to your FFTW3 installation
– Alternatively, you can also enable the option ‘builtin_fftw3’ to build FFTW3 internally’
– For the time being switching OFF ‘fftw3’ option
– Looking for CFITSIO
– Could NOT find CFITSIO (missing: CFITSIO_INCLUDE_DIR CFITSIO_LIBRARY)
– CFITSIO not found. You can enable the option ‘builtin_cfitsio’ to build the library internally’
– For the time being switching off ‘fitsio’ option
– Alien API not found. Set variable ALIEN_DIR to point to your Alien installation
– For the time being switching OFF ‘alien’ option
– Monalisa not found. Set variable MONALISA_DIR to point to your Monalisa installation
– For the time being switching OFF ‘monalisa’ option
– Looking for XROOTD
– XROOTD not found. Set environment variable XRDSYS to point to your XROOTD installation
– Alternatively, you can also enable the option ‘builtin_xrootd’ to build XROOTD internally’
– For the time being switching OFF ‘xrootd’ option
– Could NOT find GFAL (missing: GFAL_INCLUDE_DIR SRM_IFCE_INCLUDE_DIR GFAL_LIBRARIES)
– GFAL library not found. Set variable GFAL_DIR to point to your gfal installation
and the variable SRM_IFCE_DIR to the srm_ifce installation
– For the time being switching OFF ‘gfal’ option
– Could NOT find DCAP (missing: DCAP_INCLUDE_DIR DCAP_LIBRARY)
– dCap library not found. Set variable DCAP_DIR to point to your dCache installation
– For the time being switching OFF ‘dcache’ option
– Could NOT find LDAP (missing: LDAP_INCLUDE_DIR LDAP_LIBRARY)
– ldap library not found. Set variable LDAP_DIR to point to your ldap installation
– For the time being switching OFF ‘ldap’ option
– Could NOT find CHIRP (missing: CHIRP_INCLUDE_DIR CHIRP_LIBRARY)
– chirp library not found. Set variable CHIRP_DIR to point to your chirp installation
– For the time being switching OFF ‘chirp’ option
– Could NOT find HDFS (missing: HDFS_INCLUDE_DIR HDFS_LIBRARY)
– hdfs library not found. Set variable HDFS_DIR to point to your hdfs installation
– For the time being switching OFF ‘hdfs’ option
– Looking for DAVIX
– Could NOT find DAVIX (missing: DAVIX_INCLUDE_DIRS DAVIX_LIBRARIES)
– Davix not found. You can enable the option ‘builtin_davix’ to build the library internally’
– For the time being switching off ‘davix’ option
– >>> Option ‘glite’ not implemented yet! Signal your urgency to pere.mato@cern.ch
– >>> Option ‘sapdb’ not implemented yet! Signal your urgency to pere.mato@cern.ch
– >>> Option ‘srp’ not implemented yet! Signal your urgency to pere.mato@cern.ch
– Enabled support for: asimage astiff builtin_afterimage builtin_ftgl builtin_glew builtin_lzma builtin_llvm cxx11 cling exceptions explicitlink fortran genvector krb5 memstat opengl pch pgsql python shadowpw shared sqlite ssl thread tmva vdt xft x11
– Warning: LLVM will be built thread-unsafe because atomic builtins are missing
– Target triple: sparc64-unknown-linux-gnu
– Native target Sparc is not selected; lli will not JIT code
– Threads disabled.
– Doxygen disabled.
– Sphinx disabled.
– Go bindings disabled.
– Could NOT find OCaml (missing: OCAMLFIND OCAML_VERSION OCAML_STDLIB_PATH)
– Could NOT find OCaml (missing: OCAMLFIND OCAML_VERSION OCAML_STDLIB_PATH)
– OCaml bindings disabled.
CMake Warning at interpreter/llvm/src/cmake/modules/HandleLLVMOptions.cmake:145 (message):
-fPIC is not supported.
Call Stack (most recent call first):
interpreter/llvm/src/cmake/modules/HandleLLVMOptions.cmake:157 (add_flag_or_print_warning)
interpreter/llvm/src/CMakeLists.txt:348 (include)

CMake Error at interpreter/llvm/src/cmake/modules/HandleLLVMOptions.cmake:350 (message):
LLVM requires C++11 support but the ‘-std=c++11’ flag isn’t supported.
Call Stack (most recent call first):
interpreter/llvm/src/CMakeLists.txt:348 (include)

– Configuring incomplete, errors occurred!
See also “/home/genie/build2/CMakeFiles/CMakeOutput.log”.
See also “/home/genie/build2/CMakeFiles/CMakeError.log”.
[/code]

Is this some kind of CMake bug? or bug in CMake module?
I tried to compile with both -fPIC option and -std=c++11 option with the code

and both worked fine.

WHAT!

Previously, I used the command

This time I tried

and configuration worked…