Boost Users :
From: Jeremy Godfrey (jngcomp_at_[hidden])
Date: 2003-09-26 12:37:41
Here's my compiler details:
$ g++ -v
Reading specs from C:/msys/1.0/mingw/bin/../lib/gcc-lib/mingw32/3.2.3/specs
Configured with: ../gcc/configure --with-gcc --with-gnu-ld --with-gnu-as
--host=mingw32 --target=mingw32 --prefix=/mingw --enable-threads
--disable-nls --enable-languages=c++,f77,objc --disable-win32-registry
Thread model: win32
gcc version 3.2.3 (mingw special 20030504-1)
Anyway, I have now managed to get a build of boost threads that depends on
mingwm10.dll by editing gcc-tools.jam to compile and link with -mthreads. My
guess is that there's a jam option to do that anyway but I'm not very
familiar with jam.
I took a look at your bug report and it strikes me that it could be an
undefined behaviour issue because initialization of the reference fails.
> -----Original Message-----
> From: boost-users-bounces_at_[hidden]
> [mailto:boost-users-bounces_at_[hidden]] On Behalf Of Raoul Gough
> Sent: 26 September 2003 12:05
> To: boost-users_at_[hidden]
> Subject: [Boost-users] Re: Building boost threads with MinGW
> "Jeremy Godfrey" <jngcomp_at_[hidden]> writes:
> > Hi,
> > When I build boost threads with bjam and MinGW, the
> resulting DLL is not
> > dependent on mingwm10.dll like (as I understand things) all MinGW
> > multithreaded binaries should be. This would indicate that
> the -mthreads
> > compile/link option is not being used. Does anyone know how
> to fix this?
> I guess your analysis is correct - my copy of boost_thread.dll imports
> the function __mingwthr_key_dtor from mingwm10.dll. What does "g++ -v"
> report for you?
> $ f:/mingw/bin/g++ -v
> Reading specs from f:/mingw/bin/../lib/gcc-lib/mingw32/3.3.1/specs
> Configured with: ../gcc/configure --with-gcc --with-gnu-ld
> --with-gnu-as --host=mingw32 --target=mingw32 --prefix=/mingw
> --enable-threads --disable-nls
> --enable-languages=c,c++,f77,objc,ada,java --disable-win32-registry
> --disable-shared --enable-sjlj-exceptions --enable-libgcj
> --disable-java-awt --without-x --enable-java-gc=boehm
> --disable-libgcj-debug --enable-interpreter
> Thread model: win32
> gcc version 3.3.1 (mingw special 20030804-1)
> One fix would be to download the same gcc 3.3.1 executable as I have
> from the mingw site (but be warned that I recently detected a bug with
> this compiler's sjlj exception handling - see
> http://gcc.gnu.org/bugzilla/show_bug.cgi?id=12298 for the gory
> details). If you're building gcc yourself, maybe you need to supply
> some of the configure options manually?
> Raoul Gough.
> (setq dabbrev-case-fold-search nil)
--- Outgoing mail is certified Virus Free. Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.520 / Virus Database: 318 - Release Date: 18/09/2003
Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net