GCC +8 on older image BeagleBone Black

Hello!

I am trying to build linuxcnc on a BeagleBone Black
GitHub - LinuxCNC/linuxcnc: LinuxCNC controls CNC machines. It can drive milling machines, lathes, 3d printers, laser cutters, plasma cutters, robot arms, hexapods, and more. linuxcnc-dev

Following the recommended steps I see the following error:
machinekit@beaglebone:~/linuxcnc-dev/src$ ./configure --with-realtime=uspace
checking for g++… g++
checking whether the C++ compiler works… yes
checking for C++ compiler default output file name… a.out
checking for suffix of executables…
checking whether we are cross compiling… no
checking for suffix of object files… o
checking whether we are using the GNU C++ compiler… yes
checking whether g++ accepts -g… yes
checking for a BSD-compatible install… /usr/bin/install -c
checking whether g++ supports C++17 features with -std=gnu++17… no
checking whether g++ supports C++17 features with -std=gnu++1z… no
configure: error: *** A compiler with support for C++17 language features is required.

It looks like gcc++ -8 is required, but I’m not sure how to install.
machinekit@beaglebone:~/linuxcnc-dev/src$ sudo apt-get install g+±8
Reading package lists… Done
Building dependency tree
Reading state information… Done
E: Unable to locate package g+±8
E: Couldn’t find any package by regex ‘g+±8’

Am I on the wrong track? This is a real-time image from 2020, with the realtime kernel updated. If updating to a later realtime image is the way then I’m OK to try that but not sure where to start (and that would deserve a different topic).

Version details:
machinekit@beaglebone:~/linuxcnc-dev/src$ sudo /opt/scripts/tools/version.sh
git:/opt/scripts/:[5b2e16aa1e5c0f627f1d48a6dd1c13b446b9f53b]
eeprom:[A335BNLT00C05119BBBK0A00]
model:[TI_AM335x_BeagleBone_Black]
dogtag:[Machinekit Debian Image 2019-09-15]
bootloader:[microSD-(push-button)]:[/dev/mmcblk0]:[U-Boot 2019.04-00002-gbb4af0f50f]:[location: dd MBR]
kernel:[5.10.56-bone-rt-r47]
nodejs:[v6.17.0]
uboot_overlay_options:[enable_uboot_overlays=1]
uboot_overlay_options:[disable_uboot_overlay_emmc=1]
uboot_overlay_options:[disable_uboot_overlay_video=1]
uboot_overlay_options:[uboot_overlay_pru=/lib/firmware/AM335X-PRU-UIO-00A0.dtbo]
uboot_overlay_options:[enable_uboot_cape_universal=1]
pkg check: to individually upgrade run: [sudo apt install --only-upgrade ]
pkg:[bb-cape-overlays]:[4.14.20210821.1-0~stretch+20210923]
pkg:[bb-wl18xx-firmware]:[1.20211222.2-0~stretch+20211222]
pkg:[kmod]:[23-2rcnee1~stretch+20171005]
WARNING:pkg:[librobotcontrol]:[NOT_INSTALLED]
pkg:[firmware-ti-connectivity]:[20190717-2rcnee1~stretch+20200305]
groups:[machinekit : machinekit adm kmem dialout cdrom floppy audio dip video plugdev users systemd-journal i2c bluetooth netdev gpio pwm eqep remoteproc admin spi tisdk weston-launch xenomai cloud9ide]
cmdline:[console=ttyO0,115200n8 root=/dev/mmcblk0p1 ro rootfstype=ext4 rootwait coherent_pool=1M net.ifnames=0 rng_core.default_quality=100 quiet]
dmesg | grep remote
[ 1.708106] remoteproc remoteproc0: wkup_m3 is available
[ 2.344402] remoteproc remoteproc0: powering up wkup_m3
[ 2.349083] remoteproc remoteproc0: Booting fw image am335x-pm-firmware.elf, size 217148
[ 2.349338] remoteproc remoteproc0: remote processor wkup_m3 is now up
dmesg | grep pru
[ 2.205070] sysfs: cannot create duplicate filename ‘/bus/platform/devices/4a300000.pruss’
dmesg | grep pinctrl-single
[ 1.840312] pinctrl-single 44e10800.pinmux: 142 pins, size 568
dmesg | grep gpio-of-helper
lsusb
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
END

configure: error: *** A compiler with support for C++17 language features is required.

That line has me thinking. I am going to try to build it w/ an updated image, no RT for now.

I will report back.

Seth

gcc-8 was first available in Debian Buster…

https://packages.debian.org/source/buster/gcc-8

Regards,