Esphome Addon - Compile Fail - Segmentation Errror (Raspbian on RP4)

I wanted to try ESP Home on Weemos D1 mini instead of Tasmota. I have Raspberry Pi 4 running Hassio. When I want to compile binary the output is error below.

I found that I need to update firmware of the Pi which I did, however cmd uname -a shows still the old one. The rpi-update saying I have the latest.

To be sure I used that tool on SSD I am running system from plus from SD card. Both boots are updated but I still obtain the error in compilation of binary.

INFO Reading configuration /config/esphome/test.yaml...
INFO Generating C++ source...
INFO Compiling app...
INFO Running:  platformio run -d /config/esphome/test
Processing test (board: esp01_1m; framework: arduino; platform: [email protected])
--------------------------------------------------------------------------------
HARDWARE: ESP8266 80MHz, 80KB RAM, 1MB Flash
Dependency Graph
|-- <ESPAsyncTCP-esphome> 1.2.2
|   |-- <ESP8266WiFi> 1.0
|-- <ESP8266WiFi> 1.0
|-- <ESP8266mDNS> 1.2
|   |-- <ESP8266WiFi> 1.0
|-- <ESPAsyncWebServer-esphome> 1.2.6
|   |-- <ESPAsyncTCP-esphome> 1.2.2
|   |   |-- <ESP8266WiFi> 1.0
|   |-- <Hash> 1.0
|   |-- <ESP8266WiFi> 1.0
|-- <DNSServer> 1.1.1
|   |-- <ESP8266WiFi> 1.0
Compiling /data/test/.pioenvs/test/src/esphome/components/api/subscribe_state.cpp.o
Compiling /data/test/.pioenvs/test/src/esphome/components/api/user_services.cpp.o
Compiling /data/test/.pioenvs/test/src/esphome/components/api/util.cpp.o
xtensa-lx106-elf-g++: internal compiler error: Segmentation fault (program cc1plus)
Please submit a full bug report,
with preprocessed source if appropriate.
See <http://gcc.gnu.org/bugs.html> for instructions.
*** [/data/test/.pioenvs/test/src/esphome/components/api/util.cpp.o] Error 4
Compiling /data/test/.pioenvs/test/src/esphome/components/captive_portal/captive_portal.cpp.o
========================== [FAILED] Took 5.92 seconds ==========================
pi@rpi:~ $ sudo uname -a
Linux rpi 4.19.75-v7l+ #1270 SMP Tue Sep 24 18:51:41 BST 2019 armv7l GNU/Linux
pi@rpi:~ $ sudo rpi-update
 *** Raspberry Pi firmware updater by Hexxeh, enhanced by AndrewS and Dom
 *** Performing self-update
 *** Relaunching after update
 *** Raspberry Pi firmware updater by Hexxeh, enhanced by AndrewS and Dom
 *** Your firmware is already up to date

Solved by using different approach of setting SSD as a boot device