ubuntu-snappy fails to build on *ARM*64 (fails during the tests)

Bug #1460530 reported by Michael Vogt
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Snappy
Invalid
High
Unassigned
gcc
Unknown
Unknown
gcc-5 (Ubuntu)
Fix Released
Undecided
Unassigned

Bug Description

Snappy fails to build on arm64 right now . This makes arm64 image builds fail because there is no ubuntu-snappy-cli to install.

It fails because of: "*** Test killed with Quit: ran too long (10m0s)."

Here is the build failure:
""""
=== RUN Test
Quit

syscall.sendfile
 /build/buildd/gcc-5-5.1.1/build/aarch64-linux-gnu/libgo/libcalls.go:3062
syscall.Sendfile
 ../../../src/libgo/go/syscall/libcall_linux.go:334
helpers.doCopyFile
 /build/buildd/ubuntu-snappy-1.0.1/obj-aarch64-linux-gnu/src/launchpad.net/snappy/helpers/cp_linux.go:42
launchpad_net_snappy_helpers.CopyFile
 /build/buildd/ubuntu-snappy-1.0.1/obj-aarch64-linux-gnu/src/launchpad.net/snappy/helpers/cp.go:83
launchpad_net_snappy_helpers.TestCpMulti.pN36_launchpad_net_snappy_helpers.cpSuite
 /build/buildd/ubuntu-snappy-1.0.1/obj-aarch64-linux-gnu/src/launchpad.net/snappy/helpers/cp_linux_test.go:33
reflect.call
 ../../../src/libgo/runtime/go-reflect-call.c:219
reflect.call.N13_reflect.Value
 ../../../src/libgo/go/reflect/value.go:443
reflect.Call.N13_reflect.Value
 ../../../src/libgo/go/reflect/value.go:293
launchpad_net_gocheck.Call.N32_launchpad_net_gocheck.methodType
 /build/buildd/ubuntu-snappy-1.0.1/obj-aarch64-linux-gnu/src/launchpad.net/gocheck/gocheck.go:43
gocheck.$nested5
 /build/buildd/ubuntu-snappy-1.0.1/obj-aarch64-linux-gnu/src/launchpad.net/gocheck/gocheck.go:733
gocheck.$nested3
 /build/buildd/ubuntu-snappy-1.0.1/obj-aarch64-linux-gnu/src/launchpad.net/gocheck/gocheck.go:628

goroutine 16 [chan receive, 9 minutes]:
testing.RunTests
 ../../../src/libgo/go/testing/testing.go:556
testing.Run.pN9_testing.M
 ../../../src/libgo/go/testing/testing.go:485
main.main
 /tmp/go-build359736861/launchpad.net/snappy/helpers/_test/_testmain.go:52
created by main
 ../../../src/libgo/runtime/go-main.c:48

goroutine 18 [finalizer wait, 9 minutes]:
created by runtime_createfing
 ../../../src/libgo/runtime/mgc0.c:2572

goroutine 20 [chan receive, 9 minutes]:
launchpad_net_gocheck.runTest.pN33_launchpad_net_gocheck.suiteRunner
 /build/buildd/ubuntu-snappy-1.0.1/obj-aarch64-linux-gnu/src/launchpad.net/gocheck/gocheck.go:771
launchpad_net_gocheck.run.pN33_launchpad_net_gocheck.suiteRunner
 /build/buildd/ubuntu-snappy-1.0.1/obj-aarch64-linux-gnu/src/launchpad.net/gocheck/gocheck.go:584
launchpad_net_gocheck.Run
 /build/buildd/ubuntu-snappy-1.0.1/obj-aarch64-linux-gnu/src/launchpad.net/gocheck/run.go:76
launchpad_net_gocheck.RunAll
 /build/buildd/ubuntu-snappy-1.0.1/obj-aarch64-linux-gnu/src/launchpad.net/gocheck/run.go:68
launchpad_net_gocheck.TestingT
 /build/buildd/ubuntu-snappy-1.0.1/obj-aarch64-linux-gnu/src/launchpad.net/gocheck/run.go:56
launchpad_net_snappy_helpers.Test
 /build/buildd/ubuntu-snappy-1.0.1/obj-aarch64-linux-gnu/src/launchpad.net/snappy/helpers/helpers_test.go:34
testing.tRunner
 ../../../src/libgo/go/testing/testing.go:447
created by testing.RunTests
 ../../../src/libgo/go/testing/testing.go:555

goroutine 21 [select, 9 minutes]:
launchpad_net_gocheck._loopRoutine.pN35_launchpad_net_gocheck.resultTracker
 /build/buildd/ubuntu-snappy-1.0.1/obj-aarch64-linux-gnu/src/launchpad.net/gocheck/gocheck.go:436
created by launchpad_net_gocheck.start.pN35_launchpad_net_gocheck.resultTracker
 /build/buildd/ubuntu-snappy-1.0.1/obj-aarch64-linux-gnu/src/launchpad.net/gocheck/gocheck.go:416
*** Test killed with Quit: ran too long (10m0s).
"""

Tags: patch

Related branches

Revision history for this message
Michael Vogt (mvo) wrote :

I tested this on an amr64 box and I see in:
"""
                _, err := syscall.Sendfile(int(fout.Fd()), int(fin.Fd()), &offset, int(count))
"""
that the offset when set to "2" is not advanced but it remains at "2" (which violates
what the man-page says). So this loops forever.

Revision history for this message
Michael Vogt (mvo) wrote :

This appears to be a bug in the upstream gccgo-5 source, I will look into it.

Revision history for this message
Michael Vogt (mvo) wrote :

This should fix it, I'm doing a test build of the gccgo-5 package right now but it takes a very long time to build.

Michael Vogt (mvo)
Changed in snappy:
status: New → In Progress
importance: Undecided → High
Michael Vogt (mvo)
summary: - Fails to build on *ARM*64
+ ubuntu-snappy fails to build on *ARM*64 (fails during the tests)
Changed in gccgo-5 (Ubuntu):
status: New → In Progress
tags: added: patch
Michael Vogt (mvo)
affects: gccgo-5 (Ubuntu) → gcc-5 (Ubuntu)
Revision history for this message
Jamie Strandboge (jdstrand) wrote :

Note, libseccomp does not currently have arm64 support so ubuntu-core-launcher will not compile. Obviously, this does not affect this bug but wanted to make sure this was understood.

Revision history for this message
Michael Vogt (mvo) wrote :

Silly me, the previous version was on the right track but I overlooked that offset was not initialized at all. This version fixes that now and that makes the cp_linux_test.go work on my box now.

Revision history for this message
Michael Vogt (mvo) wrote :
Michael Vogt (mvo)
Changed in snappy:
status: In Progress → Fix Committed
status: Fix Committed → Invalid
Changed in gcc-5 (Ubuntu):
status: In Progress → Fix Committed
Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package gcc-5 - 5.1.1-9ubuntu2

---------------
gcc-5 (5.1.1-9ubuntu2) wily; urgency=medium

  * Merge with Debian; remaining changes:
    - Build from upstream sources.

gcc-5 (5.1.1-9) unstable; urgency=medium

  * Update to SVN 20150602 (r224029, 5.1.1) from the gcc-5-branch.
  * Remove byte-compiled libstdc++ pretty printer files on upgrade.
    Closes: #785939.
  * Fix dangling libgccjit.so symlink.
  * Fix base dependency for rtlibs stage builds.
  * Fix build failure of the hppa64 cross compiler, introduced by the
    gnat cross patches. Closes: #786692.
  * Update README.source (Michael Vogt).
  * libgo: syscall.Sendfile(): Apply proposed patch for PR go/66378.
    (Michael Vogt). LP: #1460530.
  * Set CC and CXX matching the same GCC version for the stage1 build.
  * Work around PR go/66368, build libgo with -fno-stack-protector.
    LP: #1454183.

 -- Matthias Klose <email address hidden> Wed, 03 Jun 2015 01:02:23 +0200

Changed in gcc-5 (Ubuntu):
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.