'make all' error, help me, please.

100 views
Skip to first unread message

Lee

unread,
Dec 11, 2020, 1:37:49 AM12/11/20
to gem5-Aladdin users
When I execute the 'make all' command in the following, the following error occurred,
1.png
So I checked the Makefile file, I found the code is as follows, I am most confused about the two lines marked, 
2.png
I don’t know how the 'gem5-accel' and the 'aes-aes-gem5-accel' are generated. Can you tell me how to generate these two files?
In addition, this is a screenshot of the files in my MachSuite/aes/aes directory: 
3.png

Sam Xi

unread,
Dec 11, 2020, 1:57:52 AM12/11/20
to Lee, gem5-Aladdin users
Here's what the Makefile under integration-test/with-cpu/test_aes says:

aes:
  $(MAKE) -C $(ALADDIN_HOME)/MachSuite/aes/aes gem5-accel
  cp $(ALADDIN_HOME)/MachSuite/aes/aes/aes-aes-gem5-accel aes


It invokes another Makefile under MachSuite/aes/aes and builds the "gem5-accel" target, then copies it to the current directory.

Sam Xi
Google Inc., Software Engineer
http://www.samxi.org



--
You received this message because you are subscribed to the Google Groups "gem5-Aladdin users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to gem5-aladdin-us...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/gem5-aladdin-users/abbfbe8c-aac0-4969-801e-2dd528d50488n%40googlegroups.com.

Lee

unread,
Dec 11, 2020, 2:20:02 AM12/11/20
to gem5-Aladdin users
Then I ran into this problem, 'Segmentation fault' , could you tell me what happened?
---
root@54a4175f19e8:/workspace/gem5-aladdin/src/aladdin/integration-test/with-cpu/test_aes1# sh run.sh
0: system.remote_gdb: listening for remote gdb on port 7000
info: Entering event queue @ 0.  Starting simulation...
info: Increasing stack size by one page.
warn: ignoring syscall access(...)
warn: x86 cpuid family 0x0000: unimplemented function 2
warn: x86 cpuid family 0x0000: unimplemented function 2
warn: x86 cpuid family 0x0000: unimplemented function 2
warn: x86 cpuid family 0x0000: unimplemented function 2
warn: x86 cpuid family 0x0000: unimplemented function 2
info: Received mapping for array host_ctx at vaddr 6d2c40 of length 96.
info: Received mapping for array host_k at vaddr 6d2d40 of length 32.
info: Received mapping for array host_buf at vaddr 6d2e00 of length 16.
[WARNING]: Overlapping array declarations found!
  host_ctx: 0x1847200 - 0x1847200
  host_buf: 0x18473c0 - 0x18473d0
[WARNING]: Overlapping array declarations found!
  host_ctx: 0x1847200 - 0x1847200
  k: 0x1847580 - 0x18475a0
[WARNING]: Overlapping array declarations found!
  host_ctx: 0x1847200 - 0x1847200
  buf: 0x1847640 - 0x1847650
[WARNING]: Overlapping array declarations found!
  host_ctx: 0x1847200 - 0x1847200
  ctx: 0x1847480 - 0x1847480
[WARNING]: Overlapping array declarations found!
  host_ctx: 0x1847200 - 0x1847200
  host_k: 0x1847300 - 0x1847300
[WARNING]: Overlapping array declarations found!
  sbox: 0x464040 - 0x464140
  host_ctx: 0x1847200 - 0x1847200
[WARNING]: Overlapping array declarations found!
  sbox: 0x464040 - 0x464140
  host_buf: 0x18473c0 - 0x18473d0
[WARNING]: Overlapping array declarations found!
  sbox: 0x464040 - 0x464140
  k: 0x1847580 - 0x18475a0
[WARNING]: Overlapping array declarations found!
  sbox: 0x464040 - 0x464140
  buf: 0x1847640 - 0x1847650
[WARNING]: Overlapping array declarations found!
  sbox: 0x464040 - 0x464140
  ctx: 0x1847480 - 0x1847480
[WARNING]: Overlapping array declarations found!
  sbox: 0x464040 - 0x464140
  host_k: 0x1847300 - 0x1847300
[WARNING]: Overlapping array declarations found!
  host_buf: 0x18473c0 - 0x18473d0
  k: 0x1847580 - 0x18475a0
[WARNING]: Overlapping array declarations found!
  host_buf: 0x18473c0 - 0x18473d0
  buf: 0x1847640 - 0x1847650
[WARNING]: Overlapping array declarations found!
  host_buf: 0x18473c0 - 0x18473d0
  ctx: 0x1847480 - 0x1847480
[WARNING]: Overlapping array declarations found!
  k: 0x1847580 - 0x18475a0
  buf: 0x1847640 - 0x1847650
[WARNING]: Overlapping array declarations found!
  ctx: 0x1847480 - 0x1847480
  k: 0x1847580 - 0x18475a0
[WARNING]: Overlapping array declarations found!
  ctx: 0x1847480 - 0x1847480
  buf: 0x1847640 - 0x1847650
[WARNING]: Overlapping array declarations found!
  host_k: 0x1847300 - 0x1847300
  host_buf: 0x18473c0 - 0x18473d0
[WARNING]: Overlapping array declarations found!
  host_k: 0x1847300 - 0x1847300
  k: 0x1847580 - 0x18475a0
[WARNING]: Overlapping array declarations found!
  host_k: 0x1847300 - 0x1847300
  buf: 0x1847640 - 0x1847650
[WARNING]: Overlapping array declarations found!
  host_k: 0x1847300 - 0x1847300
  ctx: 0x1847480 - 0x1847480
[WARNING]: Overlapping array declarations found!
  host_k: 0x1847300 - 0x1847300
  sbox: 0x464040 - 0x464140
Overlapping array address ranges can lead to incorrect behavior, such as DMA nodes trying to access the wrong arrays, ACP accessing the wrong memory, etc. Please check your Aladdin configuration file and the mapArrayToAccelerator() calls to verify that they are correct.
gem5 has encountered a segmentation fault!

--- BEGIN LIBC BACKTRACE ---
/workspace/gem5-aladdin/src/aladdin/../../build/X86/gem5.opt(_Z15print_backtracev+0x2c)[0x5574b6bf342c]
/workspace/gem5-aladdin/src/aladdin/../../build/X86/gem5.opt(+0x7144ff)[0x5574b6c054ff]
/lib/x86_64-linux-gnu/libpthread.so.0(+0x128a0)[0x7ff44624d8a0]
/workspace/gem5-aladdin/src/aladdin/../../build/X86/gem5.opt(_ZN14HybridDatapath17handleDmaMemoryOpEP8ExecNode+0x1a7)[0x5574b71c7be7]
/workspace/gem5-aladdin/src/aladdin/../../build/X86/gem5.opt(_ZN14HybridDatapath18stepExecutingQueueEv+0xfd)[0x5574b71ce05d]
/workspace/gem5-aladdin/src/aladdin/../../build/X86/gem5.opt(_ZN14HybridDatapath4stepEv+0x55)[0x5574b71c8d85]
/workspace/gem5-aladdin/src/aladdin/../../build/X86/gem5.opt(_ZN12EventWrapperI14HybridDatapathXadL_ZNS0_9eventStepEvEEE7processEv+0xe)[0x5574b71fba8e]
/workspace/gem5-aladdin/src/aladdin/../../build/X86/gem5.opt(_ZN10EventQueue10serviceOneEv+0x13d)[0x5574b6bfb96d]
/workspace/gem5-aladdin/src/aladdin/../../build/X86/gem5.opt(_Z9doSimLoopP10EventQueue+0x148)[0x5574b6c1d028]
/workspace/gem5-aladdin/src/aladdin/../../build/X86/gem5.opt(_Z8simulatem+0xcba)[0x5574b6c1dfda]
/workspace/gem5-aladdin/src/aladdin/../../build/X86/gem5.opt(+0x7e9931)[0x5574b6cda931]
/workspace/gem5-aladdin/src/aladdin/../../build/X86/gem5.opt(+0x5e2c74)[0x5574b6ad3c74]
/usr/lib/x86_64-linux-gnu/libpython2.7.so.1.0(PyEval_EvalFrameEx+0x64d7)[0x7ff4464fac47]
/usr/lib/x86_64-linux-gnu/libpython2.7.so.1.0(PyEval_EvalCodeEx+0x7d8)[0x7ff446639908]
/usr/lib/x86_64-linux-gnu/libpython2.7.so.1.0(PyEval_EvalFrameEx+0x5bf6)[0x7ff4464fa366]
/usr/lib/x86_64-linux-gnu/libpython2.7.so.1.0(PyEval_EvalCodeEx+0x7d8)[0x7ff446639908]
/usr/lib/x86_64-linux-gnu/libpython2.7.so.1.0(PyEval_EvalFrameEx+0x5bf6)[0x7ff4464fa366]
/usr/lib/x86_64-linux-gnu/libpython2.7.so.1.0(PyEval_EvalCodeEx+0x7d8)[0x7ff446639908]
/usr/lib/x86_64-linux-gnu/libpython2.7.so.1.0(PyEval_EvalFrameEx+0x5bf6)[0x7ff4464fa366]
/usr/lib/x86_64-linux-gnu/libpython2.7.so.1.0(PyEval_EvalCodeEx+0x7d8)[0x7ff446639908]
/usr/lib/x86_64-linux-gnu/libpython2.7.so.1.0(PyEval_EvalCode+0x19)[0x7ff4464f45d9]
/usr/lib/x86_64-linux-gnu/libpython2.7.so.1.0(PyEval_EvalFrameEx+0x6ac0)[0x7ff4464fb230]
/usr/lib/x86_64-linux-gnu/libpython2.7.so.1.0(PyEval_EvalCodeEx+0x7d8)[0x7ff446639908]
/usr/lib/x86_64-linux-gnu/libpython2.7.so.1.0(PyEval_EvalFrameEx+0x5bf6)[0x7ff4464fa366]
/usr/lib/x86_64-linux-gnu/libpython2.7.so.1.0(PyEval_EvalCodeEx+0x7d8)[0x7ff446639908]
/usr/lib/x86_64-linux-gnu/libpython2.7.so.1.0(PyEval_EvalCode+0x19)[0x7ff4464f45d9]
/usr/lib/x86_64-linux-gnu/libpython2.7.so.1.0(PyRun_StringFlags+0x76)[0x7ff4465a46f6]
/workspace/gem5-aladdin/src/aladdin/../../build/X86/gem5.opt(_Z6m5MainiPPc+0x83)[0x5574b6c04213]
/workspace/gem5-aladdin/src/aladdin/../../build/X86/gem5.opt(main+0x38)[0x5574b6a24758]
/lib/x86_64-linux-gnu/libc.so.6(__libc_start_main+0xe7)[0x7ff44449ab97]
/workspace/gem5-aladdin/src/aladdin/../../build/X86/gem5.opt(_start+0x2a)[0x5574b6a57b9a]
--- END LIBC BACKTRACE ---
Segmentation fault

Sam Xi

unread,
Dec 12, 2020, 3:18:38 AM12/12/20
to Lee, gem5-Aladdin users
Thanks, I can reproduce this bug. I've uploaded a fix at https://github.com/harvard-acc/ALADDIN/pull/39.


Sam Xi
Google Inc., Software Engineer
http://www.samxi.org


Reply all
Reply to author
Forward
0 new messages