Re: [PATCH] sim: mips/ppc/riscv: re-add AC_CANONICAL_SYSTEM [PR sim/29439]

Mike Frysinger <[email protected]>
Newsgroups gmane.comp.gdb.patches,gmane.comp.gdb.devel
Message-ID <ZSvBBZZ0syGnOpZS@vapier>
On 03 Mar 2023 22:27, Jan-Benedict Glaw wrote:
> On Sun, 2022-10-23 22:56:47 +0545, Mike Frysinger via Gdb-patches <[email protected]> wrote:
> > These configure scripts check $target and change behavior.  They
> > shouldn't be doing that, but until we can rework the sim to change
> > behavior based on the input ELF, restore AC_CANONICAL_SYSTEM to
> > these so that $target is correctly populated.
> > 
> > This was lost in the d3562f83a7b8a1ae6e333cd5561419d3da18fcb4
> > ("sim: unify toolchain probing logic") refactor as the logic was
> > hoisted up to the common code.  But the fact the vars weren't
> > passed down to the sub-configure scripts was missed.
> > 
> > Bug: https://sourceware.org/PR29439
> 
> This fix seems to have a side effect:
> 
> .../configure --prefix=/tmp/gdb-mipsisa64sb1-elf --target=mipsisa64sb1-elf
> 
> make V=1 all-gdb
> [...]
> [all 2023-03-03 21:07:56] /usr/lib/gcc-snapshot/bin/gcc  -DHAVE_CONFIG_H -DWITH_TARGET_WORD_BITSIZE=64 -DWITH_TARGET_WORD_MSB=63 -DWITH_FLOATING_POINT=HARD_FLOATING_POINT -DWITH_TARGET_FLOATING_POINT_BITSIZE=64 -DWITH_HW=1 -DHAVE_DV_SOCKSER -DDEFAULT_INLINE=0 -Wall -Wdeclaration-after-statement -Wpointer-arith -Wno-unused -Wunused-value -Wunused-function -Wno-switch -Wno-char-subscripts -Wempty-body -Wunused-but-set-parameter -Wno-error=maybe-uninitialized -Wmissing-declarations -Wmissing-prototypes -Wdeclaration-after-statement -Wmissing-parameter-type -Wpointer-sign -Wold-style-declaration -Werror  -I. -I/var/lib/laminar/run/gdb-mipsisa64sb1-elf/51/binutils-gdb/sim/mips -I../common -I/var/lib/laminar/run/gdb-mipsisa64sb1-elf/51/binutils-gdb/sim/mips/../common -I../../include -I/var/lib/laminar/run/gdb-mipsisa64sb1-elf/51/binutils-gdb/sim/mips/../../include -I../../bfd -I/var/lib/laminar/run/gdb-mipsisa64sb1-elf/51/binutils-gdb/sim/mips/../../bfd -I../../opcodes -I/var/lib/laminar/run/gdb-mipsisa64sb1-elf/51/binutils-gdb/sim/mips/../../opcodes -I../..  -I/var/lib/laminar/run/gdb-mipsisa64sb1-elf/51/binutils-gdb/sim/mips/../../gnulib/import -I../../gnulib/import -DTARGET_ENABLE_FR=1 -DMIPS_MACH_DEFAULT=bfd_mach_mips_sb1 -g -O2   -c -o semantics.o -MT semantics.o -MMD -MP -MF .deps/semantics.Tpo semantics.c
> [all 2023-03-03 21:07:56] sb1.igen: In function 'semantic_PABSDIFC_fmt_MDMX':
> [all 2023-03-03 21:07:56] sb1.igen:178:21: error: unknown conversion type character 'v' in format [-Werror=format=]
> [all 2023-03-03 21:07:56]   178 |   check_mdmx (SD_, instruction_0);
> [all 2023-03-03 21:07:56]       |                     ^~~~~~~~~~~~~~        
> [all 2023-03-03 21:07:56] sb1.igen:178:21: error: format '%ld' expects argument of type 'long int', but argument 9 has type 'unsigned int' [-Werror=format=]
> [all 2023-03-03 21:07:56]   178 |   check_mdmx (SD_, instruction_0);
> [all 2023-03-03 21:07:56]       |                     ^~~~~~~~~~~~~~        
> [all 2023-03-03 21:07:56] sb1.igen:178:21: error: too many arguments for format [-Werror=format-extra-args]
> [all 2023-03-03 21:08:05] cc1: all warnings being treated as errors

i doubt this patch is related to that failure.  seems likely sb1.igen
has always been broken.
-mike
signature.asc (application/pgp-signature, 659 B)
-----BEGIN PGP SIGNATURE-----

iQGzBAABCAAdFiEEfjLn+uywF2RXRpXdyTaAqES06MkFAmUrwQUACgkQyTaAqES0
6Mko+gv6AstUfvNJ/b+o0i7q3MZgQZ/EWg7iPmByHdIJZkHYJyCqua+wM7cpLHEK
WizEIIwkAvKdkEJ69ul1wZ5O9mmHbr39iRPRpQuHlSoMpLzMaUfh661oFbCWVPnk
MKEw4L/7JyLWRji6zwOuklSHEkQ/BbB7OWifQ8QX5Z3w/DJqB0fY1HKXgbCMGpj6
lMyc03mRoVQK2HZj3BxgnagEUUw+rCR2ltCSI3GINGis8HekElf7Da0BlI0sdDEd
u6EM1BEBTEpoklffWGkxVNjBcTirQpP22cRJgCa3u20ZfpLSJ3KqLDZqzXLsRXWQ
6GKUf/gIvgRAcXdgzaPjUNz+ymtah5q31RHDtR2TlWPLPzSmYx/+O81FBKzcPnYN
R94XQvHUJ+64XRJ/qwRPwGqyVJUyMVv5Ggqmrno1vPZeoks43dYKTMNDVxdBuMea
bowGP6znWHTBLczqxBxw1Bas0ArW9ycuUnxe00YPwRjptWoPeTi+NFraO5rIOlNi
YZ2kMFOe
=keE7
-----END PGP SIGNATURE-----
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.