cpc / openasip

Open Application-Specific Instruction Set processor tools (OpenASIP)
http://openasip.org
Other
145 stars 44 forks source link

issue for installing TCE on ubuntu20.04 #113

Closed hitanvil closed 3 years ago

hitanvil commented 3 years ago

I installed TCE on Ubuntu20.04 LTS following the guide in http://openasip.org/downloads/INSTALL. But the final self test fails.

Install LLVM

install LLVM by  tools/scripts/install_llvm_11.sh $HOME/local. It reports below information
   dev@TCE-VM:~/tce/tce-1.22/tce$ tools/scripts/install_llvm_11.sh $HOME/local
    ### LLVM build mode: -DCMAKE_BUILD_TYPE=Release -DLLVM_ENABLE_ASSERTIONS=ON
    Already on 'release/11.x'
    Your branch is up to date with 'origin/release/11.x'.
    HEAD is now at 6b458878ac6 Rename llvm-config to llvmtce-config
    Already up to date.
    -- clang project is enabled
    -- clang-tools-extra project is disabled
    -- compiler-rt project is disabled
    -- debuginfo-tests project is disabled
    -- libc project is disabled
    -- libclc project is disabled
    -- libcxx project is disabled
    -- libcxxabi project is disabled
    -- libunwind project is disabled
    -- lld project is disabled
    -- lldb project is disabled
    -- mlir project is disabled
    -- openmp project is disabled
    -- parallel-libs project is disabled
    -- polly project is disabled
    -- pstl project is disabled
    -- flang project is disabled
    -- Native target architecture is X86
    -- Threads enabled.
    -- Doxygen disabled.
    -- Go bindings disabled.
    -- OCaml bindings disabled, need ctypes >=0.4.
    -- LLVM host triple: x86_64-unknown-linux-gnu
    -- LLVM default target triple: x86_64-unknown-linux-gnu
    -- Building with -fPIC
    -- Constructing LLVMBuild project information
    -- Targeting X86
    -- Clang version: 11.0.1
    -- Registering Bye as a pass plugin (static build: OFF)
    -- Failed to find LLVM FileCheck
    -- Version: 0.0.0
    -- Performing Test HAVE_GNU_POSIX_REGEX -- failed to compile
    -- Performing Test HAVE_POSIX_REGEX -- success
    -- Performing Test HAVE_STEADY_CLOCK -- success
    -- Configuring done
    -- Generating done
    -- Build files have been written to: /home/dev/tce/tce-1.22/tce/llvm-build-Release/release_11/build
    (Below are progress report and seems no problem)

Check enviroment

        dev@TCE-VM:~/tce/tce-1.22/tce$ echo $LD_LIBRARY_PATH
        :/home/dev/local/lib
        dev@TCE-VM:~/tce/tce-1.22/tce$ echo $PATH
        /home/dev/local/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin:/media/sf_tools/clion-2020.3/bin
        dev@TCE-VM:~/tce/tce-1.22/tce$ echo $LDFLAGS
        -L/home/dev/local/lib
        dev@TCE-VM:~/tce/tce-1.22/tce$ ./autogen.sh
        Preparing the tce build system...please wait

        Found GNU Autoconf version 2.69
        Found GNU Automake version 1.16.1
        Found GNU Libtool version 2.4.6

        Automatically preparing build ... done

        The tce build system is now prepared.  To build here, run:
          ./configure
          make

Generate makefile

        dev@TCE-VM:~/tce/tce-1.22/tce$ ./configure --prefix=$HOME/local
        checking for a BSD-compatible install... /usr/bin/install -c
        checking whether build environment is sane... yes
        checking for a thread-safe mkdir -p... /usr/bin/mkdir -p
        checking for gawk... no
        checking for mawk... mawk
        checking whether make sets $(MAKE)... yes
        checking whether make supports nested variables... yes
        checking how to create a pax tar archive... gnutar
        checking build system type... x86_64-pc-linux-gnu
        checking host system type... x86_64-pc-linux-gnu
        checking for g++... g++
        checking whether the C++ compiler works... yes
        checking for C++ compiler default output file name... a.out
        checking for suffix of executables... 
        checking whether we are cross compiling... no
        checking for suffix of object files... o
        checking whether we are using the GNU C++ compiler... yes
        checking whether g++ accepts -g... yes
        checking whether make supports the include directive... yes (GNU style)
        checking dependency style of g++... gcc3
        checking for gcc... gcc
        checking whether we are using the GNU C compiler... yes
        checking whether gcc accepts -g... yes
        checking for gcc option to accept ISO C89... none needed
        checking whether gcc understands -c and -o together... yes
        checking dependency style of gcc... gcc3
        checking whether make sets $(MAKE)... (cached) yes
        checking how to print strings... printf
        checking for a sed that does not truncate output... /usr/bin/sed
        checking for grep that handles long lines and -e... /usr/bin/grep
        checking for egrep... /usr/bin/grep -E
        checking for fgrep... /usr/bin/grep -F
        checking for ld used by gcc... /usr/bin/ld
        checking if the linker (/usr/bin/ld) is GNU ld... yes
        checking for BSD- or MS-compatible name lister (nm)... /usr/bin/nm -B
        checking the name lister (/usr/bin/nm -B) interface... BSD nm
        checking whether ln -s works... yes
        checking the maximum length of command line arguments... 1572864
        checking how to convert x86_64-pc-linux-gnu file names to x86_64-pc-linux-gnu format... func_convert_file_noop
        checking how to convert x86_64-pc-linux-gnu file names to toolchain format... func_convert_file_noop
        checking for /usr/bin/ld option to reload object files... -r
        checking for objdump... objdump
        checking how to recognize dependent libraries... pass_all
        checking for dlltool... no
        checking how to associate runtime and link libraries... printf %s\n
        checking for ar... ar
        checking for archiver @FILE support... @
        checking for strip... strip
        checking for ranlib... ranlib
        checking command to parse /usr/bin/nm -B output from gcc object... ok
        checking for sysroot... no
        checking for a working dd... /usr/bin/dd
        checking how to truncate binary pipes... /usr/bin/dd bs=4096 count=1
        checking for mt... mt
        checking if mt is a manifest tool... no
        checking how to run the C preprocessor... gcc -E
        checking for ANSI C header files... yes
        checking for sys/types.h... yes
        checking for sys/stat.h... yes
        checking for stdlib.h... yes
        checking for string.h... yes
        checking for memory.h... yes
        checking for strings.h... yes
        checking for inttypes.h... yes
        checking for stdint.h... yes
        checking for unistd.h... yes
        checking for dlfcn.h... yes
        checking for objdir... .libs
        checking if gcc supports -fno-rtti -fno-exceptions... no
        checking for gcc option to produce PIC... -fPIC -DPIC
        checking if gcc PIC flag -fPIC -DPIC works... yes
        checking if gcc static flag -static works... yes
        checking if gcc supports -c -o file.o... yes
        checking if gcc supports -c -o file.o... (cached) yes
        checking whether the gcc linker (/usr/bin/ld -m elf_x86_64) supports shared libraries... yes
        checking whether -lc should be explicitly linked in... no
        checking dynamic linker characteristics... GNU/Linux ld.so
        checking how to hardcode library paths into programs... immediate
        checking whether stripping libraries is possible... yes
        checking if libtool supports shared libraries... yes
        checking whether to build shared libraries... yes
        checking whether to build static libraries... no
        checking how to run the C++ preprocessor... g++ -E
        checking for ld used by g++... /usr/bin/ld -m elf_x86_64
        checking if the linker (/usr/bin/ld -m elf_x86_64) is GNU ld... yes
        checking whether the g++ linker (/usr/bin/ld -m elf_x86_64) supports shared libraries... yes
        checking for g++ option to produce PIC... -fPIC -DPIC
        checking if g++ PIC flag -fPIC -DPIC works... yes
        checking if g++ static flag -static works... yes
        checking if g++ supports -c -o file.o... yes
        checking if g++ supports -c -o file.o... (cached) yes
        checking whether the g++ linker (/usr/bin/ld -m elf_x86_64) supports shared libraries... yes
        checking dynamic linker characteristics... (cached) GNU/Linux ld.so
        checking how to hardcode library paths into programs... immediate
        checking for egrep... (cached) /usr/bin/grep -E
        checking for latex... yes
        checking for latex2html... yes
        checking for the pthreads library -lpthreads... no
        checking whether pthreads work without any flags... no
        checking whether pthreads work with -Kthread... no
        checking whether pthreads work with -kthread... no
        checking for the pthreads library -llthread... no
        checking whether pthreads work with -pthread... yes
        checking for joinable pthread attribute... PTHREAD_CREATE_JOINABLE
        checking if more special flags are required for pthreads... no
        checking for PTHREAD_PRIO_INHERIT... yes
        checking whether compiler understands vector at() method... yes
        checking for tce-llvm-gcc... no
        checking for clang... yes
        checking whether std::hash_map is available... no
        checking whether std::unordered_map/hash_map is available... yes
        checking whether std::tr1::unordered_map/hash_map is available... yes
        checking whether __gnu_cxx::hash_map is available... yes
        checking whether compiler understands -Wno-system-headers flag... yes
        checking whether compiler supports -rdynamic... yes
        checking for directory separator... /
        checking for python binary... 
        checking for python3... python3
        checking for llvmtce-config... /home/dev/local/bin/llvmtce-config
        checking for /home/dev/local/bin/llvmtce-config... yes
        checking if the little endian tcele target is supported in Clang/LLVM... yes
        checking if the little endian 64-bit tcele64 target is supported in Clang/LLVM... yes
        checking for /usr/bin/wx-config... yes
        checking if wx headers are found and library linkage works... yes
        checking if wxWidgets is compiled with printing framework.... yes
        checking if wxWidgets contains the font size bug in canvas printing.... no
        checking tcl version... yes (8.6)
        checking for library containing Tcl_SetVar... -ltcl8.6
        checking whether -ltcl8.6  is available to linker... yes
        checking whether xerces-c library is available to the linker... yes
        checking for library containing el_init... -ledit
        checking whether editline library is available... yes
        checking for library containing sqlite3_step... -lsqlite3
        checking that sqlite3 is available to linker... yes
        checking whether dl library is needed... yes
        checking for dirent.h that defines DIR... yes
        checking for library containing opendir... none required
        checking for sys/wait.h that is POSIX.1 compatible... yes
        checking for ANSI C header files... (cached) yes
        checking for an ANSI C-conforming const... yes
        checking size of float... 4
        checking size of double... 8
        checking size of int... 4
        checking size of short... 2
        checking size of char... 1
        checking whether byte ordering is bigendian... no
        checking whether g++ supports C++11 features by default... yes
        checking for boostlib >= 1.48.0... yes
        checking whether the Boost::Filesystem library is available... yes
        checking for exit in -lboost_filesystem... yes
        checking whether the Boost::System library is available... yes
        checking for exit in -lboost_system... yes
        checking whether the Boost::Regex library is available... yes
        checking for exit in -lboost_regex... yes
        checking whether the Boost::Thread library is available... yes
        BUILD OS:, linux-gnu
        checking for exit in -lboost_thread... yes
        === Configuring newlib for big endian machines =====
        checking build system type... x86_64-unknown-linux-gnu
        checking host system type... x86_64-unknown-linux-gnu
        checking target system type... tce-llvm
        checking for a BSD-compatible install... /usr/bin/install -c
        checking whether ln works... yes
        checking whether ln -s works... yes
        checking for gcc... gcc
        checking for C compiler default output file name... a.out
        checking whether the C compiler works... yes
        checking whether we are cross compiling... no
        checking for suffix of executables... 
        checking for suffix of object files... o
        checking whether we are using the GNU C compiler... yes
        checking whether gcc accepts -g... yes
        checking for gcc option to accept ANSI C... none needed
        checking for g++... g++
        checking whether we are using the GNU C++ compiler... yes
        checking whether g++ accepts -g... yes
        checking for gnatbind... no
        checking for gnatmake... no
        checking whether compiler driver understands Ada... no
        checking how to compare bootstrapped objects... cmp --ignore-initial=16 $$f1 $$f2
        checking for version 0.10 of PPL... no
        checking for correct version of CLooG... no
        checking for bison... no
        checking for byacc... no
        checking for yacc... no
        checking for bison... no
        checking for gm4... no
        checking for gnum4... no
        checking for m4... m4
        checking for flex... no
        checking for lex... no
        checking for flex... no
        checking for makeinfo... no
        checking for expect... no
        checking for runtest... no
        checking for ar... ar
        checking for as... as
        checking for dlltool... no
        checking for ld... ld
        checking for lipo... no
        checking for nm... nm
        checking for ranlib... ranlib
        checking for strip... strip
        checking for windres... no
        checking for windmc... no
        checking for objcopy... objcopy
        checking for objdump... objdump
        checking for cc... (cached) /home/dev/tce/tce-1.22/tce/newlib-1.17.0/tce-llvm/../../src/bintools/Compiler/tcecc
        checking for gcc... (cached) /home/dev/tce/tce-1.22/tce/newlib-1.17.0/tce-llvm/../../src/bintools/Compiler/tcecc
        checking for c++... (cached) /home/dev/tce/tce-1.22/tce/newlib-1.17.0/tce-llvm/../../src/bintools/Compiler/tcecc
        checking for g++... (cached) /home/dev/tce/tce-1.22/tce/newlib-1.17.0/tce-llvm/../../src/bintools/Compiler/tcecc
        checking for cxx... (cached) /home/dev/tce/tce-1.22/tce/newlib-1.17.0/tce-llvm/../../src/bintools/Compiler/tcecc
        checking for gxx... (cached) /home/dev/tce/tce-1.22/tce/newlib-1.17.0/tce-llvm/../../src/bintools/Compiler/tcecc
        checking for tce-llvm-gcc... no
        checking for tce-llvm-gcj... no
        checking for tce-llvm-gfortran... no
        checking for ar... (cached) ar
        checking for as... (cached) as
        checking for tce-llvm-dlltool... no
        checking for ld... (cached) ld
        checking for tce-llvm-lipo... no
        checking for nm... (cached) nm
        checking for tce-llvm-objdump... no
        checking for ranlib... (cached) ranlib
        checking for tce-llvm-strip... no
        checking for tce-llvm-windres... no
        checking for tce-llvm-windmc... no
        checking where to find the target ar... pre-installed
        checking where to find the target as... pre-installed
        checking where to find the target cc... pre-installed in /home/dev/tce/tce-1.22/tce/newlib-1.17.0/tce-llvm/../../src/bintools/Compiler
        checking where to find the target c++... pre-installed in /home/dev/tce/tce-1.22/tce/newlib-1.17.0/tce-llvm/../../src/bintools/Compiler
        checking where to find the target c++ for libstdc++... pre-installed in /home/dev/tce/tce-1.22/tce/newlib-1.17.0/tce-llvm/../../src/bintools/Compiler
        checking where to find the target dlltool... pre-installed
        checking where to find the target gcc... pre-installed
        checking where to find the target gcj... pre-installed
        checking where to find the target gfortran... pre-installed
        checking where to find the target ld... pre-installed
        checking where to find the target lipo... pre-installed
        checking where to find the target nm... pre-installed
        checking where to find the target objdump... pre-installed
        checking where to find the target ranlib... pre-installed
        checking where to find the target strip... pre-installed
        checking where to find the target windres... pre-installed
        checking where to find the target windmc... pre-installed
        checking whether to enable maintainer-specific portions of Makefiles... no
        checking whether -fkeep-inline-functions is supported... yes
        configure: creating ./config.status
        config.status: creating Makefile
        === Configuring newlib for little endian machines =====
        checking build system type... x86_64-unknown-linux-gnu
        checking host system type... x86_64-unknown-linux-gnu
        checking target system type... tcele-llvm
        checking for a BSD-compatible install... /usr/bin/install -c
        checking whether ln works... yes
        checking whether ln -s works... yes
        checking for gcc... gcc
        checking for C compiler default output file name... a.out
        checking whether the C compiler works... yes
        checking whether we are cross compiling... no
        checking for suffix of executables... 
        checking for suffix of object files... o
        checking whether we are using the GNU C compiler... yes
        checking whether gcc accepts -g... yes
        checking for gcc option to accept ANSI C... none needed
        checking for g++... g++
        checking whether we are using the GNU C++ compiler... yes
        checking whether g++ accepts -g... yes
        checking for gnatbind... no
        checking for gnatmake... no
        checking whether compiler driver understands Ada... no
        checking how to compare bootstrapped objects... cmp --ignore-initial=16 $$f1 $$f2
        checking for version 0.10 of PPL... no
        checking for correct version of CLooG... no
        checking for bison... no
        checking for byacc... no
        checking for yacc... no
        checking for bison... no
        checking for gm4... no
        checking for gnum4... no
        checking for m4... m4
        checking for flex... no
        checking for lex... no
        checking for flex... no
        checking for makeinfo... no
        checking for expect... no
        checking for runtest... no
        checking for ar... ar
        checking for as... as
        checking for dlltool... no
        checking for ld... ld
        checking for lipo... no
        checking for nm... nm
        checking for ranlib... ranlib
        checking for strip... strip
        checking for windres... no
        checking for windmc... no
        checking for objcopy... objcopy
        checking for objdump... objdump
        checking for cc... (cached) /home/dev/tce/tce-1.22/tce/newlib-1.17.0/tcele-llvm/../../src/bintools/Compiler/tcecc
        checking for gcc... (cached) /home/dev/tce/tce-1.22/tce/newlib-1.17.0/tcele-llvm/../../src/bintools/Compiler/tcecc
        checking for c++... (cached) /home/dev/tce/tce-1.22/tce/newlib-1.17.0/tcele-llvm/../../src/bintools/Compiler/tcecc
        checking for g++... (cached) /home/dev/tce/tce-1.22/tce/newlib-1.17.0/tcele-llvm/../../src/bintools/Compiler/tcecc
        checking for cxx... (cached) /home/dev/tce/tce-1.22/tce/newlib-1.17.0/tcele-llvm/../../src/bintools/Compiler/tcecc
        checking for gxx... (cached) /home/dev/tce/tce-1.22/tce/newlib-1.17.0/tcele-llvm/../../src/bintools/Compiler/tcecc
        checking for tcele-llvm-gcc... no
        checking for tcele-llvm-gcj... no
        checking for tcele-llvm-gfortran... no
        checking for ar... (cached) ar
        checking for as... (cached) as
        checking for tcele-llvm-dlltool... no
        checking for ld... (cached) ld
        checking for tcele-llvm-lipo... no
        checking for nm... (cached) nm
        checking for tcele-llvm-objdump... no
        checking for ranlib... (cached) ranlib
        checking for tcele-llvm-strip... no
        checking for tcele-llvm-windres... no
        checking for tcele-llvm-windmc... no
        checking where to find the target ar... pre-installed
        checking where to find the target as... pre-installed
        checking where to find the target cc... pre-installed in /home/dev/tce/tce-1.22/tce/newlib-1.17.0/tcele-llvm/../../src/bintools/Compiler
        checking where to find the target c++... pre-installed in /home/dev/tce/tce-1.22/tce/newlib-1.17.0/tcele-llvm/../../src/bintools/Compiler
        checking where to find the target c++ for libstdc++... pre-installed in /home/dev/tce/tce-1.22/tce/newlib-1.17.0/tcele-llvm/../../src/bintools/Compiler
        checking where to find the target dlltool... pre-installed
        checking where to find the target gcc... pre-installed
        checking where to find the target gcj... pre-installed
        checking where to find the target gfortran... pre-installed
        checking where to find the target ld... pre-installed
        checking where to find the target lipo... pre-installed
        checking where to find the target nm... pre-installed
        checking where to find the target objdump... pre-installed
        checking where to find the target ranlib... pre-installed
        checking where to find the target strip... pre-installed
        checking where to find the target windres... pre-installed
        checking where to find the target windmc... pre-installed
        checking whether to enable maintainer-specific portions of Makefiles... no
        checking whether -fkeep-inline-functions is supported... yes
        configure: creating ./config.status
        config.status: creating Makefile
        === Configuring newlib for little endian 64-bit machines =====
        checking build system type... x86_64-unknown-linux-gnu
        checking host system type... x86_64-unknown-linux-gnu
        checking target system type... tcele64-llvm
        checking for a BSD-compatible install... /usr/bin/install -c
        checking whether ln works... yes
        checking whether ln -s works... yes
        checking for gcc... gcc
        checking for C compiler default output file name... a.out
        checking whether the C compiler works... yes
        checking whether we are cross compiling... no
        checking for suffix of executables... 
        checking for suffix of object files... o
        checking whether we are using the GNU C compiler... yes
        checking whether gcc accepts -g... yes
        checking for gcc option to accept ANSI C... none needed
        checking for g++... g++
        checking whether we are using the GNU C++ compiler... yes
        checking whether g++ accepts -g... yes
        checking for gnatbind... no
        checking for gnatmake... no
        checking whether compiler driver understands Ada... no
        checking how to compare bootstrapped objects... cmp --ignore-initial=16 $$f1 $$f2
        checking for version 0.10 of PPL... no
        checking for correct version of CLooG... no
        checking for bison... no
        checking for byacc... no
        checking for yacc... no
        checking for bison... no
        checking for gm4... no
        checking for gnum4... no
        checking for m4... m4
        checking for flex... no
        checking for lex... no
        checking for flex... no
        checking for makeinfo... no
        checking for expect... no
        checking for runtest... no
        checking for ar... ar
        checking for as... as
        checking for dlltool... no
        checking for ld... ld
        checking for lipo... no
        checking for nm... nm
        checking for ranlib... ranlib
        checking for strip... strip
        checking for windres... no
        checking for windmc... no
        checking for objcopy... objcopy
        checking for objdump... objdump
        checking for cc... (cached) /home/dev/tce/tce-1.22/tce/newlib-1.17.0/tcele64-llvm/../../src/bintools/Compiler/tcecc
        checking for gcc... (cached) /home/dev/tce/tce-1.22/tce/newlib-1.17.0/tcele64-llvm/../../src/bintools/Compiler/tcecc
        checking for c++... (cached) /home/dev/tce/tce-1.22/tce/newlib-1.17.0/tcele64-llvm/../../src/bintools/Compiler/tcecc
        checking for g++... (cached) /home/dev/tce/tce-1.22/tce/newlib-1.17.0/tcele64-llvm/../../src/bintools/Compiler/tcecc
        checking for cxx... (cached) /home/dev/tce/tce-1.22/tce/newlib-1.17.0/tcele64-llvm/../../src/bintools/Compiler/tcecc
        checking for gxx... (cached) /home/dev/tce/tce-1.22/tce/newlib-1.17.0/tcele64-llvm/../../src/bintools/Compiler/tcecc
        checking for tcele64-llvm-gcc... no
        checking for tcele64-llvm-gcj... no
        checking for tcele64-llvm-gfortran... no
        checking for ar... (cached) ar
        checking for as... (cached) as
        checking for tcele64-llvm-dlltool... no
        checking for ld... (cached) ld
        checking for tcele64-llvm-lipo... no
        checking for nm... (cached) nm
        checking for tcele64-llvm-objdump... no
        checking for ranlib... (cached) ranlib
        checking for tcele64-llvm-strip... no
        checking for tcele64-llvm-windres... no
        checking for tcele64-llvm-windmc... no
        checking where to find the target ar... pre-installed
        checking where to find the target as... pre-installed
        checking where to find the target cc... pre-installed in /home/dev/tce/tce-1.22/tce/newlib-1.17.0/tcele64-llvm/../../src/bintools/Compiler
        checking where to find the target c++... pre-installed in /home/dev/tce/tce-1.22/tce/newlib-1.17.0/tcele64-llvm/../../src/bintools/Compiler
        checking where to find the target c++ for libstdc++... pre-installed in /home/dev/tce/tce-1.22/tce/newlib-1.17.0/tcele64-llvm/../../src/bintools/Compiler
        checking where to find the target dlltool... pre-installed
        checking where to find the target gcc... pre-installed
        checking where to find the target gcj... pre-installed
        checking where to find the target gfortran... pre-installed
        checking where to find the target ld... pre-installed
        checking where to find the target lipo... pre-installed
        checking where to find the target nm... pre-installed
        checking where to find the target objdump... pre-installed
        checking where to find the target ranlib... pre-installed
        checking where to find the target strip... pre-installed
        checking where to find the target windres... pre-installed
        checking where to find the target windmc... pre-installed
        checking whether to enable maintainer-specific portions of Makefiles... no
        checking whether -fkeep-inline-functions is supported... yes
        configure: creating ./config.status
        config.status: creating Makefile
        checking that generated files are newer than configure... done
        configure: creating ./config.status
        config.status: creating Makefile
        config.status: creating tce-config
        config.status: creating src/Makefile
        config.status: creating src/base/Makefile
        config.status: creating src/base/tpef/Makefile
        config.status: creating src/base/mach/Makefile
        config.status: creating src/base/bem/Makefile
        config.status: creating src/base/idf/Makefile
        config.status: creating src/base/osal/Makefile
        config.status: creating src/base/umach/Makefile
        config.status: creating src/base/memory/Makefile
        config.status: creating src/base/program/Makefile
        config.status: creating src/base/Graph/Makefile
        config.status: creating src/tools/Makefile
        config.status: creating doc/Makefile
        config.status: creating src/bintools/Makefile
        config.status: creating src/bintools/TPEFDumper/Makefile
        config.status: creating src/bintools/PIG/Makefile
        config.status: creating src/bintools/DictionaryTool/Makefile
        config.status: creating src/bintools/BEMGenerator/Makefile
        config.status: creating src/bintools/BEMViewer/Makefile
        config.status: creating src/bintools/Assembler/Makefile
        config.status: creating src/bintools/Disassembler/Makefile
        config.status: creating src/applibs/Scheduler/Selector/Makefile
        config.status: creating src/applibs/Scheduler/Algorithms/Makefile
        config.status: creating src/codesign/Makefile
        config.status: creating src/codesign/osal/Makefile
        config.status: creating src/codesign/osal/OSALBuilder/Makefile
        config.status: creating src/codesign/osal/OSALTester/Makefile
        config.status: creating src/codesign/osal/OSEd/Makefile
        config.status: creating src/codesign/ttasim/Makefile
        config.status: creating src/codesign/Proxim/Makefile
        config.status: creating src/codesign/Explorer/Makefile
        config.status: creating src/procgen/Makefile
        config.status: creating src/procgen/ProDe/Makefile
        config.status: creating data/bitmaps/Makefile
        config.status: creating data/Makefile
        config.status: creating conf/Makefile
        config.status: creating src/applibs/Makefile
        config.status: creating src/applibs/Interpreter/Makefile
        config.status: creating src/applibs/Simulator/Makefile
        config.status: creating src/applibs/wxToolkit/Makefile
        config.status: creating src/applibs/osal/Makefile
        config.status: creating src/applibs/TraceDB/Makefile
        config.status: creating src/applibs/bem/Makefile
        config.status: creating src/applibs/mach/Makefile
        config.status: creating src/applibs/idf/Makefile
        config.status: creating src/applibs/PIG/Makefile
        config.status: creating src/applibs/wxToolkit/MachineWindow/Makefile
        config.status: creating src/applibs/wxToolkit/GUIOptions/Makefile
        config.status: creating src/applibs/Assembler/Makefile
        config.status: creating src/applibs/hdb/Makefile
        config.status: creating src/applibs/dsdb/Makefile
        config.status: creating src/applibs/Estimator/Makefile
        config.status: creating src/applibs/ProGe/Makefile
        config.status: creating src/applibs/EPSGenerator/Makefile
        config.status: creating src/applibs/costdb/Makefile
        config.status: creating src/applibs/program/Makefile
        config.status: creating src/codesign/Estimator/Makefile
        config.status: creating src/procgen/HDB/Makefile
        config.status: creating src/procgen/ProGe/Makefile
        config.status: creating src/procgen/HDBEditor/Makefile
        config.status: creating src/procgen/MachInfo/Makefile
        config.status: creating src/applibs/Scheduler/Makefile
        config.status: creating src/applibs/Scheduler/ResourceModel/Makefile
        config.status: creating src/applibs/Scheduler/ResourceManager/Makefile
        config.status: creating src/applibs/FSA/Makefile
        config.status: creating src/applibs/Explorer/Makefile
        config.status: creating scheduler/Makefile
        config.status: creating opset/Makefile
        config.status: creating opset/base/Makefile
        config.status: creating src/applibs/Scheduler/ProgramRepresentations/Makefile
        config.status: creating src/applibs/Scheduler/ProgramRepresentations/PDG/Makefile
        config.status: creating src/applibs/Scheduler/ProgramRepresentations/CFG/Makefile
        config.status: creating src/applibs/Scheduler/ProgramRepresentations/CDG/Makefile
        config.status: creating src/applibs/Scheduler/ProgramRepresentations/DDG/Makefile
        config.status: creating hdb/Makefile
        config.status: creating compressors/Makefile
        config.status: creating icdecoder_plugins/Makefile
        config.status: creating scripts/Makefile
        config.status: creating manual/Makefile
        config.status: creating cost_estimator_plugins/Makefile
        config.status: creating cost_estimator_plugins/rf/Makefile
        config.status: creating cost_estimator_plugins/fu/Makefile
        config.status: creating explorer/Makefile
        config.status: creating src/applibs/LLVMBackend/Makefile
        config.status: creating src/applibs/LLVMBackend/passes/Makefile
        config.status: creating src/bintools/Compiler/Makefile
        config.status: creating src/bintools/Compiler/tceopgen/Makefile
        config.status: creating src/bintools/Compiler/llvm-tce/Makefile
        config.status: creating src/applibs/ImplementationTester/Makefile
        config.status: creating src/applibs/PlatformIntegrator/Makefile
        config.status: creating scheduler/testbench/Makefile
        config.status: creating scheduler/testbench/Operations/Makefile
        config.status: creating bclib/Makefile
        config.status: creating bclib/lwpr/Makefile
        config.status: creating bclib/saocl/Makefile
        config.status: creating bclib/cpp/Makefile
        config.status: creating bclib/include/Makefile
        config.status: creating bclib/include/CL/Makefile
        config.status: creating test/Makefile
        config.status: creating test/base/Makefile
        config.status: creating test/procgen/Makefile
        config.status: creating test/applibs/Makefile
        config.status: creating test/applibs/wxToolkit/Makefile
        config.status: creating test/applibs/Scheduler/Makefile
        config.status: creating test/applibs/Scheduler/ProgramRepresentations/Makefile
        config.status: creating src/codesign/Explorer/buildexplorerplugin
        config.status: creating src/codesign/Estimator/buildestimatorplugin
        config.status: creating src/bintools/PIG/buildcompressor
        config.status: creating src/procgen/ProGe/buildicdecoderplugin
        config.status: creating src/applibs/LLVMBackend/passes/buildllvmpass
        config.status: creating src/bintools/Compiler/tcecc
        config.status: creating tce_config.h
        config.status: tce_config.h is unchanged
        config.status: executing depfiles commands
        config.status: executing libtool commands
        ***************************************
        Found xerces-c library.
        Found boost library >= v.1.48.0
        Found sqlite3 library.
        Found latex.
        Found latex2html.
        Found wxWidgets library.
        Found tcl library >= v.8.0
        Found libedit. EditLineReader will be used as LineReader.
        Found LLVM version 11
        ***************************************

make and make install. No error report

final check

        dev@TCE-VM:~/tce/tce-1.22/tce$ ttasim --version
        ttasim - TCE Simulator command line interface 1.22-r4102
        dev@TCE-VM:~/tce/tce-1.22/tce$ tce-selftest -v
        Testing TCE installation, this can take up to two hours.
        Time to go for a lunch? Use -v to see the progress.
        test_noOpt (__main__.TestCompiler)
        Test C compilation with -O0 ... FAIL
        test_opt (__main__.TestCompiler)
        Test C compilation with -O3 ... FAIL
        test_custom_operation_from_c_code (__main__.TestCustomOps)
        Test creating a simple custom operation with simulation code and ... ok
        test_basic_plugins (__main__.TestExplorer)
        Test the ImplementationSelector and Evaluate explorer plugins (this ... ok
        test_default_plugins_found (__main__.TestExplorer)
        Check that the default Explorer plugins are listed. ... ok
        test_proge_and_pig (__main__.TestProGeAndPIG)
        Test the processor generator and the program image generator (with ... FAIL
        test_compiled_simulation (__main__.TestSimulator)
        Test the compiled engine of the simulator ... FAIL
        test_debugging_simulation (__main__.TestSimulator)
        Test the debugging engine of the simulator ... FAIL

        ======================================================================
        FAIL: test_noOpt (__main__.TestCompiler)
        Test C compilation with -O0
        ----------------------------------------------------------------------
        Traceback (most recent call last):
        File "/home/dev/local/bin/tce-selftest", line 199, in test_noOpt
            self._test_compilation("-O0 --swfp")
        File "/home/dev/local/bin/tce-selftest", line 192, in _test_compilation
            self.assertEqual(stderr, "")
        AssertionError: 'sh: 1: llvm-config: not found\nUnable to [55 chars]th\n' != ''
        - sh: 1: llvm-config: not found
        - Unable to determine llvm include dir. llvm-config not found in path

        ======================================================================
        FAIL: test_opt (__main__.TestCompiler)
        Test C compilation with -O3
        ----------------------------------------------------------------------
        Traceback (most recent call last):
        File "/home/dev/local/bin/tce-selftest", line 203, in test_opt
            self._test_compilation("-O3")
        File "/home/dev/local/bin/tce-selftest", line 192, in _test_compilation
            self.assertEqual(stderr, "")
        AssertionError: 'sh: 1: llvm-config: not found\nUnable to [55 chars]th\n' != ''
        - sh: 1: llvm-config: not found
        - Unable to determine llvm include dir. llvm-config not found in path

        ======================================================================
        FAIL: test_proge_and_pig (__main__.TestProGeAndPIG)
        Test the processor generator and the program image generator (with
        ----------------------------------------------------------------------
        Traceback (most recent call last):
        File "/home/dev/local/bin/tce-selftest", line 587, in test_proge_and_pig
            self.assertEqual(stderr, '')
        AssertionError: 'sh: 1: llvm-config: not found\nUnable to [55 chars]th\n' != ''
        - sh: 1: llvm-config: not found
        - Unable to determine llvm include dir. llvm-config not found in path

        ======================================================================
        FAIL: test_compiled_simulation (__main__.TestSimulator)
        Test the compiled engine of the simulator
        ----------------------------------------------------------------------
        Traceback (most recent call last):
        File "/home/dev/local/bin/tce-selftest", line 264, in test_compiled_simulation
            self._test_simulation("-q")
        File "/home/dev/local/bin/tce-selftest", line 254, in _test_simulation
            self.assertEqual(stdout.strip(), "Hello \nTTA World!")
        AssertionError: 'Unable to load program. Cannot find suita[60 chars]zed.' != 'Hello \nTTA World!'
        - Unable to load program. Cannot find suitable reader implementation for file.
        - Simulation not initialized.+ Hello 
        + TTA World!

        ======================================================================
        FAIL: test_debugging_simulation (__main__.TestSimulator)
        Test the debugging engine of the simulator
        ----------------------------------------------------------------------
        Traceback (most recent call last):
        File "/home/dev/local/bin/tce-selftest", line 260, in test_debugging_simulation
            self._test_simulation("")
        File "/home/dev/local/bin/tce-selftest", line 254, in _test_simulation
            self.assertEqual(stdout.strip(), "Hello \nTTA World!")
        AssertionError: 'Unable to load program. Cannot find suita[60 chars]zed.' != 'Hello \nTTA World!'
        - Unable to load program. Cannot find suitable reader implementation for file.
        - Simulation not initialized.+ Hello 
        + TTA World!

        ----------------------------------------------------------------------
        Ran 8 tests in 18.760s

        FAILED (failures=5)

Seems the LLVM installation has problem. I had tried several times but the result is the same. Are there anything I ingored?

BTW, is it possible to create a TCE docker image or VM disk? It is more easy to skip those system and installation problem.

Regards Hitanvil

pjaaskel commented 3 years ago

Thanks for reporting this major issue that was introduced very late in the release process (and was overlooked due to testers 'make install'ing LLVM without removing the old directory with an llvm-config first).

This should be now fixed in the release-1.22 branch. Please pull&re-test and reopen if it's still broken.

For the container or VM, we create a VM with TCE preinstalled occasionally, but simply don't have the time&people to do it for each release regularly.

hitanvil commented 3 years ago

Thanks a lot, Dr. Jaaskelainen. I will re-install it. It is a really good tool.

On Sun, Jan 3, 2021 at 6:36 AM Pekka Jääskeläinen notifications@github.com wrote:

Thanks for reporting this major issue that was introduced very late in the release process (and was overlooked due to testers 'make install'ing LLVM without removing the old directory with an llvm-config first).

This should be now fixed in the release_22 branch. Please pull and test and reopen if it's still broken.

For the container or VM, we create a VM with TCE preinstalled occasionally, but simply don't have the time&people to do it for each release regularly.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/cpc/tce/issues/113#issuecomment-753626845, or unsubscribe https://github.com/notifications/unsubscribe-auth/AENF3QVRP64PFFYROCNJTE3SYB6HLANCNFSM4VQRSTCA .

hitanvil commented 3 years ago

Reinstalled, it works

On Sun, Jan 3, 2021 at 6:36 AM Pekka Jääskeläinen notifications@github.com wrote:

Thanks for reporting this major issue that was introduced very late in the release process (and was overlooked due to testers 'make install'ing LLVM without removing the old directory with an llvm-config first).

This should be now fixed in the release_22 branch. Please pull and test and reopen if it's still broken.

For the container or VM, we create a VM with TCE preinstalled occasionally, but simply don't have the time&people to do it for each release regularly.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/cpc/tce/issues/113#issuecomment-753626845, or unsubscribe https://github.com/notifications/unsubscribe-auth/AENF3QVRP64PFFYROCNJTE3SYB6HLANCNFSM4VQRSTCA .

hitanvil commented 3 years ago

Hi, Dr. Pekka,

I read the paper TTA-SIMD soft core processors. It is very interesting. I'd like to know if I can replicate the work in latest TCE environment. The paper mentioned many previous work such as SIMD, AivoTTA, AXI interface etc to get this work done. I am not sure if those features already included in the latest TCE so that I can use those modules/template directly.

I am working on signal processing SW most of time but like to learn some HW knowledge also. TCE seems to be a good start point. Thanks your great help.

Regards Xuebin

On Sun, Jan 3, 2021 at 6:36 AM Pekka Jääskeläinen notifications@github.com wrote:

Thanks for reporting this major issue that was introduced very late in the release process (and was overlooked due to testers 'make install'ing LLVM without removing the old directory with an llvm-config first).

This should be now fixed in the release_22 branch. Please pull and test and reopen if it's still broken.

For the container or VM, we create a VM with TCE preinstalled occasionally, but simply don't have the time&people to do it for each release regularly.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/cpc/tce/issues/113#issuecomment-753626845, or unsubscribe https://github.com/notifications/unsubscribe-auth/AENF3QVRP64PFFYROCNJTE3SYB6HLANCNFSM4VQRSTCA .

pjaaskel commented 3 years ago

Hi Xuebin. The SIMD work described in the FPL is a work in progress and not donated to the open source repository so far. Please send me an email at pekka.jaaskelainen@tuni.fi and describe what type of project you have so we can discuss if there could be a possibility for collaboration regarding this. Thanks!

hitanvil commented 3 years ago

Thanks a lot, Dr. Pekka. I feel TCE is a good way to learn more HW as its design methodology more like an SW. I had done many VLIW and SIMD SW for signal processing but also want to know how to design those algorithms in HW. If the SIMD is not open now, I will use current TCE to learn its methodology.

Regards Xuebin

On Wed, Jan 6, 2021 at 10:33 PM Pekka Jääskeläinen notifications@github.com wrote:

Hi Xuebin. The SIMD work described in the FPL is a work in progress and not donated to the open source repository so far. Please send me an email at pekka.jaaskelainen@tuni.fi and describe what type of project you have so we can discuss if there could be a possibility for collaboration regarding this. Thanks!

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/cpc/tce/issues/113#issuecomment-755917242, or unsubscribe https://github.com/notifications/unsubscribe-auth/AENF3QUFBZ26VW6I3E2HVKLSYVIT5ANCNFSM4VQRSTCA .