Re: GLIB and MinGW
- From: Dieter Verfaillie <dieterv optionexplicit be>
- To: <gtk-list gnome org>
- Subject: Re: GLIB and MinGW
- Date: Sat, 08 Oct 2011 19:56:44 +0200
On Sat, 8 Oct 2011 13:26:23 -0400, Earnie Boyd wrote:
I've built version 2.29.92 with MinGW's gcc version 4.6.1 and
binutils
version 2.21.53.20110804. I'm seeing a SIGSEGV error caused from an
infinite loop at line 732 of glib/gatomic.c (as seen by the bt from
gdb). The calling program dbus-glib-tool calls g_type_init () and
never returns. The relative bt is below. I'm trying to build Xiphos
which still has a requirement for dbus-glib-1. I'm currently doing a
rebuild with CFLAGS set with -O0 instead of -O2 to see if it helps
but
are there other suggestions?
I've been forcing usage of gcc atomic ops ever since
https://bugzilla.gnome.org/show_bug.cgi?id=652827
instead of relying on the fallback implementation.
So I still have the patch from that bug report marked
"rejected" applied here. By doing so you're also forced
to ./configure with -march=i486 or higher.
I'm currently doing this (heavily based on tml's build
scripts):
cd ${SRC_DIR} &&
lt_cv_deplibs_check_method="pass_all" \
CC="gcc -mthreads" \
CFLAGS="-O0 -g -pipe -Wall -march=i486 -mms-bitfields" \
CPPFLAGS="-I${DEPS}/gettext-runtime-0.18.1.1-2/include \
-I${DEPS}/zlib-1.2.5-2/include" \
LDFLAGS="-L${DEPS}/gettext-runtime-0.18.1.1-2/lib \
-L${DEPS}/zlib-1.2.5-2/lib \
-Wl,--enable-auto-image-base" \
"./configure" \
--disable-gtk-doc \
--disable-static \
--enable-silent-rules \
--prefix="${DIST_DIR}" &&
(cd glib &&
make glibconfig.h.win32 &&
make glibconfig-stamp &&
mv glibconfig.h glibconfig.h.autogened &&
cp glibconfig.h.win32 glibconfig.h) &&
cd ${BUILD_DIR} &&
PATH="${DIST_DIR}/bin:${PATH}" \
make -j3 install
mvg,
Dieter
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]