From nobody Fri Feb 11 20:07:56 2022 X-Original-To: freebsd-current@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 6299C19B882B for ; Fri, 11 Feb 2022 20:10:44 +0000 (UTC) (envelope-from yasu@FreeBSD.org) Received: from smtp.freebsd.org (smtp.freebsd.org [96.47.72.83]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "smtp.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4JwPr42JWFz4lfL; Fri, 11 Feb 2022 20:10:44 +0000 (UTC) (envelope-from yasu@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1644610244; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=TWKTEXLP7MoBw0AFcU49qadnE/1WfXRE2jmk/mmXHVU=; b=ojrw2E1GhDVX3hLsy1DFRegp4p0laghPKqOwSWJj9rdMovEohp6mhaMvSd71nwv5jWDBcX 20zwrCmliq6ql3La5qnlpTCYZxvmj64PCtcztEZagP1eGK86VTVNnBP0DRAIXfZOtHP4n3 3zr7sfLk0PiDKkE1TRsZOOGmb3Lhd0qIPGpUY6yL9Qaa91uIYfQTseisnMOvZSMlHH2pNH SLhjPdkiVbvsGMOuKv7ISXXkG0jLGHhzcbmVb/gT8i7+qEGM2RD6VCOClhp1RERW002BF4 dLV7tM7gmJ0wBV+sJ8a2Ibm7Y2YnKxAEG2e0MqauOzoiCujrk6J76W9Psa70AA== Received: from localhost (unknown [IPv6:240b:11:220:fe00:fc81:51c0:bbcc:27c6]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) (Authenticated sender: yasu/mail) by smtp.freebsd.org (Postfix) with ESMTPSA id 9348AF050; Fri, 11 Feb 2022 20:10:43 +0000 (UTC) (envelope-from yasu@FreeBSD.org) Date: Sat, 12 Feb 2022 05:07:56 +0900 (JST) Message-Id: <20220212.050756.569441849093045289.yasu@FreeBSD.org> To: freebsd-current@freebsd.org Subject: Buildworld fails with external GCC toolchain From: Yasuhiro Kimura X-Mailer: Mew version 6.8 on Emacs 29.0.50 List-Id: Discussions about the use of FreeBSD-current List-Archive: https://lists.freebsd.org/archives/freebsd-current List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-current@freebsd.org Mime-Version: 1.0 Content-Type: Text/Plain; charset=us-ascii Content-Transfer-Encoding: 7bit ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1644610244; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=TWKTEXLP7MoBw0AFcU49qadnE/1WfXRE2jmk/mmXHVU=; b=cGI7pgCT9ONAKIkn74uv0/Wxp1+m8TGuTruEAgF7GAm2G8AOx2ml2fTdrVRUX17JtnM0tE EuFaGl0Zq01vmYR63Ny3c4xstPwJd2w35oJM/Fg4lRrz0E/Qsp6tAnjswYLjJh7MJoUdQ5 7m3YmNiHcrCI/1OzA3ilSpXqN+xRg63CoGL6mxvn0cHqdglWvd+JQcvnS/urpgj5B7/D/f R83pkn9d3skF/rzJ992gTa9Cb8j5qC30zYW8tNR2lMR41N/3J3vk5eUz2MPbte87FFoBau A54xkVLBiuZK8dVG0CQM2tw/cazBOGsjZT7yDU3jVkWM4akh6dqrIH0ojtw8LA== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1644610244; a=rsa-sha256; cv=none; b=NPYSEiQ7g8ARKyHqppuL6LWqnYJfc4lrPywsx+nl5gyQMu8vRRgWd3Ni883TSfpRsmP6xO FYFqmtfudpBJyqzrQQ2LUEtWJh5qON6NMsIstvcD6EZmEqfqGqqbUBZFkGq4R+r/AzYEEP /tGBeogGyZuVO9JrCdOsFCLBJQT8g2EZXWVTbXVmaKGCkE5JWDJscyoqghRGSP5oCy7QM7 ex1nsL4UTN+wsRFLNnxwGcx5wSH0aMheZslA9mOjjv420DDJusDICSHp12HJ6evo8as4Gz L7BWcKByMnVgrWBUO+b1WjjEyK83VeEx8ojn7skavl6E1AfjdIBYf1tlPeqJXA== ARC-Authentication-Results: i=1; mx1.freebsd.org; none X-ThisMailContainsUnwantedMimeParts: N Hello, I'm tring to update devel/binutils port to 2.38. When it was updated to 2.37.1, there was a suggestion that it should also be checked if building base system with GCC succeeds as binutils is a part of external GCC toolchain. So I'd like to do it with binutils 2.38 before updating the port. And as a preparation for it, I tried building base system with current external GCC toolchain (that is, with binutils 2.37.1). At first I read following wiki pages. https://wiki.freebsd.org/ExternalToolchain https://wiki.freebsd.org/ExternalGCC Next I took following steps. 1. Make clean install of 14-CURRENT amd64 with the install image of 20220210 snapshot. 2. Checkout latest main of src repository (d4b0fa45dc1 at that time). 3. pkg install amd64-gcc9 4. cd /usr/src 5. make -j 4 CROSS_TOOLCHAIN=amd64-gcc9 buildworld buildkernel Then step 5 failed as following. ---------------------------------------------------------------------- --- all_subdir_rescue --- /usr/local/bin/x86_64-unknown-freebsd14.0-ld: nc.lo: in function `_$$hide$$ nc.lo main': (.text.startup+0xd42): warning: warning: mktemp() possibly used unsafely; consider using mkstemp() /usr/local/bin/x86_64-unknown-freebsd14.0-ld: /usr/obj/usr/src/amd64.amd64/tmp/usr/lib/libncursesw_real.a(lib_set_term.o): in function `_nc_setupscreen_sp': /usr/src/contrib/ncurses/ncurses/base/lib_set_term.c:415: undefined reference to `_nc_set_buffer_sp' /usr/local/bin/x86_64-unknown-freebsd14.0-ld: /usr/obj/usr/src/amd64.amd64/tmp/usr/lib/libncursesw_real.a(lib_tstp.o): in function `handle_SIGTSTP': /usr/src/contrib/ncurses/ncurses/tty/lib_tstp.c:222: undefined reference to `flushinp_sp' /usr/local/bin/x86_64-unknown-freebsd14.0-ld: /usr/obj/usr/src/amd64.amd64/tmp/usr/lib/libncursesw_real.a(lib_getch.o): in function `check_mouse_activity': /usr/src/contrib/ncurses/ncurses/base/lib_getch.c:188: undefined reference to `_nc_timed_wait' /usr/local/bin/x86_64-unknown-freebsd14.0-ld: /usr/obj/usr/src/amd64.amd64/tmp/usr/lib/libncursesw_real.a(lib_getstr.o): in function `wgetnstr': /usr/src/contrib/ncurses/ncurses/base/lib_getstr.c:106: undefined reference to `erasechar_sp' /usr/local/bin/x86_64-unknown-freebsd14.0-ld: /usr/src/contrib/ncurses/ncurses/base/lib_getstr.c:107: undefined reference to `killchar_sp' collect2: error: ld returned 1 exit status *** [rescue] Error code 1 make[5]: stopped in /usr/obj/usr/src/amd64.amd64/rescue/rescue --- all_subdir_stand --- make[2]: stopped in /usr/src --- all_subdir_share --- make[2]: stopped in /usr/src --- all_subdir_rescue --- 1 error make[5]: stopped in /usr/obj/usr/src/amd64.amd64/rescue/rescue *** [rescue] Error code 2 make[4]: stopped in /usr/src/rescue/rescue 1 error make[4]: stopped in /usr/src/rescue/rescue make[3]: stopped in /usr/src/rescue make[2]: stopped in /usr/src --- all_subdir_lib --- make[2]: stopped in /usr/src 167.49 real 492.07 user 94.42 sys make[1]: stopped in /usr/src make: stopped in /usr/src ---------------------------------------------------------------------- If I check commit messages of main branch over the last few months, I can find some commits that fix warning message displayed by GCC. So currently external GCC toolchain seems to work fine. Then what is the cause of my build failure? Did I do something wrong? Best Regards. --- Yasuhiro Kimura