From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:55480) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1drkib-0007Qi-G7 for guix-patches@gnu.org; Tue, 12 Sep 2017 08:55:14 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1drkiU-0003WY-Ld for guix-patches@gnu.org; Tue, 12 Sep 2017 08:55:09 -0400 Received: from debbugs.gnu.org ([208.118.235.43]:54458) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1drkiU-0003WS-Gl for guix-patches@gnu.org; Tue, 12 Sep 2017 08:55:02 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1drkiU-0007mg-9F for guix-patches@gnu.org; Tue, 12 Sep 2017 08:55:02 -0400 Subject: [bug#28226] Build go with gccgo Resent-Message-ID: MIME-Version: 1.0 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: Content-Type: multipart/alternative; boundary="94eb2c0c3c8e8366b70558fd8b83" List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-patches-bounces+kyle=kyleam.com@gnu.org Sender: "Guix-patches" To: Efraim Flashner Cc: 28226@debbugs.gnu.org --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--