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?
source to share
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++
source to share