LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
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 05-02-2012, 10:42 AM   #1
tyaginitish1448
LQ Newbie
 
Registered: Apr 2012
Posts: 13

Rep: Reputation: Disabled
gcc compilation error


hi guys,,

i am doing kernel compilation by using kenel 3.4-rc4.
i have successfully installed ncurses5.9,gmp-5.0.4,mpc-0.9,mpfr 2.4.2....
i have configured my new kernel also,,,now for making bzimage i need gcc compiler.

so i tries gcc4.7.0 and gcc4.6.2....but every time i give make command after extracting gcc,,,i get error:::

usr/lib/gcc-4.7.0/i686-pc-linux-gnu/libgcc:configure:error:cannot compute the suffix of object file:cannot compile.

i have changed the gcc version also,,tried atleast 5 times whole process..staring from recompiling of mpc,mpfr e.t.c....but still getting the same error..



plz help me to come out of this.
 
Old 05-02-2012, 10:58 AM   #2
paulsm4
LQ Guru
 
Registered: Mar 2004
Distribution: SusE 8.2
Posts: 5,863
Blog Entries: 1

Rep: Reputation: Disabled
The error is misleading - look at your "config.log" for more details on what actually failed. You might be missing a dependency.

Look at these links:

* http://gcc.gnu.org/wiki/FAQ

* http://stackoverflow.com/questions/9...f-object-files
<= The root cause will be the same, whether you're building "gcc" or "libgcc"
 
Old 05-02-2012, 10:59 AM   #3
lb_dbd
LQ Newbie
 
Registered: Apr 2012
Posts: 8

Rep: Reputation: Disabled
Before you make gcc 4.7.0 you have to configure gcc. I recently configured my gcc 4.7.0 build using the following:
../configure --prefix=/tools --disable-nls --disable-shared --enable-static --wi thout-included-gettext --enable-static --enable-version-specific-runtime-libs\
--without-x --exec-prefix=/usr --sysconfdir=/etc --disable-multilib --disable-d ecimal-float --disable-threads\
--disable-libmudflap --disable-libssp --disable-libgomp --disable-libquadmath - -enable-languages=c --without-ppl --without-cloog\
--enable-threads-posix --disable-win32-registry --with-gmp=/usr/local --with-mp fr=/usr/local --with-mpc=/usr/local --with-target=mingw32

also, gcc -v will show you how your current gcc was configured.
 
Old 05-02-2012, 07:17 PM   #4
tyaginitish1448
LQ Newbie
 
Registered: Apr 2012
Posts: 13

Original Poster
Rep: Reputation: Disabled
ok let me check and thanks for ur help
 
Old 05-03-2012, 05:21 AM   #5
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,511

Rep: Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641
Which Linux OS are you using ? ?
http://www.linuxquestions.org/linux/...Ask_a_Question
http://linuxsilo.net/docs/smart-questions_en.html


Be aware that gcc requires a build folder outside the gcc-4.7.0/ source.
So the configure line will start this way : ../gcc-4.70/configure --

A build example http://nosemaj.org/debian-gcc-4-7

.
 
Old 05-03-2012, 01:01 PM   #6
tyaginitish1448
LQ Newbie
 
Registered: Apr 2012
Posts: 13

Original Poster
Rep: Reputation: Disabled
thanks buddy
 
Old 05-03-2012, 01:47 PM   #7
tyaginitish1448
LQ Newbie
 
Registered: Apr 2012
Posts: 13

Original Poster
Rep: Reputation: Disabled
project problem

hi buddy,,

let me tell u what my problem is::
i have been given a project in which i have to develop a customized linux distribution for my college on which all the device drivers for hyperterminal, video conferencing and other communication softwares which generally run on windows should run on my linux os also..this is the aim of my project..

problem::
i have very less knowledge on linux..i have just started few day back working on linux..regarding my first linux compilation,,i am using boss(bharat operating sysytem)2.6.39 as my base os,,i downloaded linux kernel 3.4 latest and have configured it.after that i have compiled gmp, mpc, mpfr..but gcc 4.7.0 is not getting installed on the os. i am getting the error cannot compute suffix....i have tried everything for the last three days but the same error is coming up again and again..till the time gcc will not get compiled on my system i will not be able to build bzimage of my new kernel .

plz help me out.
 
Old 05-04-2012, 10:01 AM   #8
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,511

Rep: Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641
GCC isn't difficult to build, but you will have to follow some very strict build rules.

How does your configure line look like ? Please show.
 
  


Reply



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
GCC compilation error Kenny_Strawn Programming 29 07-03-2010 01:36 PM
gcc 4.4.3 compilation error pankajd Linux - Software 1 04-03-2010 09:50 AM
gcc (GCC) 4.3.2 20081105 (Red Hat 4.3.2-7) compilation error adhesh_19 Red Hat 0 01-05-2010 05:34 AM
have gcc compilation error during gcc installtion in linuxfromscratch vbshanmugaprakash Linux - General 3 12-13-2006 05:52 AM

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

All times are GMT -5. The time now is 04:02 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