I followed the README in the example, changed the ENV VERSION in the Dockerfile.template file to 2.73.1+rev1.prod, then did a git push balena master to my Balena remote.
Unfortunately I get a GCC error gcc: error: unrecognized command line option '-mstack-protector-guard=sysreg'; did you mean '-fstack-protector-strong'?
The hardware I’m using is a Raspberry Pi 4.
It looks to be an issue with gcc but I can’t find a way to resolve it.
Hi @jhan.charler, first of all welcome to the balena community
Can you please post a link to the example you are using?
Next, it’d help us with troubleshooting if you could share a minimal dockerfile that produces this error.
As this looks like a compiler error, I wonder if the issue here is the device architecture. Specifically something to do with 64bit architecture of RPi4.
Hey @jhan-charler, I replied directly to your GH issue with a branch that should resolve the GCC 8 issue with recent OS releases. Could you give it a try and respond there if it works and I’ll complete the merge?
@jleppert This works for me using the gcc-10 branch. I even used raspberrypicm4-ioboard and 2.71.3+rev5 to be sure. Can you confirm from the top of your build log that gcc-10 is being installed?
Selecting previously unselected package g++-10.
Preparing to unpack .../14-g++-10_10.2.1-6_arm64.deb ...
Unpacking g++-10 (10.2.1-6) ...
Preparing to unpack .../15-g++_4%3a10.2.1-1_arm64.deb ...
Unpacking g++ (4:10.2.1-1) over (4:8.3.0-1) ...
(Reading database ... 20908 files and directories currently installed.)
Removing g++-8 (8.3.0-6) ...
Removing gcc-8 (8.3.0-6) ...