From owner-freebsd-bugs@freebsd.org Fri Aug 18 23:22:40 2017 Return-Path: Delivered-To: freebsd-bugs@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 7E2B1DDF4D7 for ; Fri, 18 Aug 2017 23:22:40 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2001:1900:2254:206a::16:76]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 6C07A7DF48 for ; Fri, 18 Aug 2017 23:22:40 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from bugs.freebsd.org ([127.0.1.118]) by kenobi.freebsd.org (8.15.2/8.15.2) with ESMTP id v7INMegp004270 for ; Fri, 18 Aug 2017 23:22:40 GMT (envelope-from bugzilla-noreply@freebsd.org) From: bugzilla-noreply@freebsd.org To: freebsd-bugs@FreeBSD.org Subject: [Bug 221029] AMD Ryzen: strange compilation failures using poudriere or plain buildkernel/buildworld Date: Fri, 18 Aug 2017 23:22:40 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Base System X-Bugzilla-Component: kern X-Bugzilla-Version: 11.1-RELEASE X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Some People X-Bugzilla-Who: markmi@dsl-only.net X-Bugzilla-Status: New X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: freebsd-bugs@FreeBSD.org X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: https://bugs.freebsd.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-BeenThere: freebsd-bugs@freebsd.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: Bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 18 Aug 2017 23:22:40 -0000 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D221029 --- Comment #71 from Mark Millard --- Has anyone tried doing a bunch of lang/ghc builds on Ryzen to see the failure rate but for the type of context indicated below (specifying via a poudriere context's techniques): PARALLEL_JOBS=3D1 ALLOW_MAKE_JOBS=3Dno and ALLOW_MAKE_JOBS_PACKAGES not having a match for lang/ghc ? In other words: avoiding parallel builds during lang/ghc's build? If not, is someone willing to try such? Doing this from: # uname -apKU FreeBSD FreeBSDx64OPC 12.0-CURRENT FreeBSD 12.0-CURRENT r322596M amd64 am= d64 1200040 1200040 that is a VirtualBox guest under Windows 10 Pro has failed for me so far. Showing 2 separate attempts in my context: [11 of 95] Compiling Data.Binary.Class ( libraries/binary/src/Data/Binary/Class.hs, bootstrapping/Data/Binary/Class.= o ) ghc/ghc.mk:111: ghc/stage1/package-data.mk: No such file or directory gmake[2]: *** [utils/ghc-cabal/ghc.mk:48: utils/ghc-cabal/dist/build/tmp/ghc-cabal] Bus error (core dumped) gmake[1]: *** [Makefile:130: all] Error 2 gmake[1]: Leaving directory '/wrkdirs/usr/ports/lang/ghc/work/ghc-8.0.2' *** Error code 1 vs. (getting well past 11 of 95) [32 of 95] Compiling Distribution.Version ( libraries/Cabal/Cabal/Distribution/Version.hs, bootstrapping/Distribution/Version.o ) ghc/ghc.mk:111: ghc/stage1/package-data.mk: No such file or directory gmake[2]: *** [utils/ghc-cabal/ghc.mk:48: utils/ghc-cabal/dist/build/tmp/ghc-cabal] Bus error (core dumped) gmake[1]: *** [Makefile:130: all] Error 2 gmake[1]: Leaving directory '/wrkdirs/usr/ports/lang/ghc/work/ghc-8.0.2' *** Error code 1 FYI: # svnlite info /usr/ports/ | grep "Re[plv]" Relative URL: ^/head Repository Root: svn://svn.freebsd.org/ports Repository UUID: 35697150-7ecd-e111-bb59-0022644237b5 Revision: 448068 Last Changed Rev: 448068 This is the vintage of /usr/ports that is being used. I cause ports to build based on: CFLAGS:=3D ${CFLAGS} ${DEBUG_FLAGS} instead of: CFLAGS:=3D ${CFLAGS:N-O*:N-fno-strict*} ${DEBUG_FLAGS} (So optimized with with debug information for WITH_DEBUG.) In my context WITH_DEBUG happens to be in use. # more /usr/local/etc/poudriere.d/make.conf WANT_QT_VERBOSE_CONFIGURE=3D1 # DEFAULT_VERSIONS+=3Dperl5=3D5.24 gcc=3D7 # # From a local /usr/ports/Mk/bsd.port.mk extension: ALLOW_OPTIMIZATIONS_FOR_WITH_DEBUG=3D # .if ${.CURDIR:M*/devel/llvm*} #WITH_DEBUG=3D .elif ${.CURDIR:M*/www/webkit-qt5*} #WITH_DEBUG=3D .else WITH_DEBUG=3D .endif WITH_DEBUG_FILES=3D MALLOC_PRODUCTION=3D and I use in /usr/ports/Mk/bsd.port.mk: STRIP_CMD=3D ${TRUE} .endif DEBUG_FLAGS?=3D -g +.if defined(ALLOW_OPTIMIZATIONS_FOR_WITH_DEBUG) +CFLAGS:=3D ${CFLAGS} ${DEBUG_FLAGS} +.else CFLAGS:=3D ${CFLAGS:N-O*:N-fno-strict*} ${DEBUG_FLAGS} +.endif .if defined(INSTALL_TARGET) INSTALL_TARGET:=3D ${INSTALL_TARGET:S/^install-strip$/install/g} .endif In my context the builds were attempted with: /usr/bin/nohup poudriere bulk -j zrFBSDx64Cjail -w lang/ghc & This was after a prior parallel attempt had built the prerequisite packages (but for which lang/ghc failed). So the non-parallel commands only tried to build lang/ghc . --=20 You are receiving this mail because: You are the assignee for the bug.=