https://gcc.gnu.org/bugzilla/show_bug.cgi?id=80779
Bug ID: 80779
Summary: MPX bootstrap does not work on real hardware
supporting that
Product: gcc
Version: unknown
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: bootstrap
Assignee: unassigned at gcc dot gnu.org
Reporter: marxin at gcc dot gnu.org
Target Milestone: ---
Created attachment 41364
--> https://gcc.gnu.org/bugzilla/attachment.cgi?id=41364&action=edit
MPX bootstrap config file patch
Running ../configure --disable-multilib --with-build-config=bootstrap-mpx
--enable-languages=c,c++
and make does not work on real hardware. I tested that on my laptop some time
ago and with following 2 patches, I was able to bootstrap quite part of
compiler.
However, currently there's a failure:
__mpx_wrapper_strcpy (dst=dst@entry=0x66a08d "", src=src@entry=0x44a76b
"../../gcc/gengtype.c") at ../../../../libmpx/mpxwrap/mpx_wrappers.c:614
614 ../../../../libmpx/mpxwrap/mpx_wrappers.c: No such file or directory.
(gdb) bt
#0 __mpx_wrapper_strcpy (dst=dst@entry=0x66a08d "", src=src@entry=0x44a76b
"../../gcc/gengtype.c") at ../../../../libmpx/mpxwrap/mpx_wrappers.c:614
#1 0x0000000000413077 in input_file_by_name(char const*) [clone .chkp]
(name=name@entry=0x44a76b "../../gcc/gengtype.c") at ../../gcc/gengtype.c:5106
#2 0x00000000004268f6 in main (argc=7, argv=0x7fffffffe0a8) at
../../gcc/gengtype.c:5152
(gdb) bt
#0 0x00000000004456eb in htab_hash_string (p=0x66a08d) at
../../libiberty/hashtab.c:838
#1 0x0000000000411af7 in htab_hash_inputfile (p=<optimized out>) at
../../gcc/gengtype.c:5126
#2 0x0000000000445fef in htab_find_slot (htab=0x668010, element=0x66a080,
insert=INSERT) at ../../libiberty/hashtab.c:703
#3 0x000000000041309d in input_file_by_name(char const*) [clone .chkp]
(name=name@entry=0x44a76b "../../gcc/gengtype.c") at ../../gcc/gengtype.c:5107
#4 0x00000000004268f6 in main (argc=7, argv=0x7fffffffe0a8) at
../../gcc/gengtype.c:5152
build/gengtype -S ../../gcc -I gtyp-input.list -w
tmp-gtype.state
One can see many 'Saw a #BR failures'.