This is the mail archive of the
gcc-help@gcc.gnu.org
mailing list for the GCC project.
Re: Re: Re: Problem with building gcc 4.9.0 (libstdc++)
- From: "Kirill Voronin" <kvoronin at labchem dot sscc dot ru>
- To: gcc-help at gcc dot gnu dot org
- Date: Sun, 10 Aug 2014 18:58:21 +0700
- Subject: Re: Re: Re: Problem with building gcc 4.9.0 (libstdc++)
- Authentication-results: sourceware.org; auth=none
Yes, the symbolic links called "gmp", "mpfr" and
"mpc" in the gcc-4.9.0 source directory are present.
I foolowed instructions from the installation guide
https://gcc.gnu.org/wiki/InstallingGCC
directly, but nevertheless got the following error (in config.log) when
doing make (after successful configure)
configure:4970: checking whether g++ accepts -static-libstdc++ -static-libgcc
configure:4987: g++ -o conftest -g -O2 -static-libstdc++ -static-libgcc
conftest.cpp >&5
g++: unrecognized option '-static-libstdc++'
conftest.cpp:11:2: error: #error -static-libstdc++ not implemented
configure:4987: $? = 1
configure: failed program was:
| /* confdefs.h */
| #define PACKAGE_NAME ""
| #define PACKAGE_TARNAME ""
| #define PACKAGE_VERSION ""
| #define PACKAGE_STRING ""
| #define PACKAGE_BUGREPORT ""
| #define PACKAGE_URL ""
| /* end confdefs.h. */
|
| #if (__GNUC__ < 4) || (__GNUC__ == 4 && __GNUC_MINOR__ < 5)
| #error -static-libstdc++ not implemented
| #endif
| int main() {}
The configure coomand was like
./contrib/download_prerequisites
$PWD/../gcc-4.9.0/configure
--prefix=/ifs/home/icmmg/voronin/pardiso_proekt/pardiso_project/new/gcc-4.9.0
--enable-shared
How should I solve the problem?
Best regards,
Kirill Voronin
> On 8 August 2014 12:33, Jonathan Wakely wrote:
>> On 8 August 2014 12:13, Kirill Voronin wrote:
>>>
>>> OK, thanks for you responses.
>>>
>>> Can you please make it a bit more clear about how to build gcc after
>>> using
>>> download_prerequisites script ?
>>
>> I don't know what isn't clear about the steps at the bottom of the
>> http://gcc.gnu.org/wiki/InstallingGCC page.
>
> "Alternatively, after extracting the GCC source archive, simply run
> the ./contrib/download_prerequisites script in the GCC source
> directory."
>
> Note "in the GCC source directory", not in the GCC build directory,
> not in the contrib sub-directory of the GCC source directory, not
> anywhere else.
>
> After doing that you should have symlinks called "gmp", "mpfr" and
> "mpc" in the gcc-4.9.0 source directory - are they present?
>
--