Date: Mon, 31 Oct 2016 14:15:49 +0000 From: bugzilla-noreply@freebsd.org To: freebsd-ports-bugs@FreeBSD.org Subject: [Bug 213930] net-p2p/zcash: create initial port and package Message-ID: <bug-213930-13-flu8juD8oa@https.bugs.freebsd.org/bugzilla/> In-Reply-To: <bug-213930-13@https.bugs.freebsd.org/bugzilla/> References: <bug-213930-13@https.bugs.freebsd.org/bugzilla/>
next in thread | previous in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D213930 rednull@uoga.net changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |rednull@uoga.net --- Comment #1 from rednull@uoga.net --- I tried to build it manually with no success. Boost, GMP and other deps installed from ports, you would also need openssl-devel port because of some new EDCSA defs, libsnark lib builds ok with clang3.4. But zcash compile with clang fails with some "ambiguous error", the same failure with clang3.4 and 3.8: /bin/sh ../libtool --tag=3DCXX --mode=3Dcompile clang++ -DHAVE_CONFIG_H = -I. -I../src/config -I/usr/include/crypto -I./obj -DBUILD_BITCOIN_INTERNAL -I/usr/local/libsnark/include/libsnark -I/usr/local/libsnark/include -DBOOST_SPIRIT_THREADSAFE -DHAVE_BUILD_INFO -D__STDC_FORMAT_MACROS=20 -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=3D2 -std=3Dc++11 -I/usr/local/include -I/usr/local/include/db6 -I/usr/local/libsnark/include -I/usr/local/include/openssl -fwrapv -fno-strict-aliasing -g -Wformat -Wformat-security -Wstack-protector -fstack-protector-all -fPIE -MT primitives/libzcashconsensus_la-transaction.lo -MD -MP -MF primitives/.deps/libzcashconsensus_la-transaction.Tpo -c -o primitives/libzcashconsensus_la-transaction.lo `test -f 'primitives/transaction.cpp' || echo './'`primitives/transaction.cpp libtool: compile: clang++ -DHAVE_CONFIG_H -I. -I../src/config -I/usr/include/crypto -I./obj -DBUILD_BITCOIN_INTERNAL -I/usr/local/libsnark/include/libsnark -I/usr/local/libsnark/include -DBOOST_SPIRIT_THREADSAFE -DHAVE_BUILD_INFO -D__STDC_FORMAT_MACROS -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=3D2 -std=3Dc++11 -I/usr/local/include -I/usr/local/include/db6 -I/usr/local/libsnark/include -I/usr/local/include/openssl -fwrapv -fno-strict-aliasing -g -Wformat -Wformat-security -Wstack-protector -fstack-protector-all -MT primitives/libzcashconsensus_la-transaction.lo -MD -MP -MF primitives/.deps/libzcashconsensus_la-transaction.Tpo -c primitives/transaction.cpp -fPIC -DPIC -o primitives/libzcashconsensus_la-transaction.o In file included from primitives/transaction.cpp:6: In file included from ./primitives/transaction.h:9: In file included from ./amount.h:9: ./serialize.h:653:9: error: call to 'Serialize' is ambiguous ::Serialize(os, (*vi), nType, nVersion); ^~~~~~~~~~~ ./serialize.h:659:5: note: in instantiation of function template specializa= tion 'Serialize_impl<CSizeComputer, bool, std::__1::allocator<bool>, bool>' requested here Serialize_impl(os, v, nType, nVersion, T()); ^ ./serialize.h:653:11: note: in instantiation of function template specialization 'Serialize<CSizeComputer, bool, std::__1::allocator<bool> >' requested here ::Serialize(os, (*vi), nType, nVersion); ^ ./serialize.h:659:5: note: in instantiation of function template specializa= tion 'Serialize_impl<CSizeComputer, std::__1::vector<bool, std::__1::allocator<b= ool> >, std::__1::allocator<std::__1::vector<bool, std::__1::allocator<bool> > >, std::__1::vector<bool, std::__1::allocator<bool> > >' requested here Serialize_impl(os, v, nType, nVersion, T()); ^ ./serialize.h:952:7: note: in instantiation of function template specializa= tion 'Serialize<CSizeComputer, std::__1::vector<bool, std::__1::allocator<bool> = >, std::__1::allocator<std::__1::vector<bool, std::__1::allocator<bool> > > >' requested here ::Serialize(s, obj, nType, nVersion); ^ ./zcash/IncrementalMerkleTree.hpp:24:9: note: in instantiation of function template specialization 'SerReadWrite<CSizeComputer, std::__1::vector<std::__1::vector<bool, std::__1::allocator<bool> >, std::__1::allocator<std::__1::vector<bool, std::__1::allocator<bool> = > > > >' requested here READWRITE(authentication_path); ^ ./serialize.h:167:32: note: expanded from macro 'READWRITE' #define READWRITE(obj) (::SerReadWrite(s, (obj), nType, nVersion, ser_action)) ^ ./zcash/IncrementalMerkleTree.hpp:20:5: note: in instantiation of function template specialization 'libzcash::MerklePath::SerializationOp<CSizeCompute= r, CSerActionSerialize>' requested here ADD_SERIALIZE_METHODS; ^ ./serialize.h:178:27: note: expanded from macro 'ADD_SERIALIZE_METHODS' NCONST_PTR(this)->SerializationOp(s, CSerActionSerialize(), nType, nVersion);\ ^ ./serialize.h:230:39: note: candidate function [with Stream =3D CSizeComput= er] template<typename Stream> inline void Serialize(Stream& s, bool a, int, int= =3D0)=20 { char f=3Da; ser_writedata8(s, f); } ^ ./serialize.h:210:39: note: candidate function [with Stream =3D CSizeComput= er] template<typename Stream> inline void Serialize(Stream& s, int32_t a, = int, int=3D0) { ser_writedata32(s, a); } ^ ./serialize.h:205:39: note: candidate function [with Stream =3D CSizeComput= er] template<typename Stream> inline void Serialize(Stream& s, char a, = int, int=3D0) { ser_writedata8(s, a); } // TODO Get rid of bare char ^ ./serialize.h:206:39: note: candidate function [with Stream =3D CSizeComput= er] template<typename Stream> inline void Serialize(Stream& s, int8_t a, = int, int=3D0) { ser_writedata8(s, a); } ^ ./serialize.h:207:39: note: candidate function [with Stream =3D CSizeComput= er] template<typename Stream> inline void Serialize(Stream& s, uint8_t a, = int, int=3D0) { ser_writedata8(s, a); } ^ ./serialize.h:208:39: note: candidate function [with Stream =3D CSizeComput= er] template<typename Stream> inline void Serialize(Stream& s, int16_t a, = int, int=3D0) { ser_writedata16(s, a); } ^ ./serialize.h:209:39: note: candidate function [with Stream =3D CSizeComput= er] template<typename Stream> inline void Serialize(Stream& s, uint16_t a, = int, int=3D0) { ser_writedata16(s, a); } ^ ./serialize.h:211:39: note: candidate function [with Stream =3D CSizeComput= er] template<typename Stream> inline void Serialize(Stream& s, uint32_t a, = int, int=3D0) { ser_writedata32(s, a); } ^ ./serialize.h:212:39: note: candidate function [with Stream =3D CSizeComput= er] template<typename Stream> inline void Serialize(Stream& s, int64_t a, = int, int=3D0) { ser_writedata64(s, a); } ^ ./serialize.h:213:39: note: candidate function [with Stream =3D CSizeComput= er] template<typename Stream> inline void Serialize(Stream& s, uint64_t a, = int, int=3D0) { ser_writedata64(s, a); } ^ ./serialize.h:214:39: note: candidate function [with Stream =3D CSizeComput= er] template<typename Stream> inline void Serialize(Stream& s, float a, = int, int=3D0) { ser_writedata32(s, ser_float_to_uint32(a)); } ^ ./serialize.h:215:39: note: candidate function [with Stream =3D CSizeComput= er] template<typename Stream> inline void Serialize(Stream& s, double a, = int, int=3D0) { ser_writedata64(s, ser_double_to_uint64(a)); } ^ ./serialize.h:572:13: note: candidate function [with Stream =3D CSizeComput= er, T =3D std::__1::__bit_const_reference<std::__1::vector<bool, std::__1::allocator<bool> > >] inline void Serialize(Stream& os, const T& a, long nType, int nVersion) ^ 1 error generated. gmake[2]: *** [Makefile:6153: primitives/libzcashconsensus_la-transaction.l= o] Error 1 gmake[2]: Leaving directory '/root/src/zcash/src' gmake[1]: *** [Makefile:7452: all-recursive] Error 1 gmake[1]: Leaving directory '/root/src/zcash/src' gmake: *** [Makefile:640: all-recursive] Error 1 --=20 You are receiving this mail because: You are the assignee for the bug.=
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-213930-13-flu8juD8oa>