public inbox for gcc@gcc.gnu.org
 help / color / mirror / Atom feed
* Bug: GCC riscv building fails at self-tests with specific march
@ 2023-11-09 12:17 Michael T. Kloos
       [not found] ` <9bc65a04-8a92-4c68-9fbe-c669aac38fa9@michaelkloos.com>
  0 siblings, 1 reply; 2+ messages in thread
From: Michael T. Kloos @ 2023-11-09 12:17 UTC (permalink / raw)
  To: gcc

I encountered a bug when trying to build a RISC-V GCC cross-compiler.  I
believe that the most relevant configure options that I used are:
--disable-multilib --with-arch=rv32ia --with-abi=ilp32 However, I can
post a full list if needed.  I have the GCC git tree located at the path
"/home/quantum/devel/git/gcc" and am building it inside the
sub-directory "build1".  It seems to fail when attempting to build the
self-tests.  Here is an excerpt from the build output:
/home/quantum/devel/git/gcc/build1/./gcc/xgcc
-B/home/quantum/devel/git/gcc/build1/./gcc/  -xc -nostdinc /dev/null -S
-o /dev/null -fself-test=.././../gcc/testsuite/selftests
/home/quantum/devel/git/gcc/build1/./gcc/xgcc
-B/home/quantum/devel/git/gcc/build1/./gcc/  -xc++ -nostdinc /dev/null
-S -o /dev/null -fself-test=.././../gcc/testsuite/selftests cc1: error:
'-mdiv' requires '-march' to subsume the 'M' extension cc1: error:
'-mdiv' requires '-march' to subsume the 'M' extension cc1: error:
'-mdiv' requires '-march' to subsume the 'M' extension cc1: error:
'-mdiv' requires '-march' to subsume the 'M' extension cc1: error:
'-mdiv' requires '-march' to subsume the 'M' extension cc1: error:
'-mdiv' requires '-march' to subsume the 'M' extension cc1plus: error:
'-mdiv' requires '-march' to subsume the 'M' extension cc1: error:
'-mdiv' requires '-march' to subsume the 'M' extension cc1plus: error:
'-mdiv' requires '-march' to subsume the 'M' extension cc1: error:
'-mdiv' requires '-march' to subsume the 'M' extension cc1plus: error:
'-mdiv' requires '-march' to subsume the 'M' extension cc1plus: error:
'-mdiv' requires '-march' to subsume the 'M' extension cc1: error:
'-mdiv' requires '-march' to subsume the 'M' extension cc1plus: error:
'-mdiv' requires '-march' to subsume the 'M' extension cc1: error:
'-mdiv' requires '-march' to subsume the 'M' extension cc1plus: error:
'-mdiv' requires '-march' to subsume the 'M' extension cc1plus: error:
'-mdiv' requires '-march' to subsume the 'M' extension cc1plus: error:
'-mdiv' requires '-march' to subsume the 'M' extension cc1plus: error:
'-mdiv' requires '-march' to subsume the 'M' extension cc1plus: error:
'-mdiv' requires '-march' to subsume the 'M' extension It seems to be
trying to build test suites that are in conflict with my march settings.
Interestingly, I didn't have this issue when trying to build the release
version tagged "releases/gcc-13.2.0".  However, I wanted to use some
newer features that were only merged less than a month ago.  I tried to
build the GIT tree and encountered this error.  I attempted to bisect
the issue and found that it only happens when gcc/DEV-PHASE is set to:
experimental I'm not very familar with GCC's build system, but this
suggests to me that the tests are only conditionally built on
experimental/development codebase snapshots.  Michael T. Kloos


^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: Bug: GCC riscv building fails at self-tests with specific march
       [not found] ` <9bc65a04-8a92-4c68-9fbe-c669aac38fa9@michaelkloos.com>
@ 2023-11-09 12:30   ` Michael T. Kloos
  0 siblings, 0 replies; 2+ messages in thread
From: Michael T. Kloos @ 2023-11-09 12:30 UTC (permalink / raw)
  To: gcc, michael

Sorry for the formatting break.  Resending...

I encountered a bug when trying to build a RISC-V GCC cross-compiler.  I 
believe that the most relevant configure options that I used are: 

	--disable-multilib --with-arch=rv32ia --with-abi=ilp32

However, I can post a full list if needed.  

I have the GCC git tree located at the path "/home/quantum/devel/git/gcc" 
and am building it inside the sub-directory "build1".  It seems to fail 
when attempting to build the self-tests.  Here is an excerpt from the 
build output: 

/home/quantum/devel/git/gcc/build1/./gcc/xgcc
-B/home/quantum/devel/git/gcc/build1/./gcc/  -xc -nostdinc /dev/null -S -o /dev/null -fself-test=.././../gcc/testsuite/selftests
/home/quantum/devel/git/gcc/build1/./gcc/xgcc
-B/home/quantum/devel/git/gcc/build1/./gcc/  -xc++ -nostdinc /dev/null -S -o /dev/null -fself-test=.././../gcc/testsuite/selftests
	cc1: error: '-mdiv' requires '-march' to subsume the 'M' extension 
	cc1: error: '-mdiv' requires '-march' to subsume the 'M' extension 
	cc1: error: '-mdiv' requires '-march' to subsume the 'M' extension 
	cc1: error: '-mdiv' requires '-march' to subsume the 'M' extension 
	cc1: error: '-mdiv' requires '-march' to subsume the 'M' extension 
	cc1: error: '-mdiv' requires '-march' to subsume the 'M' extension 
	cc1plus: error: '-mdiv' requires '-march' to subsume the 'M' extension 
	cc1: error: '-mdiv' requires '-march' to subsume the 'M' extension 
	cc1plus: error: '-mdiv' requires '-march' to subsume the 'M' extension 
	cc1: error: '-mdiv' requires '-march' to subsume the 'M' extension 
	cc1plus: error: '-mdiv' requires '-march' to subsume the 'M' extension 
	cc1plus: error: '-mdiv' requires '-march' to subsume the 'M' extension 
	cc1: error: '-mdiv' requires '-march' to subsume the 'M' extension 
	cc1plus: error: '-mdiv' requires '-march' to subsume the 'M' extension 
	cc1: error: '-mdiv' requires '-march' to subsume the 'M' extension 
	cc1plus: error: '-mdiv' requires '-march' to subsume the 'M' extension 
	cc1plus: error: '-mdiv' requires '-march' to subsume the 'M' extension 
	cc1plus: error: '-mdiv' requires '-march' to subsume the 'M' extension 
	cc1plus: error: '-mdiv' requires '-march' to subsume the 'M' extension 
	cc1plus: error: '-mdiv' requires '-march' to subsume the 'M' extension 

It seems to be trying to build test suites that are in conflict with my 
march settings.  

Interestingly, I didn't have this issue when trying to build the release 
version tagged "releases/gcc-13.2.0".  However, I wanted to use some 
newer features that were only merged less than a month ago.  I tried to 
build the GIT tree and encountered this error.  I attempted to bisect 
the issue and found that it only happens when "gcc/DEV-PHASE" is set to: 

	experimental

I'm not very familar with GCC's build system, but this suggests to me 
that the tests are only conditionally built on experimental/development 
codebase snapshots.  

	Michael T. Kloos


^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2023-11-09 12:30 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-11-09 12:17 Bug: GCC riscv building fails at self-tests with specific march Michael T. Kloos
     [not found] ` <9bc65a04-8a92-4c68-9fbe-c669aac38fa9@michaelkloos.com>
2023-11-09 12:30   ` Michael T. Kloos

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).