Build error gcc-5.1.0 on ubuntu:

An error occurred while building gcc-5.1.0 on ubuntu:

check for base type int64_t ... long long
configure: error: check error int64_t uses long long

The configuration was:

CONFIGURATION = .. / .. / 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 anyone please clarify how to fix this?

+3


source to share


3 answers


The error message shows this error as the first result, suggesting that the error message was caused by trying to build gcc

without a C ++ compiler.

To fix this problem, first install the C ++ compiler. On Ubuntu, you can try g ++:



sudo apt-get install g++

      

+6


source


Ok. The problem was this:

the g ++ command was not available.



Fixed by additional installation.

+2


source


As an additional hint, you can check if symlink is g ++ -> g ++ - xy in / usr / bin. After cleaning gcc 4.6 and installing (apt-get) 4.8, the link was missing on my Raspbian. If g ++ - xy is in / usr / bin, there is no need to reinstall the package.

Hello

0


source







All Articles