building error

98 views
Skip to first unread message

Ku Kevin

unread,
Aug 11, 2021, 12:12:31 PM8/11/21
to gem5-gpu Developers List
Hi all

I am a newbie in gem5-gpu, I trying to build the simulator wtih MESI_Two_Level
but  I got the error message

root@397c4524d2c5:/# cd /home/gem5-gpu/gem5
root@397c4524d2c5:/home/gem5-gpu/gem5# scons build/X86_MESI_Two_Leve_GPU/gem5.opt --default=X86 EXTRAS=../gem5-gpu/src:../gpgpu-sim/ PROTOCOL=MESI_Two_Level GPGPU_SIM=True
scons: Reading SConscript files ...
Checking for C header file Python.h... (cached) yes
Checking for C library pthread... (cached) yes
Checking for C library dl... (cached) yes
Checking for C library util... (cached) yes
Checking for C library m... (cached) yes
Checking for C library python2.7... (cached) yes
Checking for accept(0,0,0) in C++ library None... (cached) yes
Checking for zlibVersion() in C++ library z... (cached) yes
Checking for GOOGLE_PROTOBUF_VERIFY_VERSION in C++ library protobuf... (cached) yes
Checking for clock_nanosleep(0,0,NULL,NULL) in C library None... (cached) yes
Checking for timer_create(CLOCK_MONOTONIC, NULL, NULL) in C library None... (cached) no
Checking for timer_create(CLOCK_MONOTONIC, NULL, NULL) in C library rt... (cached) yes
Checking for C library tcmalloc... (cached) no
Checking for C library tcmalloc_minimal... (cached) no
You can get a 12% performance improvement by installing tcmalloc (libgoogle-perftools-dev package on Ubuntu or RedHat).
Checking for C header file fenv.h... (cached) yes
Checking for C header file linux/kvm.h... (cached) yes
Checking size of struct kvm_xsave ... (cached) yes
Checking for member exclude_host in struct perf_event_attr...(cached) yes
Building in /home/gem5-gpu/gem5/build/X86_MESI_Two_Leve_GPU
Using saved variables file /home/gem5-gpu/gem5/build/variables/X86_MESI_Two_Leve_GPU
scons: done reading SConscript files.
scons: Building targets ...
 [NEW DEPS] X86_MESI_Two_Leve_GPU/arch/x86/generated/inc.d -> x86-mesi-two-leve-gpu-deps
 [ENVIRONS] x86-mesi-two-leve-gpu-deps -> x86-mesi-two-leve-gpu-environs
 [    LINK]  -> X86_MESI_Two_Leve_GPU/gem5.opt
build/X86_MESI_Two_Leve_GPU/gpgpu-sim/cuda-sim/ptx_loader.o: In function `gpgpu_ptx_sim_load_ptx_from_string(char const*, unsigned int)':
/home/gem5-gpu/gem5/build/X86_MESI_Two_Leve_GPU/gpgpu-sim/cuda-sim/ptx_loader.cc:163: undefined reference to `ptx__scan_string'
/home/gem5-gpu/gem5/build/X86_MESI_Two_Leve_GPU/gpgpu-sim/cuda-sim/ptx_loader.cc:164: undefined reference to `ptx_parse'
build/X86_MESI_Two_Leve_GPU/gpgpu-sim/cuda-sim/ptx_loader.o: In function `gpgpu_ptxinfo_load_from_string(char const*, unsigned int)':
/home/gem5-gpu/gem5/build/X86_MESI_Two_Leve_GPU/gpgpu-sim/cuda-sim/ptx_loader.cc:234: undefined reference to `ptxinfo_parse'
build/X86_MESI_Two_Leve_GPU/gpgpu-sim/cuda-sim/ptx_parser.o: In function `parse_error_impl(char const*, unsigned int, char const*, ...)':
/home/gem5-gpu/gem5/build/X86_MESI_Two_Leve_GPU/gpgpu-sim/cuda-sim/ptx_parser.cc:231: undefined reference to `ptx_error'
build/X86_MESI_Two_Leve_GPU/gpgpu-sim/intersim2/config_utils.o: In function `Configuration::ParseFile(std::string const&)':
/home/gem5-gpu/gem5/build/X86_MESI_Two_Leve_GPU/gpgpu-sim/intersim2/config_utils.cpp:155: undefined reference to `yyparse'
build/X86_MESI_Two_Leve_GPU/gpgpu-sim/intersim2/config_utils.o: In function `Configuration::ParseString(std::string const&)':
/home/gem5-gpu/gem5/build/X86_MESI_Two_Leve_GPU/gpgpu-sim/intersim2/config_utils.cpp:164: undefined reference to `yyparse'
/home/gem5-gpu/gem5/build/X86_MESI_Two_Leve_GPU/gpgpu-sim/intersim2/config_utils.cpp:164: undefined reference to `yyparse'
build/X86_MESI_Two_Leve_GPU/gpgpu-sim/intersim2/config_utils.o: In function `Configuration::ParseFile(std::string const&)':
/home/gem5-gpu/gem5/build/X86_MESI_Two_Leve_GPU/gpgpu-sim/intersim2/config_utils.cpp:155: undefined reference to `yyparse'
build/X86_MESI_Two_Leve_GPU/gpgpu-sim/cuda-sim/ptxinfo.tab.o: In function `ptxinfo_parse()':
/home/gem5-gpu/gem5/ptxinfo.y:98: undefined reference to `ptxinfo_cmem(unsigned int, unsigned int)'
/home/gem5-gpu/gem5/ptxinfo.y:99: undefined reference to `ptxinfo_lmem(unsigned int, unsigned int)'
root@397c4524d2c5:/home/gem5-gpu/gem5# scons build/X86_MESI_Two_Leve_GPU/gem5.opt --default=X86 EXTRAS=../gem5-gpu/src:../gpgpu-sim/ PROTOCOL=MESI_Two_Level GPGPU_SIM=True
scons: Reading SConscript files ...
Checking for C header file Python.h... (cached) yes
Checking for C library pthread... (cached) yes
Checking for C library dl... (cached) yes
Checking for C library util... (cached) yes
Checking for C library m... (cached) yes
Checking for C library python2.7... (cached) yes
Checking for accept(0,0,0) in C++ library None... (cached) yes
Checking for zlibVersion() in C++ library z... (cached) yes
Checking for GOOGLE_PROTOBUF_VERIFY_VERSION in C++ library protobuf... (cached) yes
Checking for clock_nanosleep(0,0,NULL,NULL) in C library None... (cached) yes
Checking for timer_create(CLOCK_MONOTONIC, NULL, NULL) in C library None... (cached) no
Checking for timer_create(CLOCK_MONOTONIC, NULL, NULL) in C library rt... (cached) yes
Checking for C library tcmalloc... (cached) no
Checking for C library tcmalloc_minimal... (cached) no
You can get a 12% performance improvement by installing tcmalloc (libgoogle-perftools-dev package on Ubuntu or RedHat).
Checking for C header file fenv.h... (cached) yes
Checking for C header file linux/kvm.h... (cached) yes
Checking size of struct kvm_xsave ... (cached) yes
Checking for member exclude_host in struct perf_event_attr...(cached) yes
Building in /home/gem5-gpu/gem5/build/X86_MESI_Two_Leve_GPU
Using saved variables file /home/gem5-gpu/gem5/build/variables/X86_MESI_Two_Leve_GPU
scons: done reading SConscript files.
scons: Building targets ...
 [NEW DEPS] X86_MESI_Two_Leve_GPU/arch/x86/generated/inc.d -> x86-mesi-two-leve-gpu-deps
 [ENVIRONS] x86-mesi-two-leve-gpu-deps -> x86-mesi-two-leve-gpu-environs
 [    LINK]  -> X86_MESI_Two_Leve_GPU/gem5.opt
build/X86_MESI_Two_Leve_GPU/gpgpu-sim/cuda-sim/ptx_loader.o: In function `gpgpu_ptx_sim_load_ptx_from_string(char const*, unsigned int)':
/home/gem5-gpu/gem5/build/X86_MESI_Two_Leve_GPU/gpgpu-sim/cuda-sim/ptx_loader.cc:163: undefined reference to `ptx__scan_string'
/home/gem5-gpu/gem5/build/X86_MESI_Two_Leve_GPU/gpgpu-sim/cuda-sim/ptx_loader.cc:164: undefined reference to `ptx_parse'
build/X86_MESI_Two_Leve_GPU/gpgpu-sim/cuda-sim/ptx_loader.o: In function `gpgpu_ptxinfo_load_from_string(char const*, unsigned int)':
/home/gem5-gpu/gem5/build/X86_MESI_Two_Leve_GPU/gpgpu-sim/cuda-sim/ptx_loader.cc:234: undefined reference to `ptxinfo_parse'
build/X86_MESI_Two_Leve_GPU/gpgpu-sim/cuda-sim/ptx_parser.o: In function `parse_error_impl(char const*, unsigned int, char const*, ...)':
/home/gem5-gpu/gem5/build/X86_MESI_Two_Leve_GPU/gpgpu-sim/cuda-sim/ptx_parser.cc:231: undefined reference to `ptx_error'
build/X86_MESI_Two_Leve_GPU/gpgpu-sim/intersim2/config_utils.o: In function `Configuration::ParseFile(std::string const&)':
/home/gem5-gpu/gem5/build/X86_MESI_Two_Leve_GPU/gpgpu-sim/intersim2/config_utils.cpp:155: undefined reference to `yyparse'
build/X86_MESI_Two_Leve_GPU/gpgpu-sim/intersim2/config_utils.o: In function `Configuration::ParseString(std::string const&)':
/home/gem5-gpu/gem5/build/X86_MESI_Two_Leve_GPU/gpgpu-sim/intersim2/config_utils.cpp:164: undefined reference to `yyparse'
/home/gem5-gpu/gem5/build/X86_MESI_Two_Leve_GPU/gpgpu-sim/intersim2/config_utils.cpp:164: undefined reference to `yyparse'
build/X86_MESI_Two_Leve_GPU/gpgpu-sim/intersim2/config_utils.o: In function `Configuration::ParseFile(std::string const&)':
/home/gem5-gpu/gem5/build/X86_MESI_Two_Leve_GPU/gpgpu-sim/intersim2/config_utils.cpp:155: undefined reference to `yyparse'
build/X86_MESI_Two_Leve_GPU/gpgpu-sim/cuda-sim/ptxinfo.tab.o: In function `ptxinfo_parse()':
/home/gem5-gpu/gem5/ptxinfo.y:98: undefined reference to `ptxinfo_cmem(unsigned int, unsigned int)'
/home/gem5-gpu/gem5/ptxinfo.y:99: undefined reference to `ptxinfo_lmem(unsigned int, unsigned int)'
/home/gem5-gpu/gem5/ptxinfo.y:100: undefined reference to `ptxinfo_smem(unsigned int, unsigned int)'
/home/gem5-gpu/gem5/ptxinfo.y:101: undefined reference to `ptxinfo_cmem(unsigned int, unsigned int)'
/home/gem5-gpu/gem5/ptxinfo.y:102: undefined reference to `ptxinfo_regs(unsigned int)'
/home/gem5-gpu/gem5/ptxinfo.y:85: undefined reference to `ptxinfo_addinfo()'
/home/gem5-gpu/gem5/ptxinfo.y:88: undefined reference to `ptxinfo_function(char const*)'
/home/gem5-gpu/gem5/ptxinfo.y:89: undefined reference to `ptxinfo_function(char const*)'
/home/gem5-gpu/gem5/ptxinfo.y:95: undefined reference to `ptxinfo_regs(unsigned int)'
/home/gem5-gpu/gem5/ptxinfo.y:96: undefined reference to `ptxinfo_lmem(unsigned int, unsigned int)'
/home/gem5-gpu/gem5/ptxinfo.y:97: undefined reference to `ptxinfo_smem(unsigned int, unsigned int)'
build/X86_MESI_Two_Leve_GPU/gpgpu-sim/intersim2/lex.yy.o: In function `yy_get_next_buffer':
/home/gem5-gpu/gem5/lex.yy.c:1055: undefined reference to `config_input(char*, int)'
build/X86_MESI_Two_Leve_GPU/gpgpu-sim/intersim2/lex.yy.o: In function `yyerror(char*)':
/home/gem5-gpu/gem5/config.l:49: undefined reference to `config_error(char*, int)'
build/X86_MESI_Two_Leve_GPU/gpgpu-sim/intersim2/y.tab.o: In function `yyparse()':
/home/gem5-gpu/gem5/config.y:32: undefined reference to `config_assign_string(char const*, char const*)'
/home/gem5-gpu/gem5/config.y:33: undefined reference to `config_assign_int(char const*, int)'
/home/gem5-gpu/gem5/config.y:34: undefined reference to `config_assign_float(char const*, double)'
collect2: error: ld returned 1 exit status
scons: *** [build/X86_MESI_Two_Leve_GPU/gem5.opt] Error 1
scons: building terminated because of errors.

Is there anyone can help me?

Best regard!!
Reply all
Reply to author
Forward
0 new messages