[xsd-users] Error on building XSD using Cygwin.

Erasmo Aguilera eaguilari at unitec.edu
Tue Nov 12 21:12:57 EST 2013


Hello,

 

I'm trying to build XSD with Cygwin, on Windows 8 Pro 64-bit.

 

Following the building instructions (at
http://www.codesynthesis.com/projects/xsd/extras/build-windows.xhtml), when
configuring STLPort by running:

 

./configure --no-cygwin

 

I get the following message:

 

--no-cygwin: Don't forget to uncomment _STLP_NO_CYGWIN macro

in stlport/stl/_site_config.h to use such a configuration.

 

The macro is already uncommented (although guarded, but uncommented). By
trying to build STLport anyway, the following error appears:

 

c++: error: unrecognized command line option '-mno-cygwin'

make: *** [obj/gcc/shared/dll_main.o] Error 1

 

So I tried configuring with --mno-cygwin instead of the -no-cygwin option.
After that, when running  make -f gcc.mak install-release-static, I get the
following errors:

 

../../src/num_put_float.cpp: In function 'bool
stlp_std::_Stl_is_neg_nan(double)':

../../src/num_put_float.cpp:227:58: error: 'isnan' was not declared in this
scope

inline bool _Stl_is_neg_nan(double x)    { return isnan(x) && ( copysign(1.,
x) < 0 ); }

                                                          ^

../../src/num_put_float.cpp: In function 'bool
stlp_std::_Stl_is_inf(double)':

../../src/num_put_float.cpp:228:58: error: 'isinf' was not declared in this
scope

inline bool _Stl_is_inf(double x)        { return isinf(x); }

                                                          ^

../../src/num_put_float.cpp: In function 'bool
stlp_std::_Stl_is_neg_inf(double)':

../../src/num_put_float.cpp:230:58: error: 'isinf' was not declared in this
scope

inline bool _Stl_is_neg_inf(double x)    { return isinf(x) && x < 0; }

                                                          ^

Other warnings and notes appear too, so I attached the errors file.

 

I don't know if the --no-cygwin option is misspelled, but in either case I
have troubles.

 

Thanks for your help.

 

Erasmo.

 

-------------- next part --------------
In file included from ../../stlport/stl/_num_put.h:198:0,
                 from ../../src/num_put.h:23,
                 from ../../src/num_put_float.cpp:97:
../../stlport/stl/_num_put.c: In function ‘_OutputIter stlp_std::__copy_integer_and_fill(const _CharT*, std::ptrdiff_t, _OutputIter, stlp_std::ios_base::fmtflags, stlp_std::streamsize, _CharT, _CharT, _CharT)’:
../../stlport/stl/_num_put.c:166:75: warning: suggest parentheses around ‘&&’ within ‘||’ [-Wparentheses]
     typedef char __static_assert[(sizeof(streamsize) > sizeof(ptrdiff_t)) ||
                                                                           ^
../../stlport/stl/_num_put.c:166:18: warning: typedef ‘__static_assert’ locally defined but not used [-Wunused-local-typedefs]
     typedef char __static_assert[(sizeof(streamsize) > sizeof(ptrdiff_t)) ||
                  ^
../../src/num_put_float.cpp: In function ‘bool stlp_std::_Stl_is_neg_nan(double)’:
../../src/num_put_float.cpp:227:58: error: ‘isnan’ was not declared in this scope
 inline bool _Stl_is_neg_nan(double x)    { return isnan(x) && ( copysign(1., x) < 0 ); }
                                                          ^
../../src/num_put_float.cpp:227:58: note: suggested alternative:
In file included from ../../stlport/cmath:30:0,
                 from ../../src/num_put_float.cpp:83:
/usr/lib/gcc/x86_64-pc-cygwin/4.8.2/include/c++/cmath:836:5: note:   ‘std::isnan’
     isnan(_Tp __f)
     ^
../../src/num_put_float.cpp: In function ‘bool stlp_std::_Stl_is_inf(double)’:
../../src/num_put_float.cpp:228:58: error: ‘isinf’ was not declared in this scope
 inline bool _Stl_is_inf(double x)        { return isinf(x); }
                                                          ^
../../src/num_put_float.cpp:228:58: note: suggested alternative:
In file included from ../../stlport/cmath:30:0,
                 from ../../src/num_put_float.cpp:83:
/usr/lib/gcc/x86_64-pc-cygwin/4.8.2/include/c++/cmath:827:5: note:   ‘std::isinf’
     isinf(_Tp __f)
     ^
../../src/num_put_float.cpp: In function ‘bool stlp_std::_Stl_is_neg_inf(double)’:
../../src/num_put_float.cpp:230:58: error: ‘isinf’ was not declared in this scope
 inline bool _Stl_is_neg_inf(double x)    { return isinf(x) && x < 0; }
                                                          ^
../../src/num_put_float.cpp:230:58: note: suggested alternative:
In file included from ../../stlport/cmath:30:0,
                 from ../../src/num_put_float.cpp:83:
/usr/lib/gcc/x86_64-pc-cygwin/4.8.2/include/c++/cmath:827:5: note:   ‘std::isinf’
     isinf(_Tp __f)
     ^
../../src/num_put_float.cpp: In function ‘bool stlp_std::_Stl_is_inf(double)’:
../../src/num_put_float.cpp:228:61: warning: control reaches end of non-void function [-Wreturn-type]
 inline bool _Stl_is_inf(double x)        { return isinf(x); }
                                                             ^
../../src/num_put_float.cpp: In function ‘bool stlp_std::_Stl_is_neg_inf(double)’:
../../src/num_put_float.cpp:230:70: warning: control reaches end of non-void function [-Wreturn-type]
 inline bool _Stl_is_neg_inf(double x)    { return isinf(x) && x < 0; }
                                                                      ^
../../src/num_put_float.cpp: In function ‘bool stlp_std::_Stl_is_neg_nan(double)’:
../../src/num_put_float.cpp:227:88: warning: control reaches end of non-void function [-Wreturn-type]
 inline bool _Stl_is_neg_nan(double x)    { return isnan(x) && ( copysign(1., x) < 0 ); }
                                                                                        ^
make: *** [obj/gcc/shared/num_put_float.o] Error 1


More information about the xsd-users mailing list