Martin Owens :inkscape:

Apparently there are no good #gcc tools to find unnecessary header includes in #CPP while using ninja/cmake (and NOTE not being the author of the build system)

...

A lot of you guys are #programmers what's the right tool here?

I don't need something that complains about every external include not found, just local symbols without having to recompile everything.

EDIT: Good Answers everyone!

#code #codeQuality

Jun 17, 2025, 19:15 · · · 1 · 0
Habr

C++ для самых маленьких: Введение в программирование на С++. Часть 1

C++ — это язык программирования, который был создан как улучшенная версия языка C. Он появился очень давно (в 1985 году), но до сих пор используется повсеместно: в играх, браузерах, операционных системах, автомобилях и даже в искусственном интеллекте! В этой статье мы установим все инструменты для С++!

habr.com/ru/articles/919330/

#c++ #gcc #g++ #vscode #mingw #msvc #c #compiler

C++ для самых маленьких: Введение в программирование на С++. Часть 1

💻 Что такое C++? C++ — это язык программирования,…

Хабр
Free Software Foundation

Assigning your copyright to the FSF helps defend the GPL and keep software free. Thank you to Giovanni Turco for assigning your copyright to the FSF! More at: u.fsf.org/463 #GCC #CopyrightAssignments

Free Software Supporter -- Issue 203, March 2025 — Free Software Foundation — Working together for free software

www.fsf.org
Paolo Amoroso

Fabien Sanglard published a blog series on driving C compilers, i.e. running the compiler toolchain to build executable programs:

fabiensanglard.net/dc/index.ph

More recently Julia Evans @b0rk posted on the related topic of using Make to compile C programs, which nicely complements Fabien's series:

jvns.ca/blog/2025/06/10/how-to

#clang #gcc #compilers

Driving Compilers

fabiensanglard.net
Jörg 🇩🇪🇬🇧🇪🇺

für das System als Ganzes. Wir mussten uns damals das #Linux noch auf 5 1/4“ #Disketten aus dem Internet beziehen. Wir haben es uns per #FTP Diskettenweise runter geladen. Dann gab es verschiedene Diskettensätze. Einige für das Basissystem. Das enthielt nur das notwendigste und den Kernelquellcode. Ein Satz mit #gcc. Kurze Zeit später gab es auch einen Satz mit dem X-System (Waren glaube ich 10 Disketten).
Erste Aktion nach der Installation war dann sich erstmal einen Kernel für das eigene (3/4)

datenwolf

All I want is just a collection of #binutils, #GCC, #llvm+#clang, #glibc and #musl that are "free standing" / relocatable, which I can pack into a #squashfs image to carry around to my various development machines.

You'd think that for something as fundamental as compiler infrastructure with over 60 years of knowledge, the whole bootstrapping and bringup process would have been super streamlined, or at least mostly pain free by now.

Yeah, about that. IYKYK

Habr

Оптимизируем C++ шаблоны: от инлайнинга до модулей

Мы рассмотрим, чем опасны шаблоны для проекта на C++ и как минимизировать эти риски. В оптимизации нам помогут инлайн-файлы, явные инстанциации и даже модули из C++20.

habr.com/ru/articles/914632/

#c++ #c++20 #gcc #linux #templates #optimization

Оптимизируем C++ шаблоны: от инлайнинга до модулей

Введение Шаблоны в С++ опасны для начинающего пользователя…

Хабр
Diego Cordoba 🇦🇷

@juliavithoria Muy bueno!

#GCC no viene instalado por default en Fedora?

Podrías compartirlo en formato texto usando un pastebin como [1] así la gente puede replicarlo más fácil.

La gente que use #Fedora o distros RPM, claro xD

[1] bin.disroot.org/

Disroot Bin - Encrypted pastebin by PrivateBin

Visit this link to see the note. Giving the URL to…

Disroot Bin - Encrypted pastebin by PrivateBin
甘瀬ここあ

日本語 (Japanese): Sharkey/Misskey を Fedora 42 にインストールする方法(FreeBSD 向けの修正付き)

When installing the patched versions of Misskey (Pull Request available) and Sharkey (with changes already applied) on a Fedora 42 environment, you may encounter the following errors:

error: ‘uint8_t’ was not declared in this scope error: ‘state’ was not declared in this scope

These issues seem to stem from the version of GCC being used (Reference). Below, I will outline how to resolve these problems on Fedora 42.

Step 1: Install Dependencies

First, as indicated in the wiki, install the necessary dependencies:

sudo dnf install cairo-devel libjpeg-turbo-devel pango-devel giflib-devel pixman-devel

Step 2: Compile GCC/G++

Using the default GCC bundled with Fedora may lead to failed installations when running pnpm install (as of May 27, 2025). To avoid this issue, we need to compile and use a other version of GCC/G++.

Start by downloading the GCC source code using wget, then extract it and navigate to the source directory:

wget https://ftp.tsukuba.wide.ad.jp/software/gcc/releases/gcc-13.3.0/gcc-13.3.0.tar.gz tar xzf gcc-13.3.0.tar.gz cd gcc-13.3.0 mkdir build cd build

Next, install the dependencies required for building GCC/G++:

sudo dnf group install development-tools sudo dnf install mpfr-devel gmp-devel libmpc-devel zlib-devel glibc-devel.i686 glibc-devel isl-devel libgphobos-static

Now, configure the build (Flags should be changed as needed.):

../configure --disable-bootstrap --prefix=/usr --program-suffix=-13.3 --mandir=/usr/share/man --enable-languages=c,c++

After configuration, compile GCC with the following command:

make

To utilize multiple cores for a faster build, use the -j flag:

make -j6

Once the compilation is complete, install the new GCC version:

sudo make install

You can verify the installation of the compiled GCC using:

gcc-13.3 -v

Step 3: Modify Installation Command for Misskey/Sharkey

Finally, to successfully install Sharkey and Misskey, modify the installation command as follows:

CXX=/usr/sbin/g++-13.3 CC=/usr/sbin/gcc-13.3 pnpm install --frozen-lockfile

With these adjustments, you should be able to install Misskey and Sharkey without any issues. Enjoy Fediverse!

*I have used LLM to some extent to modify the text to make it more natural. I checked to some extent before post, but please let us know if there are any unnatural parts.

References

Howto Build GCC 13.3 on Fedora 41/40 using GCC 14

Sharkey/Misskey を Fedora 42 にインストールする方法(FreeBSD 向けの修正付き)

この記事では、Fedora 42環境でMisskeyおよびSharkeyのパッチ適用版をインストールする際に発生する可能性のあるコンパイルエラーの解決策を解説します。エラーの原因は、FedoraにバンドルされているデフォルトのGCCのバージョンにあると考えられます。解決策として、まず必要な依存関係をインストールし、次にGCC/G++の新しいバージョンをコンパイルしてインストールします。最後に、Misskey/Sharkeyのインストールコマンドを修正し、新しいGCCのパスを指定することで、インストールを成功させます。この記事を読むことで、Fedora…

Hackers' Pub
Habr

Рецепт фасолей: как я отреверсил бюджетный кнопочный телефон, пропатчил и научил запускать нативные программы на C

Осторожно : в рамках статьи мы во всех деталях исследуем прошивку бюджетного кнопочника, разберемся в её архитектуре и напишем загрузчик программ с MicroSD-флэшки. При этом я постараюсь объяснить всё максимально простым и доступным языком! Недавно я познакомился с легендой форума allsiemens.ru — Ilya_ZX , который известен своим огромным вкладом в тему реверса и моддинга телефонов на платформе E-Gold и S-Gold. Илья поведал мне интересную историю о том, как в начале нулевых, будучи студентом, поспорил с одногруппником, сможет ли он добавить ‭‭«змейку‭‭» в свой Siemens A60. И спор он этот выиграл, путем бессонных ночей ковыряния прошивки в IDA Pro! Я подумал ‭‭— «а чем я хуже?‭‭». Взял в руки кнопочный телефон на платформе Spreadtrum, сдампил прошивку и загрузил в дизассемблер... Если вам интересен подробный процесс реверса различных модулей прошивки, как они взаимодействуют между собой, как я написал программу для применения патчей к фуллфлэшу и, собственно, бинлоадер с первой программой — жду вас под катом!

habr.com/ru/companies/timeweb/

#bodyawm_ништячки #телефоны #смартфоны #spreadtrum #реверсинжиниринг #моддинг #патчи #Elf #GCC #timeweb_статьи

Bernie

I wonder if the huge performance difference between #Ubuntu 25.04 and #Fedora 42 is caused by cppc_cpufreq, by #GCC 15 or just compiler flags?

phoronix.com/review/ubuntu2504

Both are running Linux 6.14, OpenJDK 21 and Python 3.13. Someone in Fedora should definitely investigate the root cause of this 25-30% gap.

Ubuntu 25.04 Delivers Decisive Lead Over Fedora 42 For Ampere Altra Performance

www.phoronix.com
Habr

Основы по GNU Make

GNU Make - это консольная утилита, которая запускает другие консольные утилиты в желаемой последовательности согласно скрипту. Только и всего. В этом тексте я показал, как можно организовать самостоятельно написанные make скрипты для микроконтроллерных проектов.

habr.com/ru/articles/748162/

#GNU_make #make #devops #MCU #GCC #linker #GNU #build_system #C

Aldo Latino :archlinux:

Chi come me usa ancora un vecchio PC con scheda nVidia paleozoica sarà incappato probabilmente in una incompatibilità tra il driver versione 390 e gcc 15 e, di conseguenza, nell'impossibilità a compilare il driver per il kernel. Qui spiego come ho risolto in attesa della patch ufficiale.

#arch #arch_linux #kernel #gcc #gcc15 #nvidia #nvidia390

aldolat.it/posts/2025/arch-lin

Driver nVidia 390 su kernel 6.14 in Arch Linux

Come ho risolto un problema di compilazione del driver…

www.aldolat.it