From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 8C9B738582A4; Wed, 23 Nov 2022 05:16:30 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 8C9B738582A4 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1669180590; bh=rrrFUW/TAnTVb26aVyssKhxJzvWUq+ONKmi1NM5w/vs=; h=From:To:Subject:Date:In-Reply-To:References:From; b=D8ne0iqeNnLfkhBWJdus/MKz/as1bITh+87r4j1P0shGnbDfEIHlCPWkJqNxWERt2 BIkHspwrgLLt1aq0c4em5EuggCAautICySAHQSaty/Iufxzw3MOEouXpKuj6VUNcN3 DP9g7P9WNTLcMC9RMi0SIxYEhq/iTU1EEbgWuJgc= From: "jdx at o2 dot pl" To: gcc-bugs@gcc.gnu.org Subject: [Bug libstdc++/107801] Building cross compiler for H8 family fails in libstdc++ (c++17/memory_resource.cc) Date: Wed, 23 Nov 2022 05:16:28 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: libstdc++ X-Bugzilla-Version: 12.2.0 X-Bugzilla-Keywords: build X-Bugzilla-Severity: normal X-Bugzilla-Who: jdx at o2 dot pl X-Bugzilla-Status: NEW X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: 11.4 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: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 List-Id: https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D107801 --- Comment #7 from Jan Dubiec --- OK, I have applied the patch manually to my 12.2.0 tree and libstdc++ has b= een partially build. "Partially" because everything seems to be fine for H8/300= H, H8S and H8SX in "advanced mode" (let's call it "32-bit mode") but compilati= on fails (in the same file!) in "normal mode" ("16-bit mode"). Note the -mn option: [...] Making all in c++17 make[9]: Entering directory '/d/Works/xcomp/gcc-build/h8300-elf/normal/libstdc++-v3/src/c++17' /bin/sh ../../libtool --tag CXX --tag disable-shared --mode=3Dcompile /d/Works/xcomp/gcc-build/./gcc/xgcc -shared-libgcc -B/d/Works/xcomp/gcc-build/./gcc -nostdinc++ -L/d/Works/xcomp/gcc-build/h8300-elf/normal/libstdc++-v3/src -L/d/Works/xcomp/gcc-build/h8300-elf/normal/libstdc++-v3/src/.libs -L/d/Works/xcomp/gcc-build/h8300-elf/normal/libstdc++-v3/libsupc++/.libs -B/usr/local/h8300-elf/bin/ -B/usr/local/h8300-elf/lib/ -isystem /usr/local/h8300-elf/include -isystem /usr/local/h8300-elf/sys-include -mn -I/d/Works/xcomp/gcc-12.2.0/libstdc++-v3/../libgcc -I/d/Works/xcomp/gcc-build/h8300-elf/normal/libstdc++-v3/include/h8300-elf -I/d/Works/xcomp/gcc-build/h8300-elf/normal/libstdc++-v3/include -I/d/Works/xcomp/gcc-12.2.0/libstdc++-v3/libsupc++ -std=3Dgnu++17 -nostdi= nc++=20=20 -fno-implicit-templates -Wall -Wextra -Wwrite-strings -Wcast-qual -Wabi=3D= 2=20 -fdiagnostics-show-location=3Donce -ffunction-sections -fdata-sections=20 -frandom-seed=3Dfloating_from_chars.lo -fimplicit-templates -isystem /d/Works/xcomp/sysroot/h8300-elf/include -mn -c -o floating_from_chars.lo ../../../../../../gcc-12.2.0/libstdc++-v3/src/c++17/floating_from_chars.cc libtool: compile: /d/Works/xcomp/gcc-build/./gcc/xgcc -shared-libgcc -B/d/Works/xcomp/gcc-build/./gcc -nostdinc++ -L/d/Works/xcomp/gcc-build/h8300-elf/normal/libstdc++-v3/src -L/d/Works/xcomp/gcc-build/h8300-elf/normal/libstdc++-v3/src/.libs -L/d/Works/xcomp/gcc-build/h8300-elf/normal/libstdc++-v3/libsupc++/.libs -B/usr/local/h8300-elf/bin/ -B/usr/local/h8300-elf/lib/ -isystem /usr/local/h8300-elf/include -isystem /usr/local/h8300-elf/sys-include -mn -I/d/Works/xcomp/gcc-12.2.0/libstdc++-v3/../libgcc -I/d/Works/xcomp/gcc-build/h8300-elf/normal/libstdc++-v3/include/h8300-elf -I/d/Works/xcomp/gcc-build/h8300-elf/normal/libstdc++-v3/include -I/d/Works/xcomp/gcc-12.2.0/libstdc++-v3/libsupc++ -std=3Dgnu++17 -nostdinc= ++ -fno-implicit-templates -Wall -Wextra -Wwrite-strings -Wcast-qual -Wabi=3D2 -fdiagnostics-show-location=3Donce -ffunction-sections -fdata-sections -frandom-seed=3Dfloating_from_chars.lo -fimplicit-templates -isystem /d/Works/xcomp/sysroot/h8300-elf/include -mn -c ../../../../../../gcc-12.2.0/libstdc++-v3/src/c++17/floating_from_chars.cc = -o floating_from_chars.o /bin/sh ../../libtool --tag CXX --tag disable-shared --mode=3Dcompile /d/Works/xcomp/gcc-build/./gcc/xgcc -shared-libgcc -B/d/Works/xcomp/gcc-build/./gcc -nostdinc++ -L/d/Works/xcomp/gcc-build/h8300-elf/normal/libstdc++-v3/src -L/d/Works/xcomp/gcc-build/h8300-elf/normal/libstdc++-v3/src/.libs -L/d/Works/xcomp/gcc-build/h8300-elf/normal/libstdc++-v3/libsupc++/.libs -B/usr/local/h8300-elf/bin/ -B/usr/local/h8300-elf/lib/ -isystem /usr/local/h8300-elf/include -isystem /usr/local/h8300-elf/sys-include -mn -I/d/Works/xcomp/gcc-12.2.0/libstdc++-v3/../libgcc -I/d/Works/xcomp/gcc-build/h8300-elf/normal/libstdc++-v3/include/h8300-elf -I/d/Works/xcomp/gcc-build/h8300-elf/normal/libstdc++-v3/include -I/d/Works/xcomp/gcc-12.2.0/libstdc++-v3/libsupc++ -std=3Dgnu++17 -nostdi= nc++=20=20 -fno-implicit-templates -Wall -Wextra -Wwrite-strings -Wcast-qual -Wabi=3D= 2=20 -fdiagnostics-show-location=3Donce -ffunction-sections -fdata-sections=20 -frandom-seed=3Dfloating_to_chars.lo -fimplicit-templates -isystem /d/Works/xcomp/sysroot/h8300-elf/include -mn -c -o floating_to_chars.lo ../../../../../../gcc-12.2.0/libstdc++-v3/src/c++17/floating_to_chars.cc libtool: compile: /d/Works/xcomp/gcc-build/./gcc/xgcc -shared-libgcc -B/d/Works/xcomp/gcc-build/./gcc -nostdinc++ -L/d/Works/xcomp/gcc-build/h8300-elf/normal/libstdc++-v3/src -L/d/Works/xcomp/gcc-build/h8300-elf/normal/libstdc++-v3/src/.libs -L/d/Works/xcomp/gcc-build/h8300-elf/normal/libstdc++-v3/libsupc++/.libs -B/usr/local/h8300-elf/bin/ -B/usr/local/h8300-elf/lib/ -isystem /usr/local/h8300-elf/include -isystem /usr/local/h8300-elf/sys-include -mn -I/d/Works/xcomp/gcc-12.2.0/libstdc++-v3/../libgcc -I/d/Works/xcomp/gcc-build/h8300-elf/normal/libstdc++-v3/include/h8300-elf -I/d/Works/xcomp/gcc-build/h8300-elf/normal/libstdc++-v3/include -I/d/Works/xcomp/gcc-12.2.0/libstdc++-v3/libsupc++ -std=3Dgnu++17 -nostdinc= ++ -fno-implicit-templates -Wall -Wextra -Wwrite-strings -Wcast-qual -Wabi=3D2 -fdiagnostics-show-location=3Donce -ffunction-sections -fdata-sections -frandom-seed=3Dfloating_to_chars.lo -fimplicit-templates -isystem /d/Works/xcomp/sysroot/h8300-elf/include -mn -c ../../../../../../gcc-12.2.0/libstdc++-v3/src/c++17/floating_to_chars.cc -o floating_to_chars.o /bin/sh ../../libtool --tag CXX --tag disable-shared --mode=3Dcompile /d/Works/xcomp/gcc-build/./gcc/xgcc -shared-libgcc -B/d/Works/xcomp/gcc-build/./gcc -nostdinc++ -L/d/Works/xcomp/gcc-build/h8300-elf/normal/libstdc++-v3/src -L/d/Works/xcomp/gcc-build/h8300-elf/normal/libstdc++-v3/src/.libs -L/d/Works/xcomp/gcc-build/h8300-elf/normal/libstdc++-v3/libsupc++/.libs -B/usr/local/h8300-elf/bin/ -B/usr/local/h8300-elf/lib/ -isystem /usr/local/h8300-elf/include -isystem /usr/local/h8300-elf/sys-include -mn -I/d/Works/xcomp/gcc-12.2.0/libstdc++-v3/../libgcc -I/d/Works/xcomp/gcc-build/h8300-elf/normal/libstdc++-v3/include/h8300-elf -I/d/Works/xcomp/gcc-build/h8300-elf/normal/libstdc++-v3/include -I/d/Works/xcomp/gcc-12.2.0/libstdc++-v3/libsupc++ -std=3Dgnu++17 -nostdi= nc++=20=20 -fno-implicit-templates -Wall -Wextra -Wwrite-strings -Wcast-qual -Wabi=3D= 2=20 -fdiagnostics-show-location=3Donce -ffunction-sections -fdata-sections=20 -frandom-seed=3Dfs_dir.lo -fimplicit-templates -isystem /d/Works/xcomp/sysroot/h8300-elf/include -mn -c -o fs_dir.lo ../../../../../../gcc-12.2.0/libstdc++-v3/src/c++17/fs_dir.cc libtool: compile: /d/Works/xcomp/gcc-build/./gcc/xgcc -shared-libgcc -B/d/Works/xcomp/gcc-build/./gcc -nostdinc++ -L/d/Works/xcomp/gcc-build/h8300-elf/normal/libstdc++-v3/src -L/d/Works/xcomp/gcc-build/h8300-elf/normal/libstdc++-v3/src/.libs -L/d/Works/xcomp/gcc-build/h8300-elf/normal/libstdc++-v3/libsupc++/.libs -B/usr/local/h8300-elf/bin/ -B/usr/local/h8300-elf/lib/ -isystem /usr/local/h8300-elf/include -isystem /usr/local/h8300-elf/sys-include -mn -I/d/Works/xcomp/gcc-12.2.0/libstdc++-v3/../libgcc -I/d/Works/xcomp/gcc-build/h8300-elf/normal/libstdc++-v3/include/h8300-elf -I/d/Works/xcomp/gcc-build/h8300-elf/normal/libstdc++-v3/include -I/d/Works/xcomp/gcc-12.2.0/libstdc++-v3/libsupc++ -std=3Dgnu++17 -nostdinc= ++ -fno-implicit-templates -Wall -Wextra -Wwrite-strings -Wcast-qual -Wabi=3D2 -fdiagnostics-show-location=3Donce -ffunction-sections -fdata-sections -frandom-seed=3Dfs_dir.lo -fimplicit-templates -isystem /d/Works/xcomp/sysroot/h8300-elf/include -mn -c ../../../../../../gcc-12.2.0/libstdc++-v3/src/c++17/fs_dir.cc -o fs_dir.o In file included from d:\works\xcomp\gcc-12.2.0\libstdc++-v3\src\c++17\fs_dir.cc:37: d:\works\xcomp\gcc-12.2.0\libstdc++-v3\src\filesystem\dir-common.h: In stat= ic member function 'static std::filesystem::__gnu_posix::DIR* std::filesystem::_Dir_base::openat(const _At_path&, bool)': d:\works\xcomp\gcc-12.2.0\libstdc++-v3\src\filesystem\dir-common.h:210:36: warning: unused parameter 'nofollow' [-Wunused-parameter] 210 | openat(const _At_path& atp, bool nofollow) | ~~~~~^~~~~~~~ d:\works\xcomp\gcc-12.2.0\libstdc++-v3\src\c++17\fs_dir.cc: In member funct= ion 'bool std::filesystem::__cxx11::_Dir::do_unlink(bool, std::error_code&) con= st': d:\works\xcomp\gcc-12.2.0\libstdc++-v3\src\c++17\fs_dir.cc:147:18: warning: unused parameter 'is_directory' [-Wunused-parameter] 147 | do_unlink(bool is_directory, error_code& ec) const noexcept | ~~~~~^~~~~~~~~~~~ /bin/sh ../../libtool --tag CXX --tag disable-shared --mode=3Dcompile /d/Works/xcomp/gcc-build/./gcc/xgcc -shared-libgcc -B/d/Works/xcomp/gcc-build/./gcc -nostdinc++ -L/d/Works/xcomp/gcc-build/h8300-elf/normal/libstdc++-v3/src -L/d/Works/xcomp/gcc-build/h8300-elf/normal/libstdc++-v3/src/.libs -L/d/Works/xcomp/gcc-build/h8300-elf/normal/libstdc++-v3/libsupc++/.libs -B/usr/local/h8300-elf/bin/ -B/usr/local/h8300-elf/lib/ -isystem /usr/local/h8300-elf/include -isystem /usr/local/h8300-elf/sys-include -mn -I/d/Works/xcomp/gcc-12.2.0/libstdc++-v3/../libgcc -I/d/Works/xcomp/gcc-build/h8300-elf/normal/libstdc++-v3/include/h8300-elf -I/d/Works/xcomp/gcc-build/h8300-elf/normal/libstdc++-v3/include -I/d/Works/xcomp/gcc-12.2.0/libstdc++-v3/libsupc++ -std=3Dgnu++17 -nostdi= nc++=20=20 -fno-implicit-templates -Wall -Wextra -Wwrite-strings -Wcast-qual -Wabi=3D= 2=20 -fdiagnostics-show-location=3Donce -ffunction-sections -fdata-sections=20 -frandom-seed=3Dfs_ops.lo -fimplicit-templates -isystem /d/Works/xcomp/sysroot/h8300-elf/include -mn -c -o fs_ops.lo ../../../../../../gcc-12.2.0/libstdc++-v3/src/c++17/fs_ops.cc libtool: compile: /d/Works/xcomp/gcc-build/./gcc/xgcc -shared-libgcc -B/d/Works/xcomp/gcc-build/./gcc -nostdinc++ -L/d/Works/xcomp/gcc-build/h8300-elf/normal/libstdc++-v3/src -L/d/Works/xcomp/gcc-build/h8300-elf/normal/libstdc++-v3/src/.libs -L/d/Works/xcomp/gcc-build/h8300-elf/normal/libstdc++-v3/libsupc++/.libs -B/usr/local/h8300-elf/bin/ -B/usr/local/h8300-elf/lib/ -isystem /usr/local/h8300-elf/include -isystem /usr/local/h8300-elf/sys-include -mn -I/d/Works/xcomp/gcc-12.2.0/libstdc++-v3/../libgcc -I/d/Works/xcomp/gcc-build/h8300-elf/normal/libstdc++-v3/include/h8300-elf -I/d/Works/xcomp/gcc-build/h8300-elf/normal/libstdc++-v3/include -I/d/Works/xcomp/gcc-12.2.0/libstdc++-v3/libsupc++ -std=3Dgnu++17 -nostdinc= ++ -fno-implicit-templates -Wall -Wextra -Wwrite-strings -Wcast-qual -Wabi=3D2 -fdiagnostics-show-location=3Donce -ffunction-sections -fdata-sections -frandom-seed=3Dfs_ops.lo -fimplicit-templates -isystem /d/Works/xcomp/sysroot/h8300-elf/include -mn -c ../../../../../../gcc-12.2.0/libstdc++-v3/src/c++17/fs_ops.cc -o fs_ops.o /bin/sh ../../libtool --tag CXX --tag disable-shared --mode=3Dcompile /d/Works/xcomp/gcc-build/./gcc/xgcc -shared-libgcc -B/d/Works/xcomp/gcc-build/./gcc -nostdinc++ -L/d/Works/xcomp/gcc-build/h8300-elf/normal/libstdc++-v3/src -L/d/Works/xcomp/gcc-build/h8300-elf/normal/libstdc++-v3/src/.libs -L/d/Works/xcomp/gcc-build/h8300-elf/normal/libstdc++-v3/libsupc++/.libs -B/usr/local/h8300-elf/bin/ -B/usr/local/h8300-elf/lib/ -isystem /usr/local/h8300-elf/include -isystem /usr/local/h8300-elf/sys-include -mn -I/d/Works/xcomp/gcc-12.2.0/libstdc++-v3/../libgcc -I/d/Works/xcomp/gcc-build/h8300-elf/normal/libstdc++-v3/include/h8300-elf -I/d/Works/xcomp/gcc-build/h8300-elf/normal/libstdc++-v3/include -I/d/Works/xcomp/gcc-12.2.0/libstdc++-v3/libsupc++ -std=3Dgnu++17 -nostdi= nc++=20=20 -fno-implicit-templates -Wall -Wextra -Wwrite-strings -Wcast-qual -Wabi=3D= 2=20 -fdiagnostics-show-location=3Donce -ffunction-sections -fdata-sections=20 -frandom-seed=3Dfs_path.lo -fimplicit-templates -isystem /d/Works/xcomp/sysroot/h8300-elf/include -mn -c -o fs_path.lo ../../../../../../gcc-12.2.0/libstdc++-v3/src/c++17/fs_path.cc libtool: compile: /d/Works/xcomp/gcc-build/./gcc/xgcc -shared-libgcc -B/d/Works/xcomp/gcc-build/./gcc -nostdinc++ -L/d/Works/xcomp/gcc-build/h8300-elf/normal/libstdc++-v3/src -L/d/Works/xcomp/gcc-build/h8300-elf/normal/libstdc++-v3/src/.libs -L/d/Works/xcomp/gcc-build/h8300-elf/normal/libstdc++-v3/libsupc++/.libs -B/usr/local/h8300-elf/bin/ -B/usr/local/h8300-elf/lib/ -isystem /usr/local/h8300-elf/include -isystem /usr/local/h8300-elf/sys-include -mn -I/d/Works/xcomp/gcc-12.2.0/libstdc++-v3/../libgcc -I/d/Works/xcomp/gcc-build/h8300-elf/normal/libstdc++-v3/include/h8300-elf -I/d/Works/xcomp/gcc-build/h8300-elf/normal/libstdc++-v3/include -I/d/Works/xcomp/gcc-12.2.0/libstdc++-v3/libsupc++ -std=3Dgnu++17 -nostdinc= ++ -fno-implicit-templates -Wall -Wextra -Wwrite-strings -Wcast-qual -Wabi=3D2 -fdiagnostics-show-location=3Donce -ffunction-sections -fdata-sections -frandom-seed=3Dfs_path.lo -fimplicit-templates -isystem /d/Works/xcomp/sysroot/h8300-elf/include -mn -c ../../../../../../gcc-12.2.0/libstdc++-v3/src/c++17/fs_path.cc -o fs_path.o /bin/sh ../../libtool --tag CXX --tag disable-shared --mode=3Dcompile /d/Works/xcomp/gcc-build/./gcc/xgcc -shared-libgcc -B/d/Works/xcomp/gcc-build/./gcc -nostdinc++ -L/d/Works/xcomp/gcc-build/h8300-elf/normal/libstdc++-v3/src -L/d/Works/xcomp/gcc-build/h8300-elf/normal/libstdc++-v3/src/.libs -L/d/Works/xcomp/gcc-build/h8300-elf/normal/libstdc++-v3/libsupc++/.libs -B/usr/local/h8300-elf/bin/ -B/usr/local/h8300-elf/lib/ -isystem /usr/local/h8300-elf/include -isystem /usr/local/h8300-elf/sys-include -mn -I/d/Works/xcomp/gcc-12.2.0/libstdc++-v3/../libgcc -I/d/Works/xcomp/gcc-build/h8300-elf/normal/libstdc++-v3/include/h8300-elf -I/d/Works/xcomp/gcc-build/h8300-elf/normal/libstdc++-v3/include -I/d/Works/xcomp/gcc-12.2.0/libstdc++-v3/libsupc++ -std=3Dgnu++17 -nostdi= nc++=20=20 -fno-implicit-templates -Wall -Wextra -Wwrite-strings -Wcast-qual -Wabi=3D= 2=20 -fdiagnostics-show-location=3Donce -ffunction-sections -fdata-sections=20 -frandom-seed=3Dmemory_resource.lo -fimplicit-templates -isystem /d/Works/xcomp/sysroot/h8300-elf/include -mn -c -o memory_resource.lo ../../../../../../gcc-12.2.0/libstdc++-v3/src/c++17/memory_resource.cc libtool: compile: /d/Works/xcomp/gcc-build/./gcc/xgcc -shared-libgcc -B/d/Works/xcomp/gcc-build/./gcc -nostdinc++ -L/d/Works/xcomp/gcc-build/h8300-elf/normal/libstdc++-v3/src -L/d/Works/xcomp/gcc-build/h8300-elf/normal/libstdc++-v3/src/.libs -L/d/Works/xcomp/gcc-build/h8300-elf/normal/libstdc++-v3/libsupc++/.libs -B/usr/local/h8300-elf/bin/ -B/usr/local/h8300-elf/lib/ -isystem /usr/local/h8300-elf/include -isystem /usr/local/h8300-elf/sys-include -mn -I/d/Works/xcomp/gcc-12.2.0/libstdc++-v3/../libgcc -I/d/Works/xcomp/gcc-build/h8300-elf/normal/libstdc++-v3/include/h8300-elf -I/d/Works/xcomp/gcc-build/h8300-elf/normal/libstdc++-v3/include -I/d/Works/xcomp/gcc-12.2.0/libstdc++-v3/libsupc++ -std=3Dgnu++17 -nostdinc= ++ -fno-implicit-templates -Wall -Wextra -Wwrite-strings -Wcast-qual -Wabi=3D2 -fdiagnostics-show-location=3Donce -ffunction-sections -fdata-sections -frandom-seed=3Dmemory_resource.lo -fimplicit-templates -isystem /d/Works/xcomp/sysroot/h8300-elf/include -mn -c ../../../../../../gcc-12.2.0/libstdc++-v3/src/c++17/memory_resource.cc -o memory_resource.o d:\works\xcomp\gcc-12.2.0\libstdc++-v3\src\c++17\memory_resource.cc:583:7: error: static assertion failed 582 | static_assert(sizeof(chunk) | ~~~~~~~~~~~~~ 583 | =3D=3D sizeof(bitset::size_type) + sizeof(uint32_t) + 2 * sizeof(void*)); |=20=20=20=20=20=20 ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ d:\works\xcomp\gcc-12.2.0\libstdc++-v3\src\c++17\memory_resource.cc:583:7: note: the comparison reduces to '(12 =3D=3D 10)' make[9]: *** [Makefile:585: memory_resource.lo] Error 1 make[9]: Leaving directory '/d/Works/xcomp/gcc-build/h8300-elf/normal/libstdc++-v3/src/c++17' make[8]: *** [Makefile:781: all-recursive] Error 1 make[8]: Leaving directory '/d/Works/xcomp/gcc-build/h8300-elf/normal/libstdc++-v3/src' make[7]: *** [Makefile:576: all-recursive] Error 1 make[7]: Leaving directory '/d/Works/xcomp/gcc-build/h8300-elf/normal/libstdc++-v3' make[6]: *** [Makefile:501: all] Error 2 make[6]: Leaving directory '/d/Works/xcomp/gcc-build/h8300-elf/normal/libstdc++-v3' make[5]: *** [Makefile:870: multi-do] Error 1 make[5]: Leaving directory '/d/Works/xcomp/gcc-build/h8300-elf/libstdc++-v3' make[4]: *** [Makefile:840: all-multi] Error 2 make[4]: Leaving directory '/d/Works/xcomp/gcc-build/h8300-elf/libstdc++-v3' make[3]: *** [Makefile:576: all-recursive] Error 1 make[3]: Leaving directory '/d/Works/xcomp/gcc-build/h8300-elf/libstdc++-v3' make[2]: *** [Makefile:501: all] Error 2 make[2]: Leaving directory '/d/Works/xcomp/gcc-build/h8300-elf/libstdc++-v3' make[1]: *** [Makefile:12297: all-target-libstdc++-v3] Error 2 make[1]: Leaving directory '/d/Works/xcomp/gcc-build' make: *** [Makefile:1043: all] Error 2 BTW. I can see -mn option above but AFAIK it has to be used with -mh or -ms= or -msx. So how the build system passes one of these options to the cross compiler?=