From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 60A313858415; Tue, 18 Oct 2022 15:13:57 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 60A313858415 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sourceware.org; s=default; t=1666106037; bh=zGawfuG4qnhqZLlbd8Ob+ZYe60B0LIkZBT/U4gX7j94=; h=From:To:Subject:Date:From; b=JD36NCWNJtKr3+pPdxT4Z+234jKxmXDucywZgbG0wz3bHVIr9hWLEH569Ex2+Vk9K r6Wk+kdHzl5u4tDog6kZXoYsKry0gjbmsxCOW+YRfMQlFbs9nAF4nQa9Gs44Fiv580 R0ujNmJPWsCM2d4gn+iYDPWflYC8bjwb/cmt1LDE= From: "Felix.Riemann at sma dot de" To: glibc-bugs@sourceware.org Subject: [Bug build/29698] New: Configuring for AArch32 on ARMv8+ disables optimizations Date: Tue, 18 Oct 2022 15:13:56 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: glibc X-Bugzilla-Component: build X-Bugzilla-Version: 2.37 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: Felix.Riemann at sma dot de X-Bugzilla-Status: UNCONFIRMED X-Bugzilla-Resolution: X-Bugzilla-Priority: P2 X-Bugzilla-Assigned-To: unassigned at sourceware dot 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 Message-ID: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://sourceware.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 List-Id: https://sourceware.org/bugzilla/show_bug.cgi?id=3D29698 Bug ID: 29698 Summary: Configuring for AArch32 on ARMv8+ disables optimizations Product: glibc Version: 2.37 Status: UNCONFIRMED Severity: normal Priority: P2 Component: build Assignee: unassigned at sourceware dot org Reporter: Felix.Riemann at sma dot de CC: carlos at redhat dot com Target Milestone: --- Configuring glibc for ARM AArch32 with a compiler that optimizes for ARMv8 causes configure to misdetect the target and disable all optimizations/fall back on ARMv5: $ CFLAGS=3D"-O2 -march=3Darmv8-a" ../configure --prefix=3D/usr --host=3Darm-linux-gnueabi configure: loading site script /usr/share/site/x86_64-unknown-linux-gnu checking build system type... x86_64-pc-linux-gnu checking host system type... arm-unknown-linux-gnueabi checking for arm-linux-gnueabi-gcc... arm-linux-gnueabi-gcc checking for suffix of object files... o checking whether we are using the GNU C compiler... yes checking whether arm-linux-gnueabi-gcc accepts -g... yes checking for gcc... gcc checking for arm-linux-gnueabi-readelf... arm-linux-gnueabi-readelf checking for arm-linux-gnueabi-g++... arm-linux-gnueabi-g++ checking whether we are using the GNU C++ compiler... yes checking whether arm-linux-gnueabi-g++ accepts -g... yes checking whether arm-linux-gnueabi-g++ can link programs... yes checking for sysdeps preconfigure fragments... aarch64 alpha arc arm config= ure: WARNING: arm/preconfigure: Did not find ARM architecture type; using default This is due to the glob in sysdeps/arm/preconfigure.ac being underquoted so that m4 will remove the brackets for ARMv8/v9. I'll send a patch shortly. I picked 2.37 as it is reproducable on git master but I could reproduce it = in versions going back to at least 2.28. --=20 You are receiving this mail because: You are on the CC list for the bug.=