Re: [Mingw-w64-public] Compiling win32 compiler fails

2009-12-23 Thread Alon Bar-Lev
On Thu, Dec 24, 2009 at 9:22 AM, Kai Tietz wrote: > Ok, I see. I added to the comment that this just happens on > cross-compile. Btw gendef should work as native build on linux, too. > There shouldn't be any dependencies to Windows specific runtime. Almost true... :) Attached a patch. Alon. diff

Re: [Mingw-w64-public] Compiling win32 compiler fails

2009-12-23 Thread Kai Tietz
2009/12/23 Alon Bar-Lev : > Oh... For the comment I understand that you did not fully understand > the reason for failure... > > For testing if the malloc is gnu malloc or not a autoconf must try to > *RUN* a program... > --- > int > main () > { > return ! malloc (0); >  ; >  return 0; > } > --- >

Re: [Mingw-w64-public] problems with dllimport / dllexport

2009-12-23 Thread Kai Tietz
Hello Chris, 2009/12/23 Chris Sutcliffe : > Hi Kai, > >> Ah, as you describe this, I am remembering, that there is a patch for >> C++ FE pending (it is a bug), that the namespace should be able to >> contain the dllexport/dllimport here. > > Fair enough, hopefully the patch will make it in to main

Re: [Mingw-w64-public] problems with dllimport / dllexport

2009-12-23 Thread Chris Sutcliffe
Hi Kai, > Ah, as you describe this, I am remembering, that there is a patch for > C++ FE pending (it is a bug), that the namespace should be able to > contain the dllexport/dllimport here. Fair enough, hopefully the patch will make it in to mainline gcc/g++. > So this issue is most likely relate

Re: [Mingw-w64-public] Simplifying new def addition

2009-12-23 Thread Kai Tietz
2009/12/23 Alon Bar-Lev : > Hello, > > Just an idea... I had to add pdh.def into current build. > > Steps: > 1. Add pdh.def into mingw-w64-crt/lib32 > 2. Add the following to mingw-w64-crt/Makefile.am >    cat << __EOF__ >> mingw-w64-crt/Makefile.am > if LIB32 > lib32_SCRIPTS += lib32/libpdh.a > en

[Mingw-w64-public] Simplifying new def addition

2009-12-23 Thread Alon Bar-Lev
Hello, Just an idea... I had to add pdh.def into current build. Steps: 1. Add pdh.def into mingw-w64-crt/lib32 2. Add the following to mingw-w64-crt/Makefile.am cat << __EOF__ >> mingw-w64-crt/Makefile.am if LIB32 lib32_SCRIPTS += lib32/libpdh.a endif __EOF__ 3. Do autoreconf It would be gre

Re: [Mingw-w64-public] Compiling win32 compiler fails

2009-12-23 Thread Alon Bar-Lev
Oh... For the comment I understand that you did not fully understand the reason for failure... For testing if the malloc is gnu malloc or not a autoconf must try to *RUN* a program... --- int main () { return ! malloc (0); ; return 0; } --- The problem is that when you cross compile autoconf

Re: [Mingw-w64-public] Compiling win32 compiler fails

2009-12-23 Thread Kai Tietz
2009/12/23 Alon Bar-Lev : > On Wed, Dec 23, 2009 at 3:03 PM, Kai Tietz wrote: >> The change about malloc isn't used AFAICS, but well I want to keep it, >> as we plan to improve the conditional header includes in future. >> Does this line leads to an build error for you? > > Yes... It is needed. >

Re: [Mingw-w64-public] Compiling win32 compiler fails

2009-12-23 Thread Kai Tietz
2009/12/23 Alon Bar-Lev : > Great! > It works. Thanks for testing. I will apply it to v1.0 branch and trunk. > But... Why there is a huge difference between lib64 and lib32 libraries? > I see that lib32 contains only 142 libraries while lib64 contains 2042. > > For example libpdh is missing in li

Re: [Mingw-w64-public] Compiling win32 compiler fails

2009-12-23 Thread Alon Bar-Lev
Great! It works. But... Why there is a huge difference between lib64 and lib32 libraries? I see that lib32 contains only 142 libraries while lib64 contains 2042. For example libpdh is missing in lib32. On Wed, Dec 23, 2009 at 12:57 PM, Kai Tietz wrote: > 2009/12/22 Kai Tietz : >> 2009/12/22 Alo

Re: [Mingw-w64-public] problems with dllimport / dllexport

2009-12-23 Thread Kai Tietz
2009/12/23 Chris Sutcliffe : > Hi Kai, > >> I didn't noticed this change in behavior. Could you provide to me some >> small testcase by which I can reproduce this? > > I'll create a simple test case over the holidays.  As it stands today, > I see it with my Emerge Desktop application, but it by no

Re: [Mingw-w64-public] Compiling win32 compiler fails

2009-12-23 Thread Alon Bar-Lev
On Wed, Dec 23, 2009 at 3:03 PM, Kai Tietz wrote: > The change about malloc isn't used AFAICS, but well I want to keep it, > as we plan to improve the conditional header includes in future. > Does this line leads to an build error for you? Yes... It is needed. Once the autoconf detects that gnu m

Re: [Mingw-w64-public] Compiling win32 compiler fails

2009-12-23 Thread Kai Tietz
2009/12/23 Alon Bar-Lev : > OK. > Thanks. > > I had to fixup the gendef... > > 1. You check for gnu compliant malloc but not define the rpl_malloc, > so I removed this check. > 2. You treat warnings as errors and do not eliminate unused parameters. Thanks for reporting this warning. I committed an

Re: [Mingw-w64-public] problems with dllimport / dllexport

2009-12-23 Thread Chris Sutcliffe
Hi Kai, > I didn't noticed this change in behavior. Could you provide to me some > small testcase by which I can reproduce this? I'll create a simple test case over the holidays. As it stands today, I see it with my Emerge Desktop application, but it by no means is a simple test case. > The onl

Re: [Mingw-w64-public] Compiling win32 compiler fails

2009-12-23 Thread Alon Bar-Lev
OK. Thanks. I had to fixup the gendef... 1. You check for gnu compliant malloc but not define the rpl_malloc, so I removed this check. 2. You treat warnings as errors and do not eliminate unused parameters. Attached is a patch. Alon On Wed, Dec 23, 2009 at 2:28 PM, Kai Tietz wrote: > 2009/12/2

Re: [Mingw-w64-public] Compiling win32 compiler fails

2009-12-23 Thread Kai Tietz
2009/12/22 Kai Tietz : > 2009/12/22 Alon Bar-Lev : >> On Tue, Dec 22, 2009 at 9:53 PM, Kai Tietz wrote: >>> 2009/12/22 Alon Bar-Lev : Hi, I think that i686-w64-mingw32 should be supported, right? At least it would be great if it is as this project is much more maintained a