Re: glib thread support & win32

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Wed, Jun 27, 2012 at 7:22 AM, Marko Lindqvist <cazfi74@xxxxxxxxx> wrote:
> On 24 June 2012 22:07, Dieter Verfaillie <dieterv@xxxxxxxxxxxxxxxxx> wrote:
>> On Sun, 24 Jun 2012 11:27:36 +0300, Marko Lindqvist wrote:
>>>
>>> Relevant part of stderr:
>>
>>> /var/crosser/src/glib-2.32.3/glib/gatomic.c:630:21: error: pthread.h:
>>> No such file or directory
>>
>> GLib, when built with MinGW, relies on gcc's built-in atomic ops, which
>> are only available when CFLAGS="-march=i486" (or i586 or i686).
>
>
>
>> Last time
>> I checked, a warning (or error) was emitted by the configure script when
>> the appropriate -march flag was not set.
>>
>> So, you seeing errors about pthread.h indicates that somehow, you didn't
>> get the configure script erroring out with the -march error message and the
>> fallback gatomic.c implementation (which doesn't work for win32) is being
>> built.
>>
>> Which leads to: did you set CFLAGS="-march=i486" when running ./configure?
>
>  There's -march=i586.
>
>  Nobody is aware of any relevant changes between glib 2.30 and 2.32?
> Short of version number exactly same build scripts, that do everything
> from the downloading of the tarball to 'make install', compile 2.30.3
> succesfully.
>
>  Looking into configure.ac and config.log... configure time test seems
> to set CFLAGS="-march=i486" even if it's not provided by user, by the
> way...
>
> configure:27047: i586-mingw32msvc-gcc -c -march=i486 -isystem

This isn't a MinGW gcc triplet.  If you were using MinGW the triplet
should be i?86-pc-mingw32 where ? is based on your client but defaults
to 3.

>
>> i586-mingw32msvc-gcc -v
> Using built-in specs.
> Target: i586-mingw32msvc
> Configured with:
> /build/buildd/mingw32-4.2.1.dfsg/build_dir/src/gcc-4.2.1-2-dfsg/configure
> -v --prefix=/usr --target=i586-mingw32msvc --enable-languages=c,c++
> --enable-threads --enable-sjlj-exceptions --disable-multilib
> --enable-version-specific-runtime-libs
> Thread model: win32
> gcc version 4.2.1-sjlj (mingw32-2)

The current MinGW GCC states:

$ gcc -v
Using built-in specs.
COLLECT_GCC=c:\mingw\bin\gcc.exe
COLLECT_LTO_WRAPPER=c:/mingw/bin/../libexec/gcc/mingw32/4.7.0/lto-wrapp
er.exe
Target: mingw32
Configured with: ../gcc-4.7.0/configure --enable-languages=c,c++,ada,fortran,obj
c,obj-c++ --disable-sjlj-exceptions --with-dwarf2 --enable-shared --enable-libgo
mp --disable-win32-registry --enable-libstdcxx-debug --disable-build-poststage1-
with-cxx --enable-version-specific-runtime-libs --build=mingw32 --prefix=/mingw
Thread model: win32
gcc version 4.7.0 (GCC)

-- 
Earnie
-- https://sites.google.com/site/earnieboyd
_______________________________________________
gtk-list mailing list
gtk-list@xxxxxxxxx
https://mail.gnome.org/mailman/listinfo/gtk-list



[Index of Archives]     [Touch Screen Library]     [GIMP Users]     [Gnome]     [KDE]     [Yosemite News]     [Steve's Art]

  Powered by Linux