NVMain and Gem5 environment to build (c)

Gem5 environment to build

  1. hg to build
    HG (Mercurial) Description:
    Mercurial is a very good distributed version control system (DCVS), with high efficiency, cross-platform, scalable, and easy to use open source, etc., is currently the most popular version control tool one. Mercurial English word for mercury, so often abbreviated Hg.
sudo pip install mercurial
ubuntu@VM-0-5-ubuntu:~$ sudo pip install mercurial
DEPRECATION: Python 2.7 reached the end of its life on January 1st, 2020. Please upgrade your Python as Python 2.7 is no longer maintained. A future version of pip will drop support for Python 2.7. More details about Python 2 support in pip, can be found at https://pip.pypa.io/en/latest/development/release-process/#python-2-support
WARNING: The directory '/home/ubuntu/.cache/pip' or its parent directory is not owned or is not writable by the current user. The cache has been disabled. Check the permissions and owner of that directory. If executing pip with sudo, you may want sudo's -H flag.
Looking in indexes: https://pypi.doubanio.com/simple
Collecting mercurial
  Downloading https://pypi.doubanio.com/packages/91/3b/e531b6845dda605b3bb9835f2c260ed6917f2cbda1a999feb8da6632a697/mercurial-5.3.tar.gz (7.5 MB)
     |████████████████████████████████| 7.5 MB 44.5 MB/s 
Building wheels for collected packages: mercurial
  Building wheel for mercurial (setup.py) ... done
  Created wheel for mercurial: filename=mercurial-5.3-cp27-cp27mu-linux_x86_64.whl size=5704813 sha256=ab87798541834f527f6dba50f24eadf8302a3c7631573fc26b80e4fa4dbf314f
  Stored in directory: /tmp/pip-ephem-wheel-cache-GA_eP6/wheels/61/4c/55/e641cbb43bdaf6c272b1debf480f33c825830acd14729521dd
Successfully built mercurial
Installing collected packages: mercurial
Successfully installed mercurial-5.3

Official website tutorial

  1. Then we look hg clone
ubuntu@VM-0-5-ubuntu:~$ hg clone http://repo.gem5.org/gem5
abort: error: Name or service not known

Found a big problem, not solve. I was in tokyo server is the same situation, it seems only a git.

But how Tencent cloud hanging proxy turn I have not studied, this card certainly be dead

git clone https://gem5.googlesource.com/public/gem5

  1. Then again github download ftp transfer into it
    github link
sudo git clone https://github.com/gem5/gem5.git

Acting is not linked to a rate of about 40-100k, like Ren Ren

remote: Enumerating objects: 207051, done.
remote: Total 207051 (delta 0), reused 0 (delta 0), pack-reused 207051
Receiving objects: 100% (207051/207051), 226.20 MiB | 70.00 KiB/s, done.
Resolving deltas: 100% (100210/100210), done.
Checking connectivity... done.

Dependent libraries protobuf-compiler

sudo apt-get install protobuf-compiler
Reading package lists... Done
Building dependency tree       
Reading state information... Done
The following additional packages will be installed:
  libprotobuf9v5 libprotoc9v5
The following NEW packages will be installed:
  libprotobuf9v5 libprotoc9v5 protobuf-compiler
0 upgraded, 3 newly installed, 0 to remove and 183 not upgraded.
Need to get 620 kB of archives.
After this operation, 2,321 kB of additional disk space will be used.
Do you want to continue? [Y/n] y
Get:1 http://mirrors.tencentyun.com/ubuntu xenial/main amd64 libprotobuf9v5 amd64 2.6.1-1.3 [326 kB]
Get:2 http://mirrors.tencentyun.com/ubuntu xenial/main amd64 libprotoc9v5 amd64 2.6.1-1.3 [273 kB]
Get:3 http://mirrors.tencentyun.com/ubuntu xenial/main amd64 protobuf-compiler amd64 2.6.1-1.3 [20.4 kB]
Fetched 620 kB in 0s (859 kB/s)         
Selecting previously unselected package libprotobuf9v5:amd64.
(Reading database ... 112537 files and directories currently installed.)
Preparing to unpack .../libprotobuf9v5_2.6.1-1.3_amd64.deb ...
Unpacking libprotobuf9v5:amd64 (2.6.1-1.3) ...
Selecting previously unselected package libprotoc9v5:amd64.
Preparing to unpack .../libprotoc9v5_2.6.1-1.3_amd64.deb ...
Unpacking libprotoc9v5:amd64 (2.6.1-1.3) ...
Selecting previously unselected package protobuf-compiler.
Preparing to unpack .../protobuf-compiler_2.6.1-1.3_amd64.deb ...
Unpacking protobuf-compiler (2.6.1-1.3) ...
Processing triggers for libc-bin (2.23-0ubuntu10) ...
Processing triggers for man-db (2.7.5-1) ...
Setting up libprotobuf9v5:amd64 (2.6.1-1.3) ...
Setting up libprotoc9v5:amd64 (2.6.1-1.3) ...
Setting up protobuf-compiler (2.6.1-1.3) ...
Processing triggers for libc-bin (2.23-0ubuntu10) ...

Then start compiling

scons build / X86 / gem5.opt
here to select x86, the other I do not ah
find things not quite right, how to use for so long, and thus opened the official website to see what there is there, the result was told to compile 1- 2 hours. I thought I was a garbage man beggars machine, little tears head
official tutorial

scons build/X86/gem5.opt



Wait for the installation process to eat a dinner here in

Okay, I get that done it forever, long, long time to feel the
eight, Tencent terminal hung up

{standard input}: Assembler messages:
{standard input}:4788317: Warning: end of file not at end of a line; newline inserted
{standard input}:4789146: Warning: zero assumed for missing expression
g++: internal compiler error: Killed (program cc1plus)
Please submit a full bug report,
with preprocessed source if appropriate.
See <file:///usr/share/doc/gcc-5/README.Bugs> for instructions.
scons: *** [build/X86/arch/x86/generated/inst-constrs.o] Error 4
scons: building terminated because of errors.

After re-hang the terminal to die, it seems to have re-installed

Reload the snapshot I remembered why not it? In any case this must first snapshot down

Published 66 original articles · won praise 24 · views 20000 +

Guess you like

Origin blog.csdn.net/weixin_43914889/article/details/104634755
Recommended