LinuxQuestions.org
Share your knowledge at the LQ Wiki.
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 05-18-2010, 12:45 PM   #1
Samsinite
LQ Newbie
 
Registered: Apr 2005
Posts: 4

Rep: Reputation: 0
gcc configure problem


I'm having trouble running the configuration, and I have installed gcc-c++ as well as running zypper install -t pattern devel_C_C++ to try and make sure are the tools are installed.

Code:
sam@linux-o5fj:~/gcc-code-assist-0.1-4.4.4> ./configure --prefix=$HOME --program-suffix=-code-assist --enable-languages=c,c++ --disable-bootstrap --disable-multilib
checking build system type... i686-pc-linux-gnu
checking host system type... i686-pc-linux-gnu
checking target system type... i686-pc-linux-gnu
checking for a BSD-compatible install... /usr/bin/install -c
checking whether ln works... yes
checking whether ln -s works... yes
checking for gcc... gcc
checking for C compiler default output file name... a.out
checking whether the C compiler works... yes
checking whether we are cross compiling... no
checking for suffix of executables...
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ANSI C... none needed
checking for g++... g++
checking whether we are using the GNU C++ compiler... yes
checking whether g++ accepts -g... yes
checking for gnatbind... no
checking for gnatmake... no
checking whether compiler driver understands Ada... yes
checking how to compare bootstrapped objects... cmp --ignore-initial=16 $$f1 $$f2
checking for correct version of gmp.h... yes
checking for correct version of mpfr.h... yes
checking for version 0.10 of PPL... no
checking for correct version of CLooG... no
configure: error:
The following requested languages could not be built: c++
Supported languages are: c
Anyone know what the problem is?

Thanks,
Sam
 
Old 05-18-2010, 09:01 PM   #2
exvor
Senior Member
 
Registered: Jul 2004
Location: Phoenix, Arizona
Distribution: LFS-Version SVN-20091202, Arch 2009.08
Posts: 1,488

Rep: Reputation: 67
Quote:
checking for version 0.10 of PPL... no
checking for correct version of CLooG... no
These 2 messages indicate that you do not have these packages installed. They may be needed to build support for c++.
 
1 members found this post helpful.
Old 05-19-2010, 06:03 AM   #3
Andrew Benton
Senior Member
 
Registered: Aug 2003
Location: Birkenhead/Britain
Distribution: Linux From Scratch
Posts: 2,073

Rep: Reputation: 64
Quote:
Originally Posted by Samsinite View Post
I'm having trouble running the configuration, and I have installed gcc-c++ as well as running zypper install -t pattern devel_C_C++ to try and make sure are the tools are installed.

Code:
configure: error:
The following requested languages could not be built: c++
Supported languages are: c
Anyone know what the problem is?

Thanks,
Sam
Have you untarred the gcc-g++ source in the gcc folder? The error message says that it only has the source code for the c compiler
 
Old 05-19-2010, 11:03 PM   #4
Samsinite
LQ Newbie
 
Registered: Apr 2005
Posts: 4

Original Poster
Rep: Reputation: 0
still same problem...

Hey guys, I have g++ installed (gcc-c++ package on suse):
Code:
i | gcc44                             | The GNU C Compiler and Support Files                         | package
i | gcc44-ada                         | GNU Ada95 Compiler Based on GCC (GNAT)                       | package
i | gcc44-c++                         | The GNU C++ Compiler                                         | package
i | gcc44-fortran                     | The GNU Fortran Compiler and Support Files                   | package
i | gcc44-gij                         | Java Bytecode Interpreter for gcc                            | package
i | gcc44-info                        | Documentation for the GNU compiler collection                | package
i | gcc44-java                        | The GNU Java Compiler                                        | package
i | gcc44-locale                      | Locale Data for the GNU Compiler Collection                  | package
i | gcc44-obj-c++                     | GNU Objective C++ Compiler                                   | package
i | gcc44-objc                        | GNU Objective C Compiler                                     | package
i | libgcc44                          | C compiler runtime library                                   | package
i | libstlport_gcc4                   | C++ STL library compatible with the latest ANSI/ISO C++ sp-> | package
and I also installed ppl and cloog:
Code:
checking for version 0.10 of PPL... yes
checking for correct version of CLooG... yes
configure: error:
The following requested languages could not be built: c++
Supported languages are: c
and I am still getting the same error. Any other ideas or suggestions?

Thanks for the help and responses,
Sam
 
Old 05-19-2010, 11:53 PM   #5
grail
Guru
 
Registered: Sep 2009
Location: Perth
Distribution: Manjaro
Posts: 7,564

Rep: Reputation: 1939Reputation: 1939Reputation: 1939Reputation: 1939Reputation: 1939Reputation: 1939Reputation: 1939Reputation: 1939Reputation: 1939Reputation: 1939Reputation: 1939
What happens if you try with just - --enable-languages=c?
 
1 members found this post helpful.
Old 05-20-2010, 12:34 AM   #6
Samsinite
LQ Newbie
 
Registered: Apr 2005
Posts: 4

Original Poster
Rep: Reputation: 0
Smile Problem Fixed

Quote:
Originally Posted by grail View Post
What happens if you try with just - --enable-languages=c?
Worked like a charm.

Thanks everyone for all the help.

-Sam
 
Old 05-20-2010, 01:12 AM   #7
cola
Senior Member
 
Registered: Sep 2007
Location: Dhaka,Bangladesh
Distribution: Debian
Posts: 1,019

Rep: Reputation: 63
Quote:
Originally Posted by Samsinite View Post
Worked like a charm.

Thanks everyone for all the help.

-Sam
You can mark the thread as "[SOLVED]".
 
Old 05-20-2010, 08:22 PM   #8
exvor
Senior Member
 
Registered: Jul 2004
Location: Phoenix, Arizona
Distribution: LFS-Version SVN-20091202, Arch 2009.08
Posts: 1,488

Rep: Reputation: 67
Yea but now this built version of GCC will only compile programs in C and no other language.
 
  


Reply

Tags
configure, 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
Install gcc 4.2 on f7 configure problem mwainwright Linux - Software 0 07-07-2007 05:18 AM
Problem with gcc ./configure TSoft Linux - Software 1 11-15-2006 09:55 PM
Problem with gcc: configure: error: C compiler cannot create executable abefroman Suse/Novell 4 05-11-2005 06:12 PM
can't configure - gcc problem? dhave Slackware 11 11-16-2004 11:24 AM
How to configure GCC? co2 Linux - Newbie 19 06-11-2004 04:06 AM


All times are GMT -5. The time now is 05:18 PM.

Main Menu
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