arbor-sim / gui

Other
2 stars 6 forks source link

Unable to install in Ubuntu 20.04 #15

Closed lungsi closed 2 years ago

lungsi commented 2 years ago

OS: Ubuntu 20.04 cmake: 3.24

Unable to install the gui. I followed the steps for Linux (Ubuntu). That is, after

git clone --recursive https://github.com/arbor-sim/gui.git
cd gui
mkdir build
cd build

and then

sudo apt update
sudo apt install libxml2-dev libxrandr-dev libxinerama-dev \
                 libxcursor-dev libxi-dev libglu1-mesa-dev \
                 freeglut3-dev mesa-common-dev gcc-10 g++-10
sudo update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-10 10
sudo update-alternatives --install /usr/bin/g++ g++ /usr/bin/g++-10 10

when I run

cmake ..
sudo make install -j 4

I get

[ 92%] Building CXX object CMakeFiles/arbor-gui.dir/src/cell_builder.cpp.o
In file included from /home/gui/src/component.hpp:3,
                 from /home/gui/src/gui_state.hpp:11,
                 from /home/gui/src/main.cpp:1:
/home/gui/src/id.hpp:3:10: fatal error: compare: No such file or directory
    3 | #include <compare>
      |          ^~~~~~~~~
compilation terminated.
In file included from /home/gui/src/component.hpp:3,
                 from /home/gui/src/gui_state.hpp:11,
                 from /home/gui/src/gui_state.cpp:1:
/home/gui/src/id.hpp:3:10: fatal error: compare: No such file or directory
    3 | #include <compare>
      |          ^~~~~~~~~
compilation terminated.
make[2]: *** [CMakeFiles/arbor-gui.dir/build.make:76: CMakeFiles/arbor-gui.dir/src/main.cpp.o] Error 1
make[2]: *** Waiting for unfinished jobs....
make[2]: *** [CMakeFiles/arbor-gui.dir/build.make:104: CMakeFiles/arbor-gui.dir/src/gui_state.cpp.o] Error 1
In file included from /home/gui/src/window.hpp:14,
                 from /home/gui/src/window.cpp:1:
/home/gui/src/utils.hpp:20:21: warning: use of 'auto' in parameter declaration only available with '-fconcepts'
   20 | inline double to_us(auto dt) { return std::chrono::duration_cast<std::chrono::microseconds>(dt).count(); }
      |                     ^~~~
In file included from /home/gui/src/location.hpp:13,
                 from /home/gui/src/cell_builder.hpp:12,
                 from /home/gui/src/cell_builder.cpp:1:
/home/gui/src/utils.hpp:20:21: warning: use of 'auto' in parameter declaration only available with '-fconcepts'
   20 | inline double to_us(auto dt) { return std::chrono::duration_cast<std::chrono::microseconds>(dt).count(); }
      |                     ^~~~
make[1]: *** [CMakeFiles/Makefile2:653: CMakeFiles/arbor-gui.dir/all] Error 2
make: *** [Makefile:136: all] Error 2
lungsi commented 2 years ago

To avoid overcrowding the message above the full output for cmake .. command is given below

root@c7eab12b5e74:/home/gui/build# cmake ..
-- The C compiler identification is GNU 9.4.0
-- The CXX compiler identification is GNU 9.4.0
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working C compiler: /usr/bin/cc - skipped
-- Detecting C compile features
-- Detecting C compile features - done
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Check for working CXX compiler: /usr/bin/g++ - skipped
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- Could not find nvcc, please set CUDAToolkit_ROOT.
-- Found Python3: /usr/bin/python3.8 (found suitable version "3.8.10", minimum required is "3.6.0") found components: Interpreter
-- PYTHON_EXECUTABLE: /usr/bin/python3.8
-- 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 LibXml2: /usr/lib/x86_64-linux-gnu/libxml2.so (found version "2.9.10")
Catalogue name:       dummy
Catalogue mechanisms: dummy
Extra cxx files:
Catalogue sources:    /home/gui/3rd-party/arbor/test/unit/dummy
Catalogue output:     /home/gui/build/3rd-party/arbor/test/unit/generated/dummy
Build as standalone:  ON
Arbor cxx flags:      -march=native;$<$<BUILD_INTERFACE:$<COMPILE_LANGUAGE:CXX>>:-fvisibility=hidden>;$<$<BUILD_INTERFACE:$<COMPILE_LANGUAGE:CUDA>>:-Xcompiler=-fvisibility=hidden>
Arbor cxx compiler:
Script prefix:        /home/gui/3rd-party/arbor/mechanisms
Current cxx compiler: /usr/bin/g++
-- Failed to locate sphinx-build executable (missing: SPHINX_EXECUTABLE)
-- Could NOT find PY_svgwrite (missing: PY_SVGWRITE)
-- Using X11 for window creation
-- Found X11: /usr/include
-- Looking for XOpenDisplay in /usr/lib/x86_64-linux-gnu/libX11.so;/usr/lib/x86_64-linux-gnu/libXext.so
-- Looking for XOpenDisplay in /usr/lib/x86_64-linux-gnu/libX11.so;/usr/lib/x86_64-linux-gnu/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
'/usr/bin/git' '-C' '/home/gui' 'describe' '--always' '--dirty' '--abbrev=0'
-- Configuring done
-- Generating done
-- Build files have been written to: /home/gui/build
lungsi commented 2 years ago

And the complete output for make install -j 4 is

root@c7eab12b5e74:/home/gui/build# make install -j 4
[  0%] Generating _always_rebuild
[  0%] Building C object 3rd-party/glfw/src/CMakeFiles/glfw.dir/context.c.o
[  0%] Generating version.hpp-test
[  0%] Building catalogue dummy
[  0%] Building CXX object 3rd-party/arbor/modcc/CMakeFiles/libmodcc.dir/astmanip.cpp.o
[  0%] Built target dummy_catalogue_cpp_target
[  0%] Building catalogue bbp
[  0%] Built target bbp_catalogue_cpp_target
[  0%] Generating arbor/version.hpp
[  0%] Built target generate_version_hpp
[  0%] Building catalogue allen
[  0%] Building C object 3rd-party/glfw/src/CMakeFiles/glfw.dir/init.c.o
[  0%] Building catalogue default
[  0%] Built target allen_catalogue_cpp_target
[  0%] Building C object 3rd-party/glfw/src/CMakeFiles/glfw.dir/input.c.o
[  0%] Built target default_catalogue_cpp_target
[  0%] Building CXX object 3rd-party/arbor/modcc/CMakeFiles/libmodcc.dir/blocks.cpp.o
[  0%] Building C object 3rd-party/glfw/src/CMakeFiles/glfw.dir/monitor.c.o
[  0%] Building C object 3rd-party/glfw/src/CMakeFiles/glfw.dir/vulkan.c.o
[  2%] Building C object 3rd-party/glfw/src/CMakeFiles/glfw.dir/window.c.o
[  2%] Building C object 3rd-party/glfw/src/CMakeFiles/glfw.dir/x11_init.c.o
[  2%] Building C object 3rd-party/glfw/src/CMakeFiles/glfw.dir/x11_monitor.c.o
[  4%] Building CXX object 3rd-party/arbor/modcc/CMakeFiles/libmodcc.dir/errorvisitor.cpp.o
[  4%] Building C object 3rd-party/glfw/src/CMakeFiles/glfw.dir/x11_window.c.o
[  4%] Building CXX object 3rd-party/arbor/modcc/CMakeFiles/libmodcc.dir/expression.cpp.o
[  4%] Building C object 3rd-party/glfw/src/CMakeFiles/glfw.dir/xkb_unicode.c.o
[  7%] Building C object 3rd-party/glfw/src/CMakeFiles/glfw.dir/posix_time.c.o
[  7%] Building C object 3rd-party/glfw/src/CMakeFiles/glfw.dir/posix_thread.c.o
[  7%] Building C object 3rd-party/glfw/src/CMakeFiles/glfw.dir/glx_context.c.o
[  7%] Building C object 3rd-party/glfw/src/CMakeFiles/glfw.dir/egl_context.c.o
[  7%] Building C object 3rd-party/glfw/src/CMakeFiles/glfw.dir/osmesa_context.c.o
[  9%] Building C object 3rd-party/glfw/src/CMakeFiles/glfw.dir/linux_joystick.c.o
[  9%] Building CXX object 3rd-party/arbor/modcc/CMakeFiles/libmodcc.dir/functionexpander.cpp.o
[  9%] Linking C static library libglfw3.a
[  9%] Built target glfw
[ 11%] Building C object CMakeFiles/imgui.dir/3rd-party/imgui/examples/libs/gl3w/GL/gl3w.c.o
[ 11%] Building CXX object 3rd-party/arbor/modcc/CMakeFiles/libmodcc.dir/functioninliner.cpp.o
[ 11%] Building CXX object CMakeFiles/imgui.dir/3rd-party/imgui/backends/imgui_impl_opengl3.cpp.o
[ 11%] Building CXX object CMakeFiles/imgui.dir/3rd-party/imgui/backends/imgui_impl_glfw.cpp.o
[ 11%] Building CXX object CMakeFiles/imgui.dir/3rd-party/imgui/imgui.cpp.o
[ 11%] Building CXX object 3rd-party/arbor/modcc/CMakeFiles/libmodcc.dir/lexer.cpp.o
[ 14%] Building CXX object 3rd-party/arbor/modcc/CMakeFiles/libmodcc.dir/kineticrewriter.cpp.o
[ 14%] Building CXX object 3rd-party/arbor/modcc/CMakeFiles/libmodcc.dir/linearrewriter.cpp.o
[ 14%] Building CXX object 3rd-party/arbor/modcc/CMakeFiles/libmodcc.dir/module.cpp.o
[ 14%] Building CXX object 3rd-party/arbor/modcc/CMakeFiles/libmodcc.dir/parser.cpp.o
[ 14%] Building CXX object 3rd-party/arbor/modcc/CMakeFiles/libmodcc.dir/solvers.cpp.o
[ 14%] Building CXX object 3rd-party/arbor/modcc/CMakeFiles/libmodcc.dir/symdiff.cpp.o
[ 16%] Building CXX object 3rd-party/arbor/modcc/CMakeFiles/libmodcc.dir/symge.cpp.o
[ 16%] Building CXX object 3rd-party/arbor/modcc/CMakeFiles/libmodcc.dir/token.cpp.o
[ 16%] Building CXX object 3rd-party/arbor/modcc/CMakeFiles/libmodcc.dir/io/prefixbuf.cpp.o
[ 16%] Building CXX object 3rd-party/arbor/modcc/CMakeFiles/libmodcc.dir/printer/cexpr_emit.cpp.o
[ 16%] Building CXX object 3rd-party/arbor/modcc/CMakeFiles/libmodcc.dir/printer/cprinter.cpp.o
[ 16%] Building CXX object CMakeFiles/imgui.dir/3rd-party/imgui/imgui_draw.cpp.o
[ 19%] Building CXX object 3rd-party/arbor/modcc/CMakeFiles/libmodcc.dir/printer/marks.cpp.o
[ 19%] Building CXX object 3rd-party/arbor/modcc/CMakeFiles/libmodcc.dir/printer/gpuprinter.cpp.o
[ 19%] Building CXX object 3rd-party/arbor/modcc/CMakeFiles/libmodcc.dir/printer/infoprinter.cpp.o
[ 19%] Building CXX object CMakeFiles/imgui.dir/3rd-party/imgui/imgui_widgets.cpp.o
[ 21%] Building CXX object CMakeFiles/imgui.dir/3rd-party/imgui/imgui_tables.cpp.o
[ 21%] Building CXX object 3rd-party/arbor/modcc/CMakeFiles/libmodcc.dir/printer/printerutil.cpp.o
[ 21%] Building CXX object CMakeFiles/imgui.dir/3rd-party/imgui/imgui_demo.cpp.o
[ 21%] Building CXX object CMakeFiles/imgui.dir/3rd-party/imgui/misc/cpp/imgui_stdlib.cpp.o
[ 21%] Building CXX object CMakeFiles/imgui.dir/3rd-party/ImGuizmo/ImGuizmo.cpp.o
[ 21%] Building CXX object CMakeFiles/imgui.dir/3rd-party/implot/implot.cpp.o
[ 23%] Building CXX object CMakeFiles/imgui.dir/3rd-party/implot/implot_items.cpp.o
[ 23%] Linking CXX static library ../../../lib/libmodcc.a
[ 23%] Built target libmodcc
[ 23%] Building CXX object 3rd-party/arbor/modcc/CMakeFiles/modcc.dir/modcc.cpp.o
[ 23%] Linking CXX executable ../../../bin/modcc
[ 23%] Built target modcc
[ 23%] modcc generating: /home/gui/build/3rd-party/arbor/test/unit/generated/dummy/dummy.hpp;/home/gui/build/3rd-party/arbor/test/unit/generated/dummy/dummy_cpu.cpp;/home/gui/build/3rd-party/arbor/test/unit/generated/dummy/dummy_gpu.cpp;/home/gui/build/3rd-party/arbor/test/unit/generated/dummy/dummy_gpu.cu
[ 23%] modcc generating: /home/gui/build/mechanisms/generated/allen/CaDynamics.hpp;/home/gui/build/mechanisms/generated/allen/CaDynamics_cpu.cpp;/home/gui/build/mechanisms/generated/allen/CaDynamics_gpu.cpp;/home/gui/build/mechanisms/generated/allen/CaDynamics_gpu.cu
[ 23%] modcc generating: /home/gui/build/mechanisms/generated/bbp/CaDynamics_E2.hpp;/home/gui/build/mechanisms/generated/bbp/CaDynamics_E2_cpu.cpp;/home/gui/build/mechanisms/generated/bbp/CaDynamics_E2_gpu.cpp;/home/gui/build/mechanisms/generated/bbp/CaDynamics_E2_gpu.cu
[ 23%] modcc generating: /home/gui/build/mechanisms/generated/allen/Ca_HVA.hpp;/home/gui/build/mechanisms/generated/allen/Ca_HVA_cpu.cpp;/home/gui/build/mechanisms/generated/allen/Ca_HVA_gpu.cpp;/home/gui/build/mechanisms/generated/allen/Ca_HVA_gpu.cu
[ 23%] Built target build_catalogue_dummy_mods
[ 23%] modcc generating: /home/gui/build/mechanisms/generated/bbp/Ca_HVA.hpp;/home/gui/build/mechanisms/generated/bbp/Ca_HVA_cpu.cpp;/home/gui/build/mechanisms/generated/bbp/Ca_HVA_gpu.cpp;/home/gui/build/mechanisms/generated/bbp/Ca_HVA_gpu.cu
[ 26%] modcc generating: /home/gui/build/mechanisms/generated/allen/Ca_LVA.hpp;/home/gui/build/mechanisms/generated/allen/Ca_LVA_cpu.cpp;/home/gui/build/mechanisms/generated/allen/Ca_LVA_gpu.cpp;/home/gui/build/mechanisms/generated/allen/Ca_LVA_gpu.cu
[ 28%] modcc generating: /home/gui/build/mechanisms/generated/bbp/Ca_LVAst.hpp;/home/gui/build/mechanisms/generated/bbp/Ca_LVAst_cpu.cpp;/home/gui/build/mechanisms/generated/bbp/Ca_LVAst_gpu.cpp;/home/gui/build/mechanisms/generated/bbp/Ca_LVAst_gpu.cu
[ 28%] modcc generating: /home/gui/build/mechanisms/generated/default/exp2syn.hpp;/home/gui/build/mechanisms/generated/default/exp2syn_cpu.cpp;/home/gui/build/mechanisms/generated/default/exp2syn_gpu.cpp;/home/gui/build/mechanisms/generated/default/exp2syn_gpu.cu
[ 28%] modcc generating: /home/gui/build/mechanisms/generated/allen/Ih.hpp;/home/gui/build/mechanisms/generated/allen/Ih_cpu.cpp;/home/gui/build/mechanisms/generated/allen/Ih_gpu.cpp;/home/gui/build/mechanisms/generated/allen/Ih_gpu.cu
[ 28%] modcc generating: /home/gui/build/mechanisms/generated/bbp/Ih.hpp;/home/gui/build/mechanisms/generated/bbp/Ih_cpu.cpp;/home/gui/build/mechanisms/generated/bbp/Ih_gpu.cpp;/home/gui/build/mechanisms/generated/bbp/Ih_gpu.cu
[ 30%] modcc generating: /home/gui/build/mechanisms/generated/default/expsyn.hpp;/home/gui/build/mechanisms/generated/default/expsyn_cpu.cpp;/home/gui/build/mechanisms/generated/default/expsyn_gpu.cpp;/home/gui/build/mechanisms/generated/default/expsyn_gpu.cu
[ 30%] modcc generating: /home/gui/build/mechanisms/generated/allen/Im.hpp;/home/gui/build/mechanisms/generated/allen/Im_cpu.cpp;/home/gui/build/mechanisms/generated/allen/Im_gpu.cpp;/home/gui/build/mechanisms/generated/allen/Im_gpu.cu
[ 30%] modcc generating: /home/gui/build/mechanisms/generated/bbp/Im.hpp;/home/gui/build/mechanisms/generated/bbp/Im_cpu.cpp;/home/gui/build/mechanisms/generated/bbp/Im_gpu.cpp;/home/gui/build/mechanisms/generated/bbp/Im_gpu.cu
[ 30%] modcc generating: /home/gui/build/mechanisms/generated/default/expsyn_stdp.hpp;/home/gui/build/mechanisms/generated/default/expsyn_stdp_cpu.cpp;/home/gui/build/mechanisms/generated/default/expsyn_stdp_gpu.cpp;/home/gui/build/mechanisms/generated/default/expsyn_stdp_gpu.cu
[ 30%] modcc generating: /home/gui/build/mechanisms/generated/allen/Im_v2.hpp;/home/gui/build/mechanisms/generated/allen/Im_v2_cpu.cpp;/home/gui/build/mechanisms/generated/allen/Im_v2_gpu.cpp;/home/gui/build/mechanisms/generated/allen/Im_v2_gpu.cu
[ 30%] modcc generating: /home/gui/build/mechanisms/generated/bbp/K_Pst.hpp;/home/gui/build/mechanisms/generated/bbp/K_Pst_cpu.cpp;/home/gui/build/mechanisms/generated/bbp/K_Pst_gpu.cpp;/home/gui/build/mechanisms/generated/bbp/K_Pst_gpu.cu
[ 30%] modcc generating: /home/gui/build/mechanisms/generated/default/hh.hpp;/home/gui/build/mechanisms/generated/default/hh_cpu.cpp;/home/gui/build/mechanisms/generated/default/hh_gpu.cpp;/home/gui/build/mechanisms/generated/default/hh_gpu.cu
[ 30%] modcc generating: /home/gui/build/mechanisms/generated/bbp/K_Tst.hpp;/home/gui/build/mechanisms/generated/bbp/K_Tst_cpu.cpp;/home/gui/build/mechanisms/generated/bbp/K_Tst_gpu.cpp;/home/gui/build/mechanisms/generated/bbp/K_Tst_gpu.cu
[ 30%] modcc generating: /home/gui/build/mechanisms/generated/allen/K_P.hpp;/home/gui/build/mechanisms/generated/allen/K_P_cpu.cpp;/home/gui/build/mechanisms/generated/allen/K_P_gpu.cpp;/home/gui/build/mechanisms/generated/allen/K_P_gpu.cu
[ 30%] modcc generating: /home/gui/build/mechanisms/generated/default/kamt.hpp;/home/gui/build/mechanisms/generated/default/kamt_cpu.cpp;/home/gui/build/mechanisms/generated/default/kamt_gpu.cpp;/home/gui/build/mechanisms/generated/default/kamt_gpu.cu
[ 30%] modcc generating: /home/gui/build/mechanisms/generated/allen/K_T.hpp;/home/gui/build/mechanisms/generated/allen/K_T_cpu.cpp;/home/gui/build/mechanisms/generated/allen/K_T_gpu.cpp;/home/gui/build/mechanisms/generated/allen/K_T_gpu.cu
[ 30%] modcc generating: /home/gui/build/mechanisms/generated/bbp/Nap_Et2.hpp;/home/gui/build/mechanisms/generated/bbp/Nap_Et2_cpu.cpp;/home/gui/build/mechanisms/generated/bbp/Nap_Et2_gpu.cpp;/home/gui/build/mechanisms/generated/bbp/Nap_Et2_gpu.cu
[ 33%] modcc generating: /home/gui/build/mechanisms/generated/default/kdrmt.hpp;/home/gui/build/mechanisms/generated/default/kdrmt_cpu.cpp;/home/gui/build/mechanisms/generated/default/kdrmt_gpu.cpp;/home/gui/build/mechanisms/generated/default/kdrmt_gpu.cu
[ 35%] modcc generating: /home/gui/build/mechanisms/generated/allen/Kd.hpp;/home/gui/build/mechanisms/generated/allen/Kd_cpu.cpp;/home/gui/build/mechanisms/generated/allen/Kd_gpu.cpp;/home/gui/build/mechanisms/generated/allen/Kd_gpu.cu
[ 35%] modcc generating: /home/gui/build/mechanisms/generated/default/nax.hpp;/home/gui/build/mechanisms/generated/default/nax_cpu.cpp;/home/gui/build/mechanisms/generated/default/nax_gpu.cpp;/home/gui/build/mechanisms/generated/default/nax_gpu.cu
[ 35%] modcc generating: /home/gui/build/mechanisms/generated/allen/Kv2like.hpp;/home/gui/build/mechanisms/generated/allen/Kv2like_cpu.cpp;/home/gui/build/mechanisms/generated/allen/Kv2like_gpu.cpp;/home/gui/build/mechanisms/generated/allen/Kv2like_gpu.cu
[ 35%] modcc generating: /home/gui/build/mechanisms/generated/default/nernst.hpp;/home/gui/build/mechanisms/generated/default/nernst_cpu.cpp;/home/gui/build/mechanisms/generated/default/nernst_gpu.cpp;/home/gui/build/mechanisms/generated/default/nernst_gpu.cu
[ 38%] modcc generating: /home/gui/build/mechanisms/generated/bbp/NaTa_t.hpp;/home/gui/build/mechanisms/generated/bbp/NaTa_t_cpu.cpp;/home/gui/build/mechanisms/generated/bbp/NaTa_t_gpu.cpp;/home/gui/build/mechanisms/generated/bbp/NaTa_t_gpu.cu
[ 38%] modcc generating: /home/gui/build/mechanisms/generated/default/pas.hpp;/home/gui/build/mechanisms/generated/default/pas_cpu.cpp;/home/gui/build/mechanisms/generated/default/pas_gpu.cpp;/home/gui/build/mechanisms/generated/default/pas_gpu.cu
[ 38%] modcc generating: /home/gui/build/mechanisms/generated/allen/Kv3_1.hpp;/home/gui/build/mechanisms/generated/allen/Kv3_1_cpu.cpp;/home/gui/build/mechanisms/generated/allen/Kv3_1_gpu.cpp;/home/gui/build/mechanisms/generated/allen/Kv3_1_gpu.cu
[ 38%] modcc generating: /home/gui/build/mechanisms/generated/bbp/NaTs2_t.hpp;/home/gui/build/mechanisms/generated/bbp/NaTs2_t_cpu.cpp;/home/gui/build/mechanisms/generated/bbp/NaTs2_t_gpu.cpp;/home/gui/build/mechanisms/generated/bbp/NaTs2_t_gpu.cu
[ 38%] modcc generating: /home/gui/build/mechanisms/generated/allen/NaTa.hpp;/home/gui/build/mechanisms/generated/allen/NaTa_cpu.cpp;/home/gui/build/mechanisms/generated/allen/NaTa_gpu.cpp;/home/gui/build/mechanisms/generated/allen/NaTa_gpu.cu
[ 38%] modcc generating: /home/gui/build/mechanisms/generated/bbp/SK_E2.hpp;/home/gui/build/mechanisms/generated/bbp/SK_E2_cpu.cpp;/home/gui/build/mechanisms/generated/bbp/SK_E2_gpu.cpp;/home/gui/build/mechanisms/generated/bbp/SK_E2_gpu.cu
[ 38%] modcc generating: /home/gui/build/mechanisms/generated/default/gj.hpp;/home/gui/build/mechanisms/generated/default/gj_cpu.cpp;/home/gui/build/mechanisms/generated/default/gj_gpu.cpp;/home/gui/build/mechanisms/generated/default/gj_gpu.cu
[ 38%] modcc generating: /home/gui/build/mechanisms/generated/bbp/SKv3_1.hpp;/home/gui/build/mechanisms/generated/bbp/SKv3_1_cpu.cpp;/home/gui/build/mechanisms/generated/bbp/SKv3_1_gpu.cpp;/home/gui/build/mechanisms/generated/bbp/SKv3_1_gpu.cu
[ 38%] modcc generating: /home/gui/build/mechanisms/generated/allen/NaTs.hpp;/home/gui/build/mechanisms/generated/allen/NaTs_cpu.cpp;/home/gui/build/mechanisms/generated/allen/NaTs_gpu.cpp;/home/gui/build/mechanisms/generated/allen/NaTs_gpu.cu
[ 40%] modcc generating: /home/gui/build/mechanisms/generated/allen/NaV.hpp;/home/gui/build/mechanisms/generated/allen/NaV_cpu.cpp;/home/gui/build/mechanisms/generated/allen/NaV_gpu.cpp;/home/gui/build/mechanisms/generated/allen/NaV_gpu.cu
[ 40%] modcc generating: /home/gui/build/mechanisms/generated/allen/Nap.hpp;/home/gui/build/mechanisms/generated/allen/Nap_cpu.cpp;/home/gui/build/mechanisms/generated/allen/Nap_gpu.cpp;/home/gui/build/mechanisms/generated/allen/Nap_gpu.cu
[ 40%] Built target build_catalogue_default_mods
[ 40%] modcc generating: /home/gui/build/mechanisms/generated/allen/SK.hpp;/home/gui/build/mechanisms/generated/allen/SK_cpu.cpp;/home/gui/build/mechanisms/generated/allen/SK_gpu.cpp;/home/gui/build/mechanisms/generated/allen/SK_gpu.cu
[ 40%] Built target build_catalogue_bbp_mods
[ 40%] Built target build_catalogue_allen_mods
[ 40%] Built target build_all_mods
[ 40%] Building CXX object 3rd-party/arbor/arbor/CMakeFiles/arbor.dir/arbexcept.cpp.o
[ 40%] Building CXX object 3rd-party/arbor/arbor/CMakeFiles/arbor.dir/assert.cpp.o
[ 42%] Building CXX object 3rd-party/arbor/arbor/CMakeFiles/arbor.dir/backends/multicore/shared_state.cpp.o
[ 42%] Building CXX object 3rd-party/arbor/arbor/CMakeFiles/arbor.dir/communication/communicator.cpp.o
[ 42%] Building CXX object 3rd-party/arbor/arbor/CMakeFiles/arbor.dir/communication/dry_run_context.cpp.o
[ 42%] Building CXX object 3rd-party/arbor/arbor/CMakeFiles/arbor.dir/benchmark_cell_group.cpp.o
[ 42%] Building CXX object 3rd-party/arbor/arbor/CMakeFiles/arbor.dir/cable_cell.cpp.o
[ 45%] Building CXX object 3rd-party/arbor/arbor/CMakeFiles/arbor.dir/cable_cell_param.cpp.o
[ 45%] Building CXX object 3rd-party/arbor/arbor/CMakeFiles/arbor.dir/cell_group_factory.cpp.o
[ 45%] Building CXX object 3rd-party/arbor/arbor/CMakeFiles/arbor.dir/common_types_io.cpp.o
[ 45%] Building CXX object 3rd-party/arbor/arbor/CMakeFiles/arbor.dir/cv_policy.cpp.o
[ 45%] Building CXX object 3rd-party/arbor/arbor/CMakeFiles/arbor.dir/domdecexcept.cpp.o
[ 47%] Building CXX object 3rd-party/arbor/arbor/CMakeFiles/arbor.dir/domain_decomposition.cpp.o
[ 47%] Building CXX object 3rd-party/arbor/arbor/CMakeFiles/arbor.dir/execution_context.cpp.o
[ 47%] Building CXX object 3rd-party/arbor/arbor/CMakeFiles/arbor.dir/gpu_context.cpp.o
[ 47%] Building CXX object 3rd-party/arbor/arbor/CMakeFiles/arbor.dir/event_binner.cpp.o
[ 47%] Building CXX object 3rd-party/arbor/arbor/CMakeFiles/arbor.dir/fvm_layout.cpp.o
[ 50%] Building CXX object 3rd-party/arbor/arbor/CMakeFiles/arbor.dir/fvm_lowered_cell_impl.cpp.o
[ 50%] Building CXX object 3rd-party/arbor/arbor/CMakeFiles/arbor.dir/hardware/memory.cpp.o
[ 50%] Building CXX object 3rd-party/arbor/arbor/CMakeFiles/arbor.dir/hardware/power.cpp.o
[ 50%] Building CXX object 3rd-party/arbor/arbor/CMakeFiles/arbor.dir/io/locked_ostream.cpp.o
[ 50%] Building CXX object 3rd-party/arbor/arbor/CMakeFiles/arbor.dir/io/serialize_hex.cpp.o
[ 50%] Building CXX object 3rd-party/arbor/arbor/CMakeFiles/arbor.dir/label_resolution.cpp.o
[ 52%] Building CXX object 3rd-party/arbor/arbor/CMakeFiles/arbor.dir/lif_cell_group.cpp.o
[ 52%] Building CXX object 3rd-party/arbor/arbor/CMakeFiles/arbor.dir/mc_cell_group.cpp.o
[ 52%] Building CXX object 3rd-party/arbor/arbor/CMakeFiles/arbor.dir/mechcat.cpp.o
[ 52%] Building CXX object 3rd-party/arbor/arbor/CMakeFiles/arbor.dir/mechinfo.cpp.o
[ 52%] Building CXX object 3rd-party/arbor/arbor/CMakeFiles/arbor.dir/memory/gpu_wrappers.cpp.o
[ 54%] Building CXX object 3rd-party/arbor/arbor/CMakeFiles/arbor.dir/memory/util.cpp.o
[ 54%] Building CXX object 3rd-party/arbor/arbor/CMakeFiles/arbor.dir/morph/cv_data.cpp.o
[ 54%] Building CXX object 3rd-party/arbor/arbor/CMakeFiles/arbor.dir/morph/embed_pwlin.cpp.o
[ 54%] Building CXX object 3rd-party/arbor/arbor/CMakeFiles/arbor.dir/morph/label_dict.cpp.o
[ 54%] Building CXX object 3rd-party/arbor/arbor/CMakeFiles/arbor.dir/morph/locset.cpp.o
[ 57%] Building CXX object 3rd-party/arbor/arbor/CMakeFiles/arbor.dir/morph/morphexcept.cpp.o
[ 57%] Building CXX object 3rd-party/arbor/arbor/CMakeFiles/arbor.dir/morph/morphology.cpp.o
[ 57%] Building CXX object 3rd-party/arbor/arbor/CMakeFiles/arbor.dir/morph/mprovider.cpp.o
[ 57%] Building CXX object 3rd-party/arbor/arbor/CMakeFiles/arbor.dir/morph/place_pwlin.cpp.o
[ 57%] Building CXX object 3rd-party/arbor/arbor/CMakeFiles/arbor.dir/morph/primitives.cpp.o
[ 59%] Building CXX object 3rd-party/arbor/arbor/CMakeFiles/arbor.dir/morph/region.cpp.o
[ 59%] Building CXX object 3rd-party/arbor/arbor/CMakeFiles/arbor.dir/morph/segment_tree.cpp.o
[ 59%] Building CXX object 3rd-party/arbor/arbor/CMakeFiles/arbor.dir/morph/stitch.cpp.o
[ 59%] Building CXX object 3rd-party/arbor/arbor/CMakeFiles/arbor.dir/merge_events.cpp.o
[ 59%] Building CXX object 3rd-party/arbor/arbor/CMakeFiles/arbor.dir/simulation.cpp.o
[ 59%] Building CXX object 3rd-party/arbor/arbor/CMakeFiles/arbor.dir/partition_load_balance.cpp.o
[ 61%] Building CXX object 3rd-party/arbor/arbor/CMakeFiles/arbor.dir/profile/clock.cpp.o
[ 61%] Building CXX object 3rd-party/arbor/arbor/CMakeFiles/arbor.dir/profile/memory_meter.cpp.o
[ 61%] Building CXX object 3rd-party/arbor/arbor/CMakeFiles/arbor.dir/profile/meter_manager.cpp.o
[ 61%] Building CXX object 3rd-party/arbor/arbor/CMakeFiles/arbor.dir/profile/power_meter.cpp.o
[ 61%] Building CXX object 3rd-party/arbor/arbor/CMakeFiles/arbor.dir/profile/profiler.cpp.o
[ 64%] Building CXX object 3rd-party/arbor/arbor/CMakeFiles/arbor.dir/schedule.cpp.o
[ 64%] Building CXX object 3rd-party/arbor/arbor/CMakeFiles/arbor.dir/spike_event_io.cpp.o
[ 64%] Building CXX object 3rd-party/arbor/arbor/CMakeFiles/arbor.dir/spike_source_cell_group.cpp.o
[ 64%] Building CXX object 3rd-party/arbor/arbor/CMakeFiles/arbor.dir/s_expr.cpp.o
[ 64%] Building CXX object 3rd-party/arbor/arbor/CMakeFiles/arbor.dir/symmetric_recipe.cpp.o
[ 66%] Building CXX object 3rd-party/arbor/arbor/CMakeFiles/arbor.dir/threading/threading.cpp.o
[ 66%] Building CXX object 3rd-party/arbor/arbor/CMakeFiles/arbor.dir/thread_private_spike_store.cpp.o
[ 66%] Building CXX object 3rd-party/arbor/arbor/CMakeFiles/arbor.dir/tree.cpp.o
[ 66%] Building CXX object 3rd-party/arbor/arbor/CMakeFiles/arbor.dir/util/dylib.cpp.o
[ 66%] Building CXX object 3rd-party/arbor/arbor/CMakeFiles/arbor.dir/util/hostname.cpp.o
[ 69%] Building CXX object 3rd-party/arbor/arbor/CMakeFiles/arbor.dir/util/unwind.cpp.o
[ 69%] Building CXX object 3rd-party/arbor/arbor/CMakeFiles/arbor.dir/version.cpp.o
[ 69%] Building CXX object 3rd-party/arbor/arbor/CMakeFiles/arbor.dir/__/__/__/mechanisms/bbp_catalogue.cpp.o
[ 69%] Building CXX object 3rd-party/arbor/arbor/CMakeFiles/arbor.dir/__/__/__/mechanisms/generated/bbp/CaDynamics_E2_cpu.cpp.o
[ 69%] Building CXX object 3rd-party/arbor/arbor/CMakeFiles/arbor.dir/__/__/__/mechanisms/generated/bbp/Ca_HVA_cpu.cpp.o
[ 69%] Building CXX object 3rd-party/arbor/arbor/CMakeFiles/arbor.dir/__/__/__/mechanisms/generated/bbp/Ca_LVAst_cpu.cpp.o
[ 71%] Building CXX object 3rd-party/arbor/arbor/CMakeFiles/arbor.dir/__/__/__/mechanisms/generated/bbp/Ih_cpu.cpp.o
[ 71%] Building CXX object 3rd-party/arbor/arbor/CMakeFiles/arbor.dir/__/__/__/mechanisms/generated/bbp/Im_cpu.cpp.o
[ 71%] Building CXX object 3rd-party/arbor/arbor/CMakeFiles/arbor.dir/__/__/__/mechanisms/generated/bbp/K_Pst_cpu.cpp.o
[ 71%] Building CXX object 3rd-party/arbor/arbor/CMakeFiles/arbor.dir/__/__/__/mechanisms/generated/bbp/K_Tst_cpu.cpp.o
[ 71%] Building CXX object 3rd-party/arbor/arbor/CMakeFiles/arbor.dir/__/__/__/mechanisms/generated/bbp/Nap_Et2_cpu.cpp.o
[ 73%] Building CXX object 3rd-party/arbor/arbor/CMakeFiles/arbor.dir/__/__/__/mechanisms/generated/bbp/NaTa_t_cpu.cpp.o
[ 73%] Building CXX object 3rd-party/arbor/arbor/CMakeFiles/arbor.dir/__/__/__/mechanisms/generated/bbp/NaTs2_t_cpu.cpp.o
[ 73%] Built target imgui
[ 73%] Building CXX object 3rd-party/arbor/arbor/CMakeFiles/arbor.dir/__/__/__/mechanisms/generated/bbp/SK_E2_cpu.cpp.o
[ 73%] Building CXX object 3rd-party/arbor/arbor/CMakeFiles/arbor.dir/__/__/__/mechanisms/generated/bbp/SKv3_1_cpu.cpp.o
[ 73%] Building CXX object 3rd-party/arbor/arbor/CMakeFiles/arbor.dir/__/__/__/mechanisms/allen_catalogue.cpp.o
[ 76%] Building CXX object 3rd-party/arbor/arbor/CMakeFiles/arbor.dir/__/__/__/mechanisms/generated/allen/CaDynamics_cpu.cpp.o
[ 76%] Building CXX object 3rd-party/arbor/arbor/CMakeFiles/arbor.dir/__/__/__/mechanisms/generated/allen/Ca_HVA_cpu.cpp.o
[ 76%] Building CXX object 3rd-party/arbor/arbor/CMakeFiles/arbor.dir/__/__/__/mechanisms/generated/allen/Ca_LVA_cpu.cpp.o
[ 76%] Building CXX object 3rd-party/arbor/arbor/CMakeFiles/arbor.dir/__/__/__/mechanisms/generated/allen/Ih_cpu.cpp.o
[ 76%] Building CXX object 3rd-party/arbor/arbor/CMakeFiles/arbor.dir/__/__/__/mechanisms/generated/allen/Im_cpu.cpp.o
[ 78%] Building CXX object 3rd-party/arbor/arbor/CMakeFiles/arbor.dir/__/__/__/mechanisms/generated/allen/Im_v2_cpu.cpp.o
[ 78%] Building CXX object 3rd-party/arbor/arbor/CMakeFiles/arbor.dir/__/__/__/mechanisms/generated/allen/K_P_cpu.cpp.o
[ 78%] Building CXX object 3rd-party/arbor/arbor/CMakeFiles/arbor.dir/__/__/__/mechanisms/generated/allen/K_T_cpu.cpp.o
[ 78%] Building CXX object 3rd-party/arbor/arbor/CMakeFiles/arbor.dir/__/__/__/mechanisms/generated/allen/Kd_cpu.cpp.o
[ 78%] Building CXX object 3rd-party/arbor/arbor/CMakeFiles/arbor.dir/__/__/__/mechanisms/generated/allen/Kv2like_cpu.cpp.o
[ 78%] Building CXX object 3rd-party/arbor/arbor/CMakeFiles/arbor.dir/__/__/__/mechanisms/generated/allen/Kv3_1_cpu.cpp.o
[ 80%] Building CXX object 3rd-party/arbor/arbor/CMakeFiles/arbor.dir/__/__/__/mechanisms/generated/allen/NaTa_cpu.cpp.o
[ 80%] Building CXX object 3rd-party/arbor/arbor/CMakeFiles/arbor.dir/__/__/__/mechanisms/generated/allen/NaTs_cpu.cpp.o
[ 80%] Building CXX object 3rd-party/arbor/arbor/CMakeFiles/arbor.dir/__/__/__/mechanisms/generated/allen/NaV_cpu.cpp.o
[ 80%] Building CXX object 3rd-party/arbor/arbor/CMakeFiles/arbor.dir/__/__/__/mechanisms/generated/allen/Nap_cpu.cpp.o
[ 80%] Building CXX object 3rd-party/arbor/arbor/CMakeFiles/arbor.dir/__/__/__/mechanisms/generated/allen/SK_cpu.cpp.o
[ 83%] Building CXX object 3rd-party/arbor/arbor/CMakeFiles/arbor.dir/__/__/__/mechanisms/default_catalogue.cpp.o
[ 83%] Building CXX object 3rd-party/arbor/arbor/CMakeFiles/arbor.dir/__/__/__/mechanisms/generated/default/exp2syn_cpu.cpp.o
[ 83%] Building CXX object 3rd-party/arbor/arbor/CMakeFiles/arbor.dir/__/__/__/mechanisms/generated/default/expsyn_cpu.cpp.o
[ 83%] Building CXX object 3rd-party/arbor/arbor/CMakeFiles/arbor.dir/__/__/__/mechanisms/generated/default/expsyn_stdp_cpu.cpp.o
[ 83%] Building CXX object 3rd-party/arbor/arbor/CMakeFiles/arbor.dir/__/__/__/mechanisms/generated/default/hh_cpu.cpp.o
[ 85%] Building CXX object 3rd-party/arbor/arbor/CMakeFiles/arbor.dir/__/__/__/mechanisms/generated/default/kamt_cpu.cpp.o
[ 85%] Building CXX object 3rd-party/arbor/arbor/CMakeFiles/arbor.dir/__/__/__/mechanisms/generated/default/kdrmt_cpu.cpp.o
[ 85%] Building CXX object 3rd-party/arbor/arbor/CMakeFiles/arbor.dir/__/__/__/mechanisms/generated/default/nax_cpu.cpp.o
[ 85%] Building CXX object 3rd-party/arbor/arbor/CMakeFiles/arbor.dir/__/__/__/mechanisms/generated/default/nernst_cpu.cpp.o
[ 85%] Building CXX object 3rd-party/arbor/arbor/CMakeFiles/arbor.dir/__/__/__/mechanisms/generated/default/pas_cpu.cpp.o
[ 88%] Building CXX object 3rd-party/arbor/arbor/CMakeFiles/arbor.dir/__/__/__/mechanisms/generated/default/gj_cpu.cpp.o
[ 88%] Linking CXX static library ../../../lib/libarbor.a
[ 88%] Built target arbor
[ 88%] Building CXX object 3rd-party/arbor/arborio/CMakeFiles/arborio.dir/asc_lexer.cpp.o
[ 90%] Building CXX object 3rd-party/arbor/arborio/CMakeFiles/arborio.dir/cableio.cpp.o
[ 90%] Building CXX object 3rd-party/arbor/arborio/CMakeFiles/arborio.dir/neurolucida.cpp.o
[ 90%] Building CXX object 3rd-party/arbor/arborio/CMakeFiles/arborio.dir/swcio.cpp.o
[ 90%] Building CXX object 3rd-party/arbor/arborio/CMakeFiles/arborio.dir/cv_policy_parse.cpp.o
[ 90%] Building CXX object 3rd-party/arbor/arborio/CMakeFiles/arborio.dir/label_parse.cpp.o
[ 90%] Building CXX object 3rd-party/arbor/arborio/CMakeFiles/arborio.dir/neuroml.cpp.o
[ 90%] Building CXX object 3rd-party/arbor/arborio/CMakeFiles/arborio.dir/nml_parse_morphology.cpp.o
[ 92%] Building CXX object 3rd-party/arbor/arborio/CMakeFiles/arborio.dir/xml.cpp.o
[ 92%] Building CXX object 3rd-party/arbor/arborio/CMakeFiles/arborio.dir/xmlwrap.cpp.o
[ 92%] Linking CXX static library ../../../lib/libarborio.a
[ 92%] Built target arborio
[ 92%] Building CXX object CMakeFiles/arbor-gui.dir/src/main.cpp.o
[ 92%] Building CXX object CMakeFiles/arbor-gui.dir/src/gui_state.cpp.o
[ 92%] Building CXX object CMakeFiles/arbor-gui.dir/src/window.cpp.o
[ 92%] Building CXX object CMakeFiles/arbor-gui.dir/src/cell_builder.cpp.o
In file included from /home/gui/src/component.hpp:3,
                 from /home/gui/src/gui_state.hpp:11,
                 from /home/gui/src/main.cpp:1:
/home/gui/src/id.hpp:3:10: fatal error: compare: No such file or directory
    3 | #include <compare>
      |          ^~~~~~~~~
compilation terminated.
In file included from /home/gui/src/component.hpp:3,
                 from /home/gui/src/gui_state.hpp:11,
                 from /home/gui/src/gui_state.cpp:1:
/home/gui/src/id.hpp:3:10: fatal error: compare: No such file or directory
    3 | #include <compare>
      |          ^~~~~~~~~
compilation terminated.
make[2]: *** [CMakeFiles/arbor-gui.dir/build.make:76: CMakeFiles/arbor-gui.dir/src/main.cpp.o] Error 1
make[2]: *** Waiting for unfinished jobs....
make[2]: *** [CMakeFiles/arbor-gui.dir/build.make:104: CMakeFiles/arbor-gui.dir/src/gui_state.cpp.o] Error 1
In file included from /home/gui/src/window.hpp:14,
                 from /home/gui/src/window.cpp:1:
/home/gui/src/utils.hpp:20:21: warning: use of 'auto' in parameter declaration only available with '-fconcepts'
   20 | inline double to_us(auto dt) { return std::chrono::duration_cast<std::chrono::microseconds>(dt).count(); }
      |                     ^~~~
In file included from /home/gui/src/location.hpp:13,
                 from /home/gui/src/cell_builder.hpp:12,
                 from /home/gui/src/cell_builder.cpp:1:
/home/gui/src/utils.hpp:20:21: warning: use of 'auto' in parameter declaration only available with '-fconcepts'
   20 | inline double to_us(auto dt) { return std::chrono::duration_cast<std::chrono::microseconds>(dt).count(); }
      |                     ^~~~
make[1]: *** [CMakeFiles/Makefile2:653: CMakeFiles/arbor-gui.dir/all] Error 2
make: *** [Makefile:136: all] Error 2
root@c7eab12b5e74:/home/gui/build#
thorstenhater commented 2 years ago

That looks like a compiler not yet on C++20 (which we use). Could you try bumping GCC to a later version and recompile?

lungsi commented 2 years ago

@thorstenhater Thanks! upgrading gcc appears to have installed the gui without errors.

For posteriority let me mention what I did

sudo apt update
sudo apt install -y software-properties-common
sudo add-apt-repository -y ppa:ubuntu-toolchain-r/test
sudo apt install -y gcc-11 g++-11

then

sudo update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-11 11
sudo update-alternatives --install /usr/bin/g++ g++ /usr/bin/g++-11 11

and repeat in the above build/ directory the commands

cmake ..
sudo make install -j 4
lungsi commented 2 years ago

PS: For the sake of completion I should say that in my experience I could not run cmake .. because it needed cmake >= 3.18 and since Ubuntu 20.04 comes with an older version I installed the latest version (for me it was 3.24). This was done as follows

wget https://github.com/Kitware/CMake/releases/download/v3.24.0-rc1/cmake-3.24.0-rc1.tar.gz
tar zxvf cmake-3.24.0-rc1.tar.gz
cd cmake-3.24.0-rc1

then you may install it with the command ./bootstrap && make && make install but for me I had to

./bootstrap -- -DCMAKE_USE_OPENSSL=OFF
make
make install

Then cd .. && cd gui/build and

cmake ..
sudo make install -j 4
thorstenhater commented 2 years ago

Good to hear that it worked out relatively painless in the end. I'll add these requirements to the README for future travelers. Out of interest, did the binary package not work for you?

thorstenhater commented 2 years ago

Looking back at your log, it seems GCC 10 was not selected.

root@c7eab12b5e74:/home/gui/build# cmake ..
-- The C compiler identification is GNU 9.4.0
-- The CXX compiler identification is GNU 9.4.0
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working C compiler: /usr/bin/cc -