LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (http://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   gcc configure problem (http://www.linuxquestions.org/questions/linux-newbie-8/gcc-configure-problem-808650/)

Samsinite 05-18-2010 12:45 PM

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

exvor 05-18-2010 09:01 PM

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++.

Andrew Benton 05-19-2010 06:03 AM

Quote:

Originally Posted by Samsinite (Post 3973021)
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

Samsinite 05-19-2010 11:03 PM

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

grail 05-19-2010 11:53 PM

What happens if you try with just - --enable-languages=c?

Samsinite 05-20-2010 12:34 AM

Problem Fixed
 
Quote:

Originally Posted by grail (Post 3974962)
What happens if you try with just - --enable-languages=c?

Worked like a charm.

Thanks everyone for all the help.

-Sam

cola 05-20-2010 01:12 AM

Quote:

Originally Posted by Samsinite (Post 3974993)
Worked like a charm.

Thanks everyone for all the help.

-Sam

You can mark the thread as "[SOLVED]".

exvor 05-20-2010 08:22 PM

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


All times are GMT -5. The time now is 10:33 AM.