LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 12-14-2010, 08:54 AM   #1
ksp009
LQ Newbie
 
Registered: Dec 2010
Posts: 19

Rep: Reputation: 0
GCC installation on RedHat 6.0


Hi

I am trying to install gcc on RedHat 6.0. I have installed
binutils 2.21
gmp 4.3.2
mpc 0.8.2
mpfr 3.0.0
ppl 0.10

but while making cloog-ppl 0.15 got an error shown below

what would be the reason?



gcc -DHAVE_CONFIG_H -I. -I. -I./include/cloog -I./include -I./include -I/usr/local/lib/include -Wall -fomit-frame-pointer -g -O2 -MT options.lo -MD -MP -MF .deps/options.Tpo -c source/options.c -fPIC -DPIC -o .libs/options.o
gcc -DHAVE_CONFIG_H -I. -I. -I./include/cloog -I./include -I./include -I/usr/local/lib/include -Wall -fomit-frame-pointer -g -O2 -MT options.lo -MD -MP -MF .deps/options.Tpo -c source/options.c -o options.o >/dev/null 2>&1
cd . && /bin/sh /opt/tools/cloog-ppl/autoconf/missing --run autoheader
autoheader: warning: missing template: HAS_SYS_RESOURCE_H
autoheader: Use AC_DEFINE([HAS_SYS_RESOURCE_H], [], [Description])
make[1]: *** [include/cloog/cloog-config.h.in] Error 1
make[1]: Leaving directory `/opt/tools/cloog-ppl'
make: *** [all-recursive] Error 1
 
Old 12-14-2010, 10:26 AM   #2
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen, DK
Distribution: pclos2016, Slack14.1 Deb Jessie, + 50+ other Linux OS, for test only.
Posts: 16,276

Rep: Reputation: 3153Reputation: 3153Reputation: 3153Reputation: 3153Reputation: 3153Reputation: 3153Reputation: 3153Reputation: 3153Reputation: 3153Reputation: 3153Reputation: 3153
Welcome to LQ.

Probaly use a version of cloog-ppl-0.15 with lesser bugs :
http://repo.or.cz/w/cloog-ppl.git/sn...a762332.tar.gz
( 2010-03-24 http://repo.or.cz/w/cloog-ppl.git ) ( Not the latest, but no bugs.)

cd cloog-ppl/ && ./configure --with-gmp --with-ppl --enable-shared && make :
No errors.


By the way : /opt/ is not a recommended place for building software.
/home/<name>/tmp/ is. ( Or any folder in /home/<name>/ ).


Recommended method for building gcc : Please see Linux From Scratch
http://www.linuxfromscratch.org/lfs/...ent/index.html

http://cross-lfs.org/view/svn/x86_64...cloog-ppl.html
QUOTE : Important
The test suite for CLooG-PPL is considered critical. Do not skip it under any circumstance.

..

Last edited by knudfl; 12-14-2010 at 10:32 AM.
 
Old 12-14-2010, 10:36 AM   #3
lazlow
Senior Member
 
Registered: Jan 2006
Posts: 4,362

Rep: Reputation: 172Reputation: 172
ksp009

Be careful how you label stuff. There are two separate products. RH6.0 is a pre 2003 release(no longer supported, for years) that has virtually nothing to do with RHEL6.0(Red Hat Enterprise Linux, just released). I assume you meant RHEL6.0.
 
Old 12-14-2010, 11:49 PM   #4
ksp009
LQ Newbie
 
Registered: Dec 2010
Posts: 19

Original Poster
Rep: Reputation: 0
hi knudfl

I downloaded the cloog from the first link (http://repo.or.cz/w/cloog-ppl.git/sn...a762332.tar.gz) anf followed the installation steps....Now it is working ....I am using RHEL6.0

Thanks.....
 
Old 12-15-2010, 07:07 AM   #5
ksp009
LQ Newbie
 
Registered: Dec 2010
Posts: 19

Original Poster
Rep: Reputation: 0
Hi

After all these installation i tried to install gcc-4.5.1

Bu got an error

hecking for x86_64-unknown-linux-gnu-gcc... /opt/tools/objdirnew/./gcc/xgcc -B/opt/tools/objdirnew/./gcc/ -B/opt/tools/toolchain/x86_64-unknown-linux-gnu/bin/ -B/opt/tools/toolchain/x86_64-unknown-linux-gnu/lib/ -isystem /opt/tools/toolchain/x86_64-unknown-linux-gnu/include -isystem /opt/tools/toolchain/x86_64-unknown-linux-gnu/sys-include
checking for suffix of object files... configure: error: in `/opt/tools/objdirnew/x86_64-unknown-linux-gnu/libgcc':
configure: error: cannot compute suffix of object files: cannot compile
See `config.log' for more details.
make[2]: *** [configure-stage1-target-libgcc] Error 1
make[2]: Leaving directory `/opt/tools/objdirnew'
make[1]: *** [stage1-bubble] Error 2
make[1]: Leaving directory `/opt/tools/objdirnew'
make: *** [all] Error 2


what would be the problem?
 
Old 12-15-2010, 09:48 AM   #6
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen, DK
Distribution: pclos2016, Slack14.1 Deb Jessie, + 50+ other Linux OS, for test only.
Posts: 16,276

Rep: Reputation: 3153Reputation: 3153Reputation: 3153Reputation: 3153Reputation: 3153Reputation: 3153Reputation: 3153Reputation: 3153Reputation: 3153Reputation: 3153Reputation: 3153
Could it be some wrong " ../gcc-4.5.1/configure " options ? ?
Or may be you forgot the build/ directory outside gcc-4.5.1/ ?

Building gcc-4.5.1 on e.g. CentOS 5.5
http://www.linuxquestions.org/questi...-1-a-842567/#2


Also : Compiling in /home/<name>/<folder>/ makes things easier. And safer.
..

Last edited by knudfl; 12-15-2010 at 10:25 AM.
 
Old 12-15-2010, 01:17 PM   #7
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen, DK
Distribution: pclos2016, Slack14.1 Deb Jessie, + 50+ other Linux OS, for test only.
Posts: 16,276

Rep: Reputation: 3153Reputation: 3153Reputation: 3153Reputation: 3153Reputation: 3153Reputation: 3153Reputation: 3153Reputation: 3153Reputation: 3153Reputation: 3153Reputation: 3153
And now the 64 Bits EL 6 // Fedora 12 - 64.

Same as http://www.linuxquestions.org/questi...-1-a-842567/#2
'make' : No errors.
( ppl was included, will rerun it later with cloog-ppl installed.)

The versions of of gmp/ and mpfr/ must be gmp-4.3.1, mpfr-2.4.1 .
(Non system versions will conflict with the default gmp, mpfr.)
The mpc/ : Version 0.8.2 is bug free and should be preferred.


"BOOK with gcc-4.5.1"
http://www.linuxfromscratch.org/lfs/...7-HTML.tar.bz2

About cloog-ppl : # 'yum install cloog-devel.x86_64' will provide version 0.15.7.
# yum install ppl-devel.x86_64 : Version 0.10.2
..

Last edited by knudfl; 12-15-2010 at 02:31 PM.
 
Old 12-15-2010, 04:59 PM   #8
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen, DK
Distribution: pclos2016, Slack14.1 Deb Jessie, + 50+ other Linux OS, for test only.
Posts: 16,276

Rep: Reputation: 3153Reputation: 3153Reputation: 3153Reputation: 3153Reputation: 3153Reputation: 3153Reputation: 3153Reputation: 3153Reputation: 3153Reputation: 3153Reputation: 3153
OK too : Compiling gcc-4.5.1 with cloog-ppl.

cloog-ppl, version : 1dffc69ae4f79721616ffbd6cd8404b94a762332

ppl, version : 0.10.2

..
 
Old 12-15-2010, 05:55 PM   #9
John VV
LQ Muse
 
Registered: Aug 2005
Location: A2 area Mi.
Posts: 16,817

Rep: Reputation: 2408Reputation: 2408Reputation: 2408Reputation: 2408Reputation: 2408Reputation: 2408Reputation: 2408Reputation: 2408Reputation: 2408Reputation: 2408Reputation: 2408
from the first post
Quote:
I am trying to install gcc on RedHat 6.0. I have installed
binutils 2.21
gmp 4.3.2
mpc 0.8.2
mpfr 3.0.0
ppl 0.10
just HOW did you install binutils???
i take it you DID NOT use the recommended way using yum and do a "groupinstall"

if i had to guess -- i think you have incompatible and incomplete dependencies installed ( or not installed)

look at this first
Code:
yum grouplist
--- then from that list install the needed groups---
--- for example --
 yum groupinstall "Development Tools", "Development Librarys"
then rebuild the program you need .
 
1 members found this post helpful.
Old 12-16-2010, 04:24 AM   #10
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen, DK
Distribution: pclos2016, Slack14.1 Deb Jessie, + 50+ other Linux OS, for test only.
Posts: 16,276

Rep: Reputation: 3153Reputation: 3153Reputation: 3153Reputation: 3153Reputation: 3153Reputation: 3153Reputation: 3153Reputation: 3153Reputation: 3153Reputation: 3153Reputation: 3153
Yes, John VV is right, binutils 2.21, etc. will never work.

Sorry I overlooked that.

You will have to stick to EL6 versions strictly.

'binutils-2.20' etc. : They are on the install DVD.
# yum groupinstall "Development Tools", "Development Librarys"
→ → see post # 9.

And if you are very keen at building everything yourself, packages can be
rebuilt from the original EL6 SRC.RPMs. They include some special patching.
A home made binutils won't do.
http://ftp.redhat.com/pub/redhat/lin...r/en/os/SRPMS/
..

Last edited by knudfl; 12-16-2010 at 09:31 AM.
 
Old 03-31-2015, 08:22 PM   #11
debguy
Member
 
Registered: Oct 2014
Location: U.S.A.
Distribution: mixed, mostly debian slackare today
Posts: 207

Rep: Reputation: 19
autoheader: warning: missing template: HAS_SYS_RESOURCE_H
autoheader: Use AC_DEFINE([HAS_SYS_RESOURCE_H], [], [Description])

this is because you are using newer auto tools than the older pkg had when made.

on and older REDHAT package that worked before autoconf was uptdated. it needs just a touch of editing. it wouldn't need editing if ./configure is present and libtool was presented as script. but. if you change stuff you'll need to do this ...

----------------------------
edit:

AC_DEFINE(OLD_CODE)

AC_DEFINE(OLD_CODE, 1, [must be set])

more tips: if you have acinclude.m4, aclocal.m4 is supposed to #include it. both have macros. just go in there for any DEFINES and edit those too.

autoscan ; (view / edit configure.scan ) ; libtoolize --install (if it's a lib project only!) ; autoreconf --install

you might use --force or try it. back up m4/ config* and etc before you go loosing anything you might need

running ./configure won't have those problems (it should have all it needs to run including a libtool mini script). do not rebuild project files unless you are re-releasing changes. one reason might be: a few necessary changes in configure.ac spread massively to many Makefile.in - making a "reconstituting" old configure.ac more attractive (avoid complicated changes in many files - get them auto-updated).

----------------------
has ZERO to do with cloog. though RTFM. you don't need cloog. it will slow down your compile time. and offer no upgrade. and does insert insideous compile time / debug worms. why cygwin allowed it to get in is unbeleivable. is gcc even maintained at a college in the USA or by intel anymore ? are hackers just using the name and preventing upload of legitimate changes?

the other feature was ??libssp or ppl and mudflap?? that inserts a "network debugger" which (could be) activate by systemd at boot. that means a remote hacker could uses the debug trap and registers in your cpu at time of boot to have absolute power over you machine. insideous. when you disable this in gcc: it puts it an anyway. the time and money disabling such things and restoring things that worked that are newly broken: is becoming a hastle. if they are off by default then who cares - buyer beware. but they aren't and become depends in all distro pkg depends databases.

ps. if you use L.F.S. or a major distro you might be stuck: if they used it , it becomes a system wide depends , then you have to i know ! make a fake cloog that always returns the origional code/assembler. that'll fix em, xy yz.
 
Old 04-01-2015, 02:29 AM   #12
John VV
LQ Muse
 
Registered: Aug 2005
Location: A2 area Mi.
Posts: 16,817

Rep: Reputation: 2408Reputation: 2408Reputation: 2408Reputation: 2408Reputation: 2408Reputation: 2408Reputation: 2408Reputation: 2408Reputation: 2408Reputation: 2408Reputation: 2408
debguy
i take it you did not read the DATE on the LAST POST
2010

FIVE YEARS ago
 
1 members found this post helpful.
  


Reply


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
Initial gcc installation-How to compile gcc itself pgb205 Linux - Software 4 02-26-2008 11:24 PM
upgrading from gcc 3.2 to gcc 3.4 in redhat 9.0 uma_mahesh_2005 Linux - Software 1 04-03-2006 02:08 AM
RedHat 9 GCC installation probs Tuetates Linux - Newbie 2 02-18-2005 06:25 PM
running software built with gcc 3.0.2 on Redhat 8 - gcc 3.2 dst1989 Linux - Software 3 03-08-2004 11:23 PM
redhat installation did not install gcc centr0 Linux - General 11 02-28-2003 09:50 PM


All times are GMT -5. The time now is 02:13 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration