build from source failed (master branch) #215

Closed
opened 2021-11-26 21:27:52 +00:00 by prandnum · 7 comments
prandnum commented 2021-11-26 21:27:52 +00:00 (Migrated from gitlab.com)

build from source failed (master branch)

logs attached. master-build.log

build from source failed (master branch) logs attached. [master-build.log](/uploads/f74ad19219f30f6f35f2126d811f8fd5/master-build.log)
prandnum commented 2021-11-26 21:28:17 +00:00 (Migrated from gitlab.com)

@bobinson @serkixenos

CC: @hbelakon

@bobinson @serkixenos CC: @hbelakon
serkixenos commented 2021-11-26 23:52:12 +00:00 (Migrated from gitlab.com)

You do not have enough RAM to complete a build:

[ 52%] Building CXX object libraries/chain/CMakeFiles/graphene_chain.dir/match_object.cpp.o
[ 52%] Building CXX object libraries/chain/CMakeFiles/graphene_chain.dir/game_object.cpp.o
c++: internal compiler error: Killed (program cc1plus)
Please submit a full bug report,
with preprocessed source if appropriate.
See <file:///usr/share/doc/gcc-7/README.Bugs> for instructions.
You do not have enough RAM to complete a build: ``` [ 52%] Building CXX object libraries/chain/CMakeFiles/graphene_chain.dir/match_object.cpp.o [ 52%] Building CXX object libraries/chain/CMakeFiles/graphene_chain.dir/game_object.cpp.o c++: internal compiler error: Killed (program cc1plus) Please submit a full bug report, with preprocessed source if appropriate. See <file:///usr/share/doc/gcc-7/README.Bugs> for instructions. ```
serkixenos commented 2021-11-26 23:52:56 +00:00 (Migrated from gitlab.com)

Decrease -j in

make -j$(nproc)
Decrease -j in ``` make -j$(nproc) ```
serkixenos commented 2021-11-26 23:59:21 +00:00 (Migrated from gitlab.com)

assigned to @serkixenos

assigned to @serkixenos
serkixenos commented 2021-11-27 00:01:46 +00:00 (Migrated from gitlab.com)

Last pipeline for master branch executed properly.

https://gitlab.com/PBSA/peerplays/-/pipelines?page=1&scope=branches&ref=master

Last pipeline for master branch executed properly. https://gitlab.com/PBSA/peerplays/-/pipelines?page=1&scope=branches&ref=master
prandnum commented 2021-11-28 13:43:01 +00:00 (Migrated from gitlab.com)

I have 32G in RAM and 16cpu. Earlier it used to work without any issues. Hopefully, the build VM is also having the same spec else we may have to increase our witness VM hardware recommendations.

Anyway going to try with "make -j8"

ubuntu@ip-172-31-35-225:~/src/peerplays$ echo $(nproc)
16
ubuntu@ip-172-31-35-225:~/src/peerplays$

ubuntu@ip-172-31-35-225:~/src/peerplays$ cat /proc/meminfo
MemTotal:       32523720 kB
MemFree:        30883380 kB
MemAvailable:   31303456 kB
Buffers:          154672 kB
Cached:           496536 kB
SwapCached:            0 kB
Active:           783264 kB
Inactive:         213332 kB
Active(anon):     341200 kB
Inactive(anon):    25584 kB
Active(file):     442064 kB
Inactive(file):   187748 kB
Unevictable:          64 kB
Mlocked:              64 kB
SwapTotal:             0 kB
SwapFree:              0 kB
Dirty:                 0 kB
Writeback:             0 kB
AnonPages:        345580 kB
Mapped:            81020 kB
Shmem:             26272 kB
KReclaimable:     253776 kB
Slab:             507660 kB
SReclaimable:     253776 kB
SUnreclaim:       253884 kB
KernelStack:        7392 kB
PageTables:        16272 kB
NFS_Unstable:          0 kB
Bounce:                0 kB
WritebackTmp:          0 kB
CommitLimit:    16261860 kB
Committed_AS:    2849700 kB
VmallocTotal:   34359738367 kB
VmallocUsed:       19640 kB
VmallocChunk:          0 kB
Percpu:            19904 kB
HardwareCorrupted:     0 kB
AnonHugePages:         0 kB
ShmemHugePages:        0 kB
ShmemPmdMapped:        0 kB
FileHugePages:         0 kB
FilePmdMapped:         0 kB
CmaTotal:              0 kB
CmaFree:               0 kB
HugePages_Total:       0
HugePages_Free:        0
HugePages_Rsvd:        0
HugePages_Surp:        0
Hugepagesize:       2048 kB
Hugetlb:               0 kB
DirectMap4k:      681892 kB
DirectMap2M:    29360128 kB
DirectMap1G:     3145728 kB
ubuntu@ip-172-31-35-225:~/src/peerplays$
I have 32G in RAM and 16cpu. Earlier it used to work without any issues. Hopefully, the build VM is also having the same spec else we may have to increase our witness VM hardware recommendations. Anyway going to try with "make -j8" ``` ubuntu@ip-172-31-35-225:~/src/peerplays$ echo $(nproc) 16 ubuntu@ip-172-31-35-225:~/src/peerplays$ ubuntu@ip-172-31-35-225:~/src/peerplays$ cat /proc/meminfo MemTotal: 32523720 kB MemFree: 30883380 kB MemAvailable: 31303456 kB Buffers: 154672 kB Cached: 496536 kB SwapCached: 0 kB Active: 783264 kB Inactive: 213332 kB Active(anon): 341200 kB Inactive(anon): 25584 kB Active(file): 442064 kB Inactive(file): 187748 kB Unevictable: 64 kB Mlocked: 64 kB SwapTotal: 0 kB SwapFree: 0 kB Dirty: 0 kB Writeback: 0 kB AnonPages: 345580 kB Mapped: 81020 kB Shmem: 26272 kB KReclaimable: 253776 kB Slab: 507660 kB SReclaimable: 253776 kB SUnreclaim: 253884 kB KernelStack: 7392 kB PageTables: 16272 kB NFS_Unstable: 0 kB Bounce: 0 kB WritebackTmp: 0 kB CommitLimit: 16261860 kB Committed_AS: 2849700 kB VmallocTotal: 34359738367 kB VmallocUsed: 19640 kB VmallocChunk: 0 kB Percpu: 19904 kB HardwareCorrupted: 0 kB AnonHugePages: 0 kB ShmemHugePages: 0 kB ShmemPmdMapped: 0 kB FileHugePages: 0 kB FilePmdMapped: 0 kB CmaTotal: 0 kB CmaFree: 0 kB HugePages_Total: 0 HugePages_Free: 0 HugePages_Rsvd: 0 HugePages_Surp: 0 Hugepagesize: 2048 kB Hugetlb: 0 kB DirectMap4k: 681892 kB DirectMap2M: 29360128 kB DirectMap1G: 3145728 kB ubuntu@ip-172-31-35-225:~/src/peerplays$ ```
prandnum commented 2021-11-28 18:15:59 +00:00 (Migrated from gitlab.com)

Able to build with "make -j8"
The following is mentioned in the docs so for 16cpus it requires 64GB RAM. so I think my setup is not correct(but it used to work earlier, strange). closing the issue for now.

CPU      Memory Storage    Bandwidth OS
8 Cores  64GB   300GB SSD  1Gbps     Ubuntu 18.04
Able to build with "make -j8" The following is mentioned in the docs so for 16cpus it requires 64GB RAM. so I think my setup is not correct(but it used to work earlier, strange). closing the issue for now. ``` CPU Memory Storage Bandwidth OS 8 Cores 64GB 300GB SSD 1Gbps Ubuntu 18.04 ```
prandnum (Migrated from gitlab.com) closed this issue 2021-11-28 18:15:59 +00:00
Sign in to join this conversation.
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference: Peerplays_Blockchain/peerplays_migrated#215
No description provided.