LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Red Hat
User Name
Password
Red Hat This forum is for the discussion of Red Hat Linux.

Notices



Reply
 
Search this Thread
Old 02-03-2012, 07:02 AM   #1
tbodine88
LQ Newbie
 
Registered: Dec 2011
Posts: 12

Rep: Reputation: Disabled
Question gcc 4.6.2 on Redhat missing crti.o


I am trying to build HPC High Performance Linpack .

I have figured out how to build it on SUSE. On Suse I must build
a complete gcc 4.6.2 compiler from the ground up. Then ACML,
openMPI, and HPL.

When I build gcc, for each package I run configure with these arguments:
parentDir=where I want to put it like /opt or /usr/local
export LD_LIBRARY_PATH="$parentDir/lib:/usr/local/lib:/lib"
export PATH=$parentDir/bin:$PATH
dirArgs="--prefix=$parentDir --exec-prefix=$parentDir"
gmpArgs="--with-gmp-include=$parentDir/include/ --with-gmp-lib=$parentDir/lib"
The dirArgs are used for every package, the gmpArgs are used only for
the packages that need GMP.

I have a problem compiling HPL under RedHat:

1. If I try compiling in the same way I do under SUSE, I see
"cannot find crti.o" and "cannot find crtn.o" from
$parentDir/x86_64-unknown-linux-gnu/bin/ld

but there is a crti.o and crtn.o in
/usr/lib/x86_64-redhat-linux5E/lib64

I suspect gcc is trying to compile 32 bit even though I used
this command when configuring gcc:
./configure --prefix=$parentDirectory --exec-prefix=$parentDirectory \
--with-gmp-include=$parentDirectory/include/ --with-gmp-lib=$parentDirectory/lib --with-multilib-list=m64

2. So then I tried compiling libc where I get this error:
$parentDir/x86_64-unknown-linux-gnu/bin/ld: cannot find crt1.o: No such file or directory
$parentDir/x86_64-unknown-linux-gnu/bin/ld: cannot find crti.o: No such file or directory
$parentDir/x86_64-unknown-linux-gnu/bin/ld: cannot find crtbegin.o: No such file or directory
$parentDir/x86_64-unknown-linux-gnu/bin/ld: cannot find -lgcc
$parentDir/x86_64-unknown-linux-gnu/bin/ld: cannot find -lgcc_s
$parentDir/x86_64-unknown-linux-gnu/bin/ld: cannot find -lgcc
$parentDir/x86_64-unknown-linux-gnu/bin/ld: cannot find -lgcc_s
$parentDir/x86_64-unknown-linux-gnu/bin/ld: cannot find crtend.o: No such file or directory
$parentDir/x86_64-unknown-linux-gnu/bin/ld: cannot find crtn.o

And try as I might I can't seem to find a crtl.asm crti.asm
crtend.asm for X86_64 or in my case AMD Opteron.

What do I do next?

Thanks
 
Old 02-04-2012, 12:21 AM   #2
John VV
Guru
 
Registered: Aug 2005
Posts: 13,473

Rep: Reputation: 1800Reputation: 1800Reputation: 1800Reputation: 1800Reputation: 1800Reputation: 1800Reputation: 1800Reputation: 1800Reputation: 1800Reputation: 1800Reputation: 1800
I am not even sure you can build gcc 4.6 on the older RHEL5 ( assuming it is from "/usr/lib/x86_64-redhat-linux5E/lib64" )

on your system run
Code:
su -
rpm -q --requires gcc
you are paying for red hat support so have you asked them ?

try searching gcc 4.6 on the rhn Knowledge base
https://access.redhat.com/knowledge/search

an old CentOS 5 forum post
https://www.centos.org/modules/newbb...topic_id=30110
 
Old 02-06-2012, 06:43 AM   #3
tbodine88
LQ Newbie
 
Registered: Dec 2011
Posts: 12

Original Poster
Rep: Reputation: Disabled
Cool

Quote:
Originally Posted by John VV View Post
I am not even sure you can build gcc 4.6 on the older RHEL5 ( assuming it is from "/usr/lib/x86_64-redhat-linux5E/lib64" )

on your system run
Code:
su -
rpm -q --requires gcc
you are paying for red hat support so have you asked them ?

try searching gcc 4.6 on the rhn Knowledge base
https://access.redhat.com/knowledge/search

an old CentOS 5 forum post
https://www.centos.org/modules/newbb...topic_id=30110
rpm-q --requires gcc shows:

[root@RHEL6-U2-amd64 Desktop]# rpm -q --requires gcc
/bin/sh
/bin/sh
/bin/sh
/sbin/install-info
/sbin/install-info
binutils >= 2.19.51.0.14-33
cloog-ppl >= 0.15
cpp = 4.4.6-3.el6
glibc-devel >= 2.2.90-12
libc.so.6()(64bit)
libc.so.6(GLIBC_2.11)(64bit)
libc.so.6(GLIBC_2.2.5)(64bit)
libc.so.6(GLIBC_2.3)(64bit)
libc.so.6(GLIBC_2.4)(64bit)
libc.so.6(GLIBC_2.7)(64bit)
libgcc >= 4.4.6-3.el6
libgcc_s.so.1()(64bit)
libgomp = 4.4.6-3.el6
libgomp.so.1()(64bit)
rpmlib(CompressedFileNames) <= 3.0.4-1
rpmlib(FileDigests) <= 4.6.0-1
rpmlib(PartialHardlinkSets) <= 4.0.4-1
rpmlib(PayloadFilesHavePrefix) <= 4.0-1
rpmlib(VersionedDependencies) <= 3.0.3-1
rtld(GNU_HASH)
rpmlib(PayloadIsXz) <= 5.2-1
So what do I do with this information?

I got the login info yesterday so I will ask Red Hat.
 
Old 02-06-2012, 07:02 AM   #4
tbodine88
LQ Newbie
 
Registered: Dec 2011
Posts: 12

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by tbodine88 View Post
rpm-q --requires gcc shows:

[root@RHEL6-U2-amd64 Desktop]# rpm -q --requires gcc
/bin/sh
/bin/sh
/bin/sh
/sbin/install-info
/sbin/install-info
binutils >= 2.19.51.0.14-33
cloog-ppl >= 0.15
cpp = 4.4.6-3.el6
glibc-devel >= 2.2.90-12
libc.so.6()(64bit)
libc.so.6(GLIBC_2.11)(64bit)
libc.so.6(GLIBC_2.2.5)(64bit)
libc.so.6(GLIBC_2.3)(64bit)
libc.so.6(GLIBC_2.4)(64bit)
libc.so.6(GLIBC_2.7)(64bit)
libgcc >= 4.4.6-3.el6
libgcc_s.so.1()(64bit)
libgomp = 4.4.6-3.el6
libgomp.so.1()(64bit)
rpmlib(CompressedFileNames) <= 3.0.4-1
rpmlib(FileDigests) <= 4.6.0-1
rpmlib(PartialHardlinkSets) <= 4.0.4-1
rpmlib(PayloadFilesHavePrefix) <= 4.0-1
rpmlib(VersionedDependencies) <= 3.0.3-1
rtld(GNU_HASH)
rpmlib(PayloadIsXz) <= 5.2-1
So what do I do with this information?
rpm -q --requires gcc tells what other packages are used by the gcc package. This implies that if one was to change the version of gcc, then this change would affect and possibly break all the other packages.

In my case I am building gcc 4.6.2 in a separate directory and therefore if I am careful I only affect those packages that refer to this new, separate directory.

Thanks for your help
 
  


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
Compiling GCC - crti.o not recognised compused Linux - Software 0 01-29-2012 08:19 AM
Installing GCC over existing gcc in Redhat linux prakasha.lunux Linux - Newbie 10 01-19-2011 09:34 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
running software built with gcc 3.0.2 on Redhat 8 - gcc 3.2 dst1989 Linux - Software 3 03-08-2004 11:23 PM
gcc missing?? cmoloney Linux - Software 3 05-18-2003 02:24 PM


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