From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 17B323853805; Wed, 18 Aug 2021 19:29:09 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 17B323853805 From: "frans at fransdb dot nl" To: gcc-bugs@gcc.gnu.org Subject: [Bug c/101966] New: The specified --host is not always passed correctly Date: Wed, 18 Aug 2021 19:29:08 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: c X-Bugzilla-Version: 11.2.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: frans at fransdb dot nl X-Bugzilla-Status: UNCONFIRMED X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_id short_desc product version bug_status bug_severity priority component assigned_to reporter target_milestone cf_gcchost cf_gcctarget cf_gccbuild Message-ID: 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 X-BeenThere: gcc-bugs@gcc.gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Gcc-bugs mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 18 Aug 2021 19:29:09 -0000 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D101966 Bug ID: 101966 Summary: The specified --host is not always passed correctly Product: gcc Version: 11.2.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: c Assignee: unassigned at gcc dot gnu.org Reporter: frans at fransdb dot nl Target Milestone: --- Host: aarch64 (cortex-a53) Target: same Build: x86-64 Issue while trying to compile the second stage of gcc-11.2, to be used on an aarch64 architecture. Used configure command: --prefix=3D/usr \ --host=3Daarch64-cross-linux-gnueabi \ --build=3Dx86_64-suse-linux \ CC_FOR_TARGET=3Daarch64-cross-linux-gnueabi-gcc \ --enable-languages=3Dc,c++ \ --disable-multilib \ --disable-nls \ --disable-decimal-float \ --disable-libatomic \ --disable-libgomp \ --disable-libquadmath \ --disable-libssp \ --disable-libvtv \ --disable-libstdcxx First some listing: .... gcc -c -W -Wall -Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes -Wold-style-definition -Wmissing-format-attribute -Wno-overlength-strings -pedantic -Wno-long-long -DHAVE_CONFIG_H -I. -I/mnt/lfs/sources-base/gcc-11.2.0/fixincludes -I../include -I/mnt/lfs/sources-base/gcc-11.2.0/fixincludes/../include /mnt/lfs/sources-base/gcc-11.2.0/fixincludes/fixopts.c gcc -o fixincl fixincl.o fixtests.o fixfixes.o server.o procopen.o fixlib= .o fixopts.o ../libiberty/libiberty.a echo timestamp > full-stamp srcdir=3D"/mnt/lfs/sources-base/gcc-11.2.0/fixincludes" /bin/sh /mnt/lfs/sources-base/gcc-11.2.0/fixincludes/mkfixinc.sh aarch64-cross-linux-gnueabi sed -e 's/@gcc_version@/11.2.0/' < mkheaders.almost > mkheadersT mv -f mkheadersT mkheaders make[2]: Leaving directory '/mnt/lfs/sources-base/gcc-11.2.0/gcc-build/build-x86_64-suse-linux/fixincl= udes' mkdir -p -- build-x86_64-suse-linux/libcpp Configuring in build-x86_64-suse-linux/libcpp configure: creating cache ./config.cache checking build system type... x86_64-suse-linux-gnu checking host system type... x86_64-suse-linux-gnu checking target system type... aarch64-cross-linux-gnueabi checking whether make sets $(MAKE)... yes checking for a BSD-compatible install... /usr/bin/install -c ..... config.status: executing depdir commands mkdir -p -- .deps make[2]: Entering directory '/mnt/lfs/sources-base/gcc-11.2.0/gcc-build/build-x86_64-suse-linux/libcpp' g++ -I/mnt/lfs/sources-base/gcc-11.2.0/libcpp -I. -I/mnt/lfs/sources-base/gcc-11.2.0/libcpp/../include -I/mnt/lfs/sources-base/gcc-11.2.0/libcpp/include -mtune=3Dcortex-a53 -W -= Wall -Wno-narrowing -Wwrite-strings -Wmissing-format-attribute -pedantic -Wno-long-long -fno-exceptions -fno-rtti -I/mnt/lfs/sources-base/gcc-11.2.0/libcpp -I. -I/mnt/lfs/sources-base/gcc-11.2.0/libcpp/../include -I/mnt/lfs/sources-base/gcc-11.2.0/libcpp/include -c -o charset.o -MT charset.o -MMD -MP -MF .deps/charset.Tpo /mnt/lfs/sources-base/gcc-11.2.0/libcpp/charset.c cc1plus: error: bad value ('cortex-a53') for '-mtune=3D' switch cc1plus: note: valid arguments to '-mtune=3D' switch are: nocona core2 neha= lem corei7 westmere sandybridge corei7-avx ivybridge core-avx-i haswell core-av= x2 broadwell skylake skylake-avx512 cannonlake icelake-client rocketlake icelake-server cascadelake tigerlake cooperlake sapphirerapids alderlake bonnell atom silvermont slm goldmont goldmont-plus tremont knl knm intel x8= 6-64 eden-x2 nano nano-1000 nano-2000 nano-3000 nano-x2 eden-x4 nano-x4 k8 k8-ss= e3 opteron opteron-sse3 athlon64 athlon64-sse3 athlon-fx amdfam10 barcelona bd= ver1 bdver2 bdver3 bdver4 znver1 znver2 znver3 btver1 btver2 generic native make[2]: *** [Makefile:226: charset.o] Error 1 make[2]: Leaving directory '/mnt/lfs/sources-base/gcc-11.2.0/gcc-build/build-x86_64-suse-linux/libcpp' make[1]: *** [Makefile:2898: all-build-libcpp] Error 2 make[1]: Leaving directory '/mnt/lfs/sources-base/gcc-11.2.0/gcc-build' make: *** [Makefile:947: all] Error 2 The above is right, the only thing is that the wrong host has been forwarde= d. On most others it is: ---- Configuring in ./gcc configure: creating cache ./config.cache checking build system type... x86_64-suse-linux-gnu checking host system type... aarch64-cross-linux-gnueabi checking target system type... aarch64-cross-linux-gnueabi .... It goes wrong at this point: .... mkdir -p -- build-x86_64-suse-linux/libiberty Configuring in build-x86_64-suse-linux/libiberty configure: creating cache ./config.cache checking whether to enable maintainer-specific portions of Makefiles... no checking for makeinfo... makeinfo --split-size=3D5000000 checking for perl... perl checking build system type... x86_64-suse-linux-gnu checking host system type... x86_64-suse-linux-gnu checking for x86_64-suse-linux-ar... ar .... The wrong host system is mentioned, which is passed on to fixinclude with t= he resulting error. Also, earlier on it went wrong with gmp. .... Configuring in ./gmp configure: creating cache ./config.cache checking build system type... x86_64-suse-linux-gnu checking host system type... none-cross-linux-gnueabi checking for a BSD-compatible install... /usr/bin/install -c checking whether build environment is sane... yes checking for none-cross-linux-gnueabi-strip... no Somehow, the configure did not get the right host passed on. It looks like bugs, but correct me if I am wrong.=