Willem Jan Withagen
2014-Dec-03 21:09 UTC
Trying to upgrade from 9.3-Stable to 10.1-Stable
On 3-12-2014 16:21, Ian Lepore wrote:> On Wed, 2014-12-03 at 08:18 -0700, Warren Block wrote: >> On Wed, 3 Dec 2014, Willem Jan Withagen wrote: >> >>> Trying to compile world for upgrading I run into: >>> (single threaded make) >>> >>> ===> lib/clang/libclanganalysis (depend) >>> clang-tblgen -gen-clang-attr-list -I >>> /usr/src10/lib/clang/libclanganalysis/../../../contrib/llvm/tools/clang/include >>> -d AttrList.inc.d -o AttrList.inc.h >>> /usr/src10/lib/clang/libclanganalysis/../../../contrib/llvm/tools/clang/include/clang/Basic/Attr.td >>> clang-tblgen -gen-clang-attr-classes -I >>> /usr/src10/lib/clang/libclanganalysis/../../../contrib/llvm/tools/clang/include >>> -d Attrs.inc.d -o Attrs.inc.h >>> /usr/src10/lib/clang/libclanganalysis/../../../contrib/llvm/tools/clang/include/clang/Basic/Attr.td >>> Stack dump: >>> 0. Program arguments: clang-tblgen -gen-clang-attr-classes -I >>> /usr/src10/lib/clang/libclanganalysis/../../../contrib/llvm/tools/clang/include >>> -d Attrs.inc.d -o Attrs.inc.h >>> /usr/src10/lib/clang/libclanganalysis/../../../contrib/llvm/tools/clang/include/clang/Basic/Attr.td >>> *** Signal 11 >>> >>> Is this because the 9.3 toolchain doesn't like 10.1...?? >>> >>> Upgrade is on a atom running: >>> 9.3-STABLE FreeBSD 9.3-STABLE #56 r269952: Thu Aug 14 07:00:37 CEST 2014 >> >> 'make toolchain' can help before trying a buildworld for a different >> major version. > > toolchain is one of the early steps run during buildworld, invoking it > separately shouldn't make any difference. > > This looks like it ran out of memory... check syslog or dmesg, see if > you have some "process killed; out of swap space" messages. Building > clang needs a ton of memory.This is what dmesg says: pid 251 (clang-tblgen), uid 0: exited on signal 11 (core dumped) pid 252 (clang-tblgen), uid 0: exited on signal 11 (core dumped) pid 253 (clang-tblgen), uid 0: exited on signal 11 (core dumped) pid 25518 (clang-tblgen), uid 0: exited on signal 11 (core dumped) System has 4Gb of mem. No complaints about out of swap. There is 4Gb of swap reserved. Perhaps I should go the royal way, and go for 10.0 as intermediate step? --WjW
On 03 Dec 2014, at 22:09, Willem Jan Withagen <wjw at digiware.nl> wrote:> > On 3-12-2014 16:21, Ian Lepore wrote:...>> This looks like it ran out of memory... check syslog or dmesg, see if >> you have some "process killed; out of swap space" messages. Building >> clang needs a ton of memory. > > This is what dmesg says: > pid 251 (clang-tblgen), uid 0: exited on signal 11 (core dumped) > pid 252 (clang-tblgen), uid 0: exited on signal 11 (core dumped) > pid 253 (clang-tblgen), uid 0: exited on signal 11 (core dumped) > pid 25518 (clang-tblgen), uid 0: exited on signal 11 (core dumped)For some reason, the clang-tblgen binaries that were built during the bootstrap-tools stage segfault, while running parts of the cross-tools stage. Obviously, this should not happen, but since it only seems to happen for you, maybe you have something special in your build environment? Can you please give us a bit more information about your environment, such as: * Architecture (i386, amd64) and exact CPU type of your machine * Full contents of /etc/make.conf and /etc/src.conf * Environment variables that might influence the build, e.g. CC, CFLAGS, DEBUG_FLAGS, etc * The specific make command line you are using to build world, including all flags and arguments -Dimitry -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 194 bytes Desc: Message signed with OpenPGP using GPGMail URL: <http://lists.freebsd.org/pipermail/freebsd-stable/attachments/20141204/e15f13cc/attachment.sig>