From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id D16C1385DC19; Mon, 30 Oct 2023 15:21:55 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org D16C1385DC19 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1698679315; bh=tPiJP58D8+jmIuS84+TobELKq4aXw9GViJBlZyMk0Qs=; h=From:To:Subject:Date:From; b=dSLmbHcZ6XDdTshhkqx4j5waWDSYB/6asSKbcEHmDpJFs6Y81U+GwR6lbhhOL98XF UXm3rMtxMPQO0L1fDW3NHnNUJa2L0uS3wGmL/bP/QO8G4w5uM3JiNoVPi7LIf2lGFC i7H1Q/oI2hBSVQULzbOpkcZy3KjyjdUDfxrWCT/c= From: "jamborm at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug target/112299] New: Cross compiling to loongarch64-linux-gnuf64 fails because "HAVE_AS_TLS was not declared" after r14-4925-g1b30ef7cea773e Date: Mon, 30 Oct 2023 15:21:55 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: target X-Bugzilla-Version: 14.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: jamborm at gcc dot gnu.org 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 cc target_milestone cf_gcchost cf_gcctarget 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 List-Id: https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D112299 Bug ID: 112299 Summary: Cross compiling to loongarch64-linux-gnuf64 fails because "HAVE_AS_TLS was not declared" after r14-4925-g1b30ef7cea773e Product: gcc Version: 14.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: target Assignee: unassigned at gcc dot gnu.org Reporter: jamborm at gcc dot gnu.org CC: chenxiaolong at loongson dot cn Target Milestone: --- Host: x86_64-linux-gnu Target: loongarch64-linux-gnuf64 Starting with r14-4925-g1b30ef7cea773e, when I try to test that cross compilation to target loongarch64-linux-gnuf64 still works by configuring g= cc with: $ ../src/configure --target=3Dloongarch64-linux-gnuf64 --disable-bootstrap --enable-languages=3Dc,c++ --disable-multilib --enable-obsolete and then building just the compiler with: $ make -j64 all-host CXXFLAGS=3D"-O0 -g" CFLAGS=3D"-O0 -g" The compilation fails with: ../../src/gcc/config/loongarch/loongarch.md:3655:2: error: =E2=80=98HAVE_AS= _TLS=E2=80=99 was not declared in this scope 3655 | "HAVE_AS_TLS" | ^~~~~~~~~~~ config.status: executing libtool commands ../../src/gcc/config/loongarch/loongarch.md:3655:2: error: =E2=80=98HAVE_AS= _TLS=E2=80=99 was not declared in this scope 3655 | "HAVE_AS_TLS" | ^~~~~~~~~~~ ../../src/gcc/config/loongarch/loongarch.md:3655:2: error: =E2=80=98HAVE_AS= _TLS=E2=80=99 was not declared in this scope 3655 | "HAVE_AS_TLS" | ^~~~~~~~~~~ ../../src/gcc/config/loongarch/loongarch.md:3655:2: error: =E2=80=98HAVE_AS= _TLS=E2=80=99 was not declared in this scope 3655 | "HAVE_AS_TLS" | ^~~~~~~~~~~ make[1]: *** [Makefile:2958: build/gencondmd.o] Error 1 make[1]: *** Waiting for unfinished jobs.... rm gfdl.pod gcc.pod gcov-dump.pod gcov-tool.pod fsf-funding.pod gpl.pod cpp= .pod gcov.pod lto-dump.pod make[1]: Leaving directory '/home/mjambor/gcc/mine/obj/gcc' According to our buildbot, building a cross for loongarch64-linux-gnuf32 and loongarch64-linux-gnusf also fails, likely because of the same issue.=