Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Building error gcc-5.1.0 on ubuntu:

Tags:

gcc

ubuntu

Got the following error during the building of gcc-5.1.0 on ubuntu:

checking for int64_t underlying type... long long
configure: error: error verifying int64_t uses long long

The configuration was:

CONFIGURE = ../../gcc-5.1.0/configure

OPT = --program-suffix=-5.1.0 \ --prefix=/opt/gcc-5.1.0 \ --with-local-prefix=/opt/gcc-5.1.0 \ --enable-languages=c,c++ \ --enable-threads=posix \ --enable-__cxa_atexit \ --enable-c99 \ --enable-long-long \ --disable-shared \ --disable-multilib \

all: $(CONFIGURE) $(OPT)

Can anybody clarify how to fix it?

like image 721
Sergey Strukov Avatar asked Dec 20 '22 02:12

Sergey Strukov


2 Answers

Googling the error message comes up with this bug as the first result that surmises that the error message is caused by trying to build gcc without a C++ compiler.

To solve this, install a C++ compiler first. On Ubuntu you could try G++:

sudo apt-get install g++
like image 127
DanielGibbs Avatar answered Dec 21 '22 14:12

DanielGibbs


Ok. The problem was the following:

the command g++ was not avaliable.

Fixed by additional installation.

like image 41
Sergey Strukov Avatar answered Dec 21 '22 16:12

Sergey Strukov