[xsde-users] using xsd/e on macOS 10.15

James Sutton jsutton at dolphin-com.co.uk
Tue Feb 25 09:49:11 EST 2020


Sorry Boris,

my own stupid fault. I inadvertently deleted the xsde directory!

However I couldn't guess the correction to the ambiguous shared_ptr and other errors:

/Users/james/Downloads/xsde-3.3.0.a11+dep/xsde/xsde/cxx/hybrid/tree-name-processor.cxx:231:43: error: reference to 'shared_ptr' is ambiguous
        struct CustomDataMap: map<String, shared_ptr<CustomDataMap> > {};
                                          ^
/Users/james/Downloads/xsde-3.3.0.a11+dep/xsde/xsde/cxx/hybrid/tree-name-processor.cxx:20:13: note: candidate found by name lookup is 'shared_ptr'
using cutl::shared_ptr;
            ^
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../include/c++/v1/memory:3740:28: note: candidate found by name lookup is
      'std::__1::shared_ptr'
class _LIBCPP_TEMPLATE_VIS shared_ptr
                           ^
/Users/james/Downloads/xsde-3.3.0.a11+dep/xsde/xsde/cxx/hybrid/tree-name-processor.cxx:231:54: error: 'CustomDataMap' does not refer to a value
        struct CustomDataMap: map<String, shared_ptr<CustomDataMap> > {};
                                                     ^
/Users/james/Downloads/xsde-3.3.0.a11+dep/xsde/xsde/cxx/hybrid/tree-name-processor.cxx:231:16: note: declared here
        struct CustomDataMap: map<String, shared_ptr<CustomDataMap> > {};
               ^
/Users/james/Downloads/xsde-3.3.0.a11+dep/xsde/xsde/cxx/hybrid/tree-name-processor.cxx:231:69: error: expected class name
        struct CustomDataMap: map<String, shared_ptr<CustomDataMap> > {};
                                                                    ^
/Users/james/Downloads/xsde-3.3.0.a11+dep/xsde/xsde/cxx/hybrid/tree-name-processor.cxx:65:17: error: reference to 'shared_ptr' is ambiguous
                shared_ptr<CustomDataMap>& p ((*map)[entry]);
                ^
/Users/james/Downloads/xsde-3.3.0.a11+dep/xsde/xsde/cxx/hybrid/tree-name-processor.cxx:20:13: note: candidate found by name lookup is 'shared_ptr'
using cutl::shared_ptr;
            ^
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../include/c++/v1/memory:3740:28: note: candidate found by name lookup is
      'std::__1::shared_ptr'
class _LIBCPP_TEMPLATE_VIS shared_ptr
                           ^
/Users/james/Downloads/xsde-3.3.0.a11+dep/xsde/xsde/cxx/hybrid/tree-name-processor.cxx:67:21: error: use of undeclared identifier 'p'
                if (p == 0)
                    ^
/Users/james/Downloads/xsde-3.3.0.a11+dep/xsde/xsde/cxx/hybrid/tree-name-processor.cxx:68:19: error: use of undeclared identifier 'p'
                  p = shared_ptr<CustomDataMap> (new (shared) CustomDataMap);
                  ^
/Users/james/Downloads/xsde-3.3.0.a11+dep/xsde/xsde/cxx/hybrid/tree-name-processor.cxx:68:23: error: reference to 'shared_ptr' is ambiguous
                  p = shared_ptr<CustomDataMap> (new (shared) CustomDataMap);
                      ^
/Users/james/Downloads/xsde-3.3.0.a11+dep/xsde/xsde/cxx/hybrid/tree-name-processor.cxx:20:13: note: candidate found by name lookup is 'shared_ptr'
using cutl::shared_ptr;
            ^
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../include/c++/v1/memory:3740:28: note: candidate found by name lookup is
      'std::__1::shared_ptr'
class _LIBCPP_TEMPLATE_VIS shared_ptr
                           ^
/Users/james/Downloads/xsde-3.3.0.a11+dep/xsde/xsde/cxx/hybrid/tree-name-processor.cxx:68:34: error: 'CustomDataMap' does not refer to a value
                  p = shared_ptr<CustomDataMap> (new (shared) CustomDataMap);
                                 ^
/Users/james/Downloads/xsde-3.3.0.a11+dep/xsde/xsde/cxx/hybrid/tree-name-processor.cxx:231:16: note: declared here
        struct CustomDataMap: map<String, shared_ptr<CustomDataMap> > {};
               ^
/Users/james/Downloads/xsde-3.3.0.a11+dep/xsde/xsde/cxx/hybrid/tree-name-processor.cxx:76:31: error: reference to 'shared_ptr' is ambiguous
                  (*p)[L""] = shared_ptr<CustomDataMap> ();
                              ^
/Users/james/Downloads/xsde-3.3.0.a11+dep/xsde/xsde/cxx/hybrid/tree-name-processor.cxx:20:13: note: candidate found by name lookup is 'shared_ptr'
using cutl::shared_ptr;
            ^
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../include/c++/v1/memory:3740:28: note: candidate found by name lookup is
      'std::__1::shared_ptr'
class _LIBCPP_TEMPLATE_VIS shared_ptr
                           ^
/Users/james/Downloads/xsde-3.3.0.a11+dep/xsde/xsde/cxx/hybrid/tree-name-processor.cxx:76:42: error: 'CustomDataMap' does not refer to a value
                  (*p)[L""] = shared_ptr<CustomDataMap> ();
                                         ^
/Users/james/Downloads/xsde-3.3.0.a11+dep/xsde/xsde/cxx/hybrid/tree-name-processor.cxx:231:16: note: declared here
        struct CustomDataMap: map<String, shared_ptr<CustomDataMap> > {};
               ^
/Users/james/Downloads/xsde-3.3.0.a11+dep/xsde/xsde/cxx/hybrid/tree-name-processor.cxx:76:58: error: expected expression
                  (*p)[L""] = shared_ptr<CustomDataMap> ();
                                                         ^
/Users/james/Downloads/xsde-3.3.0.a11+dep/xsde/xsde/cxx/hybrid/tree-name-processor.cxx:76:21: error: use of undeclared identifier 'p'
                  (*p)[L""] = shared_ptr<CustomDataMap> ();
                    ^
/Users/james/Downloads/xsde-3.3.0.a11+dep/xsde/xsde/cxx/hybrid/tree-name-processor.cxx:80:23: error: use of undeclared identifier 'p'
                map = p.get ();
                      ^
/Users/james/Downloads/xsde-3.3.0.a11+dep/xsde/xsde/cxx/hybrid/tree-name-processor.cxx:528:32: error: no member named 'iterator' in 'CXX::Hybrid::(anonymous
      namespace)::Context::CustomDataMap'; did you mean 'operator'?
                CustomDataMap::iterator i (map_->find (base));
                ~~~~~~~~~~~~~~~^~~~~~~~
                               operator
/Users/james/Downloads/xsde-3.3.0.a11+dep/xsde/xsde/cxx/hybrid/tree-name-processor.cxx:528:41: error: expected a type
                CustomDataMap::iterator i (map_->find (base));
                                        ^
c++ /Users/james/Downloads/xsde-3.3.0.a11+dep/xsde/xsde/cxx/serializer/options.cxx
/Users/james/Downloads/xsde-3.3.0.a11+dep/xsde/xsde/cxx/hybrid/tree-name-processor.cxx:529:21: error: use of undeclared identifier 'i'
                if (i != map_->end ())
                    ^
/Users/james/Downloads/xsde-3.3.0.a11+dep/xsde/xsde/cxx/hybrid/tree-name-processor.cxx:529:32: error: no member named 'end' in 'CXX::Hybrid::(anonymous
      namespace)::Context::CustomDataMap'
                if (i != map_->end ())
                         ~~~~  ^
/Users/james/Downloads/xsde-3.3.0.a11+dep/xsde/xsde/cxx/hybrid/tree-name-processor.cxx:530:25: error: use of undeclared identifier 'i'
                  map = i->second.get ();
                        ^
/Users/james/Downloads/xsde-3.3.0.a11+dep/xsde/xsde/cxx/hybrid/tree-name-processor.cxx:558:33: error: no member named 'find' in 'CXX::Hybrid::(anonymous
      namespace)::Context::CustomDataMap'
                if (map && map->find (L"") != map->end ())
                           ~~~  ^
fatal error: too many errors emitted, stopping now [-ferror-limit=]


Could you send the binary you built please?

James 



> On 25 Feb 2020, at 14:09, Boris Kolpackov <boris at codesynthesis.com> wrote:
> 
> Hi James,
> 
> James Sutton <jsutton at dolphin-com.co.uk> writes:
> 
>> bash-3.2$ make \
>>> CXX="clang++ -std=c++03" \
>>> CPPFLAGS=-I../xerces-c-3.2.2/src \
>>> LDFLAGS=-L../xerces-c-3.2.2/src/.libs \
>>> -j 8
>> make: *** No rule to make target `/Users/james/Downloads/xsde-3.3.0.a11+dep/xsde/xsde', needed by `/Users/james/Downloads/xsde-3.3.0.a11+dep/'.  Stop.
> 
> Hm, this is strange.
> 
> I got hold of a Mac OS machine (with just Command Line Tools installed)
> and tried it myself. I didn't get your error but had to fix a compile
> error and tweak the command line a bit.
> 
> So using xsde-3.3.0.a12+dep[1] with the following command line I got
> a working XSD/e compiler executable:
> 
> $ make \
>  CXX="clang++ -std=c++03" \
>  CPPFLAGS=-I../xerces-c-3.2.2/src \
>  LDFLAGS=-L../xerces-c-3.2.2/src/.libs \
>  LIBS="-framework CoreServices" \
>  -j 8
> 
> If you want to get to the bottom of this, it must be something about
> your setup, most likely make version. Here are the versions of the
> relevant programs on my machine:
> 
> $ which make
> /usr/bin/make
> $ make --version
> GNU Make 3.81
> 
> $ which bash
> /bin/bash
> $ bash --version
> GNU bash, version 3.2.57(1)-release
> 
> I am also using stock BSD sed:
> 
> $ which sed
> /usr/bin/sed
> 
> $ clang++ --version
> Apple clang version 11.0.0 (clang-1100.0.33.12)
> 
> I've tried to build from both the default shell and bash and both
> worked fine.
> 
> [1] https://codesynthesis.com/~boris/tmp/xsde/xsde-3.3.0.a12+dep.tar.bz2



More information about the xsde-users mailing list