From debbugs-submit-bounces@debbugs.gnu.org Thu Aug 24 16:52:13 2017 Received: (at submit) by debbugs.gnu.org; 24 Aug 2017 20:52:13 +0000 Received: from localhost ([127.0.0.1]:53242 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dkz6l-00041S-4y for submit@debbugs.gnu.org; Thu, 24 Aug 2017 16:52:13 -0400 Received: from eggs.gnu.org ([208.118.235.92]:53136) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dkz6f-00040v-TI for submit@debbugs.gnu.org; Thu, 24 Aug 2017 16:52:06 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1dkz6Z-0003S0-6G for submit@debbugs.gnu.org; Thu, 24 Aug 2017 16:51:56 -0400 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=0.8 required=5.0 tests=BAYES_50 autolearn=disabled version=3.3.2 Received: from lists.gnu.org ([2001:4830:134:3::11]:44820) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1dkz6Z-0003Rv-2X for submit@debbugs.gnu.org; Thu, 24 Aug 2017 16:51:55 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:44094) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dkz6X-0005VD-4Y for guix-patches@gnu.org; Thu, 24 Aug 2017 16:51:54 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1dkz6T-0003Qf-PV for guix-patches@gnu.org; Thu, 24 Aug 2017 16:51:53 -0400 Received: from flashner.co.il ([178.62.234.194]:56645) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dkz6T-0003QH-DM for guix-patches@gnu.org; Thu, 24 Aug 2017 16:51:49 -0400 Received: from localhost (46-117-130-79.bb.netvision.net.il [46.117.130.79]) by flashner.co.il (Postfix) with ESMTPSA id 9DE7640221 for ; Thu, 24 Aug 2017 20:51:47 +0000 (UTC) Date: Thu, 24 Aug 2017 23:51:46 +0300 From: Efraim Flashner To: guix-patches@gnu.org Subject: Build go with gccgo Message-ID: <20170824205146.GM2484@macbook42.flashner.co.il> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="XVTPT6MZt3zd/C+/" Content-Disposition: inline User-Agent: Mutt/1.8.3 (2017-05-23) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] [fuzzy] X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x X-Received-From: 2001:4830:134:3::11 X-Spam-Score: -4.0 (----) X-Debbugs-Envelope-To: submit X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: 1.0 (+) --XVTPT6MZt3zd/C+/ Content-Type: multipart/mixed; boundary="vDEbda84Uy/oId5W" Content-Disposition: inline --vDEbda84Uy/oId5W Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable I need some help testing this on x86_64, I did all the building and testing on aarch64. It turns out there's a known issues in the cgo implementation that causes the test suite to fail on aarch64. With this patch set I was able to build gccgo@7 -> go@1.7 -> lfam's syncthing. --=20 Efraim Flashner =D7=90=D7=A4=D7=A8=D7=99=D7=9D = =D7=A4=D7=9C=D7=A9=D7=A0=D7=A8 GPG key =3D A28B F40C 3E55 1372 662D 14F7 41AA E7DC CA3D 8351 Confidentiality cannot be guaranteed on emails sent or received unencrypted --vDEbda84Uy/oId5W Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0001-gnu-custom-gcc-Add-flag-to-optionally-not-remove-con.patch" Content-Transfer-Encoding: quoted-printable =46rom 83bfb82f4da6fb23d3b64c7e23f9db001c85b283 Mon Sep 17 00:00:00 2001 =46rom: Efraim Flashner Date: Mon, 7 Aug 2017 22:56:57 +0300 Subject: [PATCH 1/3] gnu: custom-gcc: Add flag to optionally not remove conflicting files. * gnu/packages/gcc.scm (custom-gcc): Add flag to optionally keep the files that would conflict with gcc. --- gnu/packages/gcc.scm | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/gnu/packages/gcc.scm b/gnu/packages/gcc.scm index bb8570bec..a22bb3c25 100644 --- a/gnu/packages/gcc.scm +++ b/gnu/packages/gcc.scm @@ -485,7 +485,8 @@ using compilers other than GCC." (define* (custom-gcc gcc name languages #:optional (search-paths (package-native-search-paths gcc)) - #:key (separate-lib-output? #t)) + #:key (separate-lib-output? #t) + (remove-conflicting-files? #t)) "Return a custom version of GCC that supports LANGUAGES. Use SEARCH-PAT= HS as the 'native-search-paths' field." (package (inherit gcc) @@ -508,12 +509,14 @@ as the 'native-search-paths' field." ,flags))) ((#:phases phases) `(modify-phases ,phases - (add-after 'install 'remove-broken-or-conflicting-files + ,@(if remove-conflicting-files? + `((add-after 'install 'remove-broken-or-conflicting-files (lambda* (#:key outputs #:allow-other-keys) (for-each delete-file (find-files (string-append (assoc-ref outputs "ou= t") "/bin") ".*(c\\+\\+|cpp|g\\+\\+|gcov|gcc.*)")) - #t)))))))) + #t))) + '()))))))) =20 (define %generic-search-paths ;; This is the language-neutral search path for GCC. Entries in $CPATH = are --=20 2.14.0 --vDEbda84Uy/oId5W Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0002-gnu-Add-gccgo-7.patch" Content-Transfer-Encoding: quoted-printable =46rom fbdf746826b308a9d23644fbb5bea93dee5e85e9 Mon Sep 17 00:00:00 2001 =46rom: Efraim Flashner Date: Mon, 7 Aug 2017 22:59:22 +0300 Subject: [PATCH 2/3] gnu: Add gccgo@7. * gnu/packages/gcc.scm (gccgo@7): New variable. * gnu/packages/gcc.scm (gcc@7)[source]: Add patch. * gnu/packages/patches/gcc-7.1-go-runpath.patch: New file. * gnu/local.mk (dist_patch_DATA): Register it. --- gnu/local.mk | 1 + gnu/packages/gcc.scm | 15 ++++++++++++++- gnu/packages/patches/gcc-7.1-go-runpath.patch | 10 ++++++++++ 3 files changed, 25 insertions(+), 1 deletion(-) create mode 100644 gnu/packages/patches/gcc-7.1-go-runpath.patch diff --git a/gnu/local.mk b/gnu/local.mk index 8c00b0020..ee9429770 100644 --- a/gnu/local.mk +++ b/gnu/local.mk @@ -623,6 +623,7 @@ dist_patch_DATA =3D \ %D%/packages/patches/gcc-5-source-date-epoch-2.patch \ %D%/packages/patches/gcc-6-arm-none-eabi-multilib.patch \ %D%/packages/patches/gcc-6-cross-environment-variables.patch \ + %D%/packages/patches/gcc-7.1-go-runpath.patch \ %D%/packages/patches/gcr-disable-failing-tests.patch \ %D%/packages/patches/gcr-fix-collection-tests-to-work-with-gpg-21.patch \ %D%/packages/patches/gdk-pixbuf-list-dir.patch \ diff --git a/gnu/packages/gcc.scm b/gnu/packages/gcc.scm index a22bb3c25..9cf347f76 100644 --- a/gnu/packages/gcc.scm +++ b/gnu/packages/gcc.scm @@ -414,7 +414,8 @@ Go. It also includes runtime support libraries for the= se languages.") (base32 "05xwps0ci7wgxh50askpa2r9p8518qxdgh6ad7pnyk7n6p13d0ca")) (patches (search-patches "gcc-strmov-store-file-names.patch" - "gcc-5.0-libvtv-runpath.patch")))))) + "gcc-5.0-libvtv-runpath.patch" + "gcc-7.1-go-runpath.patch")))))) =20 ;; Note: When changing the default gcc version, update ;; the gcc-toolchain-* definitions and the gfortran definition @@ -565,6 +566,18 @@ as the 'native-search-paths' field." ;; a cyclic dependency. #:separate-lib-output? #f)) =20 +(define-public gccgo-7 + (custom-gcc gcc-7 "gccgo" '("go") + %generic-search-paths + ;; Suppress the separate "lib" output, because otherwise the + ;; "lib" and "out" outputs would refer to each other, creati= ng + ;; a cyclic dependency. + #:separate-lib-output? #f + ;; When building go, it is expected to use the same GCC outp= ut + ;; for gcc and for gccgo, so we compile go with the gcc from + ;; this build. + #:remove-conflicting-files? #f)) + (define-public gcc-objc-4.8 (custom-gcc gcc-4.8 "gcc-objc" '("objc") (list (search-path-specification diff --git a/gnu/packages/patches/gcc-7.1-go-runpath.patch b/gnu/packages/p= atches/gcc-7.1-go-runpath.patch new file mode 100644 index 000000000..d7d91301e --- /dev/null +++ b/gnu/packages/patches/gcc-7.1-go-runpath.patch @@ -0,0 +1,10 @@ +--- gcc-7.1.0/gotools/Makefile.in ++++ gcc-7.1.0/gotools/Makefile.in +@@ -258,6 +258,6 @@ + # Use the compiler we just built. + @NATIVE_TRUE@GOCOMPILER =3D $(GOC_FOR_TARGET) $(XGCC_FLAGS_FOR_TARGET) + GOCOMPILE =3D $(GOCOMPILER) $(GOCFLAGS) +-AM_LDFLAGS =3D -L $(libgodir) -L $(libgodir)/.libs ++AM_LDFLAGS =3D -Wl,-rpath=3D$(libdir) -L $(libgodir) -L $(libgodir)/.libs + GOLINK =3D $(GOCOMPILER) $(GOCFLAGS) $(AM_GOCFLAGS) $(LDFLAGS) $(AM_LDFLA= GS) -o $@ + cmdsrcdir =3D $(srcdir)/../libgo/go/cmd --=20 2.14.0 --vDEbda84Uy/oId5W Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0003-gnu-go-Build-with-gccgo-7.patch" Content-Transfer-Encoding: quoted-printable =46rom 5b3e3ed9e8fddb36b7d884ab5d2dd6f0a4ad5220 Mon Sep 17 00:00:00 2001 =46rom: Efraim Flashner Date: Mon, 7 Aug 2017 23:09:29 +0300 Subject: [PATCH 3/3] gnu: go: Build with gccgo@7. * gnu/packages/golang.scm (go@1.8)[inputs]: Remove gcc-lib. [native-inputs]: Remove go@1.4, add gccgo@7. --- gnu/packages/golang.scm | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/gnu/packages/golang.scm b/gnu/packages/golang.scm index 70cae6d87..3dee1d72b 100644 --- a/gnu/packages/golang.scm +++ b/gnu/packages/golang.scm @@ -1,5 +1,5 @@ ;;; GNU Guix --- Functional package management for GNU -;;; Copyright =C2=A9 2016 Efraim Flashner +;;; Copyright =C2=A9 2016, 2017 Efraim Flashner ;;; Copyright =C2=A9 2016 Matthew Jordan ;;; Copyright =C2=A9 2016 Andy Wingo ;;; Copyright =C2=A9 2016 Ludovic Court=C3=A8s @@ -219,7 +219,7 @@ sequential processes (CSP) concurrent programming featu= res added.") (replace 'prebuild ;; TODO: Most of this could be factorized with Go 1.4. (lambda* (#:key inputs outputs #:allow-other-keys) - (let* ((gcclib (string-append (assoc-ref inputs "gcc:lib") = "/lib")) + (let* ((gcclib (string-append (assoc-ref inputs "go") "/lib= ")) (ld (string-append (assoc-ref inputs "libc") "/lib")) (loader (car (find-files ld "^ld-linux.+"))) (net-base (assoc-ref inputs "net-base")) @@ -362,8 +362,11 @@ sequential processes (CSP) concurrent programming feat= ures added.") "LICENSE" "VERSION" "CONTRIBUTING.md" "robots.txt")) =20 (copy-recursively "../" output)))))))) + (inputs + `(("tzdata" ,tzdata) + ("pcre" ,pcre))) (native-inputs - `(("go" ,go-1.4) + `(("go" ,gccgo-7) ,@(package-native-inputs go-1.4))))) =20 (define-public go go-1.8) --=20 2.14.0 --vDEbda84Uy/oId5W-- --XVTPT6MZt3zd/C+/ Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAEBCgAdFiEEoov0DD5VE3JmLRT3Qarn3Mo9g1EFAlmfPGIACgkQQarn3Mo9 g1GXrQ//ZsnEc7Cl7lADz0ftcF6d58A3rMa47VTZk0QozNnHjH0eeoUNpMcTeLct IXqOSYvg9TCNWSpn0RV3uvJyYqL/cAXQ3urR46WlxWLWoPcTbsCSBRk63Ib6Cvin 74r2kp1fllyLoVX9tJX18uH4jbBZ9DBqeywTkLdj0XQuKMb3ms22fMaxX/jn/81c DPSKUKK2fQQFaeVKeDyPDEMPlwzdKEQj1nWTSvAUXofWFbvUARKhoHkvS/E42+cF n5MtirsX61BcELhm7s3M9R/lGlpjfxZj9UO+QcvA811LsqetuzLnFUqAgYAmMyU9 lg7owSKKfe7Z58w041HIMqsq9KlXtW7ua2RI7K+dEfbp5btrOhLxMHfsZnocLZxz mqZw8S4IPqua+6Z0hUSdAmQKcJHhlyybW0B2FKudeFBQC2aPPrzI019QTata9rxD sVubl+JxNG9uKcpNANKtfcP0huO6OcETOEk+d+RHR8O/QB7bbbx9Obr/Qee6EbBC MxzWM4WXmTE48/od8UWQr8Si2nqk6hEvL/nymiYA+2GZCxPxv9T5dgRx1CcwdeSV 07kIX8N86L5s5uxUN1CuDMMnGBUQ1qncACyj6kJ2JdflUf3ejudPNTnxUyWwELex PbWNUFFu2G1G9GeAkguooW+uXLgsDuhhyXLvB4hmEgHsZ6+Gjo8= =D0HC -----END PGP SIGNATURE----- --XVTPT6MZt3zd/C+/-- From debbugs-submit-bounces@debbugs.gnu.org Tue Sep 12 05:59:40 2017 Received: (at 28226) by debbugs.gnu.org; 12 Sep 2017 09:59:40 +0000 Received: from localhost ([127.0.0.1]:34776 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1drhym-0001LH-Ah for submit@debbugs.gnu.org; Tue, 12 Sep 2017 05:59:40 -0400 Received: from mail-wm0-f53.google.com ([74.125.82.53]:43887) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1drhyj-0001Kr-Rj for 28226@debbugs.gnu.org; Tue, 12 Sep 2017 05:59:38 -0400 Received: by mail-wm0-f53.google.com with SMTP id a137so15477497wma.0 for <28226@debbugs.gnu.org>; Tue, 12 Sep 2017 02:59:37 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc; bh=0fgEpb1mRkgsI1YXGijzKyaYi6i11f8zmKDP8ceK6qo=; b=tuBqaYJppwUTuGlISaojoh6RaDMo2AK3D3WNXFVnfu7JfF6ef5pzC5YNdi3OE0MMnJ TCskF/nIiKUAw9U6BWKsE6kuLjagMUPvT7d/9eAA0wVDNnixxt/EvoJlcgUrXRo9aAWp 7hWZlrNKScPDHk/ypt58MtDibROcsvyJzsv0MCtwnaPcIrqqXaJkNTVteeGSXGMoeEMQ ACuqc5qLLDW5mPscz1bKPvezxYqEmWD13AcvWw9gDdTQLmyFqspBdQzNsEahYU5+MAIa 1tY+c18wda0qEpVVcSXEpmSRXZFxIbQRXNabfkMEZzb9jkS7r9pY1YaH3ff7dQ94+yzI LkGg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc; bh=0fgEpb1mRkgsI1YXGijzKyaYi6i11f8zmKDP8ceK6qo=; b=MMxLdowkzgx18m4YTIgpuS033GGlUoppuxSW3S98kwCBSAadBb3JOaYHog+Y8pthho EIKfmRMWS72BOeAOle9sfbsPJNqIid00TmIZsYXBe5RfvSTTeLQPLAZxXJUQOSv6CfTb gsaOuGZNmTn4EymvA7NlzNeaibXP/VsDJliRmZJEXzQnezcbMcjhy5RmEyIMxmAoE7HF tpxhxirLJWR5Dmq+0WkvDoaKH8EOfMtOsK7PCH00v/H5ATWyBQyUDOabYZLSK4SpQDOi sAZoeNUunG8aJ1p4xj3dbzw7Is/WXeG4Ws76ndICiNgdDc2wrJu6tAh7JWFPYkhSlycz dzlQ== X-Gm-Message-State: AHPjjUhuYvATccvabHsYrpPeuhVJ+FZPDANVA6iwavnIYM8nMmNNj6ep 3P0viF6eXdg3I5ywmejDL21OFWiNbw== X-Google-Smtp-Source: ADKCNb7Lz8Vv8qPuVTb0TBQAjgdJ2QQTXlfizxb4Nrs3GLvUcShUpBLPuwoGFaExiL3Lmy0DoFnqMeaLP8FJjZrxNjI= X-Received: by 10.80.139.145 with SMTP id m17mr11903732edm.304.1505210371847; Tue, 12 Sep 2017 02:59:31 -0700 (PDT) MIME-Version: 1.0 Received: by 10.80.161.103 with HTTP; Tue, 12 Sep 2017 02:59:31 -0700 (PDT) In-Reply-To: <20170824205146.GM2484@macbook42.flashner.co.il> References: <20170824205146.GM2484@macbook42.flashner.co.il> From: Catonano Date: Tue, 12 Sep 2017 11:59:31 +0200 Message-ID: Subject: Re: [bug#28226] Build go with gccgo To: Efraim Flashner Content-Type: multipart/alternative; boundary="f403045c199086bb400558fb1948" X-Spam-Score: 0.5 (/) X-Debbugs-Envelope-To: 28226 Cc: 28226@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: 0.5 (/) --f403045c199086bb400558fb1948 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable 2017-08-24 22:51 GMT+02:00 Efraim Flashner : > I need some help testing this on x86_64, I did all the building and > testing on aarch64. It turns out there's a known issues in the cgo > implementation that causes the test suite to fail on aarch64. With this > patch set I was able to build gccgo@7 -> go@1.7 -> lfam's syncthing. > I can't apply these patches ~/projects/guix$ git am 0001-gnu-custom-gcc-Add-flag-to-optionally-not-remove-con.patch Applying: gnu: custom-gcc: Add flag to optionally not remove conflicting files. ~/projects/guix$ git am 0002-gnu-Add-gccgo-7.patch Applying: gnu: Add gccgo@7. error: patch non riuscita: gnu/packages/gcc.scm:414 error: gnu/packages/gcc.scm: la patch non pu=C3=B2 essere applicata Patch failed at 0001 gnu: Add gccgo@7. The copy of the patch that failed is found in: .git/rebase-apply/patch When you have resolved this problem, run "git am --continue". If you prefer to skip this patch, run "git am --skip" instead. To restore the original branch and stop patching, run "git am --abort". I don't know what these patches do, I was just trying to apply them in order (1, 2, 3) Should I follow a different order ? I would have attempted to build this thing I git pulled on master right now ( 12 september) and created a branch for thhese patches and git am'ed there --f403045c199086bb400558fb1948 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
2017-08-24 22:51 GMT+02:00 Efraim Flashner <efraim@fl= ashner.co.il>:
I need some help testing this on = x86_64, I did all the building and
testing on aarch64. It turns out there's a known issues in the cgo
implementation that causes the test suite to fail on aarch64. With this
patch set I was able to build gccgo@7 -> go@1.7 -> lfam's syncthi= ng.

I can't = apply these patches

~/projects/guix$ git am 0001-gnu-custom-gcc-Add-= flag-to-optionally-not-remove-con.patch
Applying: gnu: custom-gcc: Add f= lag to optionally not remove conflicting files.

~/projects/guix$ git= am 0002-gnu-Add-gccgo-7.patch
Applying: gnu: Add gccgo@7.
error: pat= ch non riuscita: gnu/packages/gcc.scm:414
error: gnu/packages/gcc.scm: l= a patch non pu=C3=B2 essere applicata
Patch failed at 0001 gnu: Add gccg= o@7.
The copy of the patch that failed is found in: .git/rebase-apply/pa= tch
When you have resolved this problem, run "git am --continue&quo= t;.
If you prefer to skip this patch, run "git am --skip" inst= ead.
To restore the original branch and stop patching, run "git am = --abort".


I don't know what these patches do= , I was just trying to apply them in order (1, 2, 3)

Sho= uld I follow a different order ?

I would have attempted t= o build this thing

I git pulled on master right now ( 12 = september) and created a branch for thhese patches and git am'ed there<= br>

--f403045c199086bb400558fb1948-- From debbugs-submit-bounces@debbugs.gnu.org Tue Sep 12 06:45:06 2017 Received: (at 28226) by debbugs.gnu.org; 12 Sep 2017 10:45:06 +0000 Received: from localhost ([127.0.0.1]:34798 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1drige-0002ZN-Rp for submit@debbugs.gnu.org; Tue, 12 Sep 2017 06:45:06 -0400 Received: from flashner.co.il ([178.62.234.194]:48400) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1drigZ-0002Z5-F0 for 28226@debbugs.gnu.org; Tue, 12 Sep 2017 06:44:58 -0400 Received: from localhost (46-117-130-79.bb.netvision.net.il [46.117.130.79]) by flashner.co.il (Postfix) with ESMTPSA id 55E4C40362; Tue, 12 Sep 2017 10:44:49 +0000 (UTC) Date: Tue, 12 Sep 2017 13:44:47 +0300 From: Efraim Flashner To: Catonano Subject: Re: [bug#28226] Build go with gccgo Message-ID: <20170912104447.GA3972@macbook42.flashner.co.il> References: <20170824205146.GM2484@macbook42.flashner.co.il> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="JP+T4n/bALQSJXh8" Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.8.3 (2017-05-23) X-Spam-Score: -0.0 (/) X-Debbugs-Envelope-To: 28226 Cc: 28226@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -0.0 (/) --JP+T4n/bALQSJXh8 Content-Type: multipart/mixed; boundary="0OAP2g/MAC+5xKAE" Content-Disposition: inline --0OAP2g/MAC+5xKAE Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Tue, Sep 12, 2017 at 11:59:31AM +0200, Catonano wrote: > 2017-08-24 22:51 GMT+02:00 Efraim Flashner : >=20 > > I need some help testing this on x86_64, I did all the building and > > testing on aarch64. It turns out there's a known issues in the cgo > > implementation that causes the test suite to fail on aarch64. With this > > patch set I was able to build gccgo@7 -> go@1.7 -> lfam's syncthing. > > >=20 > I can't apply these patches >=20 > ~/projects/guix$ git am > 0001-gnu-custom-gcc-Add-flag-to-optionally-not-remove-con.patch > Applying: gnu: custom-gcc: Add flag to optionally not remove conflicting > files. >=20 > ~/projects/guix$ git am 0002-gnu-Add-gccgo-7.patch > Applying: gnu: Add gccgo@7. > error: patch non riuscita: gnu/packages/gcc.scm:414 > error: gnu/packages/gcc.scm: la patch non pu=C3=B2 essere applicata > Patch failed at 0001 gnu: Add gccgo@7. > The copy of the patch that failed is found in: .git/rebase-apply/patch > When you have resolved this problem, run "git am --continue". > If you prefer to skip this patch, run "git am --skip" instead. > To restore the original branch and stop patching, run "git am --abort". >=20 >=20 > I don't know what these patches do, I was just trying to apply them in > order (1, 2, 3) >=20 > Should I follow a different order ? >=20 > I would have attempted to build this thing >=20 > I git pulled on master right now ( 12 september) and created a branch for > thhese patches and git am'ed there I've reattached the patches, seems they don't apply cleanly anymore --=20 Efraim Flashner =D7=90=D7=A4=D7=A8=D7=99=D7=9D = =D7=A4=D7=9C=D7=A9=D7=A0=D7=A8 GPG key =3D A28B F40C 3E55 1372 662D 14F7 41AA E7DC CA3D 8351 Confidentiality cannot be guaranteed on emails sent or received unencrypted --0OAP2g/MAC+5xKAE Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0001-gnu-custom-gcc-Add-flag-to-optionally-not-remove-con.patch" Content-Transfer-Encoding: quoted-printable =46rom 649980fb84726ba758f68e40b836974148154428 Mon Sep 17 00:00:00 2001 =46rom: Efraim Flashner Date: Mon, 7 Aug 2017 22:56:57 +0300 Subject: [PATCH 1/3] gnu: custom-gcc: Add flag to optionally not remove conflicting files. * gnu/packages/gcc.scm (custom-gcc): Add flag to optionally keep the files that would conflict with gcc. --- gnu/packages/gcc.scm | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/gnu/packages/gcc.scm b/gnu/packages/gcc.scm index da4d66ce36..14a49b9aac 100644 --- a/gnu/packages/gcc.scm +++ b/gnu/packages/gcc.scm @@ -486,7 +486,8 @@ using compilers other than GCC." (define* (custom-gcc gcc name languages #:optional (search-paths (package-native-search-paths gcc)) - #:key (separate-lib-output? #t)) + #:key (separate-lib-output? #t) + (remove-conflicting-files? #t)) "Return a custom version of GCC that supports LANGUAGES. Use SEARCH-PAT= HS as the 'native-search-paths' field." (package (inherit gcc) @@ -509,12 +510,14 @@ as the 'native-search-paths' field." ,flags))) ((#:phases phases) `(modify-phases ,phases - (add-after 'install 'remove-broken-or-conflicting-files + ,@(if remove-conflicting-files? + `((add-after 'install 'remove-broken-or-conflicting-files (lambda* (#:key outputs #:allow-other-keys) (for-each delete-file (find-files (string-append (assoc-ref outputs "ou= t") "/bin") ".*(c\\+\\+|cpp|g\\+\\+|gcov|gcc.*)")) - #t)))))))) + #t))) + '()))))))) =20 (define %generic-search-paths ;; This is the language-neutral search path for GCC. Entries in $CPATH = are --=20 2.14.1 --0OAP2g/MAC+5xKAE Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0002-gnu-Add-gccgo-7.patch" Content-Transfer-Encoding: quoted-printable =46rom 6917ddf5d319df740b63e5a2f50c7d0da0bbfea9 Mon Sep 17 00:00:00 2001 =46rom: Efraim Flashner Date: Mon, 7 Aug 2017 22:59:22 +0300 Subject: [PATCH 2/3] gnu: Add gccgo@7. * gnu/packages/gcc.scm (gccgo@7): New variable. * gnu/packages/gcc.scm (gcc@7)[source]: Add patch. * gnu/packages/patches/gcc-7.1-go-runpath.patch: New file. * gnu/local.mk (dist_patch_DATA): Register it. --- gnu/local.mk | 1 + gnu/packages/gcc.scm | 15 ++++++++++++++- gnu/packages/patches/gcc-7.1-go-runpath.patch | 13 +++++++++++++ 3 files changed, 28 insertions(+), 1 deletion(-) create mode 100644 gnu/packages/patches/gcc-7.1-go-runpath.patch diff --git a/gnu/local.mk b/gnu/local.mk index 643a88db81..9b61b16578 100644 --- a/gnu/local.mk +++ b/gnu/local.mk @@ -628,6 +628,7 @@ dist_patch_DATA =3D \ %D%/packages/patches/gcc-5-source-date-epoch-2.patch \ %D%/packages/patches/gcc-6-arm-none-eabi-multilib.patch \ %D%/packages/patches/gcc-6-cross-environment-variables.patch \ + %D%/packages/patches/gcc-7.1-go-runpath.patch \ %D%/packages/patches/gcr-disable-failing-tests.patch \ %D%/packages/patches/gcr-fix-collection-tests-to-work-with-gpg-21.patch \ %D%/packages/patches/gdk-pixbuf-list-dir.patch \ diff --git a/gnu/packages/gcc.scm b/gnu/packages/gcc.scm index 14a49b9aac..aca2e19696 100644 --- a/gnu/packages/gcc.scm +++ b/gnu/packages/gcc.scm @@ -415,7 +415,8 @@ Go. It also includes runtime support libraries for the= se languages.") (base32 "16j7i0888j2f1yp9l0nhji6cq65dy6y4nwy8868a8njbzzwavxqw")) (patches (search-patches "gcc-strmov-store-file-names.patch" - "gcc-5.0-libvtv-runpath.patch")))))) + "gcc-5.0-libvtv-runpath.patch" + "gcc-7.1-go-runpath.patch")))))) =20 ;; Note: When changing the default gcc version, update ;; the gcc-toolchain-* definitions and the gfortran definition @@ -566,6 +567,18 @@ as the 'native-search-paths' field." ;; a cyclic dependency. #:separate-lib-output? #f)) =20 +(define-public gccgo-7 + (custom-gcc gcc-7 "gccgo" '("go") + %generic-search-paths + ;; Suppress the separate "lib" output, because otherwise the + ;; "lib" and "out" outputs would refer to each other, creati= ng + ;; a cyclic dependency. + #:separate-lib-output? #f + ;; When building go, it is expected to use the same GCC outp= ut + ;; for gcc and for gccgo, so we compile go with the gcc from + ;; this build. + #:remove-conflicting-files? #f)) + (define-public gcc-objc-4.8 (custom-gcc gcc-4.8 "gcc-objc" '("objc") (list (search-path-specification diff --git a/gnu/packages/patches/gcc-7.1-go-runpath.patch b/gnu/packages/p= atches/gcc-7.1-go-runpath.patch new file mode 100644 index 0000000000..e1ff2fc034 --- /dev/null +++ b/gnu/packages/patches/gcc-7.1-go-runpath.patch @@ -0,0 +1,13 @@ +--- gcc-7.1.0/gotools/Makefile.in ++++ gcc-7.1.0/gotools/Makefile.in +@@ -258,6 +258,6 @@ + # Use the compiler we just built. + @NATIVE_TRUE@GOCOMPILER =3D $(GOC_FOR_TARGET) $(XGCC_FLAGS_FOR_TARGET) + GOCOMPILE =3D $(GOCOMPILER) $(GOCFLAGS) +-AM_LDFLAGS =3D -L $(libgodir) -L $(libgodir)/.libs ++AM_LDFLAGS =3D -Wl,-rpath=3D$(libdir) -L $(libgodir) -L $(libgodir)/.libs + GOLINK =3D $(GOCOMPILER) $(GOCFLAGS) $(AM_GOCFLAGS) $(LDFLAGS) $(AM_LDFLA= GS) -o $@ + cmdsrcdir =3D $(srcdir)/../libgo/go/cmd +--=20 +2.14.0 + --=20 2.14.1 --0OAP2g/MAC+5xKAE Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0003-gnu-go-Build-with-gccgo-7.patch" Content-Transfer-Encoding: quoted-printable =46rom 5ae1423b545a1284a840ee883e2781bb92b49741 Mon Sep 17 00:00:00 2001 =46rom: Efraim Flashner Date: Mon, 7 Aug 2017 23:09:29 +0300 Subject: [PATCH 3/3] gnu: go: Build with gccgo@7. * gnu/packages/golang.scm (go@1.8)[inputs]: Remove gcc-lib. [native-inputs]: Remove go@1.4, add gccgo@7. --- gnu/packages/golang.scm | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/gnu/packages/golang.scm b/gnu/packages/golang.scm index 9f3ccc8f69..be5f2f8e37 100644 --- a/gnu/packages/golang.scm +++ b/gnu/packages/golang.scm @@ -1,5 +1,5 @@ ;;; GNU Guix --- Functional package management for GNU -;;; Copyright =C2=A9 2016 Efraim Flashner +;;; Copyright =C2=A9 2016, 2017 Efraim Flashner ;;; Copyright =C2=A9 2016 Matthew Jordan ;;; Copyright =C2=A9 2016 Andy Wingo ;;; Copyright =C2=A9 2016 Ludovic Court=C3=A8s @@ -220,7 +220,7 @@ sequential processes (CSP) concurrent programming featu= res added.") (replace 'prebuild ;; TODO: Most of this could be factorized with Go 1.4. (lambda* (#:key inputs outputs #:allow-other-keys) - (let* ((gcclib (string-append (assoc-ref inputs "gcc:lib") = "/lib")) + (let* ((gcclib (string-append (assoc-ref inputs "go") "/lib= ")) (ld (string-append (assoc-ref inputs "libc") "/lib")) (loader (car (find-files ld "^ld-linux.+"))) (net-base (assoc-ref inputs "net-base")) @@ -370,8 +370,11 @@ sequential processes (CSP) concurrent programming feat= ures added.") "LICENSE" "VERSION" "CONTRIBUTING.md" "robots.txt")) =20 (copy-recursively "../" output)))))))) + (inputs + `(("tzdata" ,tzdata) + ("pcre" ,pcre))) (native-inputs - `(("go" ,go-1.4) + `(("go" ,gccgo-7) ,@(package-native-inputs go-1.4))))) =20 (define-public go go-1.9) --=20 2.14.1 --0OAP2g/MAC+5xKAE-- --JP+T4n/bALQSJXh8 Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAEBCgAdFiEEoov0DD5VE3JmLRT3Qarn3Mo9g1EFAlm3upkACgkQQarn3Mo9 g1HG/xAApWGWdAPo5yfqCnPrpZC43dN3bHVzj5DhHpHsZgsfuX48kOPSCY988eqb ATM/4rz3Uuo4o23sM5S1QFBijHw6M3EpIm3kllwuhCb58rpQOzCyxWqGcW3wkOmh A2/UO28R81vtlXmTTIrX3tchFea4CYIlkyhg4LtZW3Hg8gXXpvrZ1bYKyd6cpRQw zLvZ9gS98YPoaPyAKC8Ktd1+REXtcoeekjwUDJk4Ln6AkPq2sjfqTqicUPWDtVB6 GEFrakdKgTEFaL3jMrBbPy4lM56ljC+i8HP/eh19Qg9Be8TnmwSps6ifYdhdQJPV dunOj8VrCdiqQ5bNySb+W4hBPJle1oJfYbYcFVaTgA+LW8l/vPmhfF1zFW65fcsR QIAMaFvKNDQBrld6cFPSsrg+YcWzWSAgSVGQ81r982ipBufuHkZWvaujDzVDB59c bPCiqVZE2qIE4xRHYAELTFRpJMOTszJP/ASqcNTl5ilx5bA2c3zZqKujhHn5T32X GuZ/t+h6JC0GjH9HcqlaGUvB+b0XNMWRlOA51WYp8miKEyS0wdL549ViUQQBj2Ur f9xzth8KuhBTtZO9gCmHhOwjosXLLP3+tOx51hWPbsxZeDzFW+tzdztnqQT7nh4b jhH12W7RAa6eNURYsicXbRpnIRgqQmf+GirW7rCZorQpm+T7BjU= =otmL -----END PGP SIGNATURE----- --JP+T4n/bALQSJXh8-- From debbugs-submit-bounces@debbugs.gnu.org Tue Sep 12 08:54:42 2017 Received: (at 28226) by debbugs.gnu.org; 12 Sep 2017 12:54:42 +0000 Received: from localhost ([127.0.0.1]:34906 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1drki9-0007lq-MF for submit@debbugs.gnu.org; Tue, 12 Sep 2017 08:54:42 -0400 Received: from mail-wm0-f47.google.com ([74.125.82.47]:46432) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1drki8-0007lX-9y for 28226@debbugs.gnu.org; Tue, 12 Sep 2017 08:54:41 -0400 Received: by mail-wm0-f47.google.com with SMTP id i189so57789131wmf.1 for <28226@debbugs.gnu.org>; Tue, 12 Sep 2017 05:54:40 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc; bh=R2YzazrdMaNKKdIGhfBh8jhLtix/HLYMYRrk98tBOSE=; b=PWmHRZcqbvZFcqbwm4cRO/5cb+3nz1DMIFhNY0C71vgSqqpOw8KzCZUplj+AHaCGul zJHaZfSBjZWM6Ln6r5Ti54HPdx/SukVh1ICsk4LWbP5UUHqecOpPKw+l2zxLgojvRsZP tYnJlVhrDLhkIgDHJhX0cYuuUL4v25lnDBcjRCt50tI8XrDD3KPfeI6+4LHsb9ZQOBuN QN9bl5zua1QlwTqTLCBjfdg1FhnXGq0ZCUr6iNBzIm3kt9fLzzqwiVxybXWuIxUaa4TL UPALcIlW67scBI02pfwWn6H5kEPKWVIUAHpoNi3Q4XMj3wfaqMiwyiuyAmAvyBx1mcM2 MY+g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc; bh=R2YzazrdMaNKKdIGhfBh8jhLtix/HLYMYRrk98tBOSE=; b=RTTDIhW+ZzdKhwYwrogT5OdyND3PYYIscmLdiH1thJeKIVXgIzNSPUq31AaEs7Jd63 w9XFRcDxBE+lBmklSpvjdszY0gqUQz+e83SNRJBxfdZVOseUR2LWfICWjfaSA0mxGuu+ 7Raz+cR2LSSZ7guRJpInd+NOLb2OgOmZRm9kt5ze8zn+ZWGWr89CNJV6F3j2KwPLH8rb IvkrMN/EDshwiBztPLx43DvtJCcY07YyKbv6BoTIzWPdlCqFNPuC4NbEFK0XkpUFF8Kn 9czJJPK7+pTUyyo1eXC4pPlRC4AJHUpppRlJ6+kGFNKIvyUArXcXoxWznWsmaAzOJRMb v99A== X-Gm-Message-State: AHPjjUixfrJq+BvB+Vg+s9KOpUowNrRPkrPabksIuhbKrbKq3xwFbdBt hxpaREW0HERRXDq8wCrpXXyGirjYBg== X-Google-Smtp-Source: AOwi7QAG1c3Ze1wsjelaEpT4YTpEeGcMyLu5S3nfR1df8hFv56seIr3mhGqknD945aWpQIatalQoom6agbVTTcdzjF0= X-Received: by 10.80.179.120 with SMTP id r53mr2727527edd.174.1505220874166; Tue, 12 Sep 2017 05:54:34 -0700 (PDT) MIME-Version: 1.0 Received: by 10.80.161.103 with HTTP; Tue, 12 Sep 2017 05:54:33 -0700 (PDT) In-Reply-To: <20170912104447.GA3972@macbook42.flashner.co.il> References: <20170824205146.GM2484@macbook42.flashner.co.il> <20170912104447.GA3972@macbook42.flashner.co.il> From: Catonano Date: Tue, 12 Sep 2017 14:54:33 +0200 Message-ID: Subject: Re: [bug#28226] Build go with gccgo To: Efraim Flashner Content-Type: multipart/alternative; boundary="94eb2c0c3c8e8366b70558fd8b83" X-Spam-Score: 0.5 (/) X-Debbugs-Envelope-To: 28226 Cc: 28226@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: 0.5 (/) --94eb2c0c3c8e8366b70558fd8b83 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable 2017-09-12 12:44 GMT+02:00 Efraim Flashner : > On Tue, Sep 12, 2017 at 11:59:31AM +0200, Catonano wrote: > > 2017-08-24 22:51 GMT+02:00 Efraim Flashner : > > > > > I need some help testing this on x86_64, I did all the building and > > > testing on aarch64. It turns out there's a known issues in the cgo > > > implementation that causes the test suite to fail on aarch64. With th= is > > > patch set I was able to build gccgo@7 -> go@1.7 -> lfam's syncthing. > > > > > > > I can't apply these patches > > > > ~/projects/guix$ git am > > 0001-gnu-custom-gcc-Add-flag-to-optionally-not-remove-con.patch > > Applying: gnu: custom-gcc: Add flag to optionally not remove conflictin= g > > files. > > > > ~/projects/guix$ git am 0002-gnu-Add-gccgo-7.patch > > Applying: gnu: Add gccgo@7. > > error: patch non riuscita: gnu/packages/gcc.scm:414 > > error: gnu/packages/gcc.scm: la patch non pu=C3=B2 essere applicata > > Patch failed at 0001 gnu: Add gccgo@7. > > The copy of the patch that failed is found in: .git/rebase-apply/patch > > When you have resolved this problem, run "git am --continue". > > If you prefer to skip this patch, run "git am --skip" instead. > > To restore the original branch and stop patching, run "git am --abort". > > > > > > I don't know what these patches do, I was just trying to apply them in > > order (1, 2, 3) > > > > Should I follow a different order ? > > > > I would have attempted to build this thing > > > > I git pulled on master right now ( 12 september) and created a branch f= or > > thhese patches and git am'ed there > > I've reattached the patches, seems they don't apply cleanly anymore > > This is the last part of the build log Do you need the whole log ? [...] ##### Testing without libgcc. ok crypto/x509 0.662s ok net 0.005s ok os/user 0.007s ##### internal linking of -buildmode=3Dpie ok reflect 0.680s ##### sync -cpu=3D10 ok sync 0.325s ##### ../misc/cgo/stdio ##### ../misc/cgo/life ##### ../misc/cgo/test PASS ok _/tmp/guix-build-go-1.9.drv-0/go/misc/cgo/test 6.050s PASS ok _/tmp/guix-build-go-1.9.drv-0/go/misc/cgo/test 6.250s PASS ok _/tmp/guix-build-go-1.9.drv-0/go/misc/cgo/test 5.827s PASS ok _/tmp/guix-build-go-1.9.drv-0/go/misc/cgo/testtls 0.002s PASS ok _/tmp/guix-build-go-1.9.drv-0/go/misc/cgo/testtls 0.009s PASS ok _/tmp/guix-build-go-1.9.drv-0/go/misc/cgo/testtls 0.001s PASS ok _/tmp/guix-build-go-1.9.drv-0/go/misc/cgo/nocgo 0.002s PASS ok _/tmp/guix-build-go-1.9.drv-0/go/misc/cgo/nocgo 0.002s PASS ok _/tmp/guix-build-go-1.9.drv-0/go/misc/cgo/nocgo 0.002s PASS ok _/tmp/guix-build-go-1.9.drv-0/go/misc/cgo/test 4.177s PASS ok _/tmp/guix-build-go-1.9.drv-0/go/misc/cgo/testtls 0.016s PASS ok _/tmp/guix-build-go-1.9.drv-0/go/misc/cgo/nocgo 0.010s ##### Testing race detector ok runtime/race 4.613s ok flag 1.031s ok os 1.051s ok os/exec 1.028s [no tests to run] PASS scatter =3D 0x610b10 hello from C sqrt is: 0 ok _/tmp/guix-build-go-1.9.drv-0/go/misc/cgo/test 4.708s ok flag 1.031s ok os/exec 1.012s [no tests to run] ##### ../misc/cgo/testgodefs ##### ../misc/cgo/testso ##### ../misc/cgo/testsovar ##### ../misc/cgo/testcarchive PASS ##### ../misc/cgo/testcshared ok ##### ../misc/cgo/testshared --- FAIL: TestGoPathShlibGccgo (0.13s) shared_test.go:65: executing go install -installsuffix=3D5577006791947779410 -compiler=3Dgccgo -buildmode=3Dshared -linkshared depBase failed exit status 2: # /tmp/guix-build-go-1.9.drv-0/go-build895598556/libdepBase.so gccgo: error: unrecognized command line option =E2=80=98-rpath=3D/gnu/store/41938jrv1xlhawdskyhz45vvbzaic60v-gccgo-7.2.0/l= ib=E2=80=99 --- FAIL: TestTwoGopathShlibsGccgo (0.08s) shared_test.go:65: executing go install -installsuffix=3D5577006791947779410 -compiler=3Dgccgo -buildmode=3Dshared -linkshared depBase failed exit status 2: # /tmp/guix-build-go-1.9.drv-0/go-build013538701/libdepBase.so gccgo: error: unrecognized command line option =E2=80=98-rpath=3D/gnu/store/41938jrv1xlhawdskyhz45vvbzaic60v-gccgo-7.2.0/l= ib=E2=80=99 FAIL exit status 1 FAIL _/tmp/guix-build-go-1.9.drv-0/go/misc/cgo/testshared 19.432s 2017/09/12 12:45:19 Failed: exit status 1 ##### ../misc/cgo/testplugin PASS something ##### ../misc/cgo/testasan ##### ../misc/cgo/testsanitizers ./test.bash: line 18: sysctl: command not found skipping msan tests: gcc -fsanitize=3Dmemory not supported ##### ../misc/cgo/errors skipped due to earlier error ##### ../misc/cgo/testsigfwd skipped due to earlier error ##### ../test/bench/go1 skipped due to earlier error ##### ../test skipped due to earlier error ##### API check skipped due to earlier error 2017/09/12 12:45:37 FAILED phase `build' failed after 382.6 seconds builder for `/gnu/store/4k6ag9n2r2239r9cjjkyq76pa9n0bw94-go-1.9.drv' failed with exit code 1 @ build-failed /gnu/store/4k6ag9n2r2239r9cjjkyq76pa9n0bw94-go-1.9.drv - 1 builder for `/gnu/store/4k6ag9n2r2239r9cjjkyq76pa9n0bw94-go-1.9.drv' failed with exit code 1 guix build: error: build failed: build of `/gnu/store/4k6ag9n2r2239r9cjjkyq76pa9n0bw94-go-1.9.drv' failed catonano@xps ~/projects/guix [env]$ --94eb2c0c3c8e8366b70558fd8b83 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable


2017-09-12 12:44 GMT+02:00 Efraim Flashner <efraim@flashner.co.il<= /a>>:
On Tue, Sep 12, 2017 at 11:59:31AM +0200, Catonano wrote: > 2017-08-24 22:51 GMT+02:00 Efraim Flashner <efraim@flashner.co.il>:
>
> > I need some help testing this on x86_64, I did all the building a= nd
> > testing on aarch64. It turns out there's a known issues in th= e cgo
> > implementation that causes the test suite to fail on aarch64. Wit= h this
> > patch set I was able to build gccgo@7 -> go@1.7 -> lfam'= ;s syncthing.
> >
>
> I can't apply these patches
>
> ~/projects/guix$ git am
> 0001-gnu-custom-gcc-Add-flag-to-optionally-not-remove-con.pa= tch
> Applying: gnu: custom-gcc: Add flag to optionally not remove conflicti= ng
> files.
>
> ~/projects/guix$ git am 0002-gnu-Add-gccgo-7.patch
> Applying: gnu: Add gccgo@7.
> error: patch non riuscita: gnu/packages/gcc.scm:414
> error: gnu/packages/gcc.scm: la patch non pu=C3=B2 essere applicata > Patch failed at 0001 gnu: Add gccgo@7.
> The copy of the patch that failed is found in: .git/rebase-apply/patch=
> When you have resolved this problem, run "git am --continue"= .
> If you prefer to skip this patch, run "git am --skip" instea= d.
> To restore the original branch and stop patching, run "git am --a= bort".
>
>
> I don't know what these patches do, I was just trying to apply the= m in
> order (1, 2, 3)
>
> Should I follow a different order ?
>
> I would have attempted to build this thing
>
> I git pulled on master right now ( 12 september) and created a branch = for
> thhese patches and git am'ed there

I've reattached the patches, seems they don't apply cle= anly anymore

<= br>
This is the last part of the build log
Do = you need the whole log ?

[...]
##### Testing without l= ibgcc.
ok=C2=A0 =C2=A0=C2=A0 =C2=A0crypto/x509=C2=A0=C2=A0 =C2=A00.662s<= br>ok=C2=A0 =C2=A0=C2=A0 =C2=A0net=C2=A0=C2=A0 =C2=A00.005s
ok=C2=A0 =C2= =A0=C2=A0 =C2=A0os/user=C2=A0=C2=A0 =C2=A00.007s

##### internal link= ing of -buildmode=3Dpie
ok=C2=A0 =C2=A0=C2=A0 =C2=A0reflect=C2=A0=C2=A0 = =C2=A00.680s

##### sync -cpu=3D10
ok=C2=A0 =C2=A0=C2=A0 =C2=A0syn= c=C2=A0=C2=A0 =C2=A00.325s

##### ../misc/cgo/stdio

##### ../m= isc/cgo/life

##### ../misc/cgo/test
PASS
ok=C2=A0 =C2=A0=C2=A0= =C2=A0_/tmp/guix-build-go-1.9.drv-0/go/misc/cgo/test=C2=A0=C2=A0 =C2=A06.0= 50s
PASS
ok=C2=A0 =C2=A0=C2=A0 =C2=A0_/tmp/guix-build-go-1.9.drv-0/go= /misc/cgo/test=C2=A0=C2=A0 =C2=A06.250s
PASS
ok=C2=A0 =C2=A0=C2=A0 = =C2=A0_/tmp/guix-build-go-1.9.drv-0/go/misc/cgo/test=C2=A0=C2=A0 =C2=A05.82= 7s
PASS
ok=C2=A0 =C2=A0=C2=A0 =C2=A0_/tmp/guix-build-go-1.9.drv-0/go/= misc/cgo/testtls=C2=A0=C2=A0 =C2=A00.002s
PASS
ok=C2=A0 =C2=A0=C2=A0 = =C2=A0_/tmp/guix-build-go-1.9.drv-0/go/misc/cgo/testtls=C2=A0=C2=A0 =C2=A00= .009s
PASS
ok=C2=A0 =C2=A0=C2=A0 =C2=A0_/tmp/guix-build-go-1.9.drv-0/= go/misc/cgo/testtls=C2=A0=C2=A0 =C2=A00.001s
PASS
ok=C2=A0 =C2=A0=C2= =A0 =C2=A0_/tmp/guix-build-go-1.9.drv-0/go/misc/cgo/nocgo=C2=A0=C2=A0 =C2= =A00.002s
PASS
ok=C2=A0 =C2=A0=C2=A0 =C2=A0_/tmp/guix-build-go-1.9.dr= v-0/go/misc/cgo/nocgo=C2=A0=C2=A0 =C2=A00.002s
PASS
ok=C2=A0 =C2=A0= =C2=A0 =C2=A0_/tmp/guix-build-go-1.9.drv-0/go/misc/cgo/nocgo=C2=A0=C2=A0 = =C2=A00.002s
PASS
ok=C2=A0 =C2=A0=C2=A0 =C2=A0_/tmp/guix-build-go-1.9= .drv-0/go/misc/cgo/test=C2=A0=C2=A0 =C2=A04.177s
PASS
ok=C2=A0 =C2=A0= =C2=A0 =C2=A0_/tmp/guix-build-go-1.9.drv-0/go/misc/cgo/testtls=C2=A0=C2=A0 = =C2=A00.016s
PASS
ok=C2=A0 =C2=A0=C2=A0 =C2=A0_/tmp/guix-build-go-1.9= .drv-0/go/misc/cgo/nocgo=C2=A0=C2=A0 =C2=A00.010s

##### Testing race= detector
ok=C2=A0 =C2=A0=C2=A0 =C2=A0runtime/race=C2=A0=C2=A0 =C2=A04.6= 13s
ok=C2=A0 =C2=A0=C2=A0 =C2=A0flag=C2=A0=C2=A0 =C2=A01.031s
ok=C2= =A0 =C2=A0=C2=A0 =C2=A0os=C2=A0=C2=A0 =C2=A01.051s
ok=C2=A0 =C2=A0=C2=A0= =C2=A0os/exec=C2=A0=C2=A0 =C2=A01.028s [no tests to run]
PASS
scatte= r =3D 0x610b10
hello from C
sqrt is: 0
ok=C2=A0 =C2=A0=C2=A0 =C2= =A0_/tmp/guix-build-go-1.9.drv-0/go/misc/cgo/test=C2=A0=C2=A0 =C2=A04.708s<= br>ok=C2=A0 =C2=A0=C2=A0 =C2=A0flag=C2=A0=C2=A0 =C2=A01.031s
ok=C2=A0 = =C2=A0=C2=A0 =C2=A0os/exec=C2=A0=C2=A0 =C2=A01.012s [no tests to run]
##### ../misc/cgo/testgodefs

##### ../misc/cgo/testso

#####= ../misc/cgo/testsovar

##### ../misc/cgo/testcarchive
PASS
##### ../misc/cgo/testcshared
ok

##### ../misc/cgo/testshared--- FAIL: TestGoPathShlibGccgo (0.13s)
=C2=A0=C2=A0=C2=A0 shared_test.g= o:65: executing go install -installsuffix=3D5577006791947779410 -compiler= =3Dgccgo -buildmode=3Dshared -linkshared depBase failed exit status 2:
= =C2=A0=C2=A0=C2=A0 =C2=A0=C2=A0 =C2=A0# /tmp/guix-build-go-1.9.drv-0/go-bui= ld895598556/libdepBase.so
=C2=A0=C2=A0=C2=A0 =C2=A0=C2=A0 =C2=A0gccgo: e= rror: unrecognized command line option =E2=80=98-rpath=3D/gnu/store/41938jr= v1xlhawdskyhz45vvbzaic60v-gccgo-7.2.0/lib=E2=80=99
--- FAIL: TestTwoGopa= thShlibsGccgo (0.08s)
=C2=A0=C2=A0=C2=A0 shared_test.go:65: executing go= install -installsuffix=3D5577006791947779410 -compiler=3Dgccgo -buildmode= =3Dshared -linkshared depBase failed exit status 2:
=C2=A0=C2=A0=C2=A0 = =C2=A0=C2=A0 =C2=A0# /tmp/guix-build-go-1.9.drv-0/go-build013538701/libdepB= ase.so
=C2=A0=C2=A0=C2=A0 =C2=A0=C2=A0 =C2=A0gccgo: error: unrecognized = command line option =E2=80=98-rpath=3D/gnu/store/41938jrv1xlhawdskyhz45vvbz= aic60v-gccgo-7.2.0/lib=E2=80=99
FAIL
exit status 1
FAIL=C2=A0=C2= =A0 =C2=A0_/tmp/guix-build-go-1.9.drv-0/go/misc/cgo/testshared=C2=A0=C2=A0 = =C2=A019.432s
2017/09/12 12:45:19 Failed: exit status 1

##### ../= misc/cgo/testplugin
PASS
something

##### ../misc/cgo/testasan<= br>
##### ../misc/cgo/testsanitizers
./test.bash: line 18: sysctl: co= mmand not found
skipping msan tests: gcc -fsanitize=3Dmemory not support= ed

##### ../misc/cgo/errors
skipped due to earlier error

#= #### ../misc/cgo/testsigfwd
skipped due to earlier error

##### ..= /test/bench/go1
skipped due to earlier error

##### ../test
ski= pped due to earlier error

##### API check
skipped due to earlier = error
2017/09/12 12:45:37 FAILED
phase `build' failed after 382.6= seconds
builder for `/gnu/store/4k6ag9n2r2239r9cjjkyq76pa9n0bw94-go-1.9= .drv' failed with exit code 1
@ build-failed /gnu/store/4k6ag9n2r223= 9r9cjjkyq76pa9n0bw94-go-1.9.drv - 1 builder for `/gnu/store/4k6ag9n2r2239r9= cjjkyq76pa9n0bw94-go-1.9.drv' failed with exit code 1
guix build: er= ror: build failed: build of `/gnu/store/4k6ag9n2r2239r9cjjkyq76pa9n0bw94-go= -1.9.drv' failed
catonano@xps ~/projects/guix [env]$
=C2=A0
<= /div>
--94eb2c0c3c8e8366b70558fd8b83-- From debbugs-submit-bounces@debbugs.gnu.org Mon Mar 19 04:02:54 2018 Received: (at control) by debbugs.gnu.org; 19 Mar 2018 08:02:54 +0000 Received: from localhost ([127.0.0.1]:40690 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1expkr-0003vb-Nk for submit@debbugs.gnu.org; Mon, 19 Mar 2018 04:02:53 -0400 Received: from li622-129.members.linode.com ([212.71.249.129]:40362 helo=mira.cbaines.net) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1expko-0003vS-Gh for control@debbugs.gnu.org; Mon, 19 Mar 2018 04:02:50 -0400 Received: by mira.cbaines.net (Postfix, from userid 113) id 1F60713D067; Mon, 19 Mar 2018 08:02:50 +0000 (GMT) X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on mira.cbaines.net X-Spam-Level: X-Spam-Status: No, score=-2.9 required=5.0 tests=ALL_TRUSTED,BAYES_00 autolearn=ham autolearn_force=no version=3.4.0 Received: from localhost (cpc102582-walt20-2-0-cust14.13-2.cable.virginm.net [86.27.34.15]) by mira.cbaines.net (Postfix) with ESMTPSA id EBD3813D064 for ; Mon, 19 Mar 2018 08:02:49 +0000 (GMT) Received: from giedi (localhost [127.0.0.1]) by localhost (OpenSMTPD) with ESMTP id 9a87bfbb for ; Mon, 19 Mar 2018 08:02:49 +0000 (UTC) Date: Mon, 19 Mar 2018 08:02:49 +0000 Message-Id: <87sh8w5w7q.fsf@cbaines.net> To: control@debbugs.gnu.org From: Christopher Baines Subject: control message for bug #28226 X-Spam-Score: -0.0 (/) X-Debbugs-Envelope-To: control X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -0.0 (/) tags 28226 patch From debbugs-submit-bounces@debbugs.gnu.org Fri Jun 05 19:58:23 2020 Received: (at 28226) by debbugs.gnu.org; 5 Jun 2020 23:58:23 +0000 Received: from localhost ([127.0.0.1]:50355 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jhMEB-0002TK-5W for submit@debbugs.gnu.org; Fri, 05 Jun 2020 19:58:23 -0400 Received: from minsky.hcoop.net ([104.248.1.95]:51804) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jhME9-0002T4-6i for 28226@debbugs.gnu.org; Fri, 05 Jun 2020 19:58:21 -0400 Received: from marsh.hcoop.net ([45.55.52.66]) by minsky.hcoop.net with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.89) (envelope-from ) id 1jhME3-0006NC-Bu; Fri, 05 Jun 2020 19:58:15 -0400 Date: Fri, 5 Jun 2020 19:58:15 -0400 (EDT) From: Jack Hill X-X-Sender: jackhill@marsh.hcoop.net To: Efraim Flashner Subject: go with gccgo still relevant? Message-ID: User-Agent: Alpine 2.20 (DEB 67 2015-01-07) MIME-Version: 1.0 Content-Type: text/plain; format=flowed; charset=US-ASCII X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 28226 Cc: 28226@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) Efraim, I cam across this old bug. Do you think it is still relevant? Best, Jack From debbugs-submit-bounces@debbugs.gnu.org Sun Jun 07 03:35:04 2020 Received: (at 28226) by debbugs.gnu.org; 7 Jun 2020 07:35:04 +0000 Received: from localhost ([127.0.0.1]:53266 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jhppc-0001Wk-QB for submit@debbugs.gnu.org; Sun, 07 Jun 2020 03:35:04 -0400 Received: from flashner.co.il ([178.62.234.194]:44574) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jhppa-0001WX-Op for 28226@debbugs.gnu.org; Sun, 07 Jun 2020 03:34:59 -0400 Received: from localhost (unknown [188.120.128.90]) by flashner.co.il (Postfix) with ESMTPSA id 5BD27400B5; Sun, 7 Jun 2020 07:34:52 +0000 (UTC) Date: Sun, 7 Jun 2020 10:34:19 +0300 From: Efraim Flashner To: Jack Hill Subject: Re: go with gccgo still relevant? Message-ID: <20200607073419.GB24239@E5400> References: MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="xgyAXRrhYN0wYx8y" Content-Disposition: inline In-Reply-To: X-PGP-Key-ID: 0x41AAE7DCCA3D8351 X-PGP-Key: https://flashner.co.il/~efraim/efraim_flashner.asc X-PGP-Fingerprint: A28B F40C 3E55 1372 662D 14F7 41AA E7DC CA3D 8351 X-Spam-Score: -0.0 (/) X-Debbugs-Envelope-To: 28226 Cc: 28226@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) --xgyAXRrhYN0wYx8y Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Fri, Jun 05, 2020 at 07:58:15PM -0400, Jack Hill wrote: > Efraim, >=20 > I cam across this old bug. Do you think it is still relevant? >=20 > Best, > Jack Yes and no. The patches I provided didn't work as expected, but we do want to have an alternate go implementation for architectures which aren't supported by go-1.4. --=20 Efraim Flashner =D7=90=D7=A4=D7=A8=D7=99=D7=9D = =D7=A4=D7=9C=D7=A9=D7=A0=D7=A8 GPG key =3D A28B F40C 3E55 1372 662D 14F7 41AA E7DC CA3D 8351 Confidentiality cannot be guaranteed on emails sent or received unencrypted --xgyAXRrhYN0wYx8y Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAABCgAdFiEEoov0DD5VE3JmLRT3Qarn3Mo9g1EFAl7cmHcACgkQQarn3Mo9 g1GIyA//SGSFlg5TKj8Y6xQNkOgFrQrv/BVtX99z4wjzdVEMLlvGq5ZSX+IKDi46 +08IkrMICncXZ6lxrl0AcK9K8HSfrNkir21UXycu0Rraw3cYIDLCEcitnDQdbRkY DsAoWRAesyrgCOFCLVG7gkxGBZkK8Zd0uaohsUVdqkIVy8T8GT/+dGuvdfylzIb1 Lr58w1LRu+59Y1U1P9w77nEXkJv7JXXhYRaXcK9gpaRu2VjfQQkA1QiZnavkV4kB p7Zk9KmG3c+WoX7376q27v0YhmKbTQemWcYzI0Rnt1meEXolAdrUKEWDilBVt395 cDKNdUzkNn++LJVLnp/mDaa7IpPLoA+7wRV7Jy1GeUoaRS+/VCR5202/f3x/vHlN 8AYTi+tef5qfw5MdYGPQ4hwoJwtavYQYlIECbSloftdWEW5eHroKh03BE9C8n1A5 1iLwb+iZguY1YkP4jgUJPm5gPJbhlCHgi0TSKU2p3Vl5Fk+yoX7RrvU5TtdnLt6p n0meOITB2Mv03oqHiDLjCEuDIsh+Md8qiha3CXaAhBOMolC5Bfe72wcp1KeJ+68d /CakNHuWvTIA1QV8BjuJWap8vnpeSX5v/wsSdn0jVowto9d2wVvhgDRCgqDIKVHe ctwQ8himhT6AEfcTmtuVmPKgDtFHwkqT8RQAbpF+ePYGhELl92s= =EkNC -----END PGP SIGNATURE----- --xgyAXRrhYN0wYx8y-- From debbugs-submit-bounces@debbugs.gnu.org Thu Aug 05 19:05:36 2021 Received: (at 28226-done) by debbugs.gnu.org; 5 Aug 2021 23:05:36 +0000 Received: from localhost ([127.0.0.1]:48606 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mBmQi-0008P2-K8 for submit@debbugs.gnu.org; Thu, 05 Aug 2021 19:05:36 -0400 Received: from out2.migadu.com ([188.165.223.204]:55032) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mBmQg-0008Or-UT for 28226-done@debbugs.gnu.org; Thu, 05 Aug 2021 19:05:35 -0400 X-Report-Abuse: Please report any abuse attempt to abuse@migadu.com and include these headers. DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=mgsn.dev; s=key1; t=1628204732; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to; bh=S6j3myL2zSzzE38XEVv7qskVQVh4gNdxmBOlrvFLuuc=; b=NcouhCVOXhT68a/ho17IhrYWWLJHD0CiMtWuKylMkfCXlIdwjC9QPEUWq+eI9J3BYxs5PK NW16NaTkG73uAbpil23lpwhjJhLg7UUpsnVPZvvLnjA1HU2SdC35FNPsxAFOaYkkI/5E9f +8g8TSUE3Q+4GoFNMLDw7O4E8RFLn4c= From: Sarah Morgensen To: bug#28226 <28226-done@debbugs.gnu.org> Subject: Re: bug#28226: Build go with gccgo Date: Thu, 05 Aug 2021 16:05:30 -0700 In-Reply-To: bug's message of "Thu, 05 Aug 2021 22:51:33 +0000" Message-ID: <86y29f1ohx.fsf@mgsn.dev> MIME-Version: 1.0 Content-Type: text/plain X-Migadu-Flow: FLOW_OUT X-Migadu-Auth-User: iskarian@mgsn.dev X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 28226-done X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) Implemented by #49221; closing. From unknown Wed Sep 10 10:23:16 2025 Received: (at fakecontrol) by fakecontrolmessage; To: internal_control@debbugs.gnu.org From: Debbugs Internal Request Subject: Internal Control Message-Id: bug archived. Date: Fri, 03 Sep 2021 11:24:06 +0000 User-Agent: Fakemail v42.6.9 # This is a fake control message. # # The action: # bug archived. thanks # This fakemail brought to you by your local debbugs # administrator