On Wed, Oct 17, 2018 at 7:04 AM 王宥憲 <[email protected]> wrote:
>
> Hello everyone,
>
> I want to simulate a ScratchPad Memory in gem5, so I download the gem5 from 
> "https://github.com/markoshorro/gem5-spm";.
>
> But when build gem5 to use command "scons build/X86/gem5.opt", it will show 
> error .
>
>  [NEW DEPS] X86/arch/x86/generated/inc.d -> x86-deps
>  [ENVIRONS] x86-deps -> x86-environs
>  [     CXX] X86/proto/packet.pb.cc -> .o
> build/X86/proto/packet.pb.cc: In function 'void 
> InitDefaults_packet_2eproto()':
> build/X86/proto/packet.pb.cc:61:6: error: no previous declaration for 'void 
> InitDefaults_packet_2eproto()' [-Werror=missing-declarations]
>  void InitDefaults_packet_2eproto() {
>       ^~~~~~~~~~~~~~~~~~~~~~~~~~~
> cc1plus: all warnings being treated as errors
> scons: *** [build/X86/proto/packet.pb.o] Error 1
> scons: building terminated because of errors.
>
> My solution is add "static" before the error function.
>
> After this error, the next error is "
>  [NEW DEPS] X86/arch/x86/generated/inc.d -> x86-deps
>  [ENVIRONS] x86-deps -> x86-environs
>  [     CXX] X86/proto/inst.pb.cc -> .o
> build/X86/proto/inst.pb.cc: In function 'void InitDefaults_inst_2eproto()':
> build/X86/proto/inst.pb.cc:81:7: error: no previous declaration for 'void 
> InitDefaults_inst_2eproto()' [-Werror=missing-declarations]
>   void InitDefaults_inst_2eproto() {
>        ^~~~~~~~~~~~~~~~~~~~~~~~~
> cc1plus: all warnings being treated as errors
> scons: *** [build/X86/proto/inst.pb.o] Error 1
> scons: building terminated because of errors.
> ".
> My solution is add " void InitDefaults_inst_2eproto()  " in inst.pb.h.
> After the two errors,gem5 is built successfully.
>

Can you reproduce on master? If yes, give us a commit and your
compiler and OS version.

> When build full system mode to use command "  build/X86/gem5.opt 
> configs/example/fs.py --kernel=x86_64-vmlinux-3.4.112 
> --disk-image=linux-x86.img " ,it will core dumped.
>
> The main terminal show
>
> gem5 Simulator System.  http://gem5.org
> gem5 is copyrighted software; use the --copyright option for details.
>
> gem5 compiled Oct 17 2018 05:19:03
> gem5 started Oct 17 2018 14:00:29
> gem5 executing on lab-All-Series
> command line: build/X86/gem5.opt configs/example/fs.py 
> --kernel=x86_64-vmlinux-3.4.112 --disk-image=linux-x86.img
> Global frequency set at 1000000000000 ticks per second
> warn: DRAM device capacity (8192 Mbytes) does not match the address range 
> assigned (512 Mbytes)
> info: kernel located at: 
> /home/lab/full_system_images/x86/binaries/x86_64-vmlinux-3.4.112
> Listening for com_1 connection on port 3456
>       0: rtc: Real-time clock set to Sun Jan  1 00:00:00 2012
> 0: system.remote_gdb.listener: listening for remote gdb #0 on port 7000
> warn: Reading current count from inactive timer.
> **** REAL SIMULATION ****
> info: Entering event queue @ 0.  Starting simulation...
> warn: Don't know what interrupt to clear for console.
> warn: instruction 'wbinvd' unimplemented
> 4202367500: system.pc.com_1.terminal: attach terminal 0
> *** stack smashing detected ***: build/X86/gem5.opt terminated
> Program aborted at cycle 76227969500
> 已經終止 (core dumped)
>

Does it happen on gem5 master as well, or just with the branch?

Run through GDB, get the backtrace, give it to us.

Then possibly explore interesting variables on GDB, and try to figure
out from source a bit.

> The m5term terminal show
>
>
> ==== m5 slave terminal: Terminal 0 ====
> Linux version 3.4.112 (root@lab-All-Series) (gcc version 5.4.0 20160609 
> (Ubuntu 5.4.0-6ubuntu1~16.04.4) ) #1 SMP Tue Dec 12 03:12:57 CST 2017
> Command line: earlyprintk=ttyS0 console=ttyS0 lpj=7999923 root=/dev/hda1
> CPU: vendor_id 'M5 Simulator' unknown, using generic init.
> CPU: Your system may be unstable.
> BIOS-provided physical RAM map:
>  BIOS-e820: 0000000000000000 - 000000000009fc00 (usable)
>  BIOS-e820: 000000000009fc00 - 0000000000100000 (reserved)
>  BIOS-e820: 0000000000100000 - 0000000020000000 (usable)
>  BIOS-e820: 0000000020000000 - 00000000c0000000 (reserved)
>  BIOS-e820: 00000000ffff0000 - 0000000100000000 (reserved)
> bootconsole [earlyser0] enabled
> NX (Execute Disable) protection: active
> SMBIOS 2.5 present.
> No AGP bridge found
> last_pfn = 0x20000 max_arch_pfn = 0x400000000
> x86 PAT enabled: cpu 0, old 0x7040600070406, new 0x7010600070106
> CPU MTRRs all blank - virtualized system.
> found SMP MP-table at [ffff8800000f0050] f0050
> init_memory_mapping: 0000000000000000-0000000020000000
> Zone PFN ranges:
>   DMA      0x00000010 -> 0x00001000
>   DMA32    0x00001000 -> 0x00100000
>   Normal   empty
> Movable zone start PFN for each node
> Early memory PFN ranges
>     0: 0x00000010 -> 0x0000009f
>     0: 0x00000100 -> 0x00020000
> Intel MultiProcessor Specification v1.4
> MPTABLE: OEM ID:
> MPTABLE: Product ID:
> MPTABLE: APIC at: 0xFEE00000
> Processor #0 (Bootup-CPU)
> IOAPIC[0]: apic_id 1, version 20, address 0xfec00000, GSI 0-23
> Processors: 1
> SMP: Allowing 1 CPUs, 0 hotplug CPUs
> Allocating PCI resources starting at c0000000 (gap: c0000000:3fff0000)
> setup_percpu: NR_CPUS:8 nr_cpumask_bits:8 nr_cpu_ids:1 nr_node_ids:1
> PERCPU: Embedded 25 pages/cpu @ffff88001fc00000 s71488 r8192 d22720 u2097152
> Built 1 zonelists in Zone order, mobility grouping on.  Total pages: 129165
> Kernel command line: earlyprintk=ttyS0 console=ttyS0 lpj=7999923 
> root=/dev/hda1
> PID hash table entries: 2048 (order: 2, 16384 bytes)
> Dentry cache hash table entries: 65536 (order: 7, 524288 bytes)
> Inode-cache hash table entries: 32768 (order: 6, 262144 bytes)
>
>
> Can anyone help me?
>  look forward to hearing from you.
>
> Respectfully yours, Yo-Xian,Wang
>
>
>
>
>
>
> _______________________________________________
> gem5-users mailing list
> [email protected]
> http://m5sim.org/cgi-bin/mailman/listinfo/gem5-users
_______________________________________________
gem5-users mailing list
[email protected]
http://m5sim.org/cgi-bin/mailman/listinfo/gem5-users

Reply via email to