On Sun, Aug 16, 2015 at 8:47 PM, Dave Hirschfeld <novi...@gmail.com> wrote:

> Trying to build the python package from the latest master on Windows with
> msvc I'm getting link errors shown below. Just want  to check if this is
> this a known  problem with the current master? Builds from a couple of
> weeks ago worked.
>
We don't yet have test to cover python C++ extension build on Windows, so
it might be broken without notice (or maybe it doesn't work from the
 beginning..). Feel free to submit an issue for this, or better help send
us a patch to fix the issue :)


>
> Thanks,
> Dave
>
>
> C:\Program Files (x86)\Microsoft Visual Studio 12.0\VC\BIN\amd64\link.exe
> /DLL /nologo /INCREMENTAL:NO
> /LIBPATH:C:\Anaconda3\conda-bld\work\cmake\Release
> /LIBPATH:C:\Anaconda3\envs\_build\libs
> /LIBPATH:C:\Anaconda3\envs\_build\PCbuild\amd64 libprotobuf.lib
> /EXPORT:init_message
> build\temp.win-amd64-2.7\Release\google/protobuf/pyext\descriptor.obj
> build\temp.win-amd64-2.7\Release\google/protobuf/pyext\descriptor_containers.obj
> build\temp.win-amd64-2.7\Release\google/protobuf/pyext\descriptor_pool.obj
> build\temp.win-amd64-2.7\Release\google/protobuf/pyext\extension_dict.obj
> build\temp.win-amd64-2.7\Release\google/protobuf/pyext\message.obj
> build\temp.win-amd64-2.7\Release\google/protobuf/pyext\message_map_container.obj
> build\temp.win-amd64-2.7\Release\google/protobuf/pyext\repeated_composite_container.obj
> build\temp.win-amd64-2.7\Release\google/protobuf/pyext\repeated_scalar_container.obj
> build\temp.win-amd64-2.7\Release\google/protobuf/pyext\scalar_map_container.obj
> /OUT:build\lib.win-amd64-2.7\google\protobuf\pyext\_message.pyd
> /IMPLIB:build\temp.win-amd64-2.7\Release\google/protobuf/pyext\_message.lib
> /MANIFESTFILE:build\temp.win-amd64-2.7\Release\google/protobuf/pyext\_message.pyd.manifest
>
> message.obj : warning LNK4197: export 'init_message' specified multiple
> times; using first specification
>    Creating library
> build\temp.win-amd64-2.7\Release\google/protobuf/pyext\_message.lib and
> object build\temp.win-amd64-2.7\Release\google/protobuf/pyext\_message.exp
>
> descriptor.obj : error LNK2019: unresolved external symbol "private:
> static int
> google::protobuf::io::CodedInputStream::default_recursion_limit_"
> (?default_recursion_limit_@CodedInputStream@io@protobuf@google@@0HA)
> referenced in function "struct _object * __cdecl
> google::protobuf::python::GetOrBuildOptions<class
> google::protobuf::Descriptor>(class google::protobuf::Descriptor const *)"
> (??$GetOrBuildOptions@VDescriptor@protobuf@google@@@python@protobuf
> @google@@YAPEAU_object@@PEBVDescriptor@12@@Z)
>
> message.obj : error LNK2001: unresolved external symbol "private: static
> int google::protobuf::io::CodedInputStream::default_recursion_limit_"
> (?default_recursion_limit_@CodedInputStream@io@protobuf@google@@0HA)
>
> descriptor.obj : error LNK2019: unresolved external symbol "private:
> static enum google::protobuf::FieldDescriptor::CppType const * const
> google::protobuf::FieldDescriptor::kTypeToCppTypeMap"
> (?kTypeToCppTypeMap@FieldDescriptor@protobuf@google@@0QBW4CppType@123@B)
> referenced in function "class google::protobuf::FieldDescriptor const *
> __cdecl google::protobuf::python::field_descriptor::_GetDescriptor(struct
> google::protobuf::python::PyBaseDescriptor *)"
> (?_GetDescriptor@field_descriptor@python@protobuf@google@
> @YAPEBVFieldDescriptor@34@PEAUPyBaseDescriptor@234@@Z)
>
> extension_dict.obj : error LNK2001: unresolved external symbol "private:
> static enum google::protobuf::FieldDescriptor::CppType const * const
> google::protobuf::FieldDescriptor::kTypeToCppTypeMap"
> (?kTypeToCppTypeMap@FieldDescriptor@protobuf@google@@0QBW4CppType@123@B)
>
> message.obj : error LNK2001: unresolved external symbol "private: static
> enum google::protobuf::FieldDescriptor::CppType const * const
> google::protobuf::FieldDescriptor::kTypeToCppTypeMap"
> (?kTypeToCppTypeMap@FieldDescriptor@protobuf@google@@0QBW4CppType@123@B)
>
> repeated_scalar_container.obj : error LNK2001: unresolved external symbol
> "private: static enum google::protobuf::FieldDescriptor::CppType const *
> const google::protobuf::FieldDescriptor::kTypeToCppTypeMap"
> (?kTypeToCppTypeMap@FieldDescriptor@protobuf@google@@0QBW4CppType@123@B)
>
> descriptor_pool.obj : error LNK2019: unresolved external symbol "class
> std::basic_string<char,struct std::char_traits<char>,class
> std::allocator<char> > const * const
> google::protobuf::internal::empty_string_" (?empty_string_@internal
> @protobuf@google@@3PEBV?$basic_string@DU?$char_traits@D@std@
> @V?$allocator@D@2@@std@@EB) referenced in function "class
> std::basic_string<char,struct std::char_traits<char>,class
> std::allocator<char> > const & __cdecl
> google::protobuf::internal::GetEmptyStringAlreadyInited(void)"
> (?GetEmptyStringAlreadyInited@internal@protobuf@google
> @@YAAEBV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@XZ)
>
> repeated_scalar_container.obj : error LNK2001: unresolved external symbol
> "int __cdecl google::protobuf::internal::Barrier_AtomicIncrement(int
> volatile *,int)" (?Barrier_AtomicIncrement@internal@protobuf@google
> @@YAHPECHH@Z)
>
> scalar_map_container.obj : error LNK2001: unresolved external symbol "int
> __cdecl google::protobuf::internal::Barrier_AtomicIncrement(int volatile
> *,int)" (?Barrier_AtomicIncrement@internal@protobuf@google@@YAHPECHH@Z)
>
> extension_dict.obj : error LNK2001: unresolved external symbol "int
> __cdecl google::protobuf::internal::Barrier_AtomicIncrement(int volatile
> *,int)" (?Barrier_AtomicIncrement@internal@protobuf@google@@YAHPECHH@Z)
>
> message.obj : error LNK2001: unresolved external symbol "int __cdecl
> google::protobuf::internal::Barrier_AtomicIncrement(int volatile *,int)"
> (?Barrier_AtomicIncrement@internal@protobuf@google@@YAHPECHH@Z)
>
> message_map_container.obj : error LNK2001: unresolved external symbol "int
> __cdecl google::protobuf::internal::Barrier_AtomicIncrement(int volatile
> *,int)" (?Barrier_AtomicIncrement@internal@protobuf@google@@YAHPECHH@Z)
>
> repeated_composite_container.obj : error LNK2001: unresolved external
> symbol "int __cdecl google::protobuf::internal::Barrier_AtomicIncrement(int
> volatile *,int)" (?Barrier_AtomicIncrement@internal@protobuf@google
> @@YAHPECHH@Z)
>
> build\lib.win-amd64-2.7\google\protobuf\pyext\_message.pyd : fatal error
> LNK1120: 4 unresolved externals
> error: command 'C:\\Program Files (x86)\\Microsoft Visual Studio
> 12.0\\VC\\BIN\\amd64\\link.exe' failed with exit status 1120
>
>
> --
> You received this message because you are subscribed to the Google Groups
> "Protocol Buffers" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to protobuf+unsubscr...@googlegroups.com.
> To post to this group, send email to protobuf@googlegroups.com.
> Visit this group at http://groups.google.com/group/protobuf.
> For more options, visit https://groups.google.com/d/optout.
>

-- 
You received this message because you are subscribed to the Google Groups 
"Protocol Buffers" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to protobuf+unsubscr...@googlegroups.com.
To post to this group, send email to protobuf@googlegroups.com.
Visit this group at http://groups.google.com/group/protobuf.
For more options, visit https://groups.google.com/d/optout.

Reply via email to