Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 09 Jan 2017 15:20:46 +0000
From:      bugzilla-noreply@freebsd.org
To:        freebsd-ports-bugs@FreeBSD.org
Subject:   [Bug 215910] lang/go14: can't build go14 while building lang/go
Message-ID:  <bug-215910-13@https.bugs.freebsd.org/bugzilla/>

next in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D215910

            Bug ID: 215910
           Summary: lang/go14: can't build go14 while building lang/go
           Product: Ports & Packages
           Version: Latest
          Hardware: Any
                OS: Any
            Status: New
          Severity: Affects Only Me
          Priority: ---
         Component: Individual Port(s)
          Assignee: jlaffaye@FreeBSD.org
          Reporter: igor4ml@gmail.com
             Flags: maintainer-feedback?(jlaffaye@FreeBSD.org)
          Assignee: jlaffaye@FreeBSD.org

Got following error while building lang/go on FreeBSD 12 with custom kernel
(also had same problem with FreeBSD 11)

# Building packages and commands for freebsd/amd64.
runtime
go build runtime:
/usr/build/usr/ports/lang/go14/work/go/pkg/tool/freebsd_amd64/6g: pipe:
function not implemented

Problem caused by lack of "pipe" system call, from src/UPDATING:

20160622:
        The libc stub for the pipe(2) system call has been replaced with
        a wrapper that calls the pipe2(2) system call and the pipe(2)
        system call is now only implemented by the kernels that include
        "options COMPAT_FREEBSD10" in their config file (this is the
        default).  Users should ensure that this option is enabled in
        their kernel or upgrade userspace to r302092 before upgrading their
        kernel.

I tried to add support for pipe2 system call to Go runtime sources (really =
just
copied it from pipe_linux.go) but a little later I got error about fork/exe=
c.

Now I'm rebuilding kernel with COMPAT_FREEBSD10.

--=20
You are receiving this mail because:
You are the assignee for the bug.=



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-215910-13>