r/gnu • u/learnsx1234 • Dec 28 '24
binutils failing to build
Hi I am trying to build binutils-2.43. Can't find anything on internet to solve this error-
- Download and extract source
- mkdir build and cd build
- ../configure
- make
In file included from ../../../gprofng/libcollector/../src/elf.h:30,
from ../../../gprofng/libcollector/mmaptrace.c:32:
../../../gprofng/libcollector/../src/Data_window.h:33:1: error: unknown type name ‘class’
33 | class Data_window
| ^~~~~
../../../gprofng/libcollector/../src/Data_window.h:34:1: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘{’ token
34 | {
1
Upvotes
1
u/[deleted] Dec 30 '24
openSUSE Tumbleweed, here. I installed both "clang" ang "gcc-c++" along "make" and "makeinfo". Compiling seemd to work; I haven'T tested it, yet.
Maybe consider updating the compiler.
0
u/ipsirc Dec 28 '24
Don't build binutils, use the already built version in your distribution.