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 06-01-2014, 02:00 AM   #1
rahulvishwakarma
Member
 
Registered: Aug 2010
Posts: 139

Rep: Reputation: 2
Installatin problem in installing gcc-4.9.0


Hi to all,
i'm installing gcc-4.9.0 into my centos 6.4. I configure like this :-

Code:
  # mkdir objdir
  # ./../gcc-4.9.0/configure
  # make
and now having this problem :-
Code:
checking for x86_64-unknown-linux-gnu-gcc... /software/gcc/objdir/./gcc/xgcc -B/software/gcc/objdir/./gcc/ -B/usr/local/x86_64-unknown-linux-gnu/bin/ -B/usr/local/x86_64-unknown-linux-gnu/lib/ -isystem /usr/local/x86_64-unknown-linux-gnu/include -isystem /usr/local/x86_64-unknown-linux-gnu/sys-include   
checking for suffix of object files... configure: error: in `/software/gcc/objdir/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 `/software/gcc/objdir'
make[1]: *** [stage1-bubble] Error 2
make[1]: Leaving directory `/software/gcc/objdir'
make: *** [all] Error 2
-----------------------------------------------------
what should I do for this error to overcome?

this problem was also having with gcc-4.8.3.
 
Old 06-01-2014, 03:00 AM   #2
gengisdave
Member
 
Registered: Dec 2013
Location: Turin, Italy
Distribution: slackware
Posts: 328

Rep: Reputation: 74
Usually, this is a problem with linking to mpc/mpfr/gmp; look at config.log in the same directory to have a full debug of this error.

I don't remember if Centos uses -devel packages as in redhat, in that case, install them (gmp-devel, mpfr-devel, mpc-devel or similar names) and try configure again. Otherwise, look config.log.
 
Old 06-02-2014, 03:02 PM   #3
rahulvishwakarma
Member
 
Registered: Aug 2010
Posts: 139

Original Poster
Rep: Reputation: 2
i'm installing gcc-4.9.0 into my centos 6.4. I configure like this :-

i installed gmp-4.3.2, isl-0.12.2, mpfr-2.4.2, mpc-0.8.1, cloog-0.18.1 manually and successfully then i configure gcc-4.9.0 as (successfully) :-

Code:
  [root@kaljayi gcc]#  gcc-4.9.0/configure --disable-shared  --disable-libstdcxx-pch --enable-languages=all --enable-libgomp --enable-lto --enable-threads=posix --enable-tls --with-gmp=/opt/gcc-4.9.0/ --with-mpfr=/opt/gcc-4.9.0/ --with-mpc=/opt/gcc-4.9.0/ --with-libelf=/opt/gcc-4.9.0/ --with-fpmath=sse
then
Code:
  [root@kaljayi gcc]# make
and found this error :-
Code:
checking for x86_64-unknown-linux-gnu-gcc... /software/gcc/./gcc/xgcc -B/software/gcc/./gcc/ -B/usr/local/x86_64-unknown-linux-gnu/bin/ -B/usr/local/x86_64-unknown-linux-gnu/lib/ -isystem /usr/local/x86_64-unknown-linux-gnu/include -isystem /usr/local/x86_64-unknown-linux-gnu/sys-include   
checking for suffix of object files... configure: error: in `/software/gcc/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 `/software/gcc'
make[1]: *** [stage1-bubble] Error 2
make[1]: Leaving directory `/software/gcc'
make: *** [all] Error 2
------------------------------------------------
how can i overcome from this error?

Last edited by rahulvishwakarma; 06-02-2014 at 03:12 PM.
 
Old 06-02-2014, 03:27 PM   #4
John VV
LQ Muse
 
Registered: Aug 2005
Location: A2 area Mi.
Posts: 17,688

Rep: Reputation: 2658Reputation: 2658Reputation: 2658Reputation: 2658Reputation: 2658Reputation: 2658Reputation: 2658Reputation: 2658Reputation: 2658Reputation: 2658Reputation: 2658
you do know that CentOS dose NOT use /usr/local

that location is NOT in the default $PATH

also building "shared" (*.so) is the normal , just wondering WHY you are disabling that

Also can you post the output of
Code:
cat /etc/redhat-release
ONLY centOS 6.5 is supported
if it states 6.4 then you need to upgrade ASAP
 
Old 06-03-2014, 04:14 AM   #5
rahulvishwakarma
Member
 
Registered: Aug 2010
Posts: 139

Original Poster
Rep: Reputation: 2
Question

you written :-

you do know that CentOS dose NOT use /usr/local

so i installed RedHat EL 6.4 and then did installation again as above
and found same problem again. I was trying installation of gcc-4.6.3 and gcc-4.8.3
but having same problem as mentioned previous post.

I was trying like this :-

http://stackoverflow.com/questions/9...shared-librari

I am trying to solve this problem since a long time ago.( two or three months )
please help me.
 
Old 06-03-2014, 01:57 PM   #6
John VV
LQ Muse
 
Registered: Aug 2005
Location: A2 area Mi.
Posts: 17,688

Rep: Reputation: 2658Reputation: 2658Reputation: 2658Reputation: 2658Reputation: 2658Reputation: 2658Reputation: 2658Reputation: 2658Reputation: 2658Reputation: 2658Reputation: 2658
if you REALLY must have the very new and still in testing gcc4.9
install fedora 20

RHEL6.5 uses older code
and older versions of software
most of the code in rhel6.5 might not even build yet using gcc 4.9

RHEL uses gcc 4.4 as the DEFAULT compiler

now the EPEL repo has gcc 4.7
http://wiki.centos.org/AdditionalResources/Repositories
 
Old 06-11-2014, 01:13 AM   #7
rahulvishwakarma
Member
 
Registered: Aug 2010
Posts: 139

Original Poster
Rep: Reputation: 2
real thing is that- i want to install Qt5.2.1 on my centos 6.4, and my system is old ( that
means - not supporting centos 6.5 or rhel 6.5 ). After installing and running qtcreator, it
given the following error :-

Code:
[rahul@kaljayi bin]# ./qtcreator
Qt: Session management error: None of the authentication 
protocols specified are supported
(<unknown>:27276): Gtk-WARNING **: Attempt to load unknown 
IM context type 'gtk-im-context-none'
Failed to load core: 
/opt/Qt5.3.0/Tools/QtCreator/lib/qtcreator/plugins/QtProject/libCore.so: Cannot load 
library
 /opt/Qt5.3.0/Tools/QtCreator/lib/qtcreator/plugins/QtProject/libCore.so: 
(/usr/lib64/libstdc++.so.6: version `GLIBCXX_3.4.15' not found (required by
/opt/Qt5.3.0/Tools/QtCreator/lib/qtcreator/plugins/QtProject/../.././libQt5CLucene.so.5))
i searched in the web and found in some sites that i need to install gcc-4.6.3 or later to
overcome this problem. when i went to install gcc-4.6.3, i end up with this error :-
Code:
configure: error: in `/software/gcc/x86_64-unknown-linux-gnu/libgcc':
configure: error: cannot compute suffix of object files: cannot compile
as i mentioned in earlier post.
and i m here. Please tell me how to overcome this.
 
Old 06-11-2014, 01:20 PM   #8
John VV
LQ Muse
 
Registered: Aug 2005
Location: A2 area Mi.
Posts: 17,688

Rep: Reputation: 2658Reputation: 2658Reputation: 2658Reputation: 2658Reputation: 2658Reputation: 2658Reputation: 2658Reputation: 2658Reputation: 2658Reputation: 2658Reputation: 2658
what is stopping you from upgrading to CentOS 6.5

i have sl6.5 running on a 13 year old DELL that had xp ( NO service pack) preinstalled from 2001

with just a minor hack of the OS to run the Nvidia gforce 2 mx 400 card

that would be the first step
CentOS 6.4 is unsupported

as to getting QT 5 running on 6.5 or 6.4

that might take about a month to build all the prerequisite
think of building "linux from scratch" but on a OS that is not supported
 
Old 06-15-2014, 01:21 PM   #9
rahulvishwakarma
Member
 
Registered: Aug 2010
Posts: 139

Original Poster
Rep: Reputation: 2
I upgraded centos 6.4 to centos 6.5 using yum command. but still having same problem
Code:
configure: error: in `/software/gcc/objdir/x86_64-unknown-linux-gnu/libgcc':
configure: error: cannot compute suffix of object files: cannot compile
so finally i concentrated in solving qt5.2.0 run problem. this is having follwing problem :-

Code:
[rahul@kaljayi bin]# ./qtcreator
Qt: Session management error: None of the authentication 
protocols specified are supported
(<unknown>:27276): Gtk-WARNING **: Attempt to load unknown 
IM context type 'gtk-im-context-none'
Failed to load core: 
/opt/Qt5.3.0/Tools/QtCreator/lib/qtcreator/plugins/QtProject/libCore.so: Cannot load 
library
 /opt/Qt5.3.0/Tools/QtCreator/lib/qtcreator/plugins/QtProject/libCore.so: 
(/usr/lib64/libstdc++.so.6: version `GLIBCXX_3.4.15' not found (required by
/opt/Qt5.3.0/Tools/QtCreator/lib/qtcreator/plugins/QtProject/../.././libQt5CLucene.so.5))
i given following command to locate files
Code:
[root@kaljayi Qt Required]# locate /usr/lib64/libstdc++.so.6
/usr/lib64/libstdc++.so.6
/usr/lib64/libstdc++.so.6.0.13
/usr/share/gdb/auto-load/usr/lib64/libstdc++.so.6.0.13-gdb.py
/usr/share/gdb/auto-load/usr/lib64/libstdc++.so.6.0.13-gdb.pyc
/usr/share/gdb/auto-load/usr/lib64/libstdc++.so.6.0.13-gdb.pyo


[root@kaljayi Qt Required]# ll /usr/lib64/libstdc++.so.6
lrwxrwxrwx. 1 root root 19 Jun 15 22:49 /usr/lib64/libstdc++.so.6 -> libstdc++.so.6.0.13
[root@kaljayi Qt Required]# locate libCore.so
/opt/Qt5.3.0/Tools/QtCreator/lib/qtcreator/plugins/QtProject/libCore.so
[root@kaljayi Qt Required]#
becuse there is soft link
Code:
 /usr/lib64/libstdc++.so.6 -> libstdc++.so.6.0.13
so it must be loaded but
qt is not doing that. What is the problem?
 
Old 06-15-2014, 04:46 PM   #10
John VV
LQ Muse
 
Registered: Aug 2005
Location: A2 area Mi.
Posts: 17,688

Rep: Reputation: 2658Reputation: 2658Reputation: 2658Reputation: 2658Reputation: 2658Reputation: 2658Reputation: 2658Reputation: 2658Reputation: 2658Reputation: 2658Reputation: 2658
Quote:
real thing is that- i want to install Qt5.2.1 on my centos
and from this you ? somehow installed something ?
Quote:
[rahul@kaljayi bin]# ./qtcreator
Qt: Session management error: None of the authentication
protocols specified are supported
(<unknown>:27276): Gtk-WARNING **: Attempt to load unknown
IM context type 'gtk-im-context-none'
Failed to load core:
/opt/Qt5.3.0/Tools/QtCreator/lib/qtcreator/plugins/QtProject/libCore.so: Cannot load
library
how ?

on my SL 6.5 install qt5 is in the epel repo

Code:
 yum info qt5-qtbase
Loaded plugins: priorities, refresh-packagekit, security
Repository sl is listed more than once in the configuration
Repository sl-security is listed more than once in the configuration
Repository sl-source is listed more than once in the configuration
116 packages excluded due to repository priority protections
Available Packages
Name        : qt5-qtbase
Arch        : i686
Version     : 5.2.1
Release     : 8.el6
Size        : 3.1 M
Repo        : epel
Summary     : Qt5 - QtBase components
URL         : http://qt-project.org/
License     : LGPLv2 with exceptions or GPLv3 with exceptions
Description : Qt is a software toolkit for developing applications.
            : 
            : This package contains base tools, like string, xml, and network
            : handling.
so installing qt5 should be as easy as using yum once epel repo is installed and "yum-priorities" plugin is installed and CONFIGURED!!!

Code:
su -
yum install qt5-qtbase qt5-qtbase-devel qt5-qttools
 
Old 06-20-2014, 05:03 AM   #11
rahulvishwakarma
Member
 
Registered: Aug 2010
Posts: 139

Original Poster
Rep: Reputation: 2
Wink

hanx to reply, finally i resolved this problem by using these commands :-

Code:
 yum -y install glibc-devel.i686 glibc-devel
download
Code:
gcc-4.8.3 from : http://ftp.gnu.org/gnu/gcc/gcc-4.8.3/gcc-4.8.3.tar.gz
Go to Terminal as root
Code:
    tar xzf gcc-4.8.3.tar.gz
    cd gcc-4.8.3
    ./contrib/download_prerequisites
    cd ..
    mkdir objdir
    cd objdir
    $PWD/../gcc-4.8.3/configure –prefix=/opt/gcc-4.8.3
    make
    make install

    mv /usr/lib64/libstdc++.so.6 /usr/lib64/libstdc++.so.6.backup

    cp /opt/gcc-4.8.3/lib64/libstdc++.so.6 /usr/lib64

    cp /opt/gcc-4.8.3/lib64/libstdc++.so.6.0.16 /usr/lib64
and now Qt5.3.0 is running. thanx to all of you to reply.
 
  


Reply

Tags
gcc


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
Problem installing gcc rafiahmadjan Linux - Server 1 01-03-2013 11:22 AM
Hard Disk Installatin Problem rr_rr_29 Linux - Hardware 3 02-24-2007 11:32 PM
Problem installing gcc HiOctane21 Linux - Software 5 09-08-2005 06:14 PM
Problem installing GCc rangalo Linux - Software 4 01-31-2005 05:32 AM
SuSe / ATI Installatin Problem Here KillerFry Linux - General 5 08-07-2003 08:42 PM

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

All times are GMT -5. The time now is 12:35 AM.

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