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 756473 - glib_cv_stack_grows breaks cross-compile
glib_cv_stack_grows breaks cross-compile
Status: RESOLVED OBSOLETE
Product: glib
Classification: Platform
Component: build
unspecified
Other Linux
: Normal normal
: ---
Assigned To: gtkdev
gtkdev
Depends on:
Blocks:
 
 
Reported: 2015-10-13 02:09 UTC by Mike Frysinger
Modified: 2018-05-24 18:17 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description Mike Frysinger 2015-10-13 02:09:56 UTC
the glib configure.ac has:
AC_CACHE_CHECK([for growing stack pointer],glib_cv_stack_grows,[
        AC_TRY_RUN([
	volatile int *a = 0, *b = 0;
	void f (int i) { volatile int x = 5; if (i == 0) b = &x; else f (i - 1); }
	int main () { volatile int y = 7; a = &y; f (100); return b > a ? 0 : 1; }
       	],
	glib_cv_stack_grows=yes
        ,
	glib_cv_stack_grows=no
        ,)
])

in the cross-compile case, this fails.  it's kind of overkill considering how few arches out there actually grow the stack up.  this should have fallback like:
case $host_cpu in
hppa*|metag*) glib_cv_stack_grows=yes ;;
*) glib_cv_stack_grows=no ;;
esac
Comment 1 Matthias Clasen 2015-10-13 10:28:32 UTC
It is really a leftover. Nothing in glib is using the outcome of this test anymore.
Comment 2 GNOME Infrastructure Team 2018-05-24 18:17:17 UTC
-- GitLab Migration Automatic Message --

This bug has been migrated to GNOME's GitLab instance and has been closed from further activity.

You can subscribe and participate further through the new bug through this link to our GitLab instance: https://gitlab.gnome.org/GNOME/glib/issues/1092.