Bug#658421: golang-weekly: go build and go install fail
On Tue, Mar 13, 2012 at 15:47, Marvin Renich m...@renich.org wrote: * Justus Winter 4win...@informatik.uni-hamburg.de [120311 14:19]: Hm, the issue is back: % make go install vgo/logic open /usr/lib/go/pkg/linux_amd64/runtime.a: permission denied make: *** [vgo] Error 1 % find /usr/lib/go/src/pkg/runtime -newer /usr/lib/go/pkg/linux_amd64/runtime.a /usr/lib/go/src/pkg/runtime /usr/lib/go/src/pkg/runtime/pprof /usr/lib/go/src/pkg/runtime/cgo /usr/lib/go/src/pkg/runtime/debug But this time my workaround isn't working anymore, don't know what triggers the rebuild this time... Sorry it took so long to get back to you. I didn't have a chance to try 2012.02.22, but I'm still having problems with 2012.03.04. I get: $ go install ./ load cmd/cgo: package cmd/cgo: no Go source files in /usr/lib/go/src/cmd/cgo And indeed, the only source for anything under .../src/cmd/ is the doc.go file for each command. The source for .../src/pkg/ seems to be intact. That's true. They wasn't necessary in previous versions. I just cannot understand the whole concept of we compile everything, but we still need the source code. I'll include the cmd/ sources in next upload of golang-weekly. O. -- Ondřej Surý ond...@sury.org -- To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org
Bug#658421: golang-weekly: go build and go install fail
* Justus Winter 4win...@informatik.uni-hamburg.de [120311 14:19]: Hm, the issue is back: % make go install vgo/logic open /usr/lib/go/pkg/linux_amd64/runtime.a: permission denied make: *** [vgo] Error 1 % find /usr/lib/go/src/pkg/runtime -newer /usr/lib/go/pkg/linux_amd64/runtime.a /usr/lib/go/src/pkg/runtime /usr/lib/go/src/pkg/runtime/pprof /usr/lib/go/src/pkg/runtime/cgo /usr/lib/go/src/pkg/runtime/debug But this time my workaround isn't working anymore, don't know what triggers the rebuild this time... Sorry it took so long to get back to you. I didn't have a chance to try 2012.02.22, but I'm still having problems with 2012.03.04. I get: $ go install ./ load cmd/cgo: package cmd/cgo: no Go source files in /usr/lib/go/src/cmd/cgo And indeed, the only source for anything under .../src/cmd/ is the doc.go file for each command. The source for .../src/pkg/ seems to be intact. ...Marvin -- To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org
Bug#658421: golang-weekly: go build and go install fail
found 658421 2012.03.04-1 thanks Quoting Ondřej Surý (2012-03-03 20:38:42) Ah, thanks for the hint. The timestamps are different because I copy the source manually from debian/rules. That problem has easy solution, I am adding --preserve-timestamp option to install invocation. Hm, the issue is back: % make go install vgo/logic open /usr/lib/go/pkg/linux_amd64/runtime.a: permission denied make: *** [vgo] Error 1 % find /usr/lib/go/src/pkg/runtime -newer /usr/lib/go/pkg/linux_amd64/runtime.a /usr/lib/go/src/pkg/runtime /usr/lib/go/src/pkg/runtime/pprof /usr/lib/go/src/pkg/runtime/cgo /usr/lib/go/src/pkg/runtime/debug But this time my workaround isn't working anymore, don't know what triggers the rebuild this time... Justus -- To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org
Bug#658421: golang-weekly: go build and go install fail
Quoting Ondřej Surý (2012-03-03 20:38:42) Ah, thanks for the hint. The timestamps are different because I copy the source manually from debian/rules. That problem has easy solution, I am adding --preserve-timestamp option to install invocation. Could you retry it, when 2012.02.22-4 hits the debian? (Building now, uploading in a moment.) Yes, the new package works nicely. Thanks for the quick response :) Justus -- To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org
Bug#658421: golang-weekly: go build and go install fail
Hi Ondřej, I've been seeing the same error with 2012.02.22-3 and I think it is because the library archive is older than the go source files, hence the archive is considered old and go install tries to rebuild it. The following workaround solves this, dunno why the timestamps are wrong in the first place: find /usr/lib/go/pkg -type f -exec touch {} + Cheers, Justus -- To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org
Bug#658421: golang-weekly: go build and go install fail
Ah, thanks for the hint. The timestamps are different because I copy the source manually from debian/rules. That problem has easy solution, I am adding --preserve-timestamp option to install invocation. Could you retry it, when 2012.02.22-4 hits the debian? (Building now, uploading in a moment.) O. On Sat, Mar 3, 2012 at 18:56, Justus Winter 4win...@informatik.uni-hamburg.de wrote: Hi Ondřej, I've been seeing the same error with 2012.02.22-3 and I think it is because the library archive is older than the go source files, hence the archive is considered old and go install tries to rebuild it. The following workaround solves this, dunno why the timestamps are wrong in the first place: find /usr/lib/go/pkg -type f -exec touch {} + Cheers, Justus -- Ondřej Surý ond...@sury.org -- To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org
Bug#658421: golang-weekly: go build and go install fail
Hi Marvin, that's really strange, because I do nothing special when building the go sources. Anyway I am packaging next weekly snapshot right now, so it would be great if you could retest with 2012.02.22-1 as soon as it hits the archive: $ dpkg -c golang-weekly-go_2012.02.22-1_amd64.deb | grep runtime.a -rw-r--r-- root/root878986 2012-02-29 12:14 ./usr/lib/go/pkg/linux_amd64/runtime.a O. On Thu, Feb 2, 2012 at 22:26, Marvin Renich m...@renich.org wrote: Package: golang-weekly Version: 2012.01.27-2 Severity: important $ echo $GOPATH /home/mrvn/golang $ cd $GOPATH $ go build tempus # tempus morestack trampoline not defined - runtime.morestack00 morestack trampoline not defined - runtime.morestack10 morestack trampoline not defined - runtime.morestack01 morestack trampoline not defined - runtime.morestack11 morestack trampoline not defined - runtime.morestack8 morestack trampoline not defined - runtime.morestack16 morestack trampoline not defined - runtime.morestack24 morestack trampoline not defined - runtime.morestack32 morestack trampoline not defined - runtime.morestack40 morestack trampoline not defined - runtime.morestack48 $ go install tempus open /usr/lib/go/pkg/linux_amd64/runtime.a: permission denied It appears that the go std libraries are not completely built. If I download and build go from upstream, and set GOROOT and GOPATH appropriately, I do not have these problems. I also wanted to thank you for packaging both golang and golang-weekly. I appreciate being able to install, upgrade, and remove them as Debian packages and having them follow the Debian directory structure. ...Marvin -- System Information: Debian Release: wheezy/sid APT prefers testing APT policy: (990, 'testing'), (500, 'stable-updates'), (500, 'unstable'), (500, 'stable') Architecture: amd64 (x86_64) Kernel: Linux 2.6.39-2-amd64 (SMP w/2 CPU cores) Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8) Shell: /bin/sh linked to /bin/dash Versions of packages golang-weekly depends on: ii golang-weekly-doc 2012.01.27-2 ii golang-weekly-go 2012.01.27-2 ii golang-weekly-src 2012.01.27-2 ii golang-weekly-tools 2012.01.27-2 golang-weekly recommends no packages. golang-weekly suggests no packages. -- no debconf information -- Ondřej Surý ond...@sury.org -- To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org
Bug#658421: golang-weekly: go build and go install fail
Package: golang-weekly Version: 2012.01.27-2 Severity: important $ echo $GOPATH /home/mrvn/golang $ cd $GOPATH $ go build tempus # tempus morestack trampoline not defined - runtime.morestack00 morestack trampoline not defined - runtime.morestack10 morestack trampoline not defined - runtime.morestack01 morestack trampoline not defined - runtime.morestack11 morestack trampoline not defined - runtime.morestack8 morestack trampoline not defined - runtime.morestack16 morestack trampoline not defined - runtime.morestack24 morestack trampoline not defined - runtime.morestack32 morestack trampoline not defined - runtime.morestack40 morestack trampoline not defined - runtime.morestack48 $ go install tempus open /usr/lib/go/pkg/linux_amd64/runtime.a: permission denied It appears that the go std libraries are not completely built. If I download and build go from upstream, and set GOROOT and GOPATH appropriately, I do not have these problems. I also wanted to thank you for packaging both golang and golang-weekly. I appreciate being able to install, upgrade, and remove them as Debian packages and having them follow the Debian directory structure. ...Marvin -- System Information: Debian Release: wheezy/sid APT prefers testing APT policy: (990, 'testing'), (500, 'stable-updates'), (500, 'unstable'), (500, 'stable') Architecture: amd64 (x86_64) Kernel: Linux 2.6.39-2-amd64 (SMP w/2 CPU cores) Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8) Shell: /bin/sh linked to /bin/dash Versions of packages golang-weekly depends on: ii golang-weekly-doc2012.01.27-2 ii golang-weekly-go 2012.01.27-2 ii golang-weekly-src2012.01.27-2 ii golang-weekly-tools 2012.01.27-2 golang-weekly recommends no packages. golang-weekly suggests no packages. -- no debconf information -- To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org