Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Bug#658421: golang-weekly: "go build" and "go install" fail

24 views
Skip to first unread message

Justus Winter

unread,
Mar 3, 2012, 1:10:01 PM3/3/12
to
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-...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listm...@lists.debian.org

Ondřej Surý

unread,
Mar 3, 2012, 2:50:02 PM3/3/12
to
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
<4wi...@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>

Justus Winter

unread,
Mar 4, 2012, 10:10:03 AM3/4/12
to
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

Justus Winter

unread,
Mar 11, 2012, 1:50:01 PM3/11/12
to
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

Ondřej Surý

unread,
Mar 13, 2012, 11:10:01 AM3/13/12
to
On Tue, Mar 13, 2012 at 15:47, Marvin Renich <mr...@renich.org> wrote:
> * Justus Winter <4wi...@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>

Marvin Renich

unread,
Mar 13, 2012, 11:10:01 AM3/13/12
to
* Justus Winter <4wi...@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
0 new messages