You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@stdcxx.apache.org by Geoffrey Winn <ge...@googlemail.com> on 2006/09/01 14:24:09 UTC

Re: Problem building stdcxx on Windows XP

On 31/08/06, Martin Sebor <se...@roguewave.com> wrote:
>
> Geoffrey Winn wrote:
>
> >
> > 2. Once everything had completed, I can see in the Task List that I have
> 8
> > warnings and 18 errors.
> >
> > Are these results expected? If not, would you like the details?
>
> We are most likely aware of the issues but I would be happy to
> go over the results and explain the failures if that would
> increase your confidence in the project :) It may not be a bad
> idea for us to document them in the form of Jira issues.
>
>
Don't worry about explaining the issues - I trust you :-) My main concern
was that the errors might indicate something I had done wrong. The task list
shows the following. Apologies for the formatting, if it isn't readable let
me know and I'll try another approach.

C:\Users\gwinn\Tuscany\stdcxx\stdcxx-4.1.3\examples\tutorial\dynatype.cpp(109):
error C2248: 'dynatype::map<T>' : cannot access private struct declared in
class 'dynatype'
        with
        [
            T=void
        ]
C:\Users\gwinn\Tuscany\stdcxx\stdcxx-4.1.3\examples\tutorial\dynatype.cpp(114):
error C2248: 'dynatype::map<T>' : cannot access private struct declared in
class 'dynatype'
        with
        [
            T=void
        ]
C:\Users\gwinn\Tuscany\stdcxx\stdcxx-4.1.3\examples\tutorial\dynatype.cpp(188):
error C2440: 'type cast' : cannot convert from 'dynatype' to 'int'
C:\Users\gwinn\Tuscany\stdcxx\stdcxx-4.1.3\examples\tutorial\dynatype.cpp(194):
error C2440: 'type cast' : cannot convert from 'dynatype' to 'double'
C:\Users\gwinn\Tuscany\stdcxx\stdcxx-4.1.3\examples\tutorial\dynatype.cpp(207):
error C2440: 'type cast' : cannot convert from 'dynatype' to 'const char *'
C:\Users\gwinn\Tuscany\stdcxx\stdcxx-4.1.3\examples\tutorial\dynatype.cpp(223):
error C2440: 'type cast' : cannot convert from 'dynatype' to 'char'
C:\Users\gwinn\Tuscany\stdcxx\stdcxx-4.1.3\src\wcodecvt.cpp(385): warning
C4307: '*' : integral constant overflow
C:\Users\gwinn\Tuscany\stdcxx\stdcxx-
4.1.3\tests\localization\22.locale.num.get.cpp(1582): warning C4005: 'LL' :
macro redefinition
C:\Users\gwinn\Tuscany\stdcxx\stdcxx-
4.1.3\tests\localization\22.locale.num.get.cpp(1585): error C3861: 'ULL':
identifier not found, even with argument-dependent lookup
C:\Users\gwinn\Tuscany\stdcxx\stdcxx-
4.1.3\tests\localization\22.locale.num.get.cpp(1585): error C3861: 'ULL':
identifier not found, even with argument-dependent lookup
C:\Users\gwinn\Tuscany\stdcxx\stdcxx-
4.1.3\tests\localization\22.locale.num.get.cpp(1586): error C3861: 'ULL':
identifier not found, even with argument-dependent lookup
C:\Users\gwinn\Tuscany\stdcxx\stdcxx-
4.1.3\tests\localization\22.locale.num.get.cpp(1586): error C3861: 'ULL':
identifier not found, even with argument-dependent lookup
C:\Users\gwinn\Tuscany\stdcxx\stdcxx-
4.1.3\tests\localization\22.locale.num.get.cpp(1587): error C3861: 'ULL':
identifier not found, even with argument-dependent lookup
C:\Users\gwinn\Tuscany\stdcxx\stdcxx-
4.1.3\tests\localization\22.locale.num.get.cpp(1587): error C3861: 'ULL':
identifier not found, even with argument-dependent lookup
C:\Users\gwinn\Tuscany\stdcxx\stdcxx-
4.1.3\tests\localization\22.locale.num.get.cpp(1588): error C3861: 'ULL':
identifier not found, even with argument-dependent lookup
C:\Users\gwinn\Tuscany\stdcxx\stdcxx-
4.1.3\tests\localization\22.locale.num.get.cpp(1588): error C3861: 'ULL':
identifier not found, even with argument-dependent lookup
C:\Users\gwinn\Tuscany\stdcxx\stdcxx-
4.1.3\tests\localization\22.locale.num.get.cpp(1589): error C3861: 'ULL':
identifier not found, even with argument-dependent lookup
C:\Users\gwinn\Tuscany\stdcxx\stdcxx-
4.1.3\tests\localization\22.locale.num.get.cpp(1589): error C3861: 'ULL':
identifier not found, even with argument-dependent lookup
C:\Users\gwinn\Tuscany\stdcxx\stdcxx-
4.1.3\tests\localization\22.locale.num.get.cpp(1590): error C3861: 'ULL':
identifier not found, even with argument-dependent lookup
C:\Users\gwinn\Tuscany\stdcxx\stdcxx-
4.1.3\tests\localization\22.locale.num.get.cpp(1590): error C3861: 'ULL':
identifier not found, even with argument-dependent lookup
C:\Users\gwinn\Tuscany\stdcxx\stdcxx-4.1.3\tests\numerics\26.c.math.cpp(208):
warning C4244: 'initializing' : conversion from 'double' to 'const float',
possible loss of data
C:\Users\gwinn\Tuscany\stdcxx\stdcxx-4.1.3\tests\numerics\26.c.math.cpp(209):
warning C4244: 'initializing' : conversion from 'double' to 'const float',
possible loss of data
C:\Users\gwinn\Tuscany\stdcxx\stdcxx-4.1.3\tests\numerics\26.c.math.cpp(243):
warning C4305: 'initializing' : truncation from 'double' to 'float'
C:\Users\gwinn\Tuscany\stdcxx\stdcxx-4.1.3\tests\src\printf.cpp(2275):
warning C4244: '=' : conversion from 'unsigned __int64' to 'char', possible
loss of data
C:\Users\gwinn\Tuscany\stdcxx\stdcxx-4.1.3\tests\src\printf.cpp(2275):
warning C4244: '=' : conversion from 'wchar_t' to 'char', possible loss of
data
C:\Users\gwinn\Tuscany\stdcxx\stdcxx-4.1.3\tests\src\valcmp.cpp(798):
warning C4244: 'return' : conversion from 'const IntT' to 'int', possible
loss of data

Regards,

Geoff.

Re: Problem building stdcxx on Windows XP

Posted by Liviu Nicoara <ni...@roguewave.com>.
Dynatype example is known to fail to compile with some [lesser] compilers.

- L

Geoffrey Winn wrote:
> On 31/08/06, Martin Sebor <se...@roguewave.com> wrote:
>>
>> Geoffrey Winn wrote:
>>
>> >
>> > 2. Once everything had completed, I can see in the Task List that I 
>> have
>> 8
>> > warnings and 18 errors.
>> >
>> > Are these results expected? If not, would you like the details?
>>
>> We are most likely aware of the issues but I would be happy to
>> go over the results and explain the failures if that would
>> increase your confidence in the project :) It may not be a bad
>> idea for us to document them in the form of Jira issues.
>>
>>
> Don't worry about explaining the issues - I trust you :-) My main concern
> was that the errors might indicate something I had done wrong. The task 
> list
> shows the following. Apologies for the formatting, if it isn't readable let
> me know and I'll try another approach.
> 
> C:\Users\gwinn\Tuscany\stdcxx\stdcxx-4.1.3\examples\tutorial\dynatype.cpp(109): 
> 
> error C2248: 'dynatype::map<T>' : cannot access private struct declared in
> class 'dynatype'
>        with
>        [
>            T=void
>        ]
> C:\Users\gwinn\Tuscany\stdcxx\stdcxx-4.1.3\examples\tutorial\dynatype.cpp(114): 
> 
> error C2248: 'dynatype::map<T>' : cannot access private struct declared in
> class 'dynatype'
>        with
>        [
>            T=void
>        ]
> C:\Users\gwinn\Tuscany\stdcxx\stdcxx-4.1.3\examples\tutorial\dynatype.cpp(188): 
> 
> error C2440: 'type cast' : cannot convert from 'dynatype' to 'int'
> C:\Users\gwinn\Tuscany\stdcxx\stdcxx-4.1.3\examples\tutorial\dynatype.cpp(194): 
> 
> error C2440: 'type cast' : cannot convert from 'dynatype' to 'double'
> C:\Users\gwinn\Tuscany\stdcxx\stdcxx-4.1.3\examples\tutorial\dynatype.cpp(207): 
> 
> error C2440: 'type cast' : cannot convert from 'dynatype' to 'const char *'
> C:\Users\gwinn\Tuscany\stdcxx\stdcxx-4.1.3\examples\tutorial\dynatype.cpp(223): 
> 
> error C2440: 'type cast' : cannot convert from 'dynatype' to 'char'
> C:\Users\gwinn\Tuscany\stdcxx\stdcxx-4.1.3\src\wcodecvt.cpp(385): warning
> C4307: '*' : integral constant overflow
> C:\Users\gwinn\Tuscany\stdcxx\stdcxx-
> 4.1.3\tests\localization\22.locale.num.get.cpp(1582): warning C4005: 'LL' :
> macro redefinition
> C:\Users\gwinn\Tuscany\stdcxx\stdcxx-
> 4.1.3\tests\localization\22.locale.num.get.cpp(1585): error C3861: 'ULL':
> identifier not found, even with argument-dependent lookup
> C:\Users\gwinn\Tuscany\stdcxx\stdcxx-
> 4.1.3\tests\localization\22.locale.num.get.cpp(1585): error C3861: 'ULL':
> identifier not found, even with argument-dependent lookup
> C:\Users\gwinn\Tuscany\stdcxx\stdcxx-
> 4.1.3\tests\localization\22.locale.num.get.cpp(1586): error C3861: 'ULL':
> identifier not found, even with argument-dependent lookup
> C:\Users\gwinn\Tuscany\stdcxx\stdcxx-
> 4.1.3\tests\localization\22.locale.num.get.cpp(1586): error C3861: 'ULL':
> identifier not found, even with argument-dependent lookup
> C:\Users\gwinn\Tuscany\stdcxx\stdcxx-
> 4.1.3\tests\localization\22.locale.num.get.cpp(1587): error C3861: 'ULL':
> identifier not found, even with argument-dependent lookup
> C:\Users\gwinn\Tuscany\stdcxx\stdcxx-
> 4.1.3\tests\localization\22.locale.num.get.cpp(1587): error C3861: 'ULL':
> identifier not found, even with argument-dependent lookup
> C:\Users\gwinn\Tuscany\stdcxx\stdcxx-
> 4.1.3\tests\localization\22.locale.num.get.cpp(1588): error C3861: 'ULL':
> identifier not found, even with argument-dependent lookup
> C:\Users\gwinn\Tuscany\stdcxx\stdcxx-
> 4.1.3\tests\localization\22.locale.num.get.cpp(1588): error C3861: 'ULL':
> identifier not found, even with argument-dependent lookup
> C:\Users\gwinn\Tuscany\stdcxx\stdcxx-
> 4.1.3\tests\localization\22.locale.num.get.cpp(1589): error C3861: 'ULL':
> identifier not found, even with argument-dependent lookup
> C:\Users\gwinn\Tuscany\stdcxx\stdcxx-
> 4.1.3\tests\localization\22.locale.num.get.cpp(1589): error C3861: 'ULL':
> identifier not found, even with argument-dependent lookup
> C:\Users\gwinn\Tuscany\stdcxx\stdcxx-
> 4.1.3\tests\localization\22.locale.num.get.cpp(1590): error C3861: 'ULL':
> identifier not found, even with argument-dependent lookup
> C:\Users\gwinn\Tuscany\stdcxx\stdcxx-
> 4.1.3\tests\localization\22.locale.num.get.cpp(1590): error C3861: 'ULL':
> identifier not found, even with argument-dependent lookup
> C:\Users\gwinn\Tuscany\stdcxx\stdcxx-4.1.3\tests\numerics\26.c.math.cpp(208): 
> 
> warning C4244: 'initializing' : conversion from 'double' to 'const float',
> possible loss of data
> C:\Users\gwinn\Tuscany\stdcxx\stdcxx-4.1.3\tests\numerics\26.c.math.cpp(209): 
> 
> warning C4244: 'initializing' : conversion from 'double' to 'const float',
> possible loss of data
> C:\Users\gwinn\Tuscany\stdcxx\stdcxx-4.1.3\tests\numerics\26.c.math.cpp(243): 
> 
> warning C4305: 'initializing' : truncation from 'double' to 'float'
> C:\Users\gwinn\Tuscany\stdcxx\stdcxx-4.1.3\tests\src\printf.cpp(2275):
> warning C4244: '=' : conversion from 'unsigned __int64' to 'char', possible
> loss of data
> C:\Users\gwinn\Tuscany\stdcxx\stdcxx-4.1.3\tests\src\printf.cpp(2275):
> warning C4244: '=' : conversion from 'wchar_t' to 'char', possible loss of
> data
> C:\Users\gwinn\Tuscany\stdcxx\stdcxx-4.1.3\tests\src\valcmp.cpp(798):
> warning C4244: 'return' : conversion from 'const IntT' to 'int', possible
> loss of data
> 
> Regards,
> 
> Geoff.
> 

Re: Problem building stdcxx on Windows XP

Posted by Geoffrey Winn <ge...@googlemail.com>.
Thanks everyone. I've built stdcxx using the two different configurations
that I need, so now all I need to do is build Tuscany using those dlls.
Should be easy ...

Regards,

Geoff.

Re: Problem building stdcxx on Windows XP

Posted by Martin Sebor <se...@roguewave.com>.
Geoffrey Winn wrote:
> On 31/08/06, Martin Sebor <se...@roguewave.com> wrote:
> 
>>
>> Geoffrey Winn wrote:
>>
>> >
>> > 2. Once everything had completed, I can see in the Task List that I 
>> have
>> 8
>> > warnings and 18 errors.
>> >
>> > Are these results expected? If not, would you like the details?
>>
>> We are most likely aware of the issues but I would be happy to
>> go over the results and explain the failures if that would
>> increase your confidence in the project :) It may not be a bad
>> idea for us to document them in the form of Jira issues.
>>
>>
> Don't worry about explaining the issues - I trust you :-) My main concern
> was that the errors might indicate something I had done wrong.

I don't think so, they all look legit.

> The task 
> list
> shows the following. Apologies for the formatting, if it isn't readable let
> me know and I'll try another approach.
> 
> C:\Users\gwinn\Tuscany\stdcxx\stdcxx-4.1.3\examples\tutorial\dynatype.cpp(109): 
> 
> error C2248: 'dynatype::map<T>' : cannot access private struct declared in
> class 'dynatype'
>        with
>        [
>            T=void
>        ]
> C:\Users\gwinn\Tuscany\stdcxx\stdcxx-4.1.3\examples\tutorial\dynatype.cpp(114): 
> 
> error C2248: 'dynatype::map<T>' : cannot access private struct declared in
> class 'dynatype'
>        with
>        [
>            T=void
>        ]
> C:\Users\gwinn\Tuscany\stdcxx\stdcxx-4.1.3\examples\tutorial\dynatype.cpp(188): 

As Liviu already mentioned, compilers tend to have problems with
this example. It's an MSVC bug. I filed it in Jira and will report
it Microsoft as soon as their web site for reporting bugs works
again: http://issues.apache.org/jira/browse/STDCXX-282.

[...]
> C:\Users\gwinn\Tuscany\stdcxx\stdcxx-4.1.3\src\wcodecvt.cpp(385): warning
> C4307: '*' : integral constant overflow

This is also caused by a compiler bug. Here's a small test case:
   http://issues.apache.org/jira/browse/STDCXX-283


> C:\Users\gwinn\Tuscany\stdcxx\stdcxx-
> 4.1.3\tests\localization\22.locale.num.get.cpp(1582): warning C4005: 'LL' :
> macro redefinition

This is a bug in the test. It's fixed on trunk:
   http://svn.apache.org/viewvc?view=rev&revision=386904

[...]
> C:\Users\gwinn\Tuscany\stdcxx\stdcxx-4.1.3\tests\numerics\26.c.math.cpp(208): 
> 
> warning C4244: 'initializing' : conversion from 'double' to 'const float',
> possible loss of data

This is benign. We should probably silence it.

[...]
> C:\Users\gwinn\Tuscany\stdcxx\stdcxx-4.1.3\tests\src\printf.cpp(2275):
> warning C4244: '=' : conversion from 'unsigned __int64' to 'char', possible
> loss of data

Also benign but possibly non-trivial to silence since it's in
template code.

> C:\Users\gwinn\Tuscany\stdcxx\stdcxx-4.1.3\tests\src\printf.cpp(2275):
> warning C4244: '=' : conversion from 'wchar_t' to 'char', possible loss of
> data
> C:\Users\gwinn\Tuscany\stdcxx\stdcxx-4.1.3\tests\src\valcmp.cpp(798):
> warning C4244: 'return' : conversion from 'const IntT' to 'int', possible
> loss of data

Same here although I think it might have been fixed on trunk with
this change: http://svn.apache.org/viewvc?view=rev&revision=366950.

Martin