Home>

I want to expand the memory of raspberrypi3 modelB

History

When doing catkin_make
c ++: internal compiler error: forced termination (program cc1plus)
~ Omitted ~
Makefile: 138: Recipe for target 'all' failed
make: *** [all] Error 2
Invoking "make -j4 -l4" failed
And the build stopped.

What you ’ve verified

$dmesg,
[5020.936003] Out of memory: Kill process 2781 (cc1plus) score 408 or sacrifice child
[5020.952330] Killed process 2781 (cc1plus) total-vm: 406712kB, anon-rss: 384300kB, file-rss: 132kB

It was

. Insufficient system memory? It seems to be doing.


By the way
ubuntu @ raspi: ~ $free -h
____total used free shared buff/cache available
Mem: 920M 33M 806M 6.9M 80M 849M
Swap: 0B 0B 0B


ubuntu @ raspberry: ~ $df -h
Filesystem Size Used Avail Use% Mounted on
udev 450M 0 450M 0%/dev
tmpfs 93M 6.9M 86M 8%/run
/ dev/mmcblk0p2 224G 4.7G 219G 3%/
tmpfs 461M 0 461M 0%/dev/shm
tmpfs 5.0M 0 5.0M 0%/run/lock
tmpfs 461M 0 461M 0%/sys/fs/cgroup
/ dev/mmcblk0p1 128M 50M 79M 39%/boot/firmware
tmpfs 93M 0 93M 0%/run/user/1000

How is partition expansion due to lack of memory ...?
Isn't it impossible because it's a rasp pie problem?

Supplemental information

The OS used is Ubuntu 16.04

  • Answer # 1

    You can extend it
    However, it seems to be enough to see it