Quantcast
Channel: Raspberry Pi Forums
Viewing all articles
Browse latest Browse all 2526

Raspberry Pi OS • Re: GCC 14.1.0 with Bookworm on RPI5

$
0
0
That's not something I have tried. The GCC help list may be more useful.
BUT I did notice that in the script it looks like the \ is missing in the OPTS= setting?
You have added the "--disable-libstdcxx" on a new line without the \ continuation.
Thank you for the reply and thanks for noticing that typo (I had meant to remove --disable-libstdcxx from the script before I posted, it wasn't supposed to be there :) ).

So I tried all sorts of things to correct this error including adding a line containing export LD_PRELOAD="/usr/lib/aarch64-linux-gnu/libstdc++.so.6.0.30" before the make command. Based on sources online this command was known to resolve this particular error message for a GCC build script for a different distro but for some reason it didn't work for me on Bookworm.

I ultimately gave up trying to build a pre-gcc-11 C compiler on Bookworm. It might be possible but it's beyond my limited abilities to figure this out. My solution was to fallback to 64-Bit Bullseye (which comes with gcc-9 and gcc-10 by default). I then was able to use your script to successfully build GCC-11 on Bullseye which gives me the functionality that I was looking for. So I think your script works great when building a newer version of GCC (which is probably what you intended it to be used for). So thank you.

Statistics: Posted by GVX64 — Fri Aug 23, 2024 4:08 pm



Viewing all articles
Browse latest Browse all 2526

Trending Articles