gcc_7_1_0_release_build issue, unknown spec function 'gt'

Issues related to applications and software problems
Post Reply
skm.works@gmail.com
Posts: 4
Joined: 2017/07/19 10:12:23

gcc_7_1_0_release_build issue, unknown spec function 'gt'

Post by skm.works@gmail.com » 2017/07/19 10:23:01

Hi,

Am new to CentOS as such & using 6.8 that I upgraded to 6.9
I was trying to update the gcc to 7_1_0_release and followed the steps as per https://www.vultr.com/docs/how-to-insta ... n-centos-6
I run into an issue, while make'ing, it aborted with following log:

g++ -std=gnu++98 -g -DIN_GCC -fno-exceptions -fno-rtti -fasynchronous-unwind-tables -W -Wall -Wno-narrowing -Wwrite-strings -Wcast-qual -Wno-format -Wmissing-format-attribute -Woverloaded-virtual -pedantic -Wno-long-long -Wno-variadic-macros -Wno-overlength-strings -fno-common -DHAVE_CONFIG_H -static-libstdc++ -static-libgcc -o xg++ \
gcc.o gcc-main.o ggc-none.o cp/g++spec.o driver-i386.o libcommon-target.a \
libcommon.a ../libcpp/libcpp.a ../libbacktrace/.libs/libbacktrace.a ../libiberty/libiberty.a ../libdecnumber/libdecnumber.a
g++: fatal error: unknown spec function 'gt'
compilation terminated.
make[3]: *** [xg++] Error 1
make[3]: Leaving directory `/home/sanjeev/sourceInstallations/gcc_7_1_0_release_build/gcc'
make[2]: *** [all-stage1-gcc] Error 2
make[2]: Leaving directory `/home/sanjeev/sourceInstallations/gcc_7_1_0_release_build'
make[1]: *** [stage1-bubble] Error 2
make[1]: Leaving directory `/home/sanjeev/sourceInstallations/gcc_7_1_0_release_build'
make: *** [all] Error 2

Am not able to resolve this issue, kindly let me know how to go about it, many thanks in advance!
sanjeev

User avatar
TrevorH
Site Admin
Posts: 33202
Joined: 2009/09/24 10:40:56
Location: Brighton, UK

Re: gcc_7_1_0_release_build issue, unknown spec function 'gt'

Post by TrevorH » 2017/07/19 11:04:35

We do not support source builds at all and especially not for critical packages like gcc.

If you need a newer gcc on CentOS 6 then you should look at the devtoolset-6 packages in the SCL repos. Currently those are e.g.:

devtoolset-6-gcc.x86_64 6.2.1-3.1.el6 centos-sclo-rh
The future appears to be RHEL or Debian. I think I'm going Debian.
Info for USB installs on http://wiki.centos.org/HowTos/InstallFromUSBkey
CentOS 5 and 6 are deadest, do not use them.
Use the FAQ Luke

skm.works@gmail.com
Posts: 4
Joined: 2017/07/19 10:12:23

Re: gcc_7_1_0_release_build issue, unknown spec function 'gt'

Post by skm.works@gmail.com » 2017/07/19 13:29:28

thank you, that helped me in resolving the issue to a bit.. thanks!

Post Reply