[prev in list] [next in list] [prev in thread] [next in thread] 

List:       mingw-users
Subject:    Re: [Mingw-users] GCC 4.4.0 fails with GMP
From:       Dennis Wassel <dennis.wassel () googlemail ! com>
Date:       2009-06-25 12:46:44
Message-ID: fe03ae8f0906250546h1a59ad14mcc1ece2f0e16d17f () mail ! gmail ! com
[Download RAW message or body]

Hi list,

I am experiencing (supposedly) the same issues with GMP 4.2.4
(gmp-4.2.4-src.tar.bz2 packaged with the gcc release), using
* binutils-2.19.1-mingw32
* gcc-full-4.4.0-mingw32-bin-2
* make-3.81-MSYS-1.0.11-2

> I think this is a libtool issue with the way I packaged c++.  Let me
> look into it and get back to you.  I think you can fix it by editing the
> libstdc++.la file.

For the record:
- edited libstdc++.la (replaced library_names='libstdc++.dll.a' by
library_names='libstdc++_s.a'. This fixes the "No such file" error.
And from the release notes:
- exported linker flags LDFLAGS='-lstdc++_s'
- added CPPFLAGS='-D_GLIBCXX_DLL'

However, the latter two cause gmp configure to fail the 'broken
iostream' test, while without them, it fails later when creating the
(I think) libgmpxx libary. This is the relevant snippet of config.log:
[I am slightly confused to not see "-lstdc++_s" anywhere]

Test compile: std iostream
configure:8508: g++ -D_GLIBCXX_DLL -m32 -O2 -fomit-frame-pointer
-mtune=k8 -march=k8 -mno-cygwin conftest.cc >&5
c:\Temp\mingw\ccciHxa3.o:conftest.cc:(.text+0x1c): undefined reference
to `_imp___ZNSt8ios_base4InitC1Ev'
c:\Temp\mingw\ccciHxa3.o:conftest.cc:(.text+0x3c): undefined reference
to `_imp___ZNSt8ios_base4InitD1Ev'
c:\Temp\mingw\ccciHxa3.o:conftest.cc:(.text+0x54): undefined reference
to `_imp___ZSt4cout'
collect2: ld returned 1 exit status
configure:8511: $? = 1
failed program was:
/* This test rejects g++ 2.7.2 which doesn't have <iostream>, only a
    pre-standard iostream.h. */
#include <iostream>

/* This test rejects OSF 5.1 Compaq C++ in its default pre-standard iostream
   mode, since that mode puts cout in the global namespace, not "std".  */
void someoutput (void) { std::cout << 123; }

int main (void) { return 0; }
configure:8537: result: no, std iostream
configure:8408: checking C++ compiler g++ -D_GLIBCXX_DLL -g -O2
Test compile:
configure:8422: g++ -D_GLIBCXX_DLL -g -O2 conftest.cc >&5
configure:8425: $? = 0
configure:8429: ./a.out || ./b.out || ./a.exe || ./a_out.exe || ./conftest
./configure: line 8430: ./a.out: No such file or directory
./configure: line 8430: ./b.out: No such file or directory
configure:8432: $? = 0
Test compile: namespace
configure:8462: g++ -D_GLIBCXX_DLL -g -O2 conftest.cc >&5
configure:8465: $? = 0
configure:8469: ./a.out || ./b.out || ./a.exe || ./a_out.exe || ./conftest
./configure: line 8470: ./a.out: No such file or directory
./configure: line 8470: ./b.out: No such file or directory
configure:8472: $? = 0
Test compile: std iostream
configure:8508: g++ -D_GLIBCXX_DLL -g -O2 conftest.cc >&5
c:\Temp\mingw\ccgQmcsg.o: In function
`_static_initialization_and_destruction_0':
c:/mingw/bin/../lib/gcc/mingw32/4.4.0/include/c++/iostream:72:
undefined reference to `_imp___ZNSt8ios_base4InitC1Ev'
c:\Temp\mingw\ccgQmcsg.o: In function `_tcf_0':
c:/mingw/bin/../lib/gcc/mingw32/4.4.0/include/c++/iostream:72:
undefined reference to `_imp___ZNSt8ios_base4InitD1Ev'
c:\Temp\mingw\ccgQmcsg.o: In function `Z10someoutputv':
C:\msys\1.0\home\dwassel\install\gcc-4.5\gmp\build\gmp-4.2.4/conftest.cc:7:
undefined reference to `_imp___ZSt4cout'
collect2: ld returned 1 exit status
configure:8511: $? = 1
failed program was:
/* This test rejects g++ 2.7.2 which doesn't have <iostream>, only a
    pre-standard iostream.h. */
#include <iostream>

/* This test rejects OSF 5.1 Compaq C++ in its default pre-standard iostream
   mode, since that mode puts cout in the global namespace, not "std".  */
void someoutput (void) { std::cout << 123; }

int main (void) { return 0; }
configure:8537: result: no, std iostream
configure:8553: error: C++ compiler not available, see config.log for details


Am I missing something?
Otherwise I hope this helps extending the report.

Cheers,
Dennis

------------------------------------------------------------------------------
_______________________________________________
MinGW-users mailing list
MinGW-users@lists.sourceforge.net

This list observes the Etiquette found at 
http://www.mingw.org/Mailing_Lists.
We ask that you be polite and do the same.

Most annoying abuses are:
1) Top posting
2) Thread hijacking
3) HTML/MIME encoded mail
4) Improper quoting
5) Improper trimming
_______________________________________________
You may change your MinGW Account Options or unsubscribe at:
https://lists.sourceforge.net/lists/listinfo/mingw-users

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic