Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

how to fix compiler gx deps type error in windows 10 #278

Closed
b1u3h4t opened this issue Oct 17, 2017 · 1 comment
Closed

how to fix compiler gx deps type error in windows 10 #278

b1u3h4t opened this issue Oct 17, 2017 · 1 comment

Comments

@b1u3h4t
Copy link

b1u3h4t commented Oct 17, 2017

go install -ldflags="-X "github.com/ipfs/go-ipfs/repo/config".CurrentCommit=41102bdc"  ./cmd/ipfs 1ms?[1B
# github.com/ipfs/go-ipfs/thirdparty/datastore2
thirdparty\datastore2\datastore_closer.go:22:36: cannot use "github.com/ipfs/go-ipfs/vendor/gx/ipfs/QmVSase1JP7cq9QkPT46oNwdp9pT6kBkG3oqS14y3QcZjG/go-datastore/sync".MutexWrap("github.com/ipfs/go-ipfs/vendor/gx/ipfs/QmVSase1JP7cq9
QkPT46oNwdp9pT6kBkG3oqS14y3QcZjG/go-datastore".NewMapDatastore()) (type *"github.com/ipfs/go-ipfs/vendor/gx/ipfs/QmVSase1JP7cq9QkPT46oNwdp9pT6kBkG3oqS14y3QcZjG/go-datastore/sync".MutexDatastore) as type "github.com/ipfs/go-ipfs/ve
ndor/gx/ipfs/QmVSase1JP7cq9QkPT46oNwdp9pT6kBkG3oqS14y3QcZjG/go-datastore".ThreadSafeDatastore in argument to CloserWrap:
        *"github.com/ipfs/go-ipfs/vendor/gx/ipfs/QmVSase1JP7cq9QkPT46oNwdp9pT6kBkG3oqS14y3QcZjG/go-datastore/sync".MutexDatastore does not implement "github.com/ipfs/go-ipfs/vendor/gx/ipfs/QmVSase1JP7cq9QkPT46oNwdp9pT6kBkG3oqS14y3
QcZjG/go-datastore".ThreadSafeDatastore (wrong type for Delete method)
                have Delete("github.com/ipfs/go-datastore".Key) error
                want Delete("github.com/ipfs/go-ipfs/vendor/gx/ipfs/QmVSase1JP7cq9QkPT46oNwdp9pT6kBkG3oqS14y3QcZjG/go-datastore".Key) error
thirdparty\datastore2\datastore_closer.go:22:62: cannot use "github.com/ipfs/go-ipfs/vendor/gx/ipfs/QmVSase1JP7cq9QkPT46oNwdp9pT6kBkG3oqS14y3QcZjG/go-datastore".NewMapDatastore() (type *"github.com/ipfs/go-ipfs/vendor/gx/ipfs/QmVS
ase1JP7cq9QkPT46oNwdp9pT6kBkG3oqS14y3QcZjG/go-datastore".MapDatastore) as type "github.com/ipfs/go-datastore".Datastore in argument to "github.com/ipfs/go-ipfs/vendor/gx/ipfs/QmVSase1JP7cq9QkPT46oNwdp9pT6kBkG3oqS14y3QcZjG/go-datas
tore/sync".MutexWrap:
        *"github.com/ipfs/go-ipfs/vendor/gx/ipfs/QmVSase1JP7cq9QkPT46oNwdp9pT6kBkG3oqS14y3QcZjG/go-datastore".MapDatastore does not implement "github.com/ipfs/go-datastore".Datastore (wrong type for Delete method)
                have Delete("github.com/ipfs/go-ipfs/vendor/gx/ipfs/QmVSase1JP7cq9QkPT46oNwdp9pT6kBkG3oqS14y3QcZjG/go-datastore".Key) error
                want Delete("github.com/ipfs/go-datastore".Key) error
thirdparty\datastore2\delayed.go:11:31: cannot use delayed literal (type *delayed) as type "github.com/ipfs/go-ipfs/vendor/gx/ipfs/QmVSase1JP7cq9QkPT46oNwdp9pT6kBkG3oqS14y3QcZjG/go-datastore".Datastore in return argument:
        *delayed does not implement "github.com/ipfs/go-ipfs/vendor/gx/ipfs/QmVSase1JP7cq9QkPT46oNwdp9pT6kBkG3oqS14y3QcZjG/go-datastore".Datastore (wrong type for Query method)
                have Query("github.com/ipfs/go-ipfs/vendor/gx/ipfs/QmVSase1JP7cq9QkPT46oNwdp9pT6kBkG3oqS14y3QcZjG/go-datastore/query".Query) ("github.com/ipfs/go-ipfs/vendor/gx/ipfs/QmVSase1JP7cq9QkPT46oNwdp9pT6kBkG3oqS14y3QcZjG/g
o-datastore/query".Results, error)
                want Query("github.com/ipfs/go-datastore/query".Query) ("github.com/ipfs/go-datastore/query".Results, error)
thirdparty\datastore2\delayed.go:41:2: cannot use "github.com/ipfs/go-datastore/query".Results as type "github.com/ipfs/go-ipfs/vendor/gx/ipfs/QmVSase1JP7cq9QkPT46oNwdp9pT6kBkG3oqS14y3QcZjG/go-datastore/query".Results in return ar
gument:
        "github.com/ipfs/go-datastore/query".Results does not implement "github.com/ipfs/go-ipfs/vendor/gx/ipfs/QmVSase1JP7cq9QkPT46oNwdp9pT6kBkG3oqS14y3QcZjG/go-datastore/query".Results (wrong type for Next method)
                have Next() <-chan "github.com/ipfs/go-datastore/query".Result
                want Next() <-chan "github.com/ipfs/go-ipfs/vendor/gx/ipfs/QmVSase1JP7cq9QkPT46oNwdp9pT6kBkG3oqS14y3QcZjG/go-datastore/query".Result
thirdparty\datastore2\delayed.go:41:21: cannot use q (type "github.com/ipfs/go-ipfs/vendor/gx/ipfs/QmVSase1JP7cq9QkPT46oNwdp9pT6kBkG3oqS14y3QcZjG/go-datastore/query".Query) as type "github.com/ipfs/go-datastore/query".Query in arg
ument to dds.ds.Query
thirdparty\datastore2\delayed.go:45:25: cannot use dds (type *delayed) as type "github.com/ipfs/go-ipfs/vendor/gx/ipfs/QmVSase1JP7cq9QkPT46oNwdp9pT6kBkG3oqS14y3QcZjG/go-datastore".Datastore in argument to "github.com/ipfs/go-ipfs/
vendor/gx/ipfs/QmVSase1JP7cq9QkPT46oNwdp9pT6kBkG3oqS14y3QcZjG/go-datastore".NewBasicBatch:
        *delayed does not implement "github.com/ipfs/go-ipfs/vendor/gx/ipfs/QmVSase1JP7cq9QkPT46oNwdp9pT6kBkG3oqS14y3QcZjG/go-datastore".Datastore (wrong type for Query method)
                have Query("github.com/ipfs/go-ipfs/vendor/gx/ipfs/QmVSase1JP7cq9QkPT46oNwdp9pT6kBkG3oqS14y3QcZjG/go-datastore/query".Query) ("github.com/ipfs/go-ipfs/vendor/gx/ipfs/QmVSase1JP7cq9QkPT46oNwdp9pT6kBkG3oqS14y3QcZjG/g
o-datastore/query".Results, error)
                want Query("github.com/ipfs/go-datastore/query".Query) ("github.com/ipfs/go-datastore/query".Results, error)
thirdparty\datastore2\delayed.go:48:5: cannot use delayed literal (type *delayed) as type "github.com/ipfs/go-ipfs/vendor/gx/ipfs/QmVSase1JP7cq9QkPT46oNwdp9pT6kBkG3oqS14y3QcZjG/go-datastore".Datastore in assignment:
        *delayed does not implement "github.com/ipfs/go-ipfs/vendor/gx/ipfs/QmVSase1JP7cq9QkPT46oNwdp9pT6kBkG3oqS14y3QcZjG/go-datastore".Datastore (wrong type for Query method)
                have Query("github.com/ipfs/go-ipfs/vendor/gx/ipfs/QmVSase1JP7cq9QkPT46oNwdp9pT6kBkG3oqS14y3QcZjG/go-datastore/query".Query) ("github.com/ipfs/go-ipfs/vendor/gx/ipfs/QmVSase1JP7cq9QkPT46oNwdp9pT6kBkG3oqS14y3QcZjG/g
o-datastore/query".Results, error)
                want Query("github.com/ipfs/go-datastore/query".Query) ("github.com/ipfs/go-datastore/query".Results, error)
# github.com/ipfs/go-ipfs/exchange/bitswap/message
exchange\bitswap\message\message.go:103:47: cannot use c (type *"github.com/ipfs/go-ipfs/vendor/gx/ipfs/QmNp85zy9RLrQ5oQD4hPyS39ezrrXpcaa7R4Y9kxdWQLLQ/go-cid".Cid) as type *"github.com/ipfs/go-cid".Cid in argument to blocks.NewBlo
ckWithCid
# github.com/ipfs/go-ipfs/blocks/blockstore
blocks\blockstore\arc_cache.go:104:34: cannot use bl.Cid() (type *"github.com/ipfs/go-cid".Cid) as type *"github.com/ipfs/go-ipfs/vendor/gx/ipfs/QmNp85zy9RLrQ5oQD4hPyS39ezrrXpcaa7R4Y9kxdWQLLQ/go-cid".Cid in argument to b.hasCached

blocks\blockstore\arc_cache.go:110:20: cannot use bl.Cid() (type *"github.com/ipfs/go-cid".Cid) as type *"github.com/ipfs/go-ipfs/vendor/gx/ipfs/QmNp85zy9RLrQ5oQD4hPyS39ezrrXpcaa7R4Y9kxdWQLLQ/go-cid".Cid in argument to b.addCache
blocks\blockstore\arc_cache.go:120:38: cannot use block.Cid() (type *"github.com/ipfs/go-cid".Cid) as type *"github.com/ipfs/go-ipfs/vendor/gx/ipfs/QmNp85zy9RLrQ5oQD4hPyS39ezrrXpcaa7R4Y9kxdWQLLQ/go-cid".Cid in argument to b.hasCac
hed
blocks\blockstore\arc_cache.go:129:23: cannot use block.Cid() (type *"github.com/ipfs/go-cid".Cid) as type *"github.com/ipfs/go-ipfs/vendor/gx/ipfs/QmNp85zy9RLrQ5oQD4hPyS39ezrrXpcaa7R4Y9kxdWQLLQ/go-cid".Cid in argument to b.addCac
he
blocks\blockstore\blockstore.go:95:17: cannot use d (type "github.com/ipfs/go-ipfs/vendor/gx/ipfs/QmVSase1JP7cq9QkPT46oNwdp9pT6kBkG3oqS14y3QcZjG/go-datastore".Batching) as type "github.com/ipfs/go-datastore".Datastore in argument
to namespace.Wrap:
        "github.com/ipfs/go-ipfs/vendor/gx/ipfs/QmVSase1JP7cq9QkPT46oNwdp9pT6kBkG3oqS14y3QcZjG/go-datastore".Batching does not implement "github.com/ipfs/go-datastore".Datastore (wrong type for Delete method)
                have Delete("github.com/ipfs/go-ipfs/vendor/gx/ipfs/QmVSase1JP7cq9QkPT46oNwdp9pT6kBkG3oqS14y3QcZjG/go-datastore".Key) error
                want Delete("github.com/ipfs/go-datastore".Key) error
blocks\blockstore\blockstore.go:95:17: cannot use BlockPrefix (type "github.com/ipfs/go-ipfs/vendor/gx/ipfs/QmVSase1JP7cq9QkPT46oNwdp9pT6kBkG3oqS14y3QcZjG/go-datastore".Key) as type "github.com/ipfs/go-datastore".Key in argument t
o namespace.Wrap
blocks\blockstore\blockstore.go:96:6: cannot use dd (type *namespace.datastore) as type "github.com/ipfs/go-ipfs/vendor/gx/ipfs/QmVSase1JP7cq9QkPT46oNwdp9pT6kBkG3oqS14y3QcZjG/go-datastore".Batching in assignment:
        *namespace.datastore does not implement "github.com/ipfs/go-ipfs/vendor/gx/ipfs/QmVSase1JP7cq9QkPT46oNwdp9pT6kBkG3oqS14y3QcZjG/go-datastore".Batching (wrong type for Batch method)
                have Batch() ("github.com/ipfs/go-datastore".Batch, error)
                want Batch() ("github.com/ipfs/go-ipfs/vendor/gx/ipfs/QmVSase1JP7cq9QkPT46oNwdp9pT6kBkG3oqS14y3QcZjG/go-datastore".Batch, error)
blocks\blockstore\blockstore.go:140:32: cannot use rbcid (type *"github.com/ipfs/go-ipfs/vendor/gx/ipfs/QmNp85zy9RLrQ5oQD4hPyS39ezrrXpcaa7R4Y9kxdWQLLQ/go-cid".Cid) as type *"github.com/ipfs/go-cid".Cid in argument to blocks.NewBlo
ckWithCid
blocks\blockstore\blockstore.go:142:31: cannot use k (type *"github.com/ipfs/go-ipfs/vendor/gx/ipfs/QmNp85zy9RLrQ5oQD4hPyS39ezrrXpcaa7R4Y9kxdWQLLQ/go-cid".Cid) as type *"github.com/ipfs/go-cid".Cid in argument to blocks.NewBlockWi
thCid
blocks\blockstore\blockstore.go:146:34: cannot use block.Cid() (type *"github.com/ipfs/go-cid".Cid) as type *"github.com/ipfs/go-ipfs/vendor/gx/ipfs/QmNp85zy9RLrQ5oQD4hPyS39ezrrXpcaa7R4Y9kxdWQLLQ/go-cid".Cid in argument to dshelp.
CidToDsKey
blocks\blockstore\blockstore.go:146:34: too many errors
# github.com/libp2p/go-peerstream
..\..\libp2p\go-peerstream\conn.go:82:10: cannot use c.netConn (type transport.Conn) as type net.Conn in return argument:
        transport.Conn does not implement net.Conn (missing Read method)
..\..\libp2p\go-peerstream\conn.go:253:32: cannot use netConn (type transport.Conn) as type net.Conn in argument to s.transport.NewConn:
        transport.Conn does not implement net.Conn (missing Read method)
# github.com/ipfs/go-ipfs/vendor/gx/ipfs/QmaSxYRuMq4pkpBBG2CYaRrPx2z7NmMVEs34b9g61biQA6/go-libp2p-host
vendor\gx\ipfs\QmaSxYRuMq4pkpBBG2CYaRrPx2z7NmMVEs34b9g61biQA6\go-libp2p-host\host.go:67:16: undefined: connmgr.ConnManager
# github.com/libp2p/go-libp2p-metrics/conn
..\..\libp2p\go-libp2p-metrics\conn\conn.go:28:19: mc.Conn.Read undefined (type transport.Conn has no field or method Read)
..\..\libp2p\go-libp2p-metrics\conn\conn.go:35:19: mc.Conn.Write undefined (type transport.Conn has no field or method Write)
# github.com/ipfs/go-ipfs/routing/mock
routing\mock\centralized_client.go:113:8: cannot use []"github.com/ipfs/go-ipfs/vendor/gx/ipfs/QmXY77cVe7rVRQXZZQRioukUM7aRW3BTcAgJe12MCtb3Ji/go-multiaddr".Multiaddr literal (type []"github.com/ipfs/go-ipfs/vendor/gx/ipfs/QmXY77cV
e7rVRQXZZQRioukUM7aRW3BTcAgJe12MCtb3Ji/go-multiaddr".Multiaddr) as type []"github.com/multiformats/go-multiaddr".Multiaddr in field value
routing\mock\centralized_client.go:113:39: cannot use c.peer.Address() (type "github.com/multiformats/go-multiaddr".Multiaddr) as type "github.com/ipfs/go-ipfs/vendor/gx/ipfs/QmXY77cVe7rVRQXZZQRioukUM7aRW3BTcAgJe12MCtb3Ji/go-multi
addr".Multiaddr in array or slice literal:
        "github.com/multiformats/go-multiaddr".Multiaddr does not implement "github.com/ipfs/go-ipfs/vendor/gx/ipfs/QmXY77cVe7rVRQXZZQRioukUM7aRW3BTcAgJe12MCtb3Ji/go-multiaddr".Multiaddr (wrong type for Decapsulate method)
                have Decapsulate("github.com/multiformats/go-multiaddr".Multiaddr) "github.com/multiformats/go-multiaddr".Multiaddr
                want Decapsulate("github.com/ipfs/go-ipfs/vendor/gx/ipfs/QmXY77cVe7rVRQXZZQRioukUM7aRW3BTcAgJe12MCtb3Ji/go-multiaddr".Multiaddr) "github.com/ipfs/go-ipfs/vendor/gx/ipfs/QmXY77cVe7rVRQXZZQRioukUM7aRW3BTcAgJe12MCtb3J
i/go-multiaddr".Multiaddr
routing\mock\centralized_client.go:126:5: cannot use client literal (type *client) as type routing.IpfsRouting in assignment:
        *client does not implement routing.IpfsRouting (wrong type for FindPeer method)
                have FindPeer(context.Context, "github.com/ipfs/go-ipfs/vendor/gx/ipfs/QmXYjuNuxVzXKJCfWasQk1RqkhVLDM9jtUKhqc2WPQmFSB/go-libp2p-peer".ID) ("github.com/ipfs/go-ipfs/vendor/gx/ipfs/QmPgDWmTmuzvP7QE5zwo1TmjbJme9pmZHNu
jB2453jkCTr/go-libp2p-peerstore".PeerInfo, error)
                want FindPeer(context.Context, "github.com/libp2p/go-libp2p-peer".ID) ("github.com/libp2p/go-libp2p-peerstore".PeerInfo, error)
routing\mock\centralized_server.go:49:17: cannot use p.ID (type "github.com/libp2p/go-libp2p-peer".ID) as type "github.com/ipfs/go-ipfs/vendor/gx/ipfs/QmXYjuNuxVzXKJCfWasQk1RqkhVLDM9jtUKhqc2WPQmFSB/go-libp2p-peer".ID in map index
routing\mock\centralized_server.go:83:73: cannot use "github.com/ipfs/go-ipfs/vendor/gx/ipfs/QmVSase1JP7cq9QkPT46oNwdp9pT6kBkG3oqS14y3QcZjG/go-datastore/sync".MutexWrap("github.com/ipfs/go-ipfs/vendor/gx/ipfs/QmVSase1JP7cq9QkPT46o
Nwdp9pT6kBkG3oqS14y3QcZjG/go-datastore".NewMapDatastore()) (type *"github.com/ipfs/go-ipfs/vendor/gx/ipfs/QmVSase1JP7cq9QkPT46oNwdp9pT6kBkG3oqS14y3QcZjG/go-datastore/sync".MutexDatastore) as type "github.com/ipfs/go-ipfs/vendor/gx
/ipfs/QmVSase1JP7cq9QkPT46oNwdp9pT6kBkG3oqS14y3QcZjG/go-datastore".Datastore in argument to rs.ClientWithDatastore:
        *"github.com/ipfs/go-ipfs/vendor/gx/ipfs/QmVSase1JP7cq9QkPT46oNwdp9pT6kBkG3oqS14y3QcZjG/go-datastore/sync".MutexDatastore does not implement "github.com/ipfs/go-ipfs/vendor/gx/ipfs/QmVSase1JP7cq9QkPT46oNwdp9pT6kBkG3oqS14y3
QcZjG/go-datastore".Datastore (wrong type for Delete method)
                have Delete("github.com/ipfs/go-datastore".Key) error
                want Delete("github.com/ipfs/go-ipfs/vendor/gx/ipfs/QmVSase1JP7cq9QkPT46oNwdp9pT6kBkG3oqS14y3QcZjG/go-datastore".Key) error
routing\mock\centralized_server.go:83:92: cannot use "github.com/ipfs/go-ipfs/vendor/gx/ipfs/QmVSase1JP7cq9QkPT46oNwdp9pT6kBkG3oqS14y3QcZjG/go-datastore".NewMapDatastore() (type *"github.com/ipfs/go-ipfs/vendor/gx/ipfs/QmVSase1JP7
cq9QkPT46oNwdp9pT6kBkG3oqS14y3QcZjG/go-datastore".MapDatastore) as type "github.com/ipfs/go-datastore".Datastore in argument to "github.com/ipfs/go-ipfs/vendor/gx/ipfs/QmVSase1JP7cq9QkPT46oNwdp9pT6kBkG3oqS14y3QcZjG/go-datastore/sy
nc".MutexWrap:
        *"github.com/ipfs/go-ipfs/vendor/gx/ipfs/QmVSase1JP7cq9QkPT46oNwdp9pT6kBkG3oqS14y3QcZjG/go-datastore".MapDatastore does not implement "github.com/ipfs/go-datastore".Datastore (wrong type for Delete method)
                have Delete("github.com/ipfs/go-ipfs/vendor/gx/ipfs/QmVSase1JP7cq9QkPT46oNwdp9pT6kBkG3oqS14y3QcZjG/go-datastore".Key) error
                want Delete("github.com/ipfs/go-datastore".Key) error
routing\mock\centralized_server.go:90:9: cannot use client literal (type *client) as type Client in return argument:
        *client does not implement Client (wrong type for FindPeer method)
                have FindPeer(context.Context, "github.com/ipfs/go-ipfs/vendor/gx/ipfs/QmXYjuNuxVzXKJCfWasQk1RqkhVLDM9jtUKhqc2WPQmFSB/go-libp2p-peer".ID) ("github.com/ipfs/go-ipfs/vendor/gx/ipfs/QmPgDWmTmuzvP7QE5zwo1TmjbJme9pmZHNu
jB2453jkCTr/go-libp2p-peerstore".PeerInfo, error)
                want FindPeer(context.Context, "github.com/libp2p/go-libp2p-peer".ID) ("github.com/libp2p/go-libp2p-peerstore".PeerInfo, error)
# github.com/ipfs/go-ipfs/vendor/gx/ipfs/QmNMCAuxnQFHLGWcvay3DmVFrKuY6Y2nsc9vzsf4gVouJV/go-libp2p-pnet
vendor\gx\ipfs\QmNMCAuxnQFHLGWcvay3DmVFrKuY6Y2nsc9vzsf4gVouJV\go-libp2p-pnet\psk_conn.go:35:26: cannot use c.Conn (type transport.Conn) as type io.Reader in argument to io.ReadFull:
        transport.Conn does not implement io.Reader (missing Read method)
vendor\gx\ipfs\QmNMCAuxnQFHLGWcvay3DmVFrKuY6Y2nsc9vzsf4gVouJV\go-libp2p-pnet\psk_conn.go:47:18: c.Conn.Read undefined (type transport.Conn has no field or method Read)
vendor\gx\ipfs\QmNMCAuxnQFHLGWcvay3DmVFrKuY6Y2nsc9vzsf4gVouJV\go-libp2p-pnet\psk_conn.go:64:18: c.Conn.Write undefined (type transport.Conn has no field or method Write)
vendor\gx\ipfs\QmNMCAuxnQFHLGWcvay3DmVFrKuY6Y2nsc9vzsf4gVouJV\go-libp2p-pnet\psk_conn.go:78:2: not enough arguments to return
vendor\gx\ipfs\QmNMCAuxnQFHLGWcvay3DmVFrKuY6Y2nsc9vzsf4gVouJV\go-libp2p-pnet\psk_conn.go:78:15: c.Conn.Write undefined (type transport.Conn has no field or method Write)
# github.com/libp2p/go-libp2p-conn
..\..\libp2p\go-libp2p-conn\conn.go:90:17: c.maconn.SetDeadline undefined (type transport.Conn has no field or method SetDeadline)
..\..\libp2p\go-libp2p-conn\conn.go:93:17: c.maconn.SetReadDeadline undefined (type transport.Conn has no field or method SetReadDeadline)
..\..\libp2p\go-libp2p-conn\conn.go:97:17: c.maconn.SetWriteDeadline undefined (type transport.Conn has no field or method SetWriteDeadline)
..\..\libp2p\go-libp2p-conn\conn.go:126:2: not enough arguments to return
..\..\libp2p\go-libp2p-conn\conn.go:126:17: c.maconn.Read undefined (type transport.Conn has no field or method Read)
..\..\libp2p\go-libp2p-conn\conn.go:131:2: not enough arguments to return
..\..\libp2p\go-libp2p-conn\conn.go:131:17: c.maconn.Write undefined (type transport.Conn has no field or method Write)
..\..\libp2p\go-libp2p-conn\dial.go:121:9: maconn.SetReadDeadline undefined (type transport.Conn has no field or method SetReadDeadline)
..\..\libp2p\go-libp2p-conn\dial.go:123:32: cannot use maconn (type transport.Conn) as type io.ReadWriteCloser in argument to multistream.SelectProtoOrFail:
        transport.Conn does not implement io.ReadWriteCloser (missing Read method)
..\..\libp2p\go-libp2p-conn\dial.go:129:9: maconn.SetReadDeadline undefined (type transport.Conn has no field or method SetReadDeadline)
..\..\libp2p\go-libp2p-conn\dial.go:129:9: too many errors
# github.com/ipfs/go-ipfs/routing/offline
routing\offline\offline.go:26:5: cannot use offlineRouting literal (type *offlineRouting) as type routing.IpfsRouting in return argument:
        *offlineRouting does not implement routing.IpfsRouting (wrong type for FindPeer method)
                have FindPeer(context.Context, "github.com/ipfs/go-ipfs/vendor/gx/ipfs/QmXYjuNuxVzXKJCfWasQk1RqkhVLDM9jtUKhqc2WPQmFSB/go-libp2p-peer".ID) ("github.com/ipfs/go-ipfs/vendor/gx/ipfs/QmPgDWmTmuzvP7QE5zwo1TmjbJme9pmZHNu
jB2453jkCTr/go-libp2p-peerstore".PeerInfo, error)
                want FindPeer(context.Context, "github.com/libp2p/go-libp2p-peer".ID) ("github.com/libp2p/go-libp2p-peerstore".PeerInfo, error)
routing\offline\offline.go:39:36: cannot use c.sk (type "github.com/ipfs/go-ipfs/vendor/gx/ipfs/QmaPbCnUMBohSGo3KnxEa2bHqyJVVeEEcwtqJAYxerieBo/go-libp2p-crypto".PrivKey) as type "github.com/libp2p/go-libp2p-crypto".PrivKey in argu
ment to record.MakePutRecord:
        "github.com/ipfs/go-ipfs/vendor/gx/ipfs/QmaPbCnUMBohSGo3KnxEa2bHqyJVVeEEcwtqJAYxerieBo/go-libp2p-crypto".PrivKey does not implement "github.com/libp2p/go-libp2p-crypto".PrivKey (wrong type for Equals method)
                have Equals("github.com/ipfs/go-ipfs/vendor/gx/ipfs/QmaPbCnUMBohSGo3KnxEa2bHqyJVVeEEcwtqJAYxerieBo/go-libp2p-crypto".Key) bool
                want Equals("github.com/libp2p/go-libp2p-crypto".Key) bool
routing\offline\offline.go:114:5: cannot use offlineRouting literal (type *offlineRouting) as type routing.IpfsRouting in assignment:
        *offlineRouting does not implement routing.IpfsRouting (wrong type for FindPeer method)
                have FindPeer(context.Context, "github.com/ipfs/go-ipfs/vendor/gx/ipfs/QmXYjuNuxVzXKJCfWasQk1RqkhVLDM9jtUKhqc2WPQmFSB/go-libp2p-peer".ID) ("github.com/ipfs/go-ipfs/vendor/gx/ipfs/QmPgDWmTmuzvP7QE5zwo1TmjbJme9pmZHNu
jB2453jkCTr/go-libp2p-peerstore".PeerInfo, error)
                want FindPeer(context.Context, "github.com/libp2p/go-libp2p-peer".ID) ("github.com/libp2p/go-libp2p-peerstore".PeerInfo, error)
# github.com/ipfs/go-ipfs/vendor/gx/ipfs/QmRQ76P5dgvxTujhfPsCRAG83rC15jgb1G9bKLuomuC6dQ/go-libp2p/p2p/host/routed
vendor\gx\ipfs\QmRQ76P5dgvxTujhfPsCRAG83rC15jgb1G9bKLuomuC6dQ\go-libp2p\p2p\host\routed\routed.go:145:37: undefined: connmgr.ConnManager
# github.com/ipfs/go-ipfs/vendor/gx/ipfs/QmYQYQ3FiVskUmMB2eLLvrhHhAfAPNZ3StZP5Ni7LTJgnX/go-ds-badger
vendor\gx\ipfs\QmYQYQ3FiVskUmMB2eLLvrhHhAfAPNZ3StZP5Ni7LTJgnX\go-ds-badger\datastore.go:12:6: undefined: badger.KV
# github.com/ipfs/go-ipfs/vendor/gx/ipfs/QmSk46nSD78YiuNojYMS8NW6hSCjH95JajqqzzoychZgef/go-metrics-prometheus
vendor\gx\ipfs\QmSk46nSD78YiuNojYMS8NW6hSCjH95JajqqzzoychZgef\go-metrics-prometheus\binding.go:37:2: cannot use res (type prometheus.Counter) as type metrics.Counter in return argument:
        prometheus.Counter does not implement metrics.Counter (missing Set method)
make.exe": *** [cmd/ipfs-install] Error 2``

ipfs version is v0.4.11, when I make install in go-ipfs directory which my env is windows 10 and go1.9, how can I fix this error, is there any script to fix this dup type error, thanks!

@daviddias
Copy link
Member

daviddias commented Oct 26, 2017

Please open support issues on https://discuss.ipfs.io/

//cc @whyrusleeping

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants