public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug libgcc/103420] New: libatomic fails to compile on aarch64 linux with TFLAGS="-mcpu=octeontx2"
@ 2021-11-25 7:31 pinskia at gcc dot gnu.org
2021-11-25 7:32 ` [Bug libgcc/103420] " pinskia at gcc dot gnu.org
2021-11-25 7:54 ` pinskia at gcc dot gnu.org
0 siblings, 2 replies; 3+ messages in thread
From: pinskia at gcc dot gnu.org @ 2021-11-25 7:31 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103420
Bug ID: 103420
Summary: libatomic fails to compile on aarch64 linux with
TFLAGS="-mcpu=octeontx2"
Product: gcc
Version: 12.0
Status: UNCONFIRMED
Keywords: build
Severity: normal
Priority: P3
Component: libgcc
Assignee: unassigned at gcc dot gnu.org
Reporter: pinskia at gcc dot gnu.org
Target Milestone: ---
Target: aarch64-linux-gnu
I was looking at the GCC patches that OpenEmbedded includes and found this one:
https://git.openembedded.org/openembedded-core/tree/meta/recipes-devtools/gcc/gcc/0037-libatomic-Do-not-enforce-march-on-aarch64.patch
Well I decided to figure out how to reproduce the failure and what I found is
if I use TFLAGS="-mcpu=octeontx2" I run into the failure.
^ permalink raw reply [flat|nested] 3+ messages in thread
* [Bug libgcc/103420] libatomic fails to compile on aarch64 linux with TFLAGS="-mcpu=octeontx2"
2021-11-25 7:31 [Bug libgcc/103420] New: libatomic fails to compile on aarch64 linux with TFLAGS="-mcpu=octeontx2" pinskia at gcc dot gnu.org
@ 2021-11-25 7:32 ` pinskia at gcc dot gnu.org
2021-11-25 7:54 ` pinskia at gcc dot gnu.org
1 sibling, 0 replies; 3+ messages in thread
From: pinskia at gcc dot gnu.org @ 2021-11-25 7:32 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103420
Andrew Pinski <pinskia at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |ASSIGNED
Ever confirmed|0 |1
Assignee|unassigned at gcc dot gnu.org |pinskia at gcc dot gnu.org
Last reconfirmed| |2021-11-25
--- Comment #1 from Andrew Pinski <pinskia at gcc dot gnu.org> ---
Here is the error message:
/bin/sh ./libtool --tag=CC --mode=compile
/home/ubuntu/src/upstream-gcc-aarch64/gcc/objdir/./gcc/xgcc
-B/home/ubuntu/src/upstream-gcc-aarch64/gcc/objdir/./gcc/
-B/home/ubuntu/upstream-gcc/aarch64-unknown-linux-gnu/bin/
-B/home/ubuntu/upstream-gcc/aarch64-unknown-linux-gnu/lib/ -isystem
/home/ubuntu/upstream-gcc/aarch64-unknown-linux-gnu/include -isystem
/home/ubuntu/upstream-gcc/aarch64-unknown-linux-gnu/sys-include
-mcpu=octeontx2 -fchecking=1 -DHAVE_CONFIG_H
-I/home/ubuntu/src/upstream-gcc-aarch64/gcc/libatomic/config/linux/aarch64
-I/home/ubuntu/src/upstream-gcc-aarch64/gcc/libatomic/config/posix
-I/home/ubuntu/src/upstream-gcc-aarch64/gcc/libatomic -I. -Wall -Werror
-pthread -g -O2 -MT fior_1_1_.lo -MD -MP -MF .deps/fior_1_1_.lo.Ppo -DN=1
-DIFUNC_ALT=1 -march=armv8-a+lse -c -o fior_1_1_.lo
/home/ubuntu/src/upstream-gcc-aarch64/gcc/libatomic/fior_n.c
cc1: error: switch ‘-mcpu=octeontx2’ conflicts with ‘-march=armv8-a+lse’ switch
[-Werror]
cc1: all warnings being treated as errors
Mine.
^ permalink raw reply [flat|nested] 3+ messages in thread
* [Bug libgcc/103420] libatomic fails to compile on aarch64 linux with TFLAGS="-mcpu=octeontx2"
2021-11-25 7:31 [Bug libgcc/103420] New: libatomic fails to compile on aarch64 linux with TFLAGS="-mcpu=octeontx2" pinskia at gcc dot gnu.org
2021-11-25 7:32 ` [Bug libgcc/103420] " pinskia at gcc dot gnu.org
@ 2021-11-25 7:54 ` pinskia at gcc dot gnu.org
1 sibling, 0 replies; 3+ messages in thread
From: pinskia at gcc dot gnu.org @ 2021-11-25 7:54 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103420
Andrew Pinski <pinskia at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Assignee|pinskia at gcc dot gnu.org |unassigned at gcc dot gnu.org
Ever confirmed|1 |0
Status|ASSIGNED |UNCONFIRMED
--- Comment #2 from Andrew Pinski <pinskia at gcc dot gnu.org> ---
Not working on this, there needs to be a way to enable/disabling LSE (and other
extensions) on the command line without needing to use -march= option.
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2021-11-25 7:54 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-11-25 7:31 [Bug libgcc/103420] New: libatomic fails to compile on aarch64 linux with TFLAGS="-mcpu=octeontx2" pinskia at gcc dot gnu.org
2021-11-25 7:32 ` [Bug libgcc/103420] " pinskia at gcc dot gnu.org
2021-11-25 7:54 ` pinskia at gcc dot gnu.org
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).