Boost logo

Boost-Build :

Subject: Re: [Boost-build] possible bug when cross compiling linux->windows
From: Moritz Hassert (mhassert_at_[hidden])
Date: 2010-07-01 06:04:05


Hi,

thanks for your answer and the patch.

Steven Watanabe wrote:
> Yep. I've hacked my working copy to allow mixing of
> mingw and cygwin. This doesn't work perfectly as
> I also had to put
>
> using gcc : 4.4.1 : "C:/MinGW/bin/g++" ;
> toolset.add-requirements
> <toolset-gcc:version>4.4.1:<toolset-gcc:flavor>mingw ;
>
> in user-config.jam

I've tried your patch but it doesn't work for me:
'error: "flavor" already declared as a subfeature of "<toolset>" specific to
gcc'

This seems correct, as common.jam doesn't know about the predefined subfeature
and tries to define it again. Have you also patched your common.jam?

I still think common.jam is the right place to add the 'optional'.
But as I wrote in my last mail, this results in empty build-commands and - as
I just notices - in a 'bin/gcc/debug/...' build dir. (Note the missing version
that is normally added, even when the default gcc is used.)

I guess the code that processes the subfeatures of toolset gcc doesn't handle
correctly subfeatures without default values. This looks like the actual bug
to me. But I 'm not familiar enough with boost build internals to know where
to start digging.

Any hints?

Greetings
Moritz

Geschaeftsfuehrer: Dipl.-Inform. Christopher Asp
Amtsgericht Mannheim HRB 105845


Boost-Build list run by bdawes at acm.org, david.abrahams at rcn.com, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk