Not able to compile gommap in Ubuntu 11.10

Bug #916912 reported by tfmoraes
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
gommap
Fix Released
Undecided
Gustavo Niemeyer

Bug Description

I'm using Ubuntu 11.10 64 bits. I'm doing some experimentations with Go and it's important to me to have mmap. So I'm trying Gommap. But I'm not able to compile it. Here output:
$ sudo goinstall launchpad.net/gommap

/bin/bash: === cd /usr/lib/go/src/pkg/launchpad.net/gommap; bash gomake -f- install
6g -I "/usr/lib/go/pkg/linux_amd64" -o _go_.6 mmap_linux_amd64.go gommap.go consts.go
6c -FVw -o "consts.6" consts.c
consts.c:2 6c: No such file or directory: sys/mman.h
make: ** [consts.6] Erro 1
--- exit status 2
goinstall: launchpad.net/gommap: install: running bash: exit status 2 ($GOPATH not set)

I tried to install libc6-dev because of the of sys/mman.h, but nothing to compile. I have to set something?

Thanks!

Revision history for this message
tfmoraes (tfmoraes) wrote :

I've just tried to compile in MacOSX 10.7. But it was not possible too. Here the output error:

$ goinstall launchpad.net/gommap
/bin/bash: === cd /usr/local/Cellar/go/r60.3/src/pkg/launchpad.net/gommap; bash gomake -f- install
6g -I "/usr/local/Cellar/go/r60.3/pkg/darwin_amd64" -o _go_.6 consts.go gommap.go
gommap.go:59: undefined: mmap_syscall
make: *** [_go_.6] Error 1
--- exit status 2
goinstall: launchpad.net/gommap: install: running bash: exit status 2 ($GOPATH not set)

Revision history for this message
tfmoraes (tfmoraes) wrote :

Go compile versions:
Ubuntu: 6g version release.r60 9481
Mac, installed with Brew: 6g version release.r60.3 9516

Revision history for this message
Gustavo Niemeyer (niemeyer) wrote :

This should have been solved with the current release. Just "go get launchpad.net/gommap". If that doesn't work, please reopen with more details.

Changed in gommap:
status: New → Fix Released
assignee: nobody → Gustavo Niemeyer (niemeyer)
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.