I tried with that option (updated to common.*) and get another execution error-
# ./build/Garnet_standalone/gem5.debug configs/example/garnet_synth_traffic.py --num-cpus=16 --num-dirs=16 --network=garnet2.0 --topology=Mesh_XY --mesh-rows=4 --sim-cycles=1000 --synthetic=uniform_random --injectionrate=0.01 Traceback (most recent call last): File "<string>", line 1, in <module> File "/home1/gem5/src/python/m5/main.py", line 400, in main exec filecode in scope File "configs/example/garnet_synth_traffic.py", line 46, in <module> Options.addCommonOptions(parser) File "/home1/gem5/configs/common/Options.py", line 70, in addCommonOptions choices=CpuConfig.cpu_names(), NameError: global name 'CpuConfig' is not defined Thanks, Faisal On Thu, Oct 20, 2016 at 2:02 PM, Krishna, Tushar <tus...@ece.gatech.edu> wrote: > Perhaps all the imports in the Options.py file (Benchmarks, CpuConfig, … ) > need to be updated to commons.* … > > > > On Oct 20, 2016, at 1:00 AM, F. A. Faisal <dipu.7...@gmail.com> wrote: > > Dear Jieming, > > Please upload a stable gem5 version. > I am also looking for a stable version to run gem5 on Apple OSX. > Further error obtained from Option.py- > > # ./build/Garnet_standalone/gem5.debug configs/example/garnet_synth_traffic.py > --num-cpus=16 --num-dirs=16 --network=garnet2.0 --topology=Mesh_XY > --mesh-rows=4 --sim-cycles=1000 --synthetic=uniform_random > --injectionrate=0.01 > > Traceback (most recent call last): > File "<string>", line 1, in <module> > File "/home1/gem5/src/python/m5/main.py", line 400, in main > exec filecode in scope > File "configs/example/garnet_synth_traffic.py", line 88, in <module> > execfile(os.path.join(config_root, "common", "Options.py")) > File "/home1/gem5/configs/common/Options.py", line 46, in <module> > import CpuConfig > ImportError: No module named CpuConfig > > Thanks and best regards, > > F. A. Faisal > > > On Thu, Oct 20, 2016 at 9:12 AM, Jieming Yin <j...@cs.umn.edu> wrote: > >> Does it work if you do: >> from common.Benchmark import * >> >> Best, >> Jieming >> >> On Tue, Oct 18, 2016 at 8:37 PM, Krishna, Tushar <tus...@ece.gatech.edu> >> wrote: >> >>> Hi Andreas, >>> Looks like the recent changes to configs/common seem to have broken the >>> example scripts. >>> Not just garnet_synth_traffic. >>> I built ALPHA_MOESI_hammer and ran it with >>> configs/example/ruby_random_test.py >>> and got the same error. >>> >>> Thanks, >>> Tushar >>> >>> >>> On Oct 18, 2016, at 10:21 AM, F. A. Faisal <dipu.7...@gmail.com> wrote: >>> >>> Hello, >>> >>> Can anyone please help me. >>> >>> I found new problem even using the linux environment. Though the >>> compilation was ok, I found new problem in obtaining the garnet 2.0 >>> output. >>> >>> # scons build/Garnet_standalone/gem5.debug >>> ....... >>> [ LINK] * -> **Garnet_standalone/gem5.debug* >>> scons: done building targets. >>> >>> # ./build/Garnet_standalone/gem5.debug configs/example/garnet_synth_t >>> raffic.py --num-cpus=16 --num-dirs=16 --network=garnet2.0 >>> --topology=Mesh_XY --mesh-rows=4 --sim-cycles=1000 >>> --synthetic=uniform_random --injectionrate=0.01 >>> >>> gem5 compiled Oct 18 2016 22:52:33 >>> gem5 started Oct 18 2016 23:13:56 >>> command line: ./build/Garnet_standalone/gem5.debug configs >>> /example/garnet_synth_traffic.py --num-cpus=16 --num-dirs=16 >>> --network=garnet2.0 --topology=Mesh_XY --mesh-rows=4 --sim-cycles=1000 >>> --synthetic=uniform_random --injectionrate=0.01 >>> >>> Traceback (most recent call last): >>> File "<string>", line 1, in <module> >>> File "/home/Gems/gem5/src/python/m5/main.py", line 400, in main >>> exec filecode in scope >>> File "configs/example/garnet_synth_traffic.py", line 88, in <module> >>> execfile(os.path.join(config_root, "common", "Options.py")) >>> File "/home/Gems/gem5/configs/common/Options.py", line 44, in <module> >>> from Benchmarks import * >>> ImportError: No module named Benchmarks >>> >>> Thanks in advance... >>> >>> On Mon, Oct 17, 2016 at 5:29 PM, Andreas Hansson < >>> andreas.hans...@arm.com> wrote: >>> >>>> My bad, this is properly broken for ALPHA and tru64. >>>> >>>> In fact this was broken as part of: >>>> >>>> changeset: 11383:5ac090acd180 >>>> user: Brandon Potter <brandon.pot...@amd.com> >>>> date: Thu Mar 17 10:24:17 2016 -0700 >>>> summary: syscall_emul: extend mmap system call to support file >>>> backed mmap >>>> >>>> It was later fixed for Linux, but not tru64 it appears. >>>> >>>> Brandon, could you get this resolved? >>>> >>>> Thanks, >>>> >>>> Andreas >>>> >>>> From: gem5-users <gem5-users-boun...@gem5.org> on behalf of Andreas >>>> Hansson <andreas.hans...@arm.com> >>>> Reply-To: gem5 users mailing list <gem5-users@gem5.org> >>>> Date: Monday, 17 October 2016 at 08:54 >>>> >>>> To: gem5 users mailing list <gem5-users@gem5.org> >>>> Subject: Re: [gem5-users] scons build error for Garnet 2.0 >>>> >>>> Just use clang (i.e. the default OSX compiler). >>>> >>>> Andreas >>>> >>>> From: gem5-users <gem5-users-boun...@gem5.org> on behalf of "F. A. >>>> Faisal" <dipu.7...@gmail.com> >>>> Reply-To: gem5 users mailing list <gem5-users@gem5.org> >>>> Date: Saturday, 15 October 2016 at 14:22 >>>> To: gem5 users mailing list <gem5-users@gem5.org> >>>> Subject: Re: [gem5-users] scons build error for Garnet 2.0 >>>> >>>> I tried with another gcc, but the result is the same... >>>> >>>> $ port select --set gccmp-gcc49 >>>> >>>> $ port select --list gcc >>>> Warning: port definitions are more than two weeks old, consider >>>> updating them by running 'port selfupdate'. >>>> Available versions for gcc: >>>> apple-gcc42 >>>> mp-gcc47 >>>> mp-gcc49 (active) >>>> >>>> none >>>> >>>> $ scons build/ALPHA_MOESI_hammer/gem5.debug >>>> build/ALPHA_MOESI_hammer/arch/alpha/tru64/tru64.cc:82:21: error: >>>> 'MAP_LOCKED' was not declared in this scope >>>> { TGT_MAP_LOCKED, MAP_LOCKED }, >>>> ^ >>>> build/ALPHA_MOESI_hammer/arch/alpha/tru64/tru64.cc:83:23: error: >>>> 'MAP_NONBLOCK' was not declared in this scope >>>> { TGT_MAP_NONBLOCK, MAP_NONBLOCK }, >>>> ^ >>>> build/ALPHA_MOESI_hammer/arch/alpha/tru64/tru64.cc:85:23: error: >>>> 'MAP_POPULATE' was not declared in this scope >>>> { TGT_MAP_POPULATE, MAP_POPULATE }, >>>> ^ >>>> build/ALPHA_MOESI_hammer/arch/alpha/tru64/tru64.cc:86:20: error: >>>> 'MAP_STACK' was not declared in this scope >>>> { TGT_MAP_STACK, MAP_STACK }, >>>> ^ >>>> scons: *** [build/ALPHA_MOESI_hammer/arch/alpha/tru64/tru64.do] Error 1 >>>> >>>> scons: building terminated because of errors. >>>> >>>> Thanks... >>>> >>>> >>>> On Sat, Oct 15, 2016 at 10:06 PM, Abdul Mutaal <abdul.mut...@gmail.com> >>>> wrote: >>>> >>>>> Try with >=4.5 >>>>> >>>>> On Oct 15, 2016 2:56 PM, "F. A. Faisal" <dipu.7...@gmail.com> wrote: >>>>> >>>>>> $ g++ -v >>>>>> Configured with: --prefix=/Applications/Xcode.app/Contents/Developer/usr >>>>>> --with-gxx-include-dir=/usr/include/c++/4.2.1 >>>>>> Apple LLVM version 7.3.0 (clang-703.0.29) >>>>>> Target: x86_64-apple-darwin15.4.0 >>>>>> Thread model: posix >>>>>> >>>>>> On Sat, Oct 15, 2016 at 9:53 PM, Abdul Mutaal <abdul.mut...@gmail.com >>>>>> > wrote: >>>>>> >>>>>>> C++ version ? >>>>>>> >>>>>>> Thanks >>>>>>> >>>>>>> On Sat, Oct 15, 2016 at 2:01 PM, F. A. Faisal <dipu.7...@gmail.com> >>>>>>> wrote: >>>>>>> >>>>>>>> Dear All, >>>>>>>> >>>>>>>> I found the below errors while compiling through scons for latest >>>>>>>> gem5 integrated with garnet 2.0 (hg clone http://repo.gem5.org/gem5 >>>>>>>> ). >>>>>>>> >>>>>>>> $ scons build/ALPHA/gem5.debug >>>>>>>> *build/ALPHA/arch/alpha/tru64/tru64.cc <http://ru64.cc/>:83:23: * >>>>>>>> *error: **use of undeclared identifier* >>>>>>>> * 'MAP_NONBLOCK'; did you mean 'TGT_MAP_NONBLOCK'?* >>>>>>>> { TGT_MAP_NONBLOCK, MAP_NONBLOCK }, >>>>>>>> * ^~~~~~~~~~~~* >>>>>>>> TGT_MAP_NONBLOCK >>>>>>>> *build/ALPHA/arch/alpha/tru64/tru64.hh:78:27: note: *'TGT_MAP_NONBLOCK' >>>>>>>> declared >>>>>>>> here >>>>>>>> static const unsigned TGT_MAP_NONBLOCK = 0x10000; >>>>>>>> * ^* >>>>>>>> *build/ALPHA/arch/alpha/tru64/tru64.cc <http://ru64.cc/>:85:23: * >>>>>>>> *error: **use of undeclared identifier* >>>>>>>> * 'MAP_POPULATE'; did you mean 'TGT_MAP_POPULATE'?* >>>>>>>> { TGT_MAP_POPULATE, MAP_POPULATE }, >>>>>>>> * ^~~~~~~~~~~~* >>>>>>>> TGT_MAP_POPULATE >>>>>>>> *build/ALPHA/arch/alpha/tru64/tru64.hh:80:27: note: *'TGT_MAP_POPULATE' >>>>>>>> declared >>>>>>>> here >>>>>>>> static const unsigned TGT_MAP_POPULATE = 0x08000; >>>>>>>> * ^* >>>>>>>> *build/ALPHA/arch/alpha/tru64/tru64.cc <http://ru64.cc/>:86:20: * >>>>>>>> *error: **use of undeclared identifier* >>>>>>>> * 'MAP_STACK'* >>>>>>>> { TGT_MAP_STACK, MAP_STACK }, >>>>>>>> * ^* >>>>>>>> *build/ALPHA/arch/alpha/tru64/tru64.cc <http://ru64.cc/>:92:15: * >>>>>>>> *error: **invalid application of* >>>>>>>> * 'sizeof' to an incomplete type 'SyscallFlagTransTable []'* >>>>>>>> sizeof(AlphaTru64::mmapFlagTable) / >>>>>>>> * ^~~~~~~~~~~~~~~~~~~~~~~~~~~* >>>>>>>> 10 errors generated. >>>>>>>> scons: *** [build/ALPHA/arch/alpha/tru64/tru64.do] Error 1 >>>>>>>> scons: building terminated because of errors. >>>>>>>> >>>>>>>> >>>>>>>> $ scons build/ALPHA_MOESI_hammer/gem5.debug >>>>>>>> *build/ALPHA_MOESI_hammer/arch/alpha/tru64/tru64.cc >>>>>>>> <http://tru64.cc/>:85:23: **error: **use of* >>>>>>>> * undeclared identifier 'MAP_POPULATE'; did you mean >>>>>>>> 'TGT_MAP_POPULATE'?* >>>>>>>> { TGT_MAP_POPULATE, MAP_POPULATE }, >>>>>>>> * ^~~~~~~~~~~~* >>>>>>>> TGT_MAP_POPULATE >>>>>>>> *build/ALPHA_MOESI_hammer/arch/alpha/tru64/tru64.hh:80:27: note: * >>>>>>>> 'TGT_MAP_POPULATE' declared here >>>>>>>> static const unsigned TGT_MAP_POPULATE = 0x08000; >>>>>>>> * ^* >>>>>>>> *build/ALPHA_MOESI_hammer/arch/alpha/tru64/tru64.cc >>>>>>>> <http://tru64.cc/>:86:20: **error: **use of* >>>>>>>> * undeclared identifier 'MAP_STACK'* >>>>>>>> { TGT_MAP_STACK, MAP_STACK }, >>>>>>>> * ^* >>>>>>>> *build/ALPHA_MOESI_hammer/arch/alpha/tru64/tru64.cc >>>>>>>> <http://tru64.cc/>:92:15: **error: **invalid* >>>>>>>> * application of 'sizeof' to an incomplete type >>>>>>>> 'SyscallFlagTransTable []'* >>>>>>>> sizeof(AlphaTru64::mmapFlagTable) / >>>>>>>> * ^~~~~~~~~~~~~~~~~~~~~~~~~~~* >>>>>>>> 10 errors generated. >>>>>>>> scons: *** [build/ALPHA_MOESI_hammer/arch/alpha/tru64/tru64.do] >>>>>>>> Error 1 >>>>>>>> scons: building terminated because of errors. >>>>>>>> >>>>>>>> Thanks for earliest reply. >>>>>>>> >>>>>>>> Best regards, >>>>>>>> >>>>>>>> F. A. Faisal >>>>>>>> >>>>>>>> >>>>>>>> _______________________________________________ >>>>>>>> gem5-users mailing list >>>>>>>> gem5-users@gem5.org >>>>>>>> http://m5sim.org/cgi-bin/mailman/listinfo/gem5-users >>>>>>>> >>>>>>> >>>>>>> >>>>>>> >>>>>>> -- >>>>>>> >>>>>>> Regards, >>>>>>> Abdul Mutaal >>>>>>> LinkedIn : https://de.linkedin.com/in/abdulmutaalahmad >>>>>>> Email : abdul.mut...@gmail.com >>>>>>> >>>>>>> >>>>>>> _______________________________________________ >>>>>>> gem5-users mailing list >>>>>>> gem5-users@gem5.org >>>>>>> http://m5sim.org/cgi-bin/mailman/listinfo/gem5-users >>>>>>> >>>>>> >>>>>> >>>>>> _______________________________________________ >>>>>> gem5-users mailing list >>>>>> gem5-users@gem5.org >>>>>> http://m5sim.org/cgi-bin/mailman/listinfo/gem5-users >>>>>> >>>>> >>>>> _______________________________________________ >>>>> gem5-users mailing list >>>>> gem5-users@gem5.org >>>>> http://m5sim.org/cgi-bin/mailman/listinfo/gem5-users >>>>> >>>> >>>> IMPORTANT NOTICE: The contents of this email and any attachments are >>>> confidential and may also be privileged. If you are not the intended >>>> recipient, please notify the sender immediately and do not disclose the >>>> contents to any other person, use it for any purpose, or store or copy the >>>> information in any medium. Thank you. >>>> IMPORTANT NOTICE: The contents of this email and any attachments are >>>> confidential and may also be privileged. If you are not the intended >>>> recipient, please notify the sender immediately and do not disclose the >>>> contents to any other person, use it for any purpose, or store or copy the >>>> information in any medium. Thank you. >>>> >>>> _______________________________________________ >>>> gem5-users mailing list >>>> gem5-users@gem5.org >>>> http://m5sim.org/cgi-bin/mailman/listinfo/gem5-users >>>> >>> >>> _______________________________________________ >>> gem5-users mailing list >>> gem5-users@gem5.org >>> http://m5sim.org/cgi-bin/mailman/listinfo/gem5-users >>> >>> >>> >>> _______________________________________________ >>> gem5-users mailing list >>> gem5-users@gem5.org >>> http://m5sim.org/cgi-bin/mailman/listinfo/gem5-users >>> >> >> >> >> -- >> Jieming >> >> _______________________________________________ >> gem5-users mailing list >> gem5-users@gem5.org >> http://m5sim.org/cgi-bin/mailman/listinfo/gem5-users >> > > _______________________________________________ > gem5-users mailing list > gem5-users@gem5.org > http://m5sim.org/cgi-bin/mailman/listinfo/gem5-users > > > > _______________________________________________ > gem5-users mailing list > gem5-users@gem5.org > http://m5sim.org/cgi-bin/mailman/listinfo/gem5-users >
_______________________________________________ gem5-users mailing list gem5-users@gem5.org http://m5sim.org/cgi-bin/mailman/listinfo/gem5-users