UnicodeDecodeError: 'ascii' codec can't decode byte 0xc3, from ROOT 6.20.00

Dear Rooters

I’m trying to install a newer version of ROOT and i’m having an issue that might be out of my hands : when doing the cmake command, here is what i have

CMAKE_BUILD_TYPE=Release -DCMAKE_INSTALL_PREFIX=/path/to/my/machine/root_v6.20.00/
-- The C compiler identification is GNU 7.1.1
-- The CXX compiler identification is GNU 7.1.1
-- Check for working C compiler: /usr/bin/cc
-- Check for working C compiler: /usr/bin/cc - 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: /usr/bin/c++
-- Check for working CXX compiler: /usr/bin/c++ - works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- Found Git: /usr/bin/git (found version "2.13.0") 
-- ROOT default compression algorithm: zlib
bash: -m: command not found
-- Found GCC. Major version 7, minor version 1
-- Looking for pthread.h
-- Looking for pthread.h - found
-- Performing Test CMAKE_HAVE_LIBC_PTHREAD
-- Performing Test CMAKE_HAVE_LIBC_PTHREAD - Failed
-- 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 64bit system
-- Found GNU compiler collection
-- Performing Test GLIBCXX_USE_CXX11_ABI
-- Performing Test GLIBCXX_USE_CXX11_ABI - Success
-- ROOT Platform: linux
-- ROOT Architecture: linuxx8664gcc
-- Build Type: Release (flags = '-O3 -DNDEBUG')
-- Compiler Flags: -O3 -DNDEBUG  -std=c++11 -Wno-implicit-fallthrough -Wno-noexcept-type -pipe  -Wshadow -Wall -W -Woverloaded-virtual -fsigned-char -pthread
-- Looking for ZLib
-- Found ZLIB: /usr/lib64/libz.so (found version "1.2.11") 
-- Looking for Freetype
-- Found Freetype: /usr/lib64/libfreetype.so (found version "2.7.1") 
-- Looking for PCRE
-- Found PCRE: /usr/include (found version "8.40") 
-- Looking for LZMA
-- Looking for lzma_auto_decoder in /usr/lib64/liblzma.so
-- Looking for lzma_auto_decoder in /usr/lib64/liblzma.so - found
-- Looking for lzma_easy_encoder in /usr/lib64/liblzma.so
-- Looking for lzma_easy_encoder in /usr/lib64/liblzma.so - found
-- Looking for lzma_lzma_preset in /usr/lib64/liblzma.so
-- Looking for lzma_lzma_preset in /usr/lib64/liblzma.so - found
-- Found LibLZMA: /usr/lib64/liblzma.so (found version "5.2.3") 
-- Looking for ZSTD
-- Could NOT find ZSTD (missing: ZSTD_LIBRARIES ZSTD_INCLUDE_DIR ZSTD_VERSION) 
-- ZSTD not found. Switching on builtin_zstd option
-- Performing Test CXX_FLAG_STD_CPLUSPLUS11
-- Performing Test CXX_FLAG_STD_CPLUSPLUS11 - Success
-- Performing Test C_FLAG_STD_C99
-- Performing Test C_FLAG_STD_C99 - Success
-- Performing Test C_FLAG_WALL
-- Performing Test C_FLAG_WALL - Success
-- Performing Test CXX_FLAG_WALL
-- Performing Test CXX_FLAG_WALL - Success
-- Performing Test C_FLAG_WEXTRA
-- Performing Test C_FLAG_WEXTRA - Success
-- Performing Test CXX_FLAG_WEXTRA
-- Performing Test CXX_FLAG_WEXTRA - Success
-- Performing Test C_FLAG_WUNDEF
-- Performing Test C_FLAG_WUNDEF - Success
-- Performing Test CXX_FLAG_WUNDEF
-- Performing Test CXX_FLAG_WUNDEF - Success
-- Performing Test C_FLAG_WSHADOW
-- Performing Test C_FLAG_WSHADOW - Success
-- Performing Test CXX_FLAG_WSHADOW
-- Performing Test CXX_FLAG_WSHADOW - Success
-- Performing Test C_FLAG_WCAST_ALIGN
-- Performing Test C_FLAG_WCAST_ALIGN - Success
-- Performing Test CXX_FLAG_WCAST_ALIGN
-- Performing Test CXX_FLAG_WCAST_ALIGN - Success
-- Performing Test C_FLAG_WCAST_QUAL
-- Performing Test C_FLAG_WCAST_QUAL - Success
-- Performing Test CXX_FLAG_WCAST_QUAL
-- Performing Test CXX_FLAG_WCAST_QUAL - Success
-- Performing Test C_FLAG_WSTRICT_PROTOTYPES
-- Performing Test C_FLAG_WSTRICT_PROTOTYPES - Success
-- Looking for xxHash
-- Could NOT find xxHash (missing: xxHash_LIBRARY xxHash_INCLUDE_DIR) 
-- xxHash not found. Switching on builtin_xxhash option
-- Looking for LZ4
-- Could NOT find LZ4 (missing: LZ4_LIBRARY LZ4_INCLUDE_DIR) 
-- LZ4 not found. Switching on builtin_lz4 option
-- Looking for X11
-- Found X11: /usr/include   
-- Looking for XOpenDisplay in /usr/lib64/libX11.so;/usr/lib64/libXext.so
-- Looking for XOpenDisplay in /usr/lib64/libX11.so;/usr/lib64/libXext.so - found
-- Looking for gethostbyname
-- Looking for gethostbyname - found
-- Looking for connect
-- Looking for connect - found
-- Looking for remove
-- Looking for remove - found
-- Looking for shmat
-- Looking for shmat - found
-- Looking for IceConnectionNumber in ICE
-- Looking for IceConnectionNumber in ICE - found
-- X11_INCLUDE_DIR: /usr/include
-- X11_LIBRARIES: /usr/lib64/libSM.so;/usr/lib64/libICE.so;/usr/lib64/libX11.so;/usr/lib64/libXext.so
-- X11_Xpm_INCLUDE_PATH: /usr/include
-- X11_Xpm_LIB: /usr/lib64/libXpm.so
-- X11_Xft_INCLUDE_PATH: /usr/include
-- X11_Xft_LIB: /usr/lib64/libXft.so
-- X11_Xext_INCLUDE_PATH: /usr/include
-- X11_Xext_LIB: /usr/lib64/libXext.so
-- Could NOT find GIF (missing: GIF_LIBRARY GIF_INCLUDE_DIR) 
-- Found TIFF: /usr/lib64/libtiff.so (found version "4.0.8") 
-- Found PNG: /usr/lib64/libpng.so (found version "1.6.28") 
-- Found JPEG: /usr/lib64/libjpeg.so (found version "62") 
-- Looking for AfterImage
-- Could NOT find AfterImage (missing: AFTERIMAGE_INCLUDE_DIR AFTERIMAGE_LIBRARIES) 
-- AfterImage not found. Switching on builtin_afterimage option
-- Building AfterImage library included in ROOT itself
-- Looking for GSL
-- Found PkgConfig: /usr/bin/pkg-config (found version "1.3.7") 
-- Found GSL: /usr/include (found suitable version "2.3", minimum required is "1.10") 
-- Looking for python
-- Preferring Python version 2
-- Found Python2: /usr/bin/python2.7 (found version "2.7.13") found components: Interpreter Development 
-- Found Python2: /usr/bin/python2.7 (found version "2.7.13") found components: Interpreter Development NumPy 
-- Looking for LibXml2
-- Found LibXml2: /usr/lib64/libxml2.so (found version "2.9.4") 
-- Looking for FFTW3
-- Found fftw3 includes at /usr/include
-- Found fftw3 library at /usr/lib64/libfftw3.so
-- Performing Test ROOT_HAVE_CXX_ATOMICS_WITHOUT_LIB
-- Performing Test ROOT_HAVE_CXX_ATOMICS_WITHOUT_LIB - Success
-- Building LLVM in 'Release' mode.
-- The ASM compiler identification is GNU
-- Found assembler: /usr/bin/cc
-- Looking for backtrace
-- Looking for backtrace - found
-- backtrace facility detected in default set of libraries
-- Found Backtrace: /usr/include  
-- Native target architecture is X86
-- Threads disabled.
-- Doxygen disabled.
-- Go bindings enabled.
-- LLVM host triple: x86_64-unknown-linux-gnu
-- LLVM default target triple: x86_64-unknown-linux-gnu
-- Building with -fPIC
-- Found PythonInterp: /usr/bin/python2.7 (found version "2.7.13") 
-- Constructing LLVMBuild project information
CMake Error at interpreter/llvm/src/CMakeLists.txt:665 (message):
  Unexpected failure executing llvm-build: Traceback (most recent call last):

    File "/path/to/my/machine/Downloads/root-6.20.00/interpreter/llvm/src/utils/llvm-build/llvm-build", line 6, in <module>
      llvmbuild.main()
    File "/path/to/my/machine/Downloads/root-6.20.00/interpreter/llvm/src/utils/llvm-build/llvmbuild/main.py", line 932, in main
      source_root, llvmbuild_source_root)
    File "/path/to/my/machine/Downloads/root-6.20.00/interpreter/llvm/src/utils/llvm-build/llvmbuild/main.py", line 91, in load_from_path
      LLVMProjectInfo.load_infos_from_path(llvmbuild_source_root))
    File "/path/to/my/machine/Downloads/root-6.20.00/interpreter/llvm/src/utils/llvm-build/llvmbuild/main.py", line 83, in recurse
      for item in recurse(os.path.join(subpath, subdir)):
    File "/path/to/my/machine/Downloads/root-6.20.00/interpreter/llvm/src/utils/llvm-build/llvmbuild/main.py", line 70, in recurse
      llvmbuild_path = os.path.join(llvmbuild_source_root + subpath,

  UnicodeDecodeError: 'ascii' codec can't decode byte 0xc3 in position 24:
  ordinal not in range(128)


-- Configuring incomplete, errors occurred!
See also "/path/to/my/machine/Downloads/buildroot-6/CMakeFiles/CMakeOutput.log".
See also "/path/to/my/machine/Downloads/buildroot-6/CMakeFiles/CMakeError.log".

for information here is my cmake command:

`cmake ../root-6.20.00/ -Dgminimal='ON' -Dmlp=ON -Dmathmore='ON' -Dfftw3='ON' -Dminuit2='ON' -Dxml='ON' -Dasimage='ON' -Dpython='ON' -Dsoversion='ON' -DCMAKE_BUILD_TYPE=Release -DCMAKE_INSTALL_PREFIX=/path/to/my/machine/root_v6.20.00/

I do have the same issu with 6.20.02
Ideas and suggestions are more than welcome.

Thanks in advance
jb


Please read tips for efficient and successful posting and posting code

_ROOT Version: 6.20.00
_Platform: Fedora26
_Compiler: gcc7.1


Sorry, for completness, the version of cmake i’m using is the latest i found: 3.17.0

Weird. Maybe @Axel has an idea what could be the issue?

Yep, clearly. I thought I might encounter issues (I had to update my cmake for instance) but I never considered something like this :smiley: … I’ve tried to change the corresponding line by hand (retype it) but that was foolish of me :stuck_out_tongue:

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.

Sorry for chiming in waaay too late: my bet given the failing line is a directory name with “weird” characters that Python doesn’t manage to encode in ASCII. Did I guess correctly? :slight_smile: