Pi4B, 8Gb ram problem

Dec 08, 2022 Last reply: 3 years ago 27 Replies

Hello All!



Using Bullseye X64 taken from the raspberry site, I am compiling large-ish programs in C using gcc and this is producing many warning that is causing the created programs not to work so I want to install clang.



The issue with gcc always seems to appear when every that produce a later version :(



Using the repos and the package manager it cannot find clang and I cannot work out how to get it for the Pi4,



I have run clang in place of gcc on other platforms which gets around the issues with gcc so I am hoping it will fix the issue.



Can anyone help in getting clang on the Pi4 ?


Vincent


Hello Brian!

Thursday December 08 2022 20:49, you wrote to me:

For the Pi3B+ running 23 bit yes with - Linux raspberrypi 5.15.76-v7+ #1597 SMP Fri Nov 4 12:13:17 GMT 2022 armv7l

For the Pi4B running x64 no with - Linux raspberrypi 5.15.76-v8+ #1597 SMP PREEMPT Fri Nov 4 12:16:41 GMT 2022 aarch64

Vincent

Does apt list clang show nothing at all?

Its definitely available, I've been using in 64 bit containers on the Pi for years, its often gives slightly better performing ARMv8 code than gcc (default options on both).

---druck

Hello druck!

Thursday December 08 2022 21:41, you wrote to All:

?

Vincent

Did you do an apt update first? But even if you didn't, it's been there for years, like druck said. On my raspios64 installation:

pi@home:~ $ apt-cache show clang Package: clang Source: llvm-defaults (0.51+nmu5) Version: 1:11.0-51+nmu5 Installed-Size: 24 Maintainer: LLVM Packaging Team snipped-for-privacy@lists.alioth.debian.org>

Architecture: arm64 Replaces: clang (<< 3.2-1~exp2), clang-3.2, clang-3.3, clang-3.4 (<<

1:3.4.2-7~exp1), clang-3.5 (<< 1:3.5~+rc1-3~exp1) Depends: clang-11 (>= 11~) Breaks: clang-3.2, clang-3.3, clang-3.4 (<< 1:3.4.2-7~exp1), clang-3.5 (<< 1:3.5~+rc1-3~exp1) Description-en: C, C++ and Objective-C compiler (LLVM based), clang binary Clang project is a C, C++, Objective C and Objective C++ front-end for the LLVM compiler. Its goal is to offer a replacement to the GNU Compiler Collection (GCC). . Clang implements all of the ISO C++ 1998, 11 and 14 standards and also provides most of the support of C++17. . This is a dependency package providing the default clang compiler. Description-md5: 2916bca3b5e11836b745c64f4b346b34 Tag: devel::compiler, devel::lang:c, devel::lang:c++, devel::lang:objc, devel::library, implemented-in::c, implemented-in::c++, interface::commandline, role::devel-lib, role::program, scope::application, works-with::software:source Section: devel Priority: optional Filename: pool/main/l/llvm-defaults/clang_11.0-51+nmu5_arm64.deb Size: 8872 MD5sum: d2574954109dca42ebeb7e6355585d97 SHA256: 033913468bb4fd82f5ee22d844ab5fe059f9ff0755cb23c6fffa9155e8ef2c56

pi@home:~ $ cat /etc/apt/sources.list deb

formatting link
bullseye main contrib non-free deb
formatting link
bullseye-security main contrib non-free deb
formatting link
bullseye-updates main contrib non-free # Uncomment deb-src lines below then 'apt-get update' to enable 'apt-get source' #deb-src
formatting link
bullseye main contrib non-free #deb-src
formatting link
bullseye-security main contrib non-free #deb-src
formatting link
bullseye-updates main contrib non-free pi@home:~ $

What are the warnings?

For no apparent reason the original was sent as base64 encoded, but thunderbird here displays it normally, I had to view source to see what you did.

Hello The!

Saturday December 10 2022 10:12, you wrote to Andy Burns:

As I use Golded it does not support MIME.

It does have ROT-4 what ever that is - never used it.

Vincent

AFAIK, Usenet does not require that MIME encoded messages are supported.

So it should not have been encoded in the first place. That some clients

- mainly those that are also Mail clients, which does support Mime - are able to decode it is just luck.

Hello Brian!

Saturday December 10 2022 15:46, you wrote to me:

On the Pi3 and 32 bi, yes I have installed clang. The problem is with the 64 bit version.

This is teaching me that I really should be using Linux and not Debian.

Vincent

That's weird. You'd think you'd at least be able to install the 32 bit clang.

On Sat, 10 Dec 2022 23:53:16 +1300, snipped-for-privacy@f1.n.z2.fidonet.org (Vincent Coen) declaimed the following:

What do you consider "Linux"? Ubuntu? That's based off of Debian -- but Debian tends to lock down software packages until proven; Ubuntu tends to be "bleeding edge" making all new packages available as soon as they get it compiled.

Red Hat or Fedora? Different package managers, but probably still the same OS core. Antique Mandrake/Mandriva -> Mageia

formatting link
Hat derivatives).

Maybe download the .DEB file and manually install it?

formatting link

Linux is a kernel nothing more.

There are many operating systems using Linux for a kernel, Debian is one such, Android is another, OpenWRT yet another. Most of the unixlike ones use the tools from the GNU project and a selection of other open source software to build a complete operating system around the kernel - many of the smaller ones use busybox instead but some, like the OS that runs many cheap smart TVs, look nothing like unix despite their Linux kernel.

Definitely.

Red Hat (aka RHEL) is the LTS version, with paid-for support if you want that. Fedora is its free, more bleeding, edge equivalent.

I've used Fedora since it first replaced Red Hat 6.x, somewhere around

2005 and would only use RHEL of I was a commercial operation.

I prefer Red Hat to Debian and its derivatives mainly because I find the RH package manager (dnf) easier to use than Debian's apt and friends, but of course ymmv. The log dnf generates during an upgrade is a lot better formatted and easier to read than apt's output.

Raspberry Pi OS 64-bit has clang. Either you don't have Raspberry Pi OS, or it is some other problem on your end. We all have it.

If you're using Debian then you are using Linux.

Hello Brian!

Sunday December 11 2022 16:42, you wrote to me:

Should have said a formal version of Linux i.e., vis RH.

There are a few differences with Debian, at least with he one used for Raspberry h/w. The lack of up to date (or at all) packages on it. I also notice a difference of what is available between Intel/AMD h/w and the Pi.

It is a shame that my attempts to use Ubuntu for the Pi failed both server and desktop when I tried to build the Pi4 SSD some months back.

The Pi builds are some what related to schools, colleges etc as well as children's first computer et al so they are no whay near as complete as standard distro's as near as I can tell.

Major point, when I got to be 70 my patience for such problems has reduced, and now I am 75+ its even less :) I just want it to work - well more or less, period. I expect to have to build the odd app but not the basics !

Vincent

[snip base64 encoded text]

Sorry, no idea why my copy of Thunderbird chose to do that then, I assume it doesn't normally.

---druck

Hello Mark!

Tuesday December 13 2022 12:09, you wrote to me:

That is interesting, Did you install 64 bit versions ?

Vincent

Join the Discussion

Have something to add? Share your thoughts — no account required.

Didn't find your answer?

Ask the community — no account required