[Bug 221029] AMD Ryzen: strange compilation failures using poudriere or plain buildkernel/buildworld

bugzilla-noreply at freebsd.org bugzilla-noreply at freebsd.org
Fri Aug 18 23:22:40 UTC 2017


https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=221029

--- Comment #71 from Mark Millard <markmi at dsl-only.net> ---
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=1
ALLOW_MAKE_JOBS=no

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 amd64
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:=                ${CFLAGS} ${DEBUG_FLAGS}

instead of:

CFLAGS:=                ${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=1
#
DEFAULT_VERSIONS+=perl5=5.24 gcc=7
#
# From a local /usr/ports/Mk/bsd.port.mk extension:
ALLOW_OPTIMIZATIONS_FOR_WITH_DEBUG=
#
.if ${.CURDIR:M*/devel/llvm*}
#WITH_DEBUG=
.elif ${.CURDIR:M*/www/webkit-qt5*}
#WITH_DEBUG=
.else
WITH_DEBUG=
.endif
WITH_DEBUG_FILES=
MALLOC_PRODUCTION=

and I use in /usr/ports/Mk/bsd.port.mk:

 STRIP_CMD=     ${TRUE}
 .endif
 DEBUG_FLAGS?=  -g
+.if defined(ALLOW_OPTIMIZATIONS_FOR_WITH_DEBUG)
+CFLAGS:=               ${CFLAGS} ${DEBUG_FLAGS}
+.else
 CFLAGS:=               ${CFLAGS:N-O*:N-fno-strict*} ${DEBUG_FLAGS}
+.endif
 .if defined(INSTALL_TARGET)
 INSTALL_TARGET:=       ${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 .

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


More information about the freebsd-bugs mailing list