Re: [Mingw-w64-public] MinGW-w64 packaging problem or libtool problem

2010-09-06 Thread JonY
On 9/7/2010 10:07, Xiaofan Chen wrote: > On Tue, Sep 7, 2010 at 9:40 AM, JonY wrote: >> I think I can see where the problem is, but I'm still guessing at this >> point. >> >> TDM multilib has lib and lib32, but your non-multilib has lib and lib64, and >> they are not linked. I suppose the fix is t

Re: [Mingw-w64-public] MinGW-w64 packaging problem or libtool problem

2010-09-06 Thread John E. / TDM
On 9/6/2010 8:05 PM, Xiaofan Chen wrote: > Sorry I am not a compiler expert here. What is the difference between a > multilib x86_64-w64-mingw32 compiler and a multilib i686-w64-mingw32 > compiler? One defaults to the 32-bit target (i686-w64-mingw32), and the other defaults to the 64-bit target

Re: [Mingw-w64-public] MinGW-w64 packaging problem or libtool problem

2010-09-06 Thread Xiaofan Chen
On Tue, Sep 7, 2010 at 9:40 AM, JonY wrote: > I think I can see where the problem is, but I'm still guessing at this > point. > > TDM multilib has lib and lib32, but your non-multilib has lib and lib64, and > they are not linked. I suppose the fix is to move all the contents in lib > (or lib64) to

Re: [Mingw-w64-public] MinGW-w64 packaging problem or libtool problem

2010-09-06 Thread Xiaofan Chen
On Mon, Sep 6, 2010 at 11:15 PM, John E. / TDM wrote: > It is correct that TDM64 GCC does not include a "lib64" directory of any > sort (symlink or copy). I've simply never found it necessary when building > GCC or any of the other software I build on a regular basis. > > Since GCC searches the "

Re: [Mingw-w64-public] MinGW-w64 packaging problem or libtool problem

2010-09-06 Thread JonY
On 9/6/2010 21:13, Kai Tietz wrote: > 2010/9/6 Xiaofan Chen: >> On Mon, Sep 6, 2010 at 7:26 PM, JonY wrote: >>> Are you using a multilib setup? There should not be a lib64 directory around >>> for non-multilib toolchains. >>> >>> If you are using a multilib setup, lib is where the arch default lib

Re: [Mingw-w64-public] MinGW-w64 packaging problem or libtool problem

2010-09-06 Thread JonY
On 9/7/2010 09:37, Xiaofan Chen wrote: > On Tue, Sep 7, 2010 at 8:12 AM, JonY wrote: >>> My problem is that libtool was pointing to lib64 directory in the 64bit >>> cross build (under Linux or 32bit Windows) cases. I need to check again >>> under 32bit Win 7 with TDM. >>> >>> I just checked under

Re: [Mingw-w64-public] MinGW-w64 packaging problem or libtool problem

2010-09-06 Thread Xiaofan Chen
On Tue, Sep 7, 2010 at 8:12 AM, JonY wrote: >> My problem is that libtool was pointing to lib64 directory in the 64bit >> cross build (under Linux or 32bit Windows) cases. I need to check again >> under 32bit Win 7 with TDM. >> >> I just checked under Windows 7 64bit and TDM64 is okay there >> wit

Re: [Mingw-w64-public] Canadian cross still broken?

2010-09-06 Thread JonY
On 9/7/2010 01:34, Mario Emmenlauer wrote: > > Hi, > > On 09/06/2010 04:52 PM, JonY wrote: >> On 9/6/2010 19:50, Mario Emmenlauer wrote: On 9/6/2010 15:52, Mario Emmenlauer wrote: > I'm the original author of the issue [0] that Ismail referenced. During > the last months since my repor

Re: [Mingw-w64-public] MinGW-w64 packaging problem or libtool problem

2010-09-06 Thread JonY
On 9/7/2010 07:53, Xiaofan Chen wrote: > On Mon, Sep 6, 2010 at 11:15 PM, John E.> wrote: > >> It is correct that TDM64 GCC does not include a "lib64" directory of any >> sort (symlink or copy). I've simply never found it necessary when building >> GCC or any of the other software I build on a reg

Re: [Mingw-w64-public] MinGW-w64 packaging problem or libtool problem

2010-09-06 Thread Xiaofan Chen
On Mon, Sep 6, 2010 at 11:15 PM, John E. / TDM wrote: > It is correct that TDM64 GCC does not include a "lib64" directory of any > sort (symlink or copy). I've simply never found it necessary when building > GCC or any of the other software I build on a regular basis. > > Since GCC searches the "

Re: [Mingw-w64-public] Canadian cross still broken?

2010-09-06 Thread Mario Emmenlauer
Hi, On 09/06/2010 04:52 PM, JonY wrote: > On 9/6/2010 19:50, Mario Emmenlauer wrote: >>> On 9/6/2010 15:52, Mario Emmenlauer wrote: I'm the original author of the issue [0] that Ismail referenced. During the last months since my report, I've repeatedly re-tried numerous times,

[Mingw-w64-public] [patch] more strnlen()

2010-09-06 Thread Ozkan Sezer
1. Now that we have a strnlen() implementation, I think we can also remove the #if 0 out in tchar.h for it (I forgot doing so last time.) 2. We only have _mbstrnlen_l in msvcrt.def but we prototype both of _mbstrnlen() and _mbstrnlen_l() in stdlib.h. We can macroize the former to wrap onto the la

Re: [Mingw-w64-public] Problem configuringwxWidgets-2.9.1 withTDM64-GCC 4.5.1

2010-09-06 Thread John E. / TDM
On 9/6/2010 9:56 AM, Ozkan Sezer wrote: >>> On Mon, Sep 6, 2010 at 6:35 PM, John E. / TDM wrote: Here is a correct (albeit slightly less performant than assembly) strnlen implementation: size_t strnlen(const char* s, size_t maxlen) { const char* s2 = s; whi

Re: [Mingw-w64-public] Problem configuringwxWidgets-2.9.1 withTDM64-GCC 4.5.1

2010-09-06 Thread Ozkan Sezer
On Mon, Sep 6, 2010 at 6:49 PM, Kai Tietz wrote: > 2010/9/6 Ozkan Sezer : >> On Mon, Sep 6, 2010 at 6:35 PM, John E. / TDM wrote: >>>  On 9/6/2010 6:14 AM, Ozkan Sezer wrote: strnlen doesn't exist in msvcrt.dll from x86-winxp we can implement it roughly like: size_t

Re: [Mingw-w64-public] Problem configuringwxWidgets-2.9.1 withTDM64-GCC 4.5.1

2010-09-06 Thread Kai Tietz
2010/9/6 Ozkan Sezer : > On Mon, Sep 6, 2010 at 6:35 PM, John E. / TDM wrote: >>  On 9/6/2010 6:14 AM, Ozkan Sezer wrote: >>> >>> strnlen doesn't exist in msvcrt.dll from x86-winxp >>> >>> we can implement it roughly like: >>> >>> size_t __cdecl strnlen (const char *s, size_t maxlen) >>> { >>>   s

Re: [Mingw-w64-public] Problem configuringwxWidgets-2.9.1 withTDM64-GCC 4.5.1

2010-09-06 Thread Ozkan Sezer
On Mon, Sep 6, 2010 at 6:35 PM, John E. / TDM wrote: >  On 9/6/2010 6:14 AM, Ozkan Sezer wrote: >> >> strnlen doesn't exist in msvcrt.dll from x86-winxp >> >> we can implement it roughly like: >> >> size_t __cdecl strnlen (const char *s, size_t maxlen) >> { >>   size_t siz = __builtin_strlen(s); >

Re: [Mingw-w64-public] Problem configuringwxWidgets-2.9.1 withTDM64-GCC 4.5.1

2010-09-06 Thread John E. / TDM
On 9/6/2010 6:14 AM, Ozkan Sezer wrote: > strnlen doesn't exist in msvcrt.dll from x86-winxp > > we can implement it roughly like: > > size_t __cdecl strnlen (const char *s, size_t maxlen) > { >size_t siz = __builtin_strlen(s); >if (siz> maxlen) siz = maxlen; >return siz; > } This i

Re: [Mingw-w64-public] MinGW-w64 packaging problem or libtool problem

2010-09-06 Thread John E. / TDM
On 9/6/2010 8:49 AM, JonY wrote: > On 9/6/2010 19:40, Xiaofan Chen wrote: >> On Mon, Sep 6, 2010 at 7:26 PM, JonY wrote: >>> Are you using a multilib setup? There should not be a lib64 directory around >>> for non-multilib toolchains. >> I also just tried TDM64 and it does not have lib64 direct

Re: [Mingw-w64-public] Canadian cross still broken?

2010-09-06 Thread JonY
On 9/6/2010 19:50, Mario Emmenlauer wrote: > > Hi, > >> On 9/6/2010 15:52, Mario Emmenlauer wrote: >>> I'm the original author of the issue [0] that Ismail referenced. During >>> the last months since my report, I've repeatedly re-tried numerous >>> times, >>> but failed to build the canadian cross

Re: [Mingw-w64-public] MinGW-w64 packaging problem or libtool problem

2010-09-06 Thread JonY
On 9/6/2010 19:40, Xiaofan Chen wrote: > On Mon, Sep 6, 2010 at 7:26 PM, JonY wrote: >> Are you using a multilib setup? There should not be a lib64 directory around >> for non-multilib toolchains. > > I have tried different binary downloads. The one from MinGW-w64 Sourceforge > site and the one fr

Re: [Mingw-w64-public] MinGW-w64 packaging problem or libtool problem

2010-09-06 Thread Kai Tietz
2010/9/6 Xiaofan Chen : > On Mon, Sep 6, 2010 at 7:26 PM, JonY wrote: >> Are you using a multilib setup? There should not be a lib64 directory around >> for non-multilib toolchains. >> >> If you are using a multilib setup, lib is where the arch default libraries >> are. For x86_64-w64-mingw32, lib

Re: [Mingw-w64-public] MinGW-w64 packaging problem or libtool problem

2010-09-06 Thread Xiaofan Chen
On Mon, Sep 6, 2010 at 7:26 PM, JonY wrote: > Are you using a multilib setup? There should not be a lib64 directory around > for non-multilib toolchains. > > If you are using a multilib setup, lib is where the arch default libraries > are. For x86_64-w64-mingw32, lib points to lib64. > BTW, for T

Re: [Mingw-w64-public] Problem configuringwxWidgets-2.9.1 withTDM64-GCC 4.5.1

2010-09-06 Thread Ozkan Sezer
On Mon, Sep 6, 2010 at 3:22 PM, Kai Tietz wrote: > 2010/9/6 Ozkan Sezer : >> On Mon, Sep 6, 2010 at 3:11 PM, Kai Tietz wrote: >>> 2010/9/6 Bidski : Is there a reason why strnlen has been excluded thusly? Regards Bidski >>> >>> Hmm, not sure. I think it was due an iss

Re: [Mingw-w64-public] Problem configuringwxWidgets-2.9.1 withTDM64-GCC 4.5.1

2010-09-06 Thread Kai Tietz
2010/9/6 Ozkan Sezer : > On Mon, Sep 6, 2010 at 3:11 PM, Kai Tietz wrote: >> 2010/9/6 Bidski : >>> Is there a reason why strnlen has been excluded thusly? >>> >>> Regards >>> Bidski >>> >>> >> >> Hmm, not sure. I think it was due an issue in building bootstrap, but >> I can't recall it. >> >> Kai

Re: [Mingw-w64-public] Problem configuringwxWidgets-2.9.1 withTDM64-GCC 4.5.1

2010-09-06 Thread Bidski
Kai wrote: >Hmm, not sure. I think it was due an issue in building bootstrap, but >I can't recall it. Is there a suggested work-a-round? Regards Bidski -- This SF.net Dev2Dev email is sponsored by: Show off your paral

Re: [Mingw-w64-public] Problem configuringwxWidgets-2.9.1 withTDM64-GCC 4.5.1

2010-09-06 Thread Ozkan Sezer
On Mon, Sep 6, 2010 at 3:11 PM, Kai Tietz wrote: > 2010/9/6 Bidski : >> Is there a reason why strnlen has been excluded thusly? >> >> Regards >> Bidski >> >> > > Hmm, not sure. I think it was due an issue in building bootstrap, but > I can't recall it. > > Kai strnlen doesn't exist in msvcrt.dll

Re: [Mingw-w64-public] Problem configuringwxWidgets-2.9.1 withTDM64-GCC 4.5.1

2010-09-06 Thread Kai Tietz
2010/9/6 Bidski : > Is there a reason why strnlen has been excluded thusly? > > Regards > Bidski > > Hmm, not sure. I think it was due an issue in building bootstrap, but I can't recall it. Kai -- |  (\_/) This is Bunny. Copy and paste | (='.'=) Bunny into your signature to help | (")_(") him

Re: [Mingw-w64-public] Problem configuringwxWidgets-2.9.1 withTDM64-GCC 4.5.1

2010-09-06 Thread Bidski
Is there a reason why strnlen has been excluded thusly? Regards Bidski -- This SF.net Dev2Dev email is sponsored by: Show off your parallel programming skills. Enter the Intel(R) Threading Challenge 2010. http://p.sf.ne

Re: [Mingw-w64-public] Canadian cross still broken?

2010-09-06 Thread Mario Emmenlauer
Hi, > On 9/6/2010 15:52, Mario Emmenlauer wrote: >> I'm the original author of the issue [0] that Ismail referenced. During >> the last months since my report, I've repeatedly re-tried numerous >> times, >> but failed to build the canadian cross. Actually, back then mostly the >> same suggestions

Re: [Mingw-w64-public] MinGW-w64 packaging problem or libtool problem

2010-09-06 Thread Xiaofan Chen
On Mon, Sep 6, 2010 at 7:26 PM, JonY wrote: > Are you using a multilib setup? There should not be a lib64 directory around > for non-multilib toolchains. I have tried different binary downloads. The one from MinGW-w64 Sourceforge site and the one from http://www.drangon.org/mingw/ both are not mu

Re: [Mingw-w64-public] Problem configuring wxWidgets-2.9.1 withTDM64-GCC 4.5.1

2010-09-06 Thread Bidski
JonY wrote: >Note the driver used for the compile test. C test passes but not C++. I >think strnlen is disabled for C++, or maybe somebody forgot to include >the correct headers. In C:\MinGW\string.h there is the following #if 0 size_t __cdecl strnlen(const char *_Str,size_t _MaxCount); #endi

Re: [Mingw-w64-public] MinGW-w64 packaging problem or libtool problem

2010-09-06 Thread JonY
On 9/6/2010 19:01, Xiaofan Chen wrote: > Last time we had some discussions in the libusb mailing list about > using MinGW-w64 to build 64bit libusb-1.0 Windows backend. > > http://libusb.6.n5.nabble.com/PATCH-28-37-core-now-references-windows-backend-td8410i80.html#a1046006 > > One issue we found i

Re: [Mingw-w64-public] Problem configuring wxWidgets-2.9.1 withTDM64-GCC 4.5.1

2010-09-06 Thread JonY
On 9/6/2010 17:36, Bidski wrote: > OK, I solved that original problem by copying the files from the > C:\MinGW\x86_64-w64-mingw32 directory to the C:\MinGW directory, but now I > am getting a problem with strnlen not being declared. The error is once > again from building wxWidgets-2.9.1, during th

[Mingw-w64-public] MinGW-w64 packaging problem or libtool problem

2010-09-06 Thread Xiaofan Chen
Last time we had some discussions in the libusb mailing list about using MinGW-w64 to build 64bit libusb-1.0 Windows backend. http://libusb.6.n5.nabble.com/PATCH-28-37-core-now-references-windows-backend-td8410i80.html#a1046006 One issue we found is that recent version of libtool is needed to rec

Re: [Mingw-w64-public] Canadian cross still broken?

2010-09-06 Thread İsmail Dönmez
Hi; On Mon, Sep 6, 2010 at 1:02 PM, Pete Batard wrote: > For those interested, I recently blogged about how one can get a working > multilib MinGW-w64 on Linux, which includes how to work around the > "skipping incompatible" errors [1]. > > I'm pretty sure there's a much better way than what I d

Re: [Mingw-w64-public] Canadian cross still broken?

2010-09-06 Thread Pete Batard
For those interested, I recently blogged about how one can get a working multilib MinGW-w64 on Linux, which includes how to work around the "skipping incompatible" errors [1]. I'm pretty sure there's a much better way than what I did (for one thing, I didn't use --with-sysroot), and it's likely

Re: [Mingw-w64-public] Problem configuring wxWidgets-2.9.1 withTDM64-GCC 4.5.1

2010-09-06 Thread Bidski
OK, I solved that original problem by copying the files from the C:\MinGW\x86_64-w64-mingw32 directory to the C:\MinGW directory, but now I am getting a problem with strnlen not being declared. The error is once again from building wxWidgets-2.9.1, during the make stage this time though. In fil

Re: [Mingw-w64-public] Canadian cross still broken?

2010-09-06 Thread İsmail Dönmez
Hi; On Mon, Sep 6, 2010 at 11:47 AM, JonY wrote: > Did you link lib to lib64? And do you have lib32? Native cross-back works > fine for me. > > I do link lib64 to lib and I have lib32. > Are you talking about a triple cross? I tried > i686-linux->sparc-linux-mingw64 before, it works fine too.

Re: [Mingw-w64-public] Canadian cross still broken?

2010-09-06 Thread JonY
On 9/6/2010 15:52, Mario Emmenlauer wrote: > > Hi, > > I'm the original author of the issue [0] that Ismail referenced. During > the last months since my report, I've repeatedly re-tried numerous times, > but failed to build the canadian cross. Actually, back then mostly the > same suggestions wher

Re: [Mingw-w64-public] Canadian cross still broken?

2010-09-06 Thread İsmail Dönmez
On Mon, Sep 6, 2010 at 11:45 AM, İsmail Dönmez wrote: > Hi; > > On Mon, Sep 6, 2010 at 11:41 AM, Kai Tietz wrote > >> just for getting you right. Does initial cross-compiler fails, or then >> the build of the canadian cross based on this cross-compiler? >> >> > Initial gcc is fine, it fails in t

Re: [Mingw-w64-public] Canadian cross still broken?

2010-09-06 Thread İsmail Dönmez
Hi; On Mon, Sep 6, 2010 at 11:41 AM, Kai Tietz wrote > > just for getting you right. Does initial cross-compiler fails, or then > the build of the canadian cross based on this cross-compiler? > > Initial gcc is fine, it fails in the "Finishing GCC [ FNSHGC]" part mentioned in the gcc. Regards, i

Re: [Mingw-w64-public] Canadian cross still broken?

2010-09-06 Thread Kai Tietz
Hi, just for getting you right. Does initial cross-compiler fails, or then the build of the canadian cross based on this cross-compiler? Regards, Kai -- |  (\_/) This is Bunny. Copy and paste | (='.'=) Bunny into your signature to help | (")_(") him gain world domination --

Re: [Mingw-w64-public] Canadian cross still broken?

2010-09-06 Thread Mario Emmenlauer
Hi, I'm the original author of the issue [0] that Ismail referenced. During the last months since my report, I've repeatedly re-tried numerous times, but failed to build the canadian cross. Actually, back then mostly the same suggestions where given, tried, and failed. As you can see from my post

Re: [Mingw-w64-public] Canadian cross still broken?

2010-09-06 Thread İsmail Dönmez
On Mon, Sep 6, 2010 at 11:20 AM, JonY wrote: > > No, not path. By link, I meant using symlinks on Linux and junction points > in Windows. > > The compiler looks in /usr/local/mingw64/mingw instead of > /usr/local/mingw64/x86_64-w64-mingw32, so you'll need to link them. > Sorry I misunderstood but

Re: [Mingw-w64-public] Canadian cross still broken?

2010-09-06 Thread JonY
On 9/6/2010 15:11, İsmail Dönmez wrote: > Hi; > > On Mon, Sep 6, 2010 at 4:03 AM, JonY wrote: >> On 9/6/2010 05:27, İsmail Dönmez wrote: >>> >>> Hi; >>> >>> On Mon, Sep 6, 2010 at 12:12 AM, Kai Tietz >>> wrote: Well, could you please try '../configure --host=x86_64-w64-mingw32 --e

Re: [Mingw-w64-public] Canadian cross still broken?

2010-09-06 Thread İsmail Dönmez
Hi; On Mon, Sep 6, 2010 at 4:03 AM, JonY wrote: > On 9/6/2010 05:27, İsmail Dönmez wrote: >> >> Hi; >> >> On Mon, Sep 6, 2010 at 12:12 AM, Kai Tietz >>  wrote: >>> >>> Well, could you please try '../configure --host=x86_64-w64-mingw32 >>> --enable-lib32 --enable-lib64  --prefix=/usr/local/mingw64