Hello everyone I am beginner to this gem5 community. I wanted to create a sim object by following the official documentation. I created a header file, python file and .cc file of HelloObject along with SConscript. When I tried to build the thing, I am getting an error that " no declaration mathes the HelloObject". When I tried to build the examples provided in the gem5 directory itself, it is working fine. I cannot find where the error is and I mentioned the error below. Please help me with this thing.
Warning: Couldn't find any HDF5 C++ libraries. Disabling HDF5 support. Checking whether __i386__ is declared... (cached) no Checking whether __x86_64__ is declared... (cached) yes Building in /home/abhi/gem5/build/X86 Using saved variables file /home/abhi/gem5/build/variables/X86 scons: done reading SConscript files. scons: Building targets ... [ CXX] X86/hpca_tutorial/hello_object.cc -> .o *build/X86/hpca_tutorial/hello_object.cc:12:1: error: no declaration matches 'HelloObject* HelloObjectParams::create()'* * 12 | HelloObjectParams::create()* * | ^~~~~~~~~~~~~~~~~* In file included from build/X86/hpca_tutorial/hello_object.hh:4, from build/X86/hpca_tutorial/hello_object.cc:1: build/X86/params/HelloObject.hh:17:19: note: candidate is: 'HelloObject* HelloObjectParams::create() const' 17 | HelloObject * create() const; | ^~~~~~ build/X86/params/HelloObject.hh:14:8: note: 'struct HelloObjectParams' defined here 14 | struct HelloObjectParams | ^~~~~~~~~~~~~~~~~ scons: *** [build/X86/hpca_tutorial/hello_object.o] Error 1 scons: building terminated because of errors. *** Summary of Warnings *** Warning: Header file <png.h> not found. This host has no libpng library. Disabling support for PNG framebuffers. Warning: Couldn't find any HDF5 C++ libraries. Disabling HDF5 support. Best regards Abhijeeth
_______________________________________________ gem5-users mailing list -- gem5-users@gem5.org To unsubscribe send an email to gem5-users-le...@gem5.org %(web_page_url)slistinfo%(cgiext)s/%(_internal_name)s