Torfinn Ingolfsen
2016-Oct-16 10:20 UTC
Building FreeBSD 11.0-stable on FreeBSD 10.1-stable fails
I am trying to build FreeBSD 11.0-stable on a machine which runs: tingo at kg-v7$ uname -a FreeBSD kg-v7.kg4.no 10.1-STABLE FreeBSD 10.1-STABLE #0 r278322: Fri Feb 6 21:36:01 CET 2015 root at kg-v7.kg4.no:/usr/obj/usr/src/sys/GENERIC amd64 I have emptied /usr/src and /usr/obj and fetched the latest stable/11 via subversion: tingo at kg-v7$ egrep "^BRANCH|^REVISION" /usr/src/sys/conf/newvers.sh REVISION="11.0" BRANCH="STABLE" But building it (per the procedure in the handbook) fails at the buildworld stage. Both 'make -j5 buildworld' and 'make buildworld' fails, like this: c++: error: unable to execute command: Segmentation fault (core dumped) c++: error: clang frontend command failed due to signal (use -v to see invocation) FreeBSD clang version 3.4.1 (tags/RELEASE_34/dot1-final 208032) 20140512 Target: x86_64-unknown-freebsd10.1 Thread model: posix c++: note: diagnostic msg: PLEASE submit a bug report to https://bugs.freebsd.org/submit/ and include the crash backtrace, preprocessed source, and associated run script. c++: note: diagnostic msg: ******************** PLEASE ATTACH THE FOLLOWING FILES TO THE BUG REPORT: Preprocessed source(s) and associated run script(s) are located at: c++: note: diagnostic msg: /tmp/CGBlocks-abcdc1.cpp c++: note: diagnostic msg: /tmp/CGBlocks-abcdc1.sh c++: note: diagnostic msg: ******************** *** Error code 254 Stop. bmake[4]: stopped in /usr/src/lib/clang/libclangcodegen *** Error code 1 Stop. bmake[3]: stopped in /usr/src/lib/clang *** Error code 1 Stop. bmake[2]: stopped in /usr/src *** Error code 1 Stop. bmake[1]: stopped in /usr/src *** Error code 1 Stop. make: stopped in /usr/src So I cleaned out /usr/obj again and tried this (fro /usr/src/UPDATING): root at kg-v7# make WITHOUT_CLANG=y WITH_GCC=y -j5 buildworld [..] ******************** *** [CGClass.o] Error code 254 bmake[4]: stopped in /usr/src/lib/clang/libclangcodegen 2 errors bmake[4]: stopped in /usr/src/lib/clang/libclangcodegen *** [all_subdir_lib/clang/libclangcodegen] Error code 2 bmake[3]: stopped in /usr/src/lib/clang --- all_subdir_lib/clang/libclangedit --- A failure has been detected in another branch of the parallel make bmake[4]: stopped in /usr/src/lib/clang/libclangedit *** [all_subdir_lib/clang/libclangedit] Error code 2 bmake[3]: stopped in /usr/src/lib/clang --- all_subdir_lib/clang/libclangast --- A failure has been detected in another branch of the parallel make bmake[4]: stopped in /usr/src/lib/clang/libclangast *** [all_subdir_lib/clang/libclangast] Error code 2 bmake[3]: stopped in /usr/src/lib/clang --- all_subdir_lib/clang/libclangfrontend --- A failure has been detected in another branch of the parallel make bmake[4]: stopped in /usr/src/lib/clang/libclangfrontend *** [all_subdir_lib/clang/libclangfrontend] Error code 2 bmake[3]: stopped in /usr/src/lib/clang 4 errors bmake[3]: stopped in /usr/src/lib/clang *** [cross-tools] Error code 2 bmake[2]: stopped in /usr/src 1 error bmake[2]: stopped in /usr/src *** [_cross-tools] Error code 2 bmake[1]: stopped in /usr/src 1 error bmake[1]: stopped in /usr/src *** [buildworld] Error code 2 make: stopped in /usr/src 1 error make: stopped in /usr/src So, is there a way to fix this without building an updated stable/10 as an intermediary step? References: FreeBSD forum thread: https://forums.freebsd.org/threads/58082/ -- Torfinn Ingolfsen <torfinn.ingolfsen at getmail.no>
Dimitry Andric
2016-Oct-16 11:34 UTC
Building FreeBSD 11.0-stable on FreeBSD 10.1-stable fails
On 16 Oct 2016, at 12:20, Torfinn Ingolfsen <torfinn.ingolfsen at getmail.no> wrote:> I am trying to build FreeBSD 11.0-stable on a machine which runs: > tingo at kg-v7$ uname -a > FreeBSD kg-v7.kg4.no 10.1-STABLE FreeBSD 10.1-STABLE #0 r278322: Fri Feb 6 21:36:01 CET 2015 > root at kg-v7.kg4.no:/usr/obj/usr/src/sys/GENERIC amd64 > > I have emptied /usr/src and /usr/obj and fetched the latest stable/11 via subversion: > tingo at kg-v7$ egrep "^BRANCH|^REVISION" /usr/src/sys/conf/newvers.sh > REVISION="11.0" > BRANCH="STABLE" > > But building it (per the procedure in the handbook) fails at the buildworld stage. Both 'make -j5 buildworld' and 'make buildworld' fails, like this: > > c++: error: unable to execute command: Segmentation fault (core dumped) > c++: error: clang frontend command failed due to signal (use -v to see invocation) > FreeBSD clang version 3.4.1 (tags/RELEASE_34/dot1-final 208032) 20140512 > Target: x86_64-unknown-freebsd10.1 > Thread model: posix > c++: note: diagnostic msg: PLEASE submit a bug report to https://bugs.freebsd.org/submit/ and include the crash backtrace, preprocessed source, and associated run script. > c++: note: diagnostic msg: > ******************** > > PLEASE ATTACH THE FOLLOWING FILES TO THE BUG REPORT: > Preprocessed source(s) and associated run script(s) are located at: > c++: note: diagnostic msg: /tmp/CGBlocks-abcdc1.cpp > c++: note: diagnostic msg: /tmp/CGBlocks-abcdc1.shPlease make sure your stable/10 is at least r286033. -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/20161016/3e69332e/attachment.sig>