Re: [CentOS] Raspberry Pi 4 and C++ 17
On 26/04/22 6:41 am, Will wrote: Hi, I have a program I want to run on a Raspberry PI 4 that was written on an x86_64 architecture. So I downloaded the Raspberry PI image of CentOS 7 and now I'm on armv7hl. Unfortunately, there doesn't appear to be any devtools for arm at all. Is there an easy(ish) way to get c++ 17 this architecture? Rocky Linux 8 has gcc-toolset-11 for aarch64 with an rpi-installible image. That has support for C++ 17. Peter ___ CentOS mailing list CentOS@centos.org https://lists.centos.org/mailman/listinfo/centos
Re: [CentOS] Raspberry Pi 4 and C++ 17
Hello Will, maybe package manager like spack[1] or guix[2] might help. [1] https://spack.readthedocs.io/en/latest/index.html [2] https://guix.gnu.org/ best, Juraj -Original Message- From: Will Reply-To: CentOS mailing list To: CentOS@centos.org Subject: [CentOS] Raspberry Pi 4 and C++ 17 Date: Mon, 25 Apr 2022 14:41:18 -0400 Hi, I have a program I want to run on a Raspberry PI 4 that was written on an x86_64 architecture. So I downloaded the Raspberry PI image of CentOS 7 and now I'm on armv7hl. Unfortunately, there doesn't appear to be any devtools for arm at all. Is there an easy(ish) way to get c++ 17 this architecture? Thank you! --- Will ___ CentOS mailing list CentOS@centos.org https://lists.centos.org/mailman/listinfo/centos ___ CentOS mailing list CentOS@centos.org https://lists.centos.org/mailman/listinfo/centos
Re: [CentOS] Raspberry Pi 4 and C++ 17
On Mon, Apr 25, 2022, Will wrote: >On 4/25/2022 4:09 PM, Bill Campbell wrote: >> On Mon, Apr 25, 2022, Will wrote: >> > Hi, >> > >> > I have a program I want to run on a Raspberry PI 4 that was written on an >> > x86_64 architecture. So I downloaded the Raspberry PI image of CentOS 7 >> > and >> > now I'm on armv7hl. Unfortunately, there doesn't appear to be any devtools >> > for arm at all. Is there an easy(ish) way to get c++ 17 this architecture? >> What program do you want to run on the Pi 4? >> >> Bill >It's something I wrote myself a few years ago that extensively uses >std::filesystem. Will, Have you tried building on the current 64 bit Raspberry PI Linux? My most recent install is running on an 8GB Pi 4+ in an Argon One M.2 case with 1TB SSD drive in a headless configuration. I've built over 300 packages from sources for amavisd through zlib on the Pi. These are all packages I've been using for decades going back to Caldera Linux and most recently CentOS. I've had to install quite a few development packages using apt-get on the Pi. I could provide a complete list of installed packages that could be used to quickly use apt-get install to pull in the packages needed. # dpkg-query -f '${binary:Package}\n' -W | sort > packages_list.txt # comm -13 packages_list.txt mypackagelist > newpackages # apt-get update # apt-get install `cat newpackages` Bill -- INTERNET: b...@celestial.com Bill Campbell; Celestial Software LLC URL: http://www2.celestial.com/ 6641 E. Mercer Way Mobile: (206) 947-5591 PO Box 820 Fax:(206) 232-9186 Mercer Island, WA 98040-0820 ...if it weren't for the the denial of common sense, most of our public intellectuals would have nothing to do -- Tom Woods, Meltdown ___ CentOS mailing list CentOS@centos.org https://lists.centos.org/mailman/listinfo/centos
Re: [CentOS] Raspberry Pi 4 and C++ 17
Am 25.04.22 um 23:30 schrieb Will: Hi, I think things are different because I'm on a Raspberry PI using armv7hl instead of x86_64. Ups, u are right. My fingers typed faster then my brain :-) ___ CentOS mailing list CentOS@centos.org https://lists.centos.org/mailman/listinfo/centos
Re: [CentOS] Raspberry Pi 4 and C++ 17
Have you built RPMs from their source SRPMs before? I'd suggest getting one of the SRPMs from SCL and building it on the Pi. You'll probably have to incrementally build the whole tool chain, just as those in scl were built. It's possible you could get the person who built the scl versions for x86_64 to add armv7hl to their list of build architectures and it would build and appear automatically. (I'm not familiar enough with the process to know just how automated that is.) ___ CentOS mailing list CentOS@centos.org https://lists.centos.org/mailman/listinfo/centos
Re: [CentOS] Raspberry Pi 4 and C++ 17
Hi, I think things are different because I'm on a Raspberry PI using armv7hl instead of x86_64. [root@localhost ~]# yum --enablerepo=extras install centos-release-scl centos-release-scl-rh Loaded plugins: fastestmirror, langpacks Loading mirror speeds from cached hostfile * base: mirror.chpc.utah.edu * centos-kernel: ftp.osuosl.org * extras: mirror.vacares.com * updates: mirror.vacares.com No package centos-release-scl available. No package centos-release-scl-rh available. Error: Nothing to do [root@localhost ~]# yum list all |egrep "d.*gcc-c++"|column -t Doesn't look like that will work here. I did do that on my main machine that is x86_64. Devtools is installed there and working fine. I even scripted the install. Just doesn't work on the Raspberry PI version. For instance, this is what I get from my main x86_64 dev box: [root@home:~]# yum list all |egrep "d.*gcc-c++"|column -t devtoolset-8-gcc-c++.x86_64 8.3.1-3.2.el7 @centos-sclo-rh devtoolset-10-gcc-c++.x86_64 10.2.1-11.2.el7 centos-sclo-rh devtoolset-11-gcc-c++.x86_64 11.2.1-1.2.el7 centos-sclo-rh devtoolset-7-gcc-c++.x86_64 7.3.1-5.16.el7 centos-sclo-rh devtoolset-9-gcc-c++.x86_64 9.3.1-2.2.el7 centos-sclo-rh I think I found a custom built devtoolset-8 for armv7hl. Just haven't gotten it to work yet. :( --- Will On 4/25/2022 5:18 PM, Leon Fauster via CentOS wrote: Am 25.04.22 um 23:07 schrieb Kenneth Porter: --On Monday, April 25, 2022 4:30 PM -0400 Will wrote: I sure did try that. I also tried to install devtools (no luck there). [root@localhost source]# yum list installed binutils* gcc-c++* libc-devel* I'd suggest checking Software Collections or COPR for newer devtools built for CentOS 7. They'd install to /opt and you'd use the scripts to set your path to use the alternate tools. yum --enablerepo=extras install centos-release-scl centos-release-scl-rh # yum list all |egrep "d.*gcc-c++"|column -t devtoolset-10-gcc-c++.x86_64 10.2.1-11.2.el7 centos-sclo-rh devtoolset-11-gcc-c++.x86_64 11.2.1-1.2.el7 centos-sclo-rh devtoolset-3-gcc-c++.x86_64 4.9.2-6.el7 centos-vault-sclo-rh devtoolset-4-gcc-c++.x86_64 5.3.1-6.1.el7 centos-vault-sclo-rh devtoolset-6-gcc-c++.x86_64 6.3.1-3.1.el7 centos-vault-sclo-rh devtoolset-7-gcc-c++.x86_64 7.3.1-5.16.el7 centos-sclo-rh devtoolset-8-gcc-c++.x86_64 8.3.1-3.2.el7 centos-sclo-rh devtoolset-9-gcc-c++.x86_64 9.3.1-2.2.el7 centos-sclo-rh -- Leon ___ CentOS mailing list CentOS@centos.org https://lists.centos.org/mailman/listinfo/centos ___ CentOS mailing list CentOS@centos.org https://lists.centos.org/mailman/listinfo/centos
Re: [CentOS] Raspberry Pi 4 and C++ 17
Am 25.04.22 um 23:07 schrieb Kenneth Porter: --On Monday, April 25, 2022 4:30 PM -0400 Will wrote: I sure did try that. I also tried to install devtools (no luck there). [root@localhost source]# yum list installed binutils* gcc-c++* libc-devel* I'd suggest checking Software Collections or COPR for newer devtools built for CentOS 7. They'd install to /opt and you'd use the scripts to set your path to use the alternate tools. yum --enablerepo=extras install centos-release-scl centos-release-scl-rh # yum list all |egrep "d.*gcc-c++"|column -t devtoolset-10-gcc-c++.x86_64 10.2.1-11.2.el7 centos-sclo-rh devtoolset-11-gcc-c++.x86_64 11.2.1-1.2.el7 centos-sclo-rh devtoolset-3-gcc-c++.x86_64 4.9.2-6.el7 centos-vault-sclo-rh devtoolset-4-gcc-c++.x86_64 5.3.1-6.1.el7centos-vault-sclo-rh devtoolset-6-gcc-c++.x86_64 6.3.1-3.1.el7centos-vault-sclo-rh devtoolset-7-gcc-c++.x86_64 7.3.1-5.16.el7 centos-sclo-rh devtoolset-8-gcc-c++.x86_64 8.3.1-3.2.el7centos-sclo-rh devtoolset-9-gcc-c++.x86_64 9.3.1-2.2.el7centos-sclo-rh -- Leon ___ CentOS mailing list CentOS@centos.org https://lists.centos.org/mailman/listinfo/centos
Re: [CentOS] Raspberry Pi 4 and C++ 17
--On Monday, April 25, 2022 4:30 PM -0400 Will wrote: I sure did try that. I also tried to install devtools (no luck there). [root@localhost source]# yum list installed binutils* gcc-c++* libc-devel* I'd suggest checking Software Collections or COPR for newer devtools built for CentOS 7. They'd install to /opt and you'd use the scripts to set your path to use the alternate tools. ___ CentOS mailing list CentOS@centos.org https://lists.centos.org/mailman/listinfo/centos
Re: [CentOS] Raspberry Pi 4 and C++ 17
On 4/25/2022 4:09 PM, Bill Campbell wrote: On Mon, Apr 25, 2022, Will wrote: Hi, I have a program I want to run on a Raspberry PI 4 that was written on an x86_64 architecture. So I downloaded the Raspberry PI image of CentOS 7 and now I'm on armv7hl. Unfortunately, there doesn't appear to be any devtools for arm at all. Is there an easy(ish) way to get c++ 17 this architecture? What program do you want to run on the Pi 4? Bill It's something I wrote myself a few years ago that extensively uses std::filesystem. --- Will ___ CentOS mailing list CentOS@centos.org https://lists.centos.org/mailman/listinfo/centos
Re: [CentOS] Raspberry Pi 4 and C++ 17
On Mon, Apr 25, 2022, Will wrote: >Hi, > >I have a program I want to run on a Raspberry PI 4 that was written on an >x86_64 architecture. So I downloaded the Raspberry PI image of CentOS 7 and >now I'm on armv7hl. Unfortunately, there doesn't appear to be any devtools >for arm at all. Is there an easy(ish) way to get c++ 17 this architecture? What program do you want to run on the Pi 4? Bill -- INTERNET: b...@celestial.com Bill Campbell; Celestial Software LLC URL: http://www2.celestial.com/ 6641 E. Mercer Way Mobile: (206) 947-5591 PO Box 820 Fax:(206) 232-9186 Mercer Island, WA 98040-0820 Instead of giving money to found colleges to promote learning, why don't they pass a constitutional amendment prohibiting anybody from learning anything? If it works as good as the Prohibition one did, why, in five years we would have the smartest race of people on earth. -- The Best of Will Rogers ___ CentOS mailing list CentOS@centos.org https://lists.centos.org/mailman/listinfo/centos
Re: [CentOS] Raspberry Pi 4 and C++ 17
Hi, I sure did try that. I also tried to install devtools (no luck there). [root@localhost source]# yum list installed binutils* gcc-c++* libc-devel* Installed Packages binutils.armv7hl 2.27-44.base.el7_9.1 @updates gcc-c++.armv7hl 4.8.5-44.el7 @base And: [root@localhost source]# gcc -v --help 2>/dev/null| grep '\-std=c++' -ansi A synonym for -std=c89 (for C) or -std=c++98 (for -std=c++03 Conform to the ISO 1998 C++ standard revised by -std=c++0x Deprecated in favor of -std=c++11 -std=c++11 Conform to the ISO 2011 C++ standard -std=c++1y Conform to the ISO 201y(7?) C++ draft standard -std=c++98 Conform to the ISO 1998 C++ standard revised by So looks like gcc-c++ 4.8.5-44 only gets me to C++11. Almost there. For some reason I decided to use std::filesystem a bunch of places and it looks like it is only supported in C++17. On 4/25/2022 3:06 PM, Robert Heller wrote: Did you try: sudo yum install gcc-c++ binutils libc-devel ??? Not sure what version of gcc-c++ that will get you. My CentOS 7 VPS has gcc-c++-4.8.5-44.el7.x86_64 on it, so I would assume the above should get you gcc-c++-4.8.5-44.el7.armv7hl. OTOH, my Raspberry Pi 4 build box with Raspberry Pi OS (based on Debian 10) has gcc version 8.3.0 (Raspbian 8.3.0-6+rpi1). Maybe you should just get an up-to-date Raspberry Pi OS image. Then after 'sudo apt update;sudo apt full-upgrade -y' you can do 'sudo apt install g++ binutils libc-dev'. At Mon, 25 Apr 2022 14:41:18 -0400 CentOS mailing list wrote: Hi, I have a program I want to run on a Raspberry PI 4 that was written on an x86_64 architecture. So I downloaded the Raspberry PI image of CentOS 7 and now I'm on armv7hl. Unfortunately, there doesn't appear to be any devtools for arm at all. Is there an easy(ish) way to get c++ 17 this architecture? Thank you! --- Will ___ CentOS mailing list CentOS@centos.org https://lists.centos.org/mailman/listinfo/centos ___ CentOS mailing list CentOS@centos.org https://lists.centos.org/mailman/listinfo/centos ___ CentOS mailing list CentOS@centos.org https://lists.centos.org/mailman/listinfo/centos
Re: [CentOS] Raspberry Pi 4 and C++ 17
Did you try: sudo yum install gcc-c++ binutils libc-devel ??? Not sure what version of gcc-c++ that will get you. My CentOS 7 VPS has gcc-c++-4.8.5-44.el7.x86_64 on it, so I would assume the above should get you gcc-c++-4.8.5-44.el7.armv7hl. OTOH, my Raspberry Pi 4 build box with Raspberry Pi OS (based on Debian 10) has gcc version 8.3.0 (Raspbian 8.3.0-6+rpi1). Maybe you should just get an up-to-date Raspberry Pi OS image. Then after 'sudo apt update;sudo apt full-upgrade -y' you can do 'sudo apt install g++ binutils libc-dev'. At Mon, 25 Apr 2022 14:41:18 -0400 CentOS mailing list wrote: > > Hi, > > I have a program I want to run on a Raspberry PI 4 that was written on > an x86_64 architecture.ÃÂ So I downloaded the Raspberry PI image of > CentOS 7 and now I'm on armv7hl.ÃÂ Unfortunately, there doesn't appear to > be any devtools for arm at all.ÃÂ Is there an easy(ish) way to get c++ 17 > this architecture? > > Thank you! > > --- > Will > > ___ > CentOS mailing list > CentOS@centos.org > https://lists.centos.org/mailman/listinfo/centos > > -- Robert Heller -- Cell: 413-658-7953 GV: 978-633-5364 Deepwoods Software-- Custom Software Services http://www.deepsoft.com/ -- Linux Administration Services hel...@deepsoft.com -- Webhosting Services ___ CentOS mailing list CentOS@centos.org https://lists.centos.org/mailman/listinfo/centos
[CentOS] Raspberry Pi 4 and C++ 17
Hi, I have a program I want to run on a Raspberry PI 4 that was written on an x86_64 architecture. So I downloaded the Raspberry PI image of CentOS 7 and now I'm on armv7hl. Unfortunately, there doesn't appear to be any devtools for arm at all. Is there an easy(ish) way to get c++ 17 this architecture? Thank you! --- Will ___ CentOS mailing list CentOS@centos.org https://lists.centos.org/mailman/listinfo/centos