Account Options

  1. Sign in
The old Google Groups will be going away soon, but your browser is incompatible with the new version.
Google Groups Home
« Groups Home
Bug#658421: golang-weekly: "go build" and "go install" fail
There are currently too many topics in this group that display first. To make this topic appear first, remove this option from another topic.
There was an error processing your request. Please try again.
flag
  6 messages - Collapse all  -  Translate all to Translated (View all originals)
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
Justus Winter  
View profile  
 More options Mar 3 2012, 1:10 pm
Newsgroups: linux.debian.bugs.dist
From: Justus Winter <4win...@informatik.uni-hamburg.de>
Date: Sat, 03 Mar 2012 19:10:01 +0100
Local: Sat, Mar 3 2012 1:10 pm
Subject: 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


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Ondřej Surư  
View profile  
 More options Mar 3 2012, 2:50 pm
Newsgroups: linux.debian.bugs.dist
From: Ondřej Surư <ond...@sury.org>
Date: Sat, 03 Mar 2012 20:50:02 +0100
Local: Sat, Mar 3 2012 2:50 pm
Subject: 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


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Justus Winter  
View profile  
 More options Mar 4 2012, 10:10 am
Newsgroups: linux.debian.bugs.dist
From: Justus Winter <4win...@informatik.uni-hamburg.de>
Date: Sun, 04 Mar 2012 16:10:03 +0100
Local: Sun, Mar 4 2012 10:10 am
Subject: 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


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Justus Winter  
View profile  
 More options Mar 11 2012, 1:50 pm
Newsgroups: linux.debian.bugs.dist
From: Justus Winter <4win...@informatik.uni-hamburg.de>
Date: Sun, 11 Mar 2012 18:50:01 +0100
Local: Sun, Mar 11 2012 1:50 pm
Subject: 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


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Ondřej Surư  
View profile  
 More options Mar 13 2012, 11:10 am
Newsgroups: linux.debian.bugs.dist
From: Ondřej Surư <ond...@sury.org>
Date: Tue, 13 Mar 2012 16:10:01 +0100
Local: Tues, Mar 13 2012 11:10 am
Subject: Bug#658421: golang-weekly: "go build" and "go install" fail

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


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Marvin Renich  
View profile  
 More options Mar 13 2012, 11:10 am
Newsgroups: linux.debian.bugs.dist
From: Marvin Renich <m...@renich.org>
Date: Tue, 13 Mar 2012 16:10:01 +0100
Local: Tues, Mar 13 2012 11:10 am
Subject: 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


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
End of messages
« Back to Discussions « Newer topic     Older topic »