Boost logo

Boost-Build :

Subject: Re: [Boost-build] possible bug when cross compiling linux->windows
From: Steven Watanabe (watanabesj_at_[hidden])
Date: 2010-07-01 22:47:01


AMDG

Moritz Hassert wrote:
> 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?
>

As a matter of fact, yes I have. Sorry. It's been a while
since I looked at this. The changes I made to common.jam
are attached.

> I still think common.jam is the right place to add the 'optional'.
>

I'm not certain that all features created this way should be optional.
I was trying to avoid changing anything except <flavor>.

> 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.
>

In Christ,
Steven Watanabe




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