From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 6BA4E393C842; Fri, 14 May 2021 08:57:02 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 6BA4E393C842 From: "markus.boeck02 at gmail dot com" To: gcc-bugs@gcc.gnu.org Subject: [Bug other/100598] New: MinGW Canadian cross toolchain fails to build due to missing BASEVER in genversion.c Date: Fri, 14 May 2021 08:57:02 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: other X-Bugzilla-Version: 12.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: markus.boeck02 at gmail dot com 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 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: Fri, 14 May 2021 08:57:02 -0000 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D100598 Bug ID: 100598 Summary: MinGW Canadian cross toolchain fails to build due to missing BASEVER in genversion.c Product: gcc Version: 12.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: other Assignee: unassigned at gcc dot gnu.org Reporter: markus.boeck02 at gmail dot com Target Milestone: --- I am currently unable to build trunk version of gcc due to a compiler error when compiling the file genversion.c. This happens when crosscompiling a GCC toolchain for a x86_64-w64-mingw32 host. The compiler error: ../../gcc/genversion.c: In function =E2=80=98int main()=E2=80=99: ../../gcc/genversion.c:37:20: error: =E2=80=98BASEVER=E2=80=99 was not decl= ared in this scope char basever[] =3D BASEVER; ^~~~~~~ ../../gcc/genversion.c:50:11: error: =E2=80=98DEVPHASE=E2=80=99 was not dec= lared in this scope phase =3D DEVPHASE[0]; ^~~~~~~~ ../../gcc/genversion.c:73:39: error: expected =E2=80=98)=E2=80=99 before = =E2=80=98BASEVER=E2=80=99 printf ("#define version_string \"" BASEVER DATESTAMP DEVPHASE REVISION "\"\n"); ^~~~~~~ ../../gcc/genversion.c:74:42: error: expected =E2=80=98)=E2=80=99 before = =E2=80=98PKGVERSION=E2=80=99 printf ("#define pkgversion_string \"" PKGVERSION "\"\n\n"); ^~~~~~~~~~ ../../gcc/genversion.c:82:39: error: expected =E2=80=98)=E2=80=99 before = =E2=80=98BUGURL=E2=80=99 printf ("#define bug_report_url \"" BUGURL "\"\n\n"); ^~~~~~ make[2]: *** [build/genversion.o] Error 1 make[2]: *** Waiting for unfinished jobs.... The compile command used in the build is: g++ -c -DIN_GCC -DGENERATOR_FILE -I. -Ibuild -I../../gcc -I../../gcc/build -I../../gcc/../include -I../../gcc/../libcpp/include -I/mnt/c/GCC-Build/NewestLinux/Libraries/include \ -o build/genversion.o ../../gcc/genversion.c where g++ is 7.5.0 shipped with Ubuntu 18.04 which I am using as build environment.=20 The configure command used is: ../configure --target=3Dx86_64-w64-mingw32 --host=3Dx86_64-w64-mingw32 --disable-bootstrap --enable-libstdcxx-debug --with-tune=3Dznver1 --prefix=3D/mnt/c/GCC --with-sysroot=3D/mnt/c/GCC-Build/NewestLinux --with-build-sysroot=3D/mnt/c/GCC-Build/NewestLinux --disable-libstdcxx-pch --disable-multilib --enable-libgomp --with-cross-host --with-libiconv-prefix=3D/mnt/c/GCC-Build/NewestLinux/Libraries --disable-libstdcxx-verbose --enable-languages=3Dc,c++,fortran,lto,objc,obj= -c++,d --disable-nls --disable-win32-registry --enable-shared --with-gnu-as --with-gnu-ld --enable-threads=3Dposix --program-suffix=3D-12 --enable-version-specific-runtime-libs --with-gcc-major-version-only --enable-__cxa_atexit --enable-plugin --program-prefix=3D --enable-checking=3Drelease=