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

build failed on tip of golang #12

Closed
GoogleCodeExporter opened this issue Mar 24, 2015 · 2 comments
Closed

build failed on tip of golang #12

GoogleCodeExporter opened this issue Mar 24, 2015 · 2 comments

Comments

@GoogleCodeExporter
Copy link

On tip 59fdb5d05e04 of golang, buiild of pkg index failed because of argument 
type mismatch.
# code.google.com/p/codesearch/index
src/code.google.com/p/codesearch/index/mmap_bsd.go:34: cannot use f.Fd() (type 
uintptr) as type int in function argument

Original issue reported on code.google.com by minux...@gmail.com on 13 Feb 2012 at 8:30

@GoogleCodeExporter
Copy link
Author

It's because of: 
http://code.google.com/p/go/source/detail?r=d39a981f1883206abe203bada18c465e5910
c1a1

The change move switches the return value of f.Fd() from an int to a uintptr.  
Converting the value back to an int fixes the build on my Mac and  Linux 
machines.  I can only assume a similar fix exists for the Windows mmap version, 
but I don't have anything I can test that with.

I've attached the two trivial patches.

Original comment by dgryski on 13 Feb 2012 at 8:36

Attachments:

@GoogleCodeExporter
Copy link
Author

Fixed by 
https://code.google.com/p/codesearch/source/detail?r=91c15f6c24caea1104a91ee1d14
23440f98a8e5c

Original comment by dgryski on 2 May 2012 at 8:49

  • Changed state: Fixed

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

No branches or pull requests

1 participant