LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 10-07-2014, 03:20 PM   #1
tommilaiho
LQ Newbie
 
Registered: Nov 2003
Posts: 25

Rep: Reputation: 0
Question Cannot compile gcc 4.1.2 in Centos 6.5


Hi,

I should compile gcc 4.1.2 in Centos 6.5. Therefore I should have two compilers one with the standard installation and the other gcc 4.1.2 along with the standard installer due to requirements of one software, which is not open source.

When I try to run "make install" I get the following error message:


Quote:
make: *** No rule to make target `install'. Stop.
I have included the error log here:


Quote:
This file contains any messages produced by compilers while
running configure, to aid debugging if configure makes a mistake.

configure:600: checking host system type
configure:621: checking target system type
configure:639: checking build system type
configure:694: checking for a BSD compatible install
configure:747: checking whether ln works
configure:771: checking whether ln -s works
configure:1825: checking for gcc
configure:1938: checking whether the C compiler (gcc ) works
configure:1954: gcc -o conftest conftest.c 1>&5
configure:1980: checking whether the C compiler (gcc ) is a cross-compiler
configure:1985: checking whether we are using GNU C
configure:1994: gcc -E conftest.c
configure:2013: checking whether gcc accepts -g
configure:2080: checking for gnatbind
configure:2145: checking whether compiler driver understands Ada
configure:2177: checking how to compare bootstrapped objects
configure:2281: checking for correct version of gmp.h
configure:2294: gcc -c -g -O2 conftest.c 1>&5
configure:2284:17: error: gmp.h: No such file or directory
configure: In function 'main':
configure:2288: error: 'choke' undeclared (first use in this function)
configure:2288: error: (Each undeclared identifier is reported only once
configure:2288: error: for each function it appears in.)
configure:2288: error: expected ';' before 'me'
configure: failed program was:
#line 2283 "configure"
#include "confdefs.h"
#include "gmp.h"
int main() {

#if __GNU_MP_VERSION < 3
choke me
#endif

; return 0; }
configure:3319: checking for bison
configure:3359: checking for bison
configure:3398: checking for gm4
configure:3398: checking for gnum4
configure:3398: checking for m4
configure:3437: checking for flex
configure:3477: checking for flex
configure:3516: checking for makeinfo
configure:3569: checking for expect
configure:3610: checking for runtest
configure:3658: checking for x86_64-unknown-linux-gnu-ar
configure:3689: checking for ar
configure:3733: checking for x86_64-unknown-linux-gnu-as
configure:3764: checking for as
configure:3808: checking for x86_64-unknown-linux-gnu-dlltool
configure:3839: checking for dlltool
configure:3883: checking for x86_64-unknown-linux-gnu-ld
configure:3914: checking for ld
configure:3958: checking for x86_64-unknown-linux-gnu-lipo
configure:3989: checking for lipo
configure:4033: checking for x86_64-unknown-linux-gnu-nm
configure:4064: checking for nm
configure:4108: checking for x86_64-unknown-linux-gnu-ranlib
configure:4139: checking for ranlib
configure:4178: checking for x86_64-unknown-linux-gnu-strip
configure:4209: checking for strip
configure:4248: checking for x86_64-unknown-linux-gnu-windres
configure:4279: checking for windres
configure:4323: checking for x86_64-unknown-linux-gnu-objcopy
configure:4354: checking for objcopy
configure:4398: checking for x86_64-unknown-linux-gnu-objdump
configure:4429: checking for objdump
configure:4480: checking for x86_64-unknown-linux-gnu-ar
configure:4511: checking for ar
configure:4555: checking for x86_64-unknown-linux-gnu-as
configure:4586: checking for as
configure:4630: checking for x86_64-unknown-linux-gnu-cc
configure:4661: checking for cc
configure:4705: checking for x86_64-unknown-linux-gnu-c++
configure:4736: checking for c++
configure:4780: checking for x86_64-unknown-linux-gnu-dlltool
configure:4811: checking for dlltool
configure:4855: checking for x86_64-unknown-linux-gnu-gcc
configure:4886: checking for gcc
configure:4925: checking for x86_64-unknown-linux-gnu-gcj
configure:4956: checking for gcj
configure:5000: checking for x86_64-unknown-linux-gnu-gfortran
configure:5031: checking for gfortran
configure:5075: checking for x86_64-unknown-linux-gnu-ld
configure:5106: checking for ld
configure:5150: checking for x86_64-unknown-linux-gnu-lipo
configure:5181: checking for lipo
configure:5225: checking for x86_64-unknown-linux-gnu-nm
configure:5256: checking for nm
configure:5300: checking for x86_64-unknown-linux-gnu-objdump
configure:5331: checking for objdump
configure:5375: checking for x86_64-unknown-linux-gnu-ranlib
configure:5406: checking for ranlib
configure:5445: checking for x86_64-unknown-linux-gnu-strip
configure:5476: checking for strip
configure:5520: checking for x86_64-unknown-linux-gnu-windres
configure:5551: checking for windres
configure:5594: checking where to find the target ar
configure:5619: checking where to find the target as
configure:5644: checking where to find the target cc
configure:5669: checking where to find the target c++
configure:5697: checking where to find the target c++ for libstdc++
configure:5725: checking where to find the target dlltool
configure:5750: checking where to find the target gcc
configure:5775: checking where to find the target gcj
configure:5803: checking where to find the target gfortran
configure:5831: checking where to find the target ld
configure:5856: checking where to find the target lipo
configure:5871: checking where to find the target nm
configure:5896: checking where to find the target objdump
configure:5921: checking where to find the target ranlib
configure:5946: checking where to find the target strip
configure:5971: checking where to find the target windres
configure:6024: checking whether to enable maintainer-specific portions of Makefiles
configure:6071: checking if symbolic links between directories work
All help highly valued. Thanks in advance.
 
Old 10-07-2014, 03:45 PM   #2
smallpond
Senior Member
 
Registered: Feb 2011
Location: Massachusetts, USA
Distribution: Fedora
Posts: 4,258

Rep: Reputation: 1310Reputation: 1310Reputation: 1310Reputation: 1310Reputation: 1310Reputation: 1310Reputation: 1310Reputation: 1310Reputation: 1310Reputation: 1310
look for the first line that says "error"

Quote:
configure:2284:17: error: gmp.h: No such file or directory
you need to install gmp-devel
 
1 members found this post helpful.
Old 10-07-2014, 04:19 PM   #3
tommilaiho
LQ Newbie
 
Registered: Nov 2003
Posts: 25

Original Poster
Rep: Reputation: 0
Hi,

Many thanks for quick help. I tried now to compile and install gmp 4.2.2 but
it didnt like my compiler at all. It said:

Quote:
configure: error: could not find a working compiler, see config.log for details

I wonder what to do now...I hope somebody can help. This was my config.log:


Quote:
This file contains any messages produced by compilers while
running configure, to aid debugging if configure makes a mistake.

It was created by GNU MP configure 4.2.2, which was
generated by GNU Autoconf 2.59. Invocation command line was

$ ./configure --prefix=/usr --enable-cxx --enable-mpbsd

## --------- ##
## Platform. ##
## --------- ##

hostname = localhost.lan
uname -m = x86_64
uname -r = 2.6.32-431.29.2.el6.x86_64
uname -s = Linux
uname -v = #1 SMP Tue Sep 9 21:36:05 UTC 2014

/usr/bin/uname -p = unknown
/bin/uname -X = unknown

/bin/arch = x86_64
/usr/bin/arch -k = unknown
/usr/convex/getsysinfo = unknown
hostinfo = unknown
/bin/machine = unknown
/usr/bin/oslevel = unknown
/bin/universe = unknown

PATH: /usr/lib64/qt-3.3/bin
PATH: /usr/local/bin
PATH: /usr/bin
PATH: /bin
PATH: /usr/local/sbin
PATH: /usr/sbin
PATH: /sbin
PATH: /home/tomm1/bin


## ----------- ##
## Core tests. ##
## ----------- ##

configure:1654: checking build system type
configure:1672: result: pentium3-unknown-linux-gnu
configure:1680: checking host system type
configure:1694: result: pentium3-unknown-linux-gnu
configure:1717: checking for a BSD-compatible install
configure:1772: result: /usr/bin/install -c
configure:1783: checking whether build environment is sane
configure:1826: result: yes
configure:1850: WARNING: `missing' script is too old or missing
configure:1883: checking for gawk
configure:1899: found /usr/bin/gawk
configure:1909: result: gawk
configure:1919: checking whether make sets $(MAKE)
configure:1939: result: yes
configure:2105: checking whether to enable maintainer-specific portions of Makefiles
configure:2114: result: no
User:
ABI=
CC=
CFLAGS=(unset)
CPPFLAGS=(unset)
MPN_PATH=
GMP:
abilist=32
cclist=gcc icc cc
configure:3794: gcc 2>&1 | grep xlc >/dev/null
configure:3797: $? = 1
configure:3851: checking compiler gcc -m32 -O2 -fomit-frame-pointer
Test compile:
configure:3865: gcc -m32 -O2 -fomit-frame-pointer conftest.c >&5
/usr/bin/ld: crt1.o: No such file: No such file or directory
collect2: ld returned 1 exit status
configure:3868: $? = 1
failed program was:

int main () { return 0; }
configure:4874: result: no
configure:3851: checking compiler gcc -O2 -fomit-frame-pointer
Test compile:
configure:3865: gcc -O2 -fomit-frame-pointer conftest.c >&5
configure:3868: $? = 0
configure:3873: ./a.out || ./b.out || ./a.exe || ./a_out.exe || ./conftest
configure:3876: $? = 0
Test compile: function pointer return
configure:3919: gcc -O2 -fomit-frame-pointer conftest.c >&5
configure:3922: $? = 0
configure:3927: ./a.out || ./b.out || ./a.exe || ./a_out.exe || ./conftest
configure:3930: $? = 0
Test compile: cmov instruction
configure:3975: gcc -O2 -fomit-frame-pointer conftest.c >&5
configure:3978: $? = 0
configure:3983: ./a.out || ./b.out || ./a.exe || ./a_out.exe || ./conftest
configure:3986: $? = 0
Test compile: double -> ulong conversion
configure:4032: gcc -O2 -fomit-frame-pointer conftest.c >&5
configure:4035: $? = 0
configure:4040: ./a.out || ./b.out || ./a.exe || ./a_out.exe || ./conftest
configure:4043: $? = 0
Test compile: double negation
configure:4087: gcc -O2 -fomit-frame-pointer conftest.c >&5
configure:4090: $? = 0
configure:4095: ./a.out || ./b.out || ./a.exe || ./a_out.exe || ./conftest
configure:4098: $? = 0
Test compile: double -> float conversion
configure:4143: gcc -O2 -fomit-frame-pointer conftest.c >&5
configure:4146: $? = 0
configure:4151: ./a.out || ./b.out || ./a.exe || ./a_out.exe || ./conftest
configure:4154: $? = 0
Test compile: gnupro alpha ev6 char spilling
configure:4227: gcc -O2 -fomit-frame-pointer conftest.c >&5
conftest.c: In function 'param_init':
conftest.c:18: warning: incompatible implicit declaration of built-in function 'memcpy'
configure:4230: $? = 0
configure:4235: ./a.out || ./b.out || ./a.exe || ./a_out.exe || ./conftest
configure:4238: $? = 0
Test compile: __builtin_alloca availability
configure:4278: gcc -O2 -fomit-frame-pointer conftest.c >&5
/usr/lib/gcc/x86_64-redhat-linux/4.4.7/../../../../lib64/crt1.o: In function `_start':
(.text+0x20): undefined reference to `main'
collect2: ld returned 1 exit status
configure:4281: $? = 1
failed program was:
int k; int foo () { __builtin_alloca (k); }
Test compile: abs int -> double conversion
configure:4402: gcc -O2 -fomit-frame-pointer conftest.c >&5
configure:4405: $? = 0
configure:4410: ./a.out || ./b.out || ./a.exe || ./a_out.exe || ./conftest
configure:4413: $? = 0
Test compile: long long reliability test 1
configure:4466: gcc -O2 -fomit-frame-pointer conftest.c >&5
configure:4469: $? = 0
configure:4474: ./a.out || ./b.out || ./a.exe || ./a_out.exe || ./conftest
configure:4477: $? = 0
Test compile: long long reliability test 2
configure:4526: gcc -O2 -fomit-frame-pointer conftest.c >&5
configure:4529: $? = 0
configure:4534: ./a.out || ./b.out || ./a.exe || ./a_out.exe || ./conftest
configure:4537: $? = 0
Test compile: mpn_lshift_com optimization
configure:4617: gcc -O2 -fomit-frame-pointer conftest.c >&5
configure:4620: $? = 0
configure:4625: ./a.out || ./b.out || ./a.exe || ./a_out.exe || ./conftest
configure:4628: $? = 0
Test compile: mpn_lshift_com optimization 2
configure:4717: gcc -O2 -fomit-frame-pointer conftest.c >&5
configure:4720: $? = 0
configure:4725: ./a.out || ./b.out || ./a.exe || ./a_out.exe || ./conftest
configure:4728: $? = 0
Testing gcc GOT with eax emitted
configure:4776: gcc -O2 -fomit-frame-pointer -fPIC -S conftest.c >&5 2>&1
configure:4779: $? = 0
Result: no
configure:4874: result: yes
configure: testlist sizeof-long-4
configure:5049: checking compiler gcc -O2 -fomit-frame-pointer has sizeof(long)==4
configure:5062: gcc -O2 -fomit-frame-pointer -c conftest.c >&5
conftest.c: In function 'main':
conftest.c:4: error: size of array 'test_array' is negative
configure:5065: $? = 1
configure:5070: result: no
configure:3772: icc -c conftest.c >&5
./configure: line 3773: icc: command not found
configure:3775: $? = 127
configure:3794: icc 2>&1 | grep xlc >/dev/null
configure:3797: $? = 1
configure:3851: checking compiler icc -no-gcc
Test compile:
configure:3865: icc -no-gcc conftest.c >&5
./configure: line 3866: icc: command not found
configure:3868: $? = 127
failed program was:

int main () { return 0; }
configure:4874: result: no
configure:3772: cc -c conftest.c >&5
configure:3775: $? = 0
configure:3778: checking whether cc is gcc
configure:3780: result: yes
configure:3794: cc 2>&1 | grep xlc >/dev/null
configure:3797: $? = 1
configure:3851: checking compiler cc -m32 -O2 -fomit-frame-pointer
Test compile:
configure:3865: cc -m32 -O2 -fomit-frame-pointer conftest.c >&5
/usr/bin/ld: crt1.o: No such file: No such file or directory
collect2: ld returned 1 exit status
configure:3868: $? = 1
failed program was:

int main () { return 0; }
configure:4874: result: no
configure:3851: checking compiler cc -O2 -fomit-frame-pointer
Test compile:
configure:3865: cc -O2 -fomit-frame-pointer conftest.c >&5
configure:3868: $? = 0
configure:3873: ./a.out || ./b.out || ./a.exe || ./a_out.exe || ./conftest
configure:3876: $? = 0
Test compile: function pointer return
configure:3919: cc -O2 -fomit-frame-pointer conftest.c >&5
configure:3922: $? = 0
configure:3927: ./a.out || ./b.out || ./a.exe || ./a_out.exe || ./conftest
configure:3930: $? = 0
Test compile: cmov instruction
configure:3975: cc -O2 -fomit-frame-pointer conftest.c >&5
configure:3978: $? = 0
configure:3983: ./a.out || ./b.out || ./a.exe || ./a_out.exe || ./conftest
configure:3986: $? = 0
Test compile: double -> ulong conversion
configure:4032: cc -O2 -fomit-frame-pointer conftest.c >&5
configure:4035: $? = 0
configure:4040: ./a.out || ./b.out || ./a.exe || ./a_out.exe || ./conftest
configure:4043: $? = 0
Test compile: double negation
configure:4087: cc -O2 -fomit-frame-pointer conftest.c >&5
configure:4090: $? = 0
configure:4095: ./a.out || ./b.out || ./a.exe || ./a_out.exe || ./conftest
configure:4098: $? = 0
Test compile: double -> float conversion
configure:4143: cc -O2 -fomit-frame-pointer conftest.c >&5
configure:4146: $? = 0
configure:4151: ./a.out || ./b.out || ./a.exe || ./a_out.exe || ./conftest
configure:4154: $? = 0
Test compile: gnupro alpha ev6 char spilling
configure:4227: cc -O2 -fomit-frame-pointer conftest.c >&5
conftest.c: In function 'param_init':
conftest.c:18: warning: incompatible implicit declaration of built-in function 'memcpy'
configure:4230: $? = 0
configure:4235: ./a.out || ./b.out || ./a.exe || ./a_out.exe || ./conftest
configure:4238: $? = 0
Test compile: __builtin_alloca availability
configure:4278: cc -O2 -fomit-frame-pointer conftest.c >&5
/usr/lib/gcc/x86_64-redhat-linux/4.4.7/../../../../lib64/crt1.o: In function `_start':
(.text+0x20): undefined reference to `main'
collect2: ld returned 1 exit status
configure:4281: $? = 1
failed program was:
int k; int foo () { __builtin_alloca (k); }
Test compile: abs int -> double conversion
configure:4402: cc -O2 -fomit-frame-pointer conftest.c >&5
configure:4405: $? = 0
configure:4410: ./a.out || ./b.out || ./a.exe || ./a_out.exe || ./conftest
configure:4413: $? = 0
Test compile: long long reliability test 1
configure:4466: cc -O2 -fomit-frame-pointer conftest.c >&5
configure:4469: $? = 0
configure:4474: ./a.out || ./b.out || ./a.exe || ./a_out.exe || ./conftest
configure:4477: $? = 0
Test compile: long long reliability test 2
configure:4526: cc -O2 -fomit-frame-pointer conftest.c >&5
configure:4529: $? = 0
configure:4534: ./a.out || ./b.out || ./a.exe || ./a_out.exe || ./conftest
configure:4537: $? = 0
Test compile: mpn_lshift_com optimization
configure:4617: cc -O2 -fomit-frame-pointer conftest.c >&5
configure:4620: $? = 0
configure:4625: ./a.out || ./b.out || ./a.exe || ./a_out.exe || ./conftest
configure:4628: $? = 0
Test compile: mpn_lshift_com optimization 2
configure:4717: cc -O2 -fomit-frame-pointer conftest.c >&5
configure:4720: $? = 0
configure:4725: ./a.out || ./b.out || ./a.exe || ./a_out.exe || ./conftest
configure:4728: $? = 0
Testing gcc GOT with eax emitted
configure:4776: cc -O2 -fomit-frame-pointer -fPIC -S conftest.c >&5 2>&1
configure:4779: $? = 0
Result: no
configure:4874: result: yes
configure: testlist sizeof-long-4
configure:5049: checking compiler cc -O2 -fomit-frame-pointer has sizeof(long)==4
configure:5062: cc -O2 -fomit-frame-pointer -c conftest.c >&5
conftest.c: In function 'main':
conftest.c:4: error: size of array 'test_array' is negative
configure:5065: $? = 1
configure:5070: result: no
configure:5112: error: could not find a working compiler, see config.log for details

## ---------------- ##
## Cache variables. ##
## ---------------- ##

ac_cv_build=pentium3-unknown-linux-gnu
ac_cv_build_alias=pentium3-unknown-linux-gnu
ac_cv_env_ABI_set=
ac_cv_env_ABI_value=
ac_cv_env_CC_FOR_BUILD_set=
ac_cv_env_CC_FOR_BUILD_value=
ac_cv_env_CC_set=
ac_cv_env_CC_value=
ac_cv_env_CFLAGS_set=
ac_cv_env_CFLAGS_value=
ac_cv_env_CPPFLAGS_set=
ac_cv_env_CPPFLAGS_value=
ac_cv_env_CPP_FOR_BUILD_set=
ac_cv_env_CPP_FOR_BUILD_value=
ac_cv_env_CPP_set=
ac_cv_env_CPP_value=
ac_cv_env_CXXCPP_set=
ac_cv_env_CXXCPP_value=
ac_cv_env_CXXFLAGS_set=
ac_cv_env_CXXFLAGS_value=
ac_cv_env_CXX_set=
ac_cv_env_CXX_value=
ac_cv_env_LDFLAGS_set=
ac_cv_env_LDFLAGS_value=
ac_cv_env_M4_set=
ac_cv_env_M4_value=
ac_cv_env_build_alias_set=
ac_cv_env_build_alias_value=
ac_cv_env_host_alias_set=
ac_cv_env_host_alias_value=
ac_cv_env_target_alias_set=
ac_cv_env_target_alias_value=
ac_cv_host=pentium3-unknown-linux-gnu
ac_cv_host_alias=pentium3-unknown-linux-gnu
ac_cv_path_install='/usr/bin/install -c'
ac_cv_prog_AWK=gawk
ac_cv_prog_make_make_set=yes

## ----------------- ##
## Output variables. ##
## ----------------- ##

ABI=''
ACLOCAL='aclocal-1.8'
AMTAR='tar'
ANSI2KNR=''
AR=''
AS=''
AUTOCONF='autoconf'
AUTOHEADER='autoheader'
AUTOMAKE='automake-1.8'
AWK='gawk'
BITS_PER_MP_LIMB=''
CALLING_CONVENTIONS_OBJS='x86call.lo x86check$U.lo'
CC=''
CCAS=''
CC_FOR_BUILD=''
CFLAGS=''
CPP=''
CPPFLAGS=''
CPP_FOR_BUILD=''
CXX=''
CXXCPP=''
CXXFLAGS=''
CYGPATH_W='echo'
DEFN_LONG_LONG_LIMB=''
DEFS=''
DLLTOOL=''
ECHO='echo'
ECHO_C=''
ECHO_N='-n'
ECHO_T=''
EGREP=''
ENABLE_STATIC_FALSE=''
ENABLE_STATIC_TRUE=''
EXEEXT=''
EXEEXT_FOR_BUILD=''
GMP_LDFLAGS=''
GMP_NAIL_BITS='0'
HAVE_CLOCK_01=''
HAVE_CPUTIME_01=''
HAVE_GETRUSAGE_01=''
HAVE_GETTIMEOFDAY_01=''
HAVE_HOST_CPU_FAMILY_power='0'
HAVE_HOST_CPU_FAMILY_powerpc='0'
HAVE_SIGACTION_01=''
HAVE_SIGALTSTACK_01=''
HAVE_SIGSTACK_01=''
HAVE_STACK_T_01=''
HAVE_SYS_RESOURCE_H_01=''
INSTALL_DATA='${INSTALL} -m 644'
INSTALL_PROGRAM='${INSTALL}'
INSTALL_SCRIPT='${INSTALL}'
INSTALL_STRIP_PROGRAM='${SHELL} $(install_sh) -c -s'
LDFLAGS=''
LEX=''
LEXLIB=''
LEX_OUTPUT_ROOT=''
LIBCURSES=''
LIBGMPXX_LDFLAGS=''
LIBGMP_DLL=''
LIBGMP_LDFLAGS=''
LIBM=''
LIBM_FOR_BUILD=''
LIBOBJS=''
LIBREADLINE=''
LIBS=''
LIBTOOL=''
LN_S=''
LTLIBOBJS=''
M4=''
MAINT='#'
MAINTAINER_MODE_FALSE=''
MAINTAINER_MODE_TRUE='#'
MAKEINFO='makeinfo'
OBJDUMP=''
OBJEXT=''
PACKAGE='gmp'
PACKAGE_BUGREPORT='gmp-bugs@swox.com'
PACKAGE_NAME='GNU MP'
PACKAGE_STRING='GNU MP 4.2.2'
PACKAGE_TARNAME='gmp'
PACKAGE_VERSION='4.2.2'
PATH_SEPARATOR=':'
RANLIB=''
SED=''
SET_MAKE=''
SHELL='/bin/sh'
SPEED_CYCLECOUNTER_OBJ='pentium.lo'
STRIP=''
TAL_OBJECT=''
TUNE_SQR_OBJ=''
U=''
U_FOR_BUILD=''
VERSION='4.2.2'
WANT_CXX_FALSE=''
WANT_CXX_TRUE=''
WANT_MPBSD_FALSE='#'
WANT_MPBSD_TRUE=''
WITH_READLINE_01=''
YACC=''
ac_ct_AR=''
ac_ct_AS=''
ac_ct_CC=''
ac_ct_CXX=''
ac_ct_DLLTOOL=''
ac_ct_OBJDUMP=''
ac_ct_RANLIB=''
ac_ct_STRIP=''
am__leading_dot='.'
bindir='${exec_prefix}/bin'
build='pentium3-unknown-linux-gnu'
build_alias=''
build_cpu='pentium3'
build_os='linux-gnu'
build_vendor='unknown'
datadir='${prefix}/share'
exec_prefix='NONE'
gmp_srclinks=''
host='pentium3-unknown-linux-gnu'
host_alias=''
host_cpu='pentium3'
host_os='linux-gnu'
host_vendor='unknown'
includedir='${prefix}/include'
infodir='${prefix}/info'
install_sh='/home/tomm1/Desktop/GCC 4.2.1 PAINAJAINEN/gmp-4.2.2/install-sh'
libdir='${exec_prefix}/lib'
libexecdir='${exec_prefix}/libexec'
localstatedir='${prefix}/var'
mandir='${prefix}/man'
mkdir_p='mkdir -p -- .'
mpn_objects=''
mpn_objs_in_libgmp=''
mpn_objs_in_libmp=''
oldincludedir='/usr/include'
prefix='/usr'
program_transform_name='s,x,x,'
sbindir='${exec_prefix}/sbin'
sharedstatedir='${prefix}/com'
sysconfdir='${prefix}/etc'
target_alias=''

## ----------- ##
## confdefs.h. ##
## ----------- ##

#define HAVE_HOST_CPU_pentium3 1
#define PACKAGE "gmp"
#define PACKAGE_BUGREPORT "gmp-bugs@swox.com"
#define PACKAGE_NAME "GNU MP"
#define PACKAGE_STRING "GNU MP 4.2.2"
#define PACKAGE_TARNAME "gmp"
#define PACKAGE_VERSION "4.2.2"
#define VERSION "4.2.2"
#define WANT_FFT 1

configure: exit 1
 
Old 10-07-2014, 05:40 PM   #4
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,519

Rep: Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641
← #3 .
Quote:
could not find a working compiler
# yum install \
gcc-c++ zlib-devel gettext dejagnu bison flex texinfo sharutils elfutils-devel libunwind

.. That's "the other prerequisites" for gcc-4.2 ... 4.3 . (Besides gmp-devel.)


-

Last edited by knudfl; 10-07-2014 at 05:42 PM.
 
1 members found this post helpful.
Old 10-08-2014, 03:39 AM   #5
tommilaiho
LQ Newbie
 
Registered: Nov 2003
Posts: 25

Original Poster
Rep: Reputation: 0
Hi,

Thanks knudfl for quick response and info. I installed the missing parts. However it still complains the same:

Quote:
configure: error: could not find a working compiler, see config.log for details
Something is still missing but I dont know what it is...please help if you can.
 
Old 10-08-2014, 03:53 AM   #6
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,519

Rep: Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641
← #5 .

The install of 'gcc-c++' should take care that the packages,
that will make gcc work fully, are installed :
glibc-devel, glibc-headers, kernel-headers.

Please check :
$ rpm -qa gcc-c++ glibc-devel glibc-headers kernel-headers
.. and show the result in a new post.
 
Old 10-08-2014, 04:04 AM   #7
tommilaiho
LQ Newbie
 
Registered: Nov 2003
Posts: 25

Original Poster
Rep: Reputation: 0
Hi

The result of the:

Quote:
rpm -qa gcc-c++ glibc-devel glibc-headers kernel-headers
was like this:


Quote:
glibc-headers-2.12-1.132.el6_5.4.x86_64
glibc-devel-2.12-1.132.el6_5.4.x86_64
kernel-headers-2.6.32-431.29.2.el6.x86_64
gcc-c++-4.4.7-4.el6.x86_64
 
Old 10-08-2014, 05:34 AM   #8
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,519

Rep: Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641
Actually we don't really know what you are doing :
Missing information is : $pwd and your configure line.
Also : You will probably have to delete all gcc 4.2.1,
and start from scratch. A misconfigured gcc cannot be reused.


A test compile of gcc-4.2.4 , CentOS 6.5 - x86_64 :
(4.2.4 is without the bugs in version of 4.2.1 )

$ tar xvf gcc-4.2.4.tar.gz
$ mkdir build-gcc424
$ cd build-gcc424/
$ ../gcc-4.2.4/configure --prefix=/usr/local/gcc42 --program-suffix=42 --enable-shared --enable-threads=posix --enable-__cxa_atexit --enable-clocale=gnu --enable-languages=c,c++

Explanation : An extra gcc compiled from source should have
a hideaway location to avoid conflicts with the defult gcc.
( Lots of things depend on the default libgcc (and libstdc++)).
I.e. you cannot install an earlier version of gcc in a system PATH.

Next : $ make : No issues.
# make install : Also OK.
Provides /usr/local/gcc42/bin/{ gcc42, g++42 }.

-
 
Old 10-08-2014, 07:15 AM   #9
tommilaiho
LQ Newbie
 
Registered: Nov 2003
Posts: 25

Original Poster
Rep: Reputation: 0
Hi,

Many thanks for info, I tried to follow your instruction as accurately as possible.
I think I was able to make the gcc 424 well but installation didn't went smoothly.

When I tried "make install" I received:

Quote:
make[1]: Entering directory `/home/tomm1/Desktop/build-gcc424'
/bin/sh ../gcc-4.2.4/mkinstalldirs /usr/local/gcc42 /usr/local/gcc42
/bin/sh: line 3: cd: ./fixincludes: No such file or directory
make[1]: *** [install-fixincludes] Error 1
make[1]: Leaving directory `/home/tomm1/Desktop/build-gcc424'
make: *** [install] Error 2
There are no files in /usr/local/gcc42 afte "make install".

Just in case I missed something while running "make" I put here some
information what Centos Linux gave me:

Quote:
/usr/include/gnu/stubs.h:7:27: error: gnu/stubs-32.h: No such file or directory
make[5]: *** [32/crtbegin.o] Error 1
make[5]: Leaving directory `/home/tomm1/Desktop/gcc-4.2.4/host-x86_64-unknown-linux-gnu/gcc'
make[4]: *** [extra32] Error 2
make[4]: Leaving directory `/home/tomm1/Desktop/gcc-4.2.4/host-x86_64-unknown-linux-gnu/gcc'
make[3]: *** [stmp-multilib] Error 2
make[3]: Leaving directory `/home/tomm1/Desktop/gcc-4.2.4/host-x86_64-unknown-linux-gnu/gcc'
make[2]: *** [all-stage1-gcc] Error 2
make[2]: Leaving directory `/home/tomm1/Desktop/gcc-4.2.4'
make[1]: *** [stage1-bubble] Error 2
make[1]: Leaving directory `/home/tomm1/Desktop/gcc-4.2.4'
make: *** [all] Error 2
 
Old 10-08-2014, 07:39 AM   #10
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,519

Rep: Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641
← #9 .
Quote:
I tried to follow your instruction as accurately as possible.
? Why not do the commands exactly as post #8 shows ? ?


"/usr/include/gnu/stubs-32.h" :
The `stubs-32.h´ that I used is attached as stubs-32.h.txt .
( I did copy stubs-32.h into place years ago. And forgot about it.
But it is required for compiling gcc on a 64bits OS.)
-
Attached Files
File Type: txt stubs-32.h.txt (624 Bytes, 36 views)
 
Old 10-08-2014, 08:09 AM   #11
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,519

Rep: Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641
You can also try out my result (ref. post #8).
The rpm package is 8.2 MB.

# yum localinstall compat-gcc424-4.2.4-1.sl6.x86_64.rpm

Download link https://drive.google.com/file/d/0B7S...ew?usp=sharing

-
 
Old 10-08-2014, 08:17 AM   #12
tommilaiho
LQ Newbie
 
Registered: Nov 2003
Posts: 25

Original Poster
Rep: Reputation: 0
Hi,

Yes, I followed your instructions with 100% accuracy.

Sorry to be unclear in this issue.

I understood that the stubs-32.h file was supposed to be copied
to "/usr/include/gnu" and there it is now.

I started then from scratch to compile the gcc 424 but installation
still does not go smoothly. Make install command produces following error messages:

Quote:
make[1]: Entering directory `/home/tomm1/Desktop/build-gcc424'
/bin/sh ../gcc-4.2.4/mkinstalldirs /usr/local/gcc42 /usr/local/gcc42
/bin/sh: line 3: cd: ./fixincludes: No such file or directory
make[1]: *** [install-fixincludes] Error 1
make[1]: Leaving directory `/home/tomm1/Desktop/build-gcc424'
make: *** [install] Error 2
 
Old 10-08-2014, 08:36 AM   #13
tommilaiho
LQ Newbie
 
Registered: Nov 2003
Posts: 25

Original Poster
Rep: Reputation: 0
Hi,

So I installed the "compat-gcc424-4.2.4-1sl6x86_64.rpm file.

That is because I was not able to install the gcc 424 at all.

How do I now test that the gcc424 also works too?
 
Old 10-08-2014, 09:22 AM   #14
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,519

Rep: Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641
← #13 .

Testing and using gcc424 :
$ cd /usr/bin/
# ln -s /usr/local/gcc42/bin/gcc42
# ln -s /usr/local/gcc42/bin/g++42

The application I used for test : ns-allinone-2.33.tar.gz
http://optimate.dl.sourceforge.net/p...ne-2.33.tar.gz
... Lots of C and C++ code. (Will fail with a poor g++/gcc.)

$ cd ns-allinone-2.33/
This command will compile all the applications :
$ export CC=gcc42 CXX=g++42 && ./install

-
 
1 members found this post helpful.
  


Reply

Tags
centos6, gcc412, gcc424


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] Failed to compile libatomic at the first time to compile gcc(step 5.5) clicdl Linux From Scratch 8 07-23-2013 06:20 AM
Why couldn't the gcc(version4.3.3) be used to compile the gcc(version3.3.2)? snc Linux - Newbie 6 01-24-2010 12:26 PM
Compile error, 'H5G_obj_t' does not name a type, is gcc 4.3 incompatible with gcc 3 ? samrat_rao Linux - Software 5 03-03-2009 03:28 PM
Initial gcc installation-How to compile gcc itself pgb205 Linux - Software 4 02-26-2008 11:24 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 08:21 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration