Quantcast
Channel: Active questions tagged ubuntu - Stack Overflow
Viewing all articles
Browse latest Browse all 5956

How to build and Install compiler g++-4.8.5 on ubuntu 24.04 from source code?

$
0
0

I am getting error while building gcc-4.8.5 on ubuntu 24.04

I had followed the below steps as mentioned in the page How to Install compiler g++-4.8.5 in ubuntu 20.04

sudo dpkg --add-architecture i386sudo dpkg --add-architecture i386sudo apt upgradesudo apt-get install gcc-multilib libstdc++6:i386wget https://ftp.gnu.org/gnu/gcc/gcc-4.8.5/gcc-4.8.5.tar.bz2 --no-check-certificatetar xf gcc-4.8.5.tar.bz2sed -i -e 's/__attribute__/\/\/__attribute__/g' gcc-4.8.5/gcc/cp/cfns.hsed -i 's/struct ucontext/ucontext_t/g' gcc-4.8.5/libgcc/config/i386/linux-unwind.hmkdir xgcc-4.8.5pushd xgcc-4.8.5$PWD/../gcc-4.8.5/configure --enable-languages=c,c++ --prefix=/usr --enable-shared --enable-plugin --    program-suffix=-4.8.5make MAKEINFO="makeinfo --force"sudo make install

But, I got the make error as below:

gcc/reload1.c:89:24: error: use of an operand of type ‘bool’ in ‘operator++’ is forbidden in C++17 89 | (this_target_reload->x_spill_indirect_levels) | ~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ ../../gcc/reload1.c:443:7: note: in expansion of macro ‘spill_indirect_levels’ 443 | spill_indirect_levels++;


Viewing all articles
Browse latest Browse all 5956

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>