After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 436855 - Cache options needed when cross compiling for win32
Cache options needed when cross compiling for win32
Status: RESOLVED FIXED
Product: glib
Classification: Platform
Component: win32
unspecified
Other All
: Normal major
: ---
Assigned To: gtk-win32 maintainers
gtk-win32 maintainers
: 517690 (view as bug list)
Depends on:
Blocks:
 
 
Reported: 2007-05-08 11:48 UTC by Alberto Ruiz
Modified: 2008-08-20 12:56 UTC
See Also:
GNOME target: ---
GNOME version: 2.17/2.18


Attachments
patch (2.34 KB, patch)
2007-05-24 08:09 UTC, Yevgen Muntyan
none Details | Review
patch (1.07 KB, patch)
2007-09-05 16:00 UTC, Yevgen Muntyan
none Details | Review
Fixes the stack grow parameter for win32 (1.15 KB, patch)
2008-03-08 06:44 UTC, Alberto Ruiz
none Details | Review

Description Alberto Ruiz 2007-05-08 11:48:30 UTC
Please describe the problem:
For win32 target platforms, using mingw32, the following cache options should be set on configuration time:

glib_cv_long_long_format=I64
glib_cv_stack_grows=no

This is usually done with a cache file, like explained in this link:
http://www.gnome.org/~bratsche/win32/

I wonder if this cache options should be set by default on cross compilation for win32 target. I don't know the details involved I only just copy pasted that but I think it would be convenient to make it just work when a win32 compiler is detected, or at least with ming32.

Steps to reproduce:
execute the configure script without any options other than --target and --build for cross compiling under linux to win32 with mingw32

Actual results:


Expected results:


Does this happen every time?


Other information:
Comment 1 Yevgen Muntyan 2007-05-24 08:09:45 UTC
Created attachment 88714 [details] [review]
patch
Comment 2 Yevgen Muntyan 2007-05-24 08:11:29 UTC
If this applied, then docs need to be changed too, they provide mingw cache file as an example of a cache file, so docs should use some other platform for an example.
Comment 3 Alberto Ruiz 2007-08-09 22:41:06 UTC
Which docs?
Comment 4 Yevgen Muntyan 2007-09-05 16:00:16 UTC
Created attachment 95003 [details] [review]
patch

New patch, which doesn't try to remove odd warnings (it actually was a mistake, didn't strip the first patch before posting).
Comment 5 Yevgen Muntyan 2008-02-20 17:58:43 UTC
*** Bug 517690 has been marked as a duplicate of this bug. ***
Comment 6 Alberto Ruiz 2008-03-08 06:44:35 UTC
Created attachment 106829 [details] [review]
Fixes the stack grow parameter for win32

This should do it, I've tested it on both conditions, seems fine to me. Should I commit?
Comment 7 Alberto Ruiz 2008-08-20 12:56:30 UTC
Fixed in trunk by tml