public inbox for gentoo-musl@lists.gentoo.org
 help / color / mirror / Atom feed
* [gentoo-musl] Compiling golang (dev-lang/go) against musl-libc
@ 2017-02-21 11:31 James Taylor
  2017-02-21 20:44 ` Stuart Longland
  2017-02-21 20:57 ` Samuel Holland
  0 siblings, 2 replies; 3+ messages in thread
From: James Taylor @ 2017-02-21 11:31 UTC (permalink / raw
  To: gentoo-musl

[-- Attachment #1: Type: text/plain, Size: 320 bytes --]

Hi,

I’ve attempted (and consequently failed) to compile go so I can install mongodb on my gentoo installation.

This appears to fail because the bootstrapped for go contains a binary dynamically linked against glibc, which is obviously going to fail.

Anyone have suggestions?

—
Regards,

James Taylor

[-- Attachment #2: Message signed with OpenPGP --]
[-- Type: application/pgp-signature, Size: 455 bytes --]

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [gentoo-musl] Compiling golang (dev-lang/go) against musl-libc
  2017-02-21 11:31 [gentoo-musl] Compiling golang (dev-lang/go) against musl-libc James Taylor
@ 2017-02-21 20:44 ` Stuart Longland
  2017-02-21 20:57 ` Samuel Holland
  1 sibling, 0 replies; 3+ messages in thread
From: Stuart Longland @ 2017-02-21 20:44 UTC (permalink / raw
  To: gentoo-musl

On 21/02/17 21:31, James Taylor wrote:
> I’ve attempted (and consequently failed) to compile go so I can install mongodb on my gentoo installation.
> 
> This appears to fail because the bootstrapped for go contains a binary dynamically linked against glibc, which is obviously going to fail.
> 
> Anyone have suggestions?

The only thing that comes to mind here is to perhaps try cross-compiling
it from a machine running glibc.
-- 
Stuart Longland (aka Redhatter, VK4MSL)

I haven't lost my mind...
  ...it's backed up on a tape somewhere.


^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [gentoo-musl] Compiling golang (dev-lang/go) against musl-libc
  2017-02-21 11:31 [gentoo-musl] Compiling golang (dev-lang/go) against musl-libc James Taylor
  2017-02-21 20:44 ` Stuart Longland
@ 2017-02-21 20:57 ` Samuel Holland
  1 sibling, 0 replies; 3+ messages in thread
From: Samuel Holland @ 2017-02-21 20:57 UTC (permalink / raw
  To: James Taylor, gentoo-musl

Hello,

On 02/21/17 05:31, James Taylor wrote:
> I’ve attempted (and consequently failed) to compile go so I can
> install mongodb on my gentoo installation.
>
> This appears to fail because the bootstrapped for go contains a
> binary dynamically linked against glibc, which is obviously going to
> fail.
>
> Anyone have suggestions?

Get dev-lang/go/go-1.4.2.ebuild from the portage git history. That's the
last version that does not require bootstrapping. Then move one minor
(1.x) version at a time up from there. Simply change GOROOT_BOOTSTRAP in
src_compile() to /usr/lib/go. For 1.5, you will need to symlink
/usr/bin/go into /usr/lib/go/bin; newer versions do that for you.

> Regards,
> James Taylor
>

Regards,
Samuel Holland


^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2017-02-21 20:57 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-02-21 11:31 [gentoo-musl] Compiling golang (dev-lang/go) against musl-libc James Taylor
2017-02-21 20:44 ` Stuart Longland
2017-02-21 20:57 ` Samuel Holland

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox