Bug 108472 - gcc/ada/b_gnat1.adb:363: undefined reference to `system__assertions___elabs'
Summary: gcc/ada/b_gnat1.adb:363: undefined reference to `system__assertions___elabs'
Status: RESOLVED WORKSFORME
Alias: None
Product: gcc
Classification: Unclassified
Component: ada (show other bugs)
Version: 12.2.0
: P3 normal
Target Milestone: ---
Assignee: Not yet assigned to anyone
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2023-01-19 22:44 UTC by Dennis Clarke
Modified: 2023-01-21 09:19 UTC (History)
1 user (show)

See Also:
Host:
Target:
Build:
Known to work:
Known to fail:
Last reconfirmed: 2023-01-19 00:00:00


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Dennis Clarke 2023-01-19 22:44:01 UTC
Not at all sure how to proceed here thus I will file this bug report
in hopes that it is not environmental.

Not sure how to make any sense from this : 

.
.
.
/opt/imed/gcc12/bin/gcc -c -g  -gnatpg -gnatwns  -W -Wall -I- -I. -Iada/generated -Iada -I../../gcc-12.2.0/gcc/ada ada/g-graphs.adb -o ada/g-graphs.o
mkdir -p ada/
/opt/imed/gcc12/bin/gcc -c -g  -gnatpg -gnatwns  -W -Wall -I- -I. -Iada/generated -Iada -I../../gcc-12.2.0/gcc/ada ada/g-lists.adb -o ada/g-lists.o
mkdir -p ada/
/opt/imed/gcc12/bin/gcc -c -g  -gnatpg -gnatwns  -W -Wall -I- -I. -Iada/generated -Iada -I../../gcc-12.2.0/gcc/ada ada/g-sets.adb -o ada/g-sets.o
mkdir -p ada/
/opt/imed/gcc12/bin/gcc -c -g  -gnatpg -gnatwns  -W -Wall -I- -I. -Iada/generated -Iada -I../../gcc-12.2.0/gcc/ada ada/s-pehage.adb -o ada/s-pehage.o
mkdir -p ada/
/opt/imed/gcc12/bin/gcc -c -g  -gnatpg -gnatwns  -W -Wall -I- -I. -Iada/generated -Iada -I../../gcc-12.2.0/gcc/ada ada/s-utf_32.adb -o ada/s-utf_32.o
mkdir -p ada/
/opt/imed/gcc12/bin/gcc -c -g  -gnatpg -gnatwns  -W -Wall -I- -I. -Iada/generated -Iada -I../../gcc-12.2.0/gcc/ada ../../gcc-12.2.0/gcc/ada/back_end.adb -o ada/back_end.o
mkdir -p ada/
/opt/imed/gcc12/bin/gcc -c -g  -gnatpg -gnatwns  -W -Wall -I- -I. -Iada/generated -Iada -I../../gcc-12.2.0/gcc/ada ../../gcc-12.2.0/gcc/ada/gnat1drv.adb -o ada/gnat1drv.o
x86_64-linux-gnu-gnatbind -t -I- -I. -Iada/generated -Iada -I../../gcc-12.2.0/gcc/ada -o b_gnat1.adb -n ada/gnat1drv.ali
warning: "s-stalib.adb" and "gnat1drv.adb" compiled with different GNAT versions
warning: "a-except.adb" and "gnat1drv.adb" compiled with different GNAT versions
warning: "ada.ads" and "gnat1drv.adb" compiled with different GNAT versions
warning: "a-elchha.adb" and "gnat1drv.adb" compiled with different GNAT versions
warning: "system.ads" and "gnat1drv.adb" compiled with different GNAT versions
warning: "s-soflin.adb" and "gnat1drv.adb" compiled with different GNAT versions
warning: "s-secsta.adb" and "gnat1drv.adb" compiled with different GNAT versions
warning: "s-parame.adb" and "gnat1drv.adb" compiled with different GNAT versions
warning: "s-stoele.adb" and "gnat1drv.adb" compiled with different GNAT versions
warning: "s-soliin.adb" and "gnat1drv.adb" compiled with different GNAT versions
warning: "s-stache.adb" and "gnat1drv.adb" compiled with different GNAT versions
warning: "s-exctab.adb" and "gnat1drv.adb" compiled with different GNAT versions
warning: "s-except.adb" and "gnat1drv.adb" compiled with different GNAT versions
warning: "s-excmac.adb" and "gnat1drv.adb" compiled with different GNAT versions
warning: "s-excdeb.adb" and "gnat1drv.adb" compiled with different GNAT versions
warning: "s-imgint.adb" and "gnat1drv.adb" compiled with different GNAT versions
warning: "s-traceb.adb" and "gnat1drv.adb" compiled with different GNAT versions
warning: "s-traent.adb" and "gnat1drv.adb" compiled with different GNAT versions
warning: "s-trasym.adb" and "gnat1drv.adb" compiled with different GNAT versions
warning: "a-contai.ads" and "gnat1drv.adb" compiled with different GNAT versions
warning: "a-exctra.adb" and "gnat1drv.adb" compiled with different GNAT versions
warning: "interfac.ads" and "gnat1drv.adb" compiled with different GNAT versions
warning: "i-c.adb" and "gnat1drv.adb" compiled with different GNAT versions
warning: "s-boustr.adb" and "gnat1drv.adb" compiled with different GNAT versions
warning: "s-crtl.ads" and "gnat1drv.adb" compiled with different GNAT versions
warning: "s-dwalin.adb" and "gnat1drv.adb" compiled with different GNAT versions
warning: "a-charac.ads" and "gnat1drv.adb" compiled with different GNAT versions
warning: "a-chahan.adb" and "gnat1drv.adb" compiled with different GNAT versions
warning: "a-chlat1.ads" and "gnat1drv.adb" compiled with different GNAT versions
warning: "a-string.ads" and "gnat1drv.adb" compiled with different GNAT versions
warning: "a-strmap.adb" and "gnat1drv.adb" compiled with different GNAT versions
warning: "s-bitops.adb" and "gnat1drv.adb" compiled with different GNAT versions
warning: "s-unstyp.ads" and "gnat1drv.adb" compiled with different GNAT versions
warning: "a-stmaco.ads" and "gnat1drv.adb" compiled with different GNAT versions
warning: "s-addima.adb" and "gnat1drv.adb" compiled with different GNAT versions
warning: "s-imguns.adb" and "gnat1drv.adb" compiled with different GNAT versions
warning: "s-io.adb" and "gnat1drv.adb" compiled with different GNAT versions
warning: "s-mmap.adb" and "gnat1drv.adb" compiled with different GNAT versions
warning: "a-ioexce.ads" and "gnat1drv.adb" compiled with different GNAT versions
warning: "s-mmosin.adb" and "gnat1drv.adb" compiled with different GNAT versions
warning: "s-mmauni.ads" and "gnat1drv.adb" compiled with different GNAT versions
warning: "s-os_lib.adb" and "gnat1drv.adb" compiled with different GNAT versions
warning: "s-casuti.adb" and "gnat1drv.adb" compiled with different GNAT versions
warning: "s-string.adb" and "gnat1drv.adb" compiled with different GNAT versions
warning: "s-objrea.adb" and "gnat1drv.adb" compiled with different GNAT versions
warning: "s-vallli.adb" and "gnat1drv.adb" compiled with different GNAT versions
warning: "s-valllu.adb" and "gnat1drv.adb" compiled with different GNAT versions
warning: "s-valuti.adb" and "gnat1drv.adb" compiled with different GNAT versions
warning: "s-exctra.adb" and "gnat1drv.adb" compiled with different GNAT versions
warning: "s-wchcon.adb" and "gnat1drv.adb" compiled with different GNAT versions
warning: "s-wchstw.adb" and "gnat1drv.adb" compiled with different GNAT versions
warning: "s-wchcnv.adb" and "gnat1drv.adb" compiled with different GNAT versions
warning: "s-wchjis.adb" and "gnat1drv.adb" compiled with different GNAT versions
warning: "s-conca2.adb" and "gnat1drv.adb" compiled with different GNAT versions
warning: "s-carun8.adb" and "gnat1drv.adb" compiled with different GNAT versions
warning: "s-addope.adb" and "gnat1drv.adb" compiled with different GNAT versions
warning: "s-aotase.adb" and "gnat1drv.adb" compiled with different GNAT versions
warning: "s-atoope.ads" and "gnat1drv.adb" compiled with different GNAT versions
warning: "s-atopri.adb" and "gnat1drv.adb" compiled with different GNAT versions
warning: "s-memory.adb" and "gnat1drv.adb" compiled with different GNAT versions
warning: "g-htable.adb" and "gnat1drv.adb" compiled with different GNAT versions
warning: "s-htable.adb" and "gnat1drv.adb" compiled with different GNAT versions
warning: "s-strhas.adb" and "gnat1drv.adb" compiled with different GNAT versions
warning: "g-byorma.adb" and "gnat1drv.adb" compiled with different GNAT versions
warning: "s-conca3.adb" and "gnat1drv.adb" compiled with different GNAT versions
warning: "s-conca4.adb" and "gnat1drv.adb" compiled with different GNAT versions
warning: "s-conca5.adb" and "gnat1drv.adb" compiled with different GNAT versions
warning: "g-speche.adb" and "gnat1drv.adb" compiled with different GNAT versions
warning: "g-spchge.adb" and "gnat1drv.adb" compiled with different GNAT versions
warning: "s-crc32.adb" and "gnat1drv.adb" compiled with different GNAT versions
warning: "s-valint.adb" and "gnat1drv.adb" compiled with different GNAT versions
warning: "s-valuns.adb" and "gnat1drv.adb" compiled with different GNAT versions
warning: "g-u3spch.adb" and "gnat1drv.adb" compiled with different GNAT versions
warning: "s-conca6.adb" and "gnat1drv.adb" compiled with different GNAT versions
warning: "s-conca8.adb" and "gnat1drv.adb" compiled with different GNAT versions
warning: "s-conca7.adb" and "gnat1drv.adb" compiled with different GNAT versions
warning: "s-assert.adb" and "gnat1drv.adb" compiled with different GNAT versions
warning: "gnat1drv.adb" should be recompiled ("a-except.ads" has been modified)
warning: "atree.adb" should be recompiled ("a-except.ads" has been modified)
warning: "aspects.adb" should be recompiled ("a-uncdea.ads" has been modified)
warning: "einfo.ads" should be recompiled ("system.ads" has been modified)
warning: "namet.adb" should be recompiled ("a-except.ads" has been modified)
warning: "debug.adb" should be recompiled ("system.ads" has been modified)
warning: "opt.adb" should be recompiled ("a-uncdea.ads" has been modified)
warning: "hostparm.ads" should be recompiled ("system.ads" has been modified)
warning: "types.adb" should be recompiled ("system.ads" has been modified)
warning: "output.adb" should be recompiled ("a-except.ads" has been modified)
warning: "widechar.adb" should be recompiled ("a-uncdea.ads" has been modified)
warning: "alloc.ads" should be recompiled ("system.ads" has been modified)
warning: "table.adb" should be recompiled ("a-uncdea.ads" has been modified)
warning: "snames.adb" should be recompiled ("a-except.ads" has been modified)
warning: "stand.ads" should be recompiled ("system.ads" has been modified)
warning: "uintp.adb" should be recompiled ("a-except.ads" has been modified)
warning: "gnat.ads" should be recompiled ("system.ads" has been modified)
warning: "urealp.adb" should be recompiled ("a-except.ads" has been modified)
warning: "einfo-entities.adb" should be recompiled ("a-uncdea.ads" has been modified)
warning: "einfo-utils.adb" should be recompiled ("a-uncdea.ads" has been modified)
warning: "elists.adb" should be recompiled ("a-except.ads" has been modified)
warning: "nlists.adb" should be recompiled ("a-except.ads" has been modified)
warning: "sinfo.ads" should be recompiled ("system.ads" has been modified)
warning: "sinfo-nodes.adb" should be recompiled ("a-uncdea.ads" has been modified)
warning: "sinfo-utils.adb" should be recompiled ("a-except.ads" has been modified)
warning: "seinfo.ads" should be recompiled ("system.ads" has been modified)
warning: "sinput.adb" should be recompiled ("a-except.ads" has been modified)
warning: "scans.adb" should be recompiled ("system.ads" has been modified)
warning: "casing.adb" should be recompiled ("a-uncdea.ads" has been modified)
warning: "csets.adb" should be recompiled ("a-uncdea.ads" has been modified)
warning: "back_end.adb" should be recompiled ("a-uncdea.ads" has been modified)
warning: "backend_utils.adb" should be recompiled ("a-uncdea.ads" has been modified)
warning: "lib.adb" should be recompiled ("a-except.ads" has been modified)
warning: "stringt.adb" should be recompiled ("a-except.ads" has been modified)
warning: "uname.adb" should be recompiled ("a-uncdea.ads" has been modified)
warning: "switch.adb" should be recompiled ("a-uncdea.ads" has been modified)
warning: "osint.adb" should be recompiled ("a-except.ads" has been modified)
warning: "fmap.adb" should be recompiled ("a-except.ads" has been modified)
warning: "gnatvsn.adb" should be recompiled ("system.ads" has been modified)
warning: "sdefault.adb" should be recompiled ("a-uncdea.ads" has been modified)
warning: "targparm.adb" should be recompiled ("a-except.ads" has been modified)
warning: "rident.ads" should be recompiled ("system.ads" has been modified)
warning: "errout.adb" should be recompiled ("a-except.ads" has been modified)
warning: "erroutc.adb" should be recompiled ("a-except.ads" has been modified)
warning: "err_vars.ads" should be recompiled ("system.ads" has been modified)
warning: "fname.adb" should be recompiled ("system.ads" has been modified)
warning: "sem_aux.adb" should be recompiled ("a-except.ads" has been modified)
warning: "stylesw.adb" should be recompiled ("a-uncdea.ads" has been modified)
warning: "osint-c.adb" should be recompiled ("a-uncdea.ads" has been modified)
warning: "switch-c.adb" should be recompiled ("a-uncdea.ads" has been modified)
warning: "ttypes.ads" should be recompiled ("system.ads" has been modified)
warning: "set_targ.adb" should be recompiled ("a-uncdea.ads" has been modified)
warning: "get_targ.adb" should be recompiled ("system.ads" has been modified)
warning: "validsw.adb" should be recompiled ("a-uncdea.ads" has been modified)
warning: "warnsw.adb" should be recompiled ("a-uncdea.ads" has been modified)
warning: "checks.adb" should be recompiled ("a-except.ads" has been modified)
warning: "eval_fat.adb" should be recompiled ("a-uncdea.ads" has been modified)
warning: "sem_util.adb" should be recompiled ("a-except.ads" has been modified)
warning: "exp_ch11.adb" should be recompiled ("a-uncdea.ads" has been modified)
warning: "exp_ch7.adb" should be recompiled ("a-uncdea.ads" has been modified)
warning: "contracts.adb" should be recompiled ("a-uncdea.ads" has been modified)
warning: "exp_prag.adb" should be recompiled ("a-except.ads" has been modified)
warning: "exp_util.adb" should be recompiled ("a-except.ads" has been modified)
warning: "exp_aggr.adb" should be recompiled ("a-except.ads" has been modified)
warning: "exp_ch3.adb" should be recompiled ("a-uncdea.ads" has been modified)
warning: "exp_atag.adb" should be recompiled ("a-uncdea.ads" has been modified)
warning: "exp_disp.adb" should be recompiled ("a-uncdea.ads" has been modified)
warning: "exp_cg.adb" should be recompiled ("a-except.ads" has been modified)
warning: "exp_dbug.adb" should be recompiled ("a-except.ads" has been modified)
warning: "nmake.adb" should be recompiled ("a-uncdea.ads" has been modified)
warning: "sem_eval.adb" should be recompiled ("a-uncdea.ads" has been modified)
warning: "freeze.adb" should be recompiled ("a-except.ads" has been modified)
warning: "exp_pakd.adb" should be recompiled ("a-uncdea.ads" has been modified)
warning: "layout.adb" should be recompiled ("a-uncdea.ads" has been modified)
warning: "sem_ch13.adb" should be recompiled ("a-except.ads" has been modified)
warning: "exp_tss.adb" should be recompiled ("a-uncdea.ads" has been modified)
warning: "restrict.adb" should be recompiled ("a-except.ads" has been modified)
warning: "fname-uf.adb" should be recompiled ("a-except.ads" has been modified)
warning: "krunch.adb" should be recompiled ("system.ads" has been modified)
warning: "sem_ch6.adb" should be recompiled ("a-uncdea.ads" has been modified)
warning: "exp_ch6.adb" should be recompiled ("a-uncdea.ads" has been modified)
warning: "exp_ch9.adb" should be recompiled ("a-uncdea.ads" has been modified)
warning: "exp_sel.adb" should be recompiled ("a-uncdea.ads" has been modified)
warning: "rtsfind.adb" should be recompiled ("a-except.ads" has been modified)
warning: "exp_dist.adb" should be recompiled ("a-uncdea.ads" has been modified)
warning: "exp_strm.adb" should be recompiled ("a-uncdea.ads" has been modified)
warning: "tbuild.adb" should be recompiled ("a-uncdea.ads" has been modified)
warning: "sem.adb" should be recompiled ("a-except.ads" has been modified)
warning: "debug_a.adb" should be recompiled ("a-uncdea.ads" has been modified)
warning: "exp_spark.adb" should be recompiled ("a-uncdea.ads" has been modified)
warning: "exp_attr.adb" should be recompiled ("a-except.ads" has been modified)
warning: "exp_imgv.adb" should be recompiled ("a-uncdea.ads" has been modified)
warning: "exp_put_image.adb" should be recompiled ("a-uncdea.ads" has been modified)
warning: "sem_res.adb" should be recompiled ("a-uncdea.ads" has been modified)
warning: "expander.adb" should be recompiled ("a-except.ads" has been modified)
warning: "exp_ch12.adb" should be recompiled ("a-uncdea.ads" has been modified)
warning: "exp_ch13.adb" should be recompiled ("a-uncdea.ads" has been modified)
warning: "sem_ch7.adb" should be recompiled ("a-uncdea.ads" has been modified)
warning: "ghost.adb" should be recompiled ("a-except.ads" has been modified)
warning: "sem_disp.adb" should be recompiled ("a-uncdea.ads" has been modified)
warning: "lib-xref.adb" should be recompiled ("a-except.ads" has been modified)
warning: "lib-util.adb" should be recompiled ("a-uncdea.ads" has been modified)
warning: "sem_prag.adb" should be recompiled ("a-except.ads" has been modified)
warning: "gnat_cuda.adb" should be recompiled ("a-uncdea.ads" has been modified)
warning: "lib-writ.adb" should be recompiled ("a-except.ads" has been modified)
warning: "ali.adb" should be recompiled ("a-except.ads" has been modified)
warning: "butil.adb" should be recompiled ("a-except.ads" has been modified)
warning: "g-dynhta.adb" should be recompiled ("a-uncdea.ads" has been modified)
warning: "par.adb" should be recompiled ("a-except.ads" has been modified)
warning: "lib-load.adb" should be recompiled ("a-uncdea.ads" has been modified)
warning: "scn.adb" should be recompiled ("a-except.ads" has been modified)
warning: "scng.adb" should be recompiled ("a-uncdea.ads" has been modified)
warning: "s-utf_32.adb" should be recompiled ("system.ads" has been modified)
warning: "styleg.adb" should be recompiled ("a-uncdea.ads" has been modified)
warning: "style.adb" should be recompiled ("a-uncdea.ads" has been modified)
warning: "sinput-l.adb" should be recompiled ("a-uncdea.ads" has been modified)
warning: "prep.adb" should be recompiled ("a-except.ads" has been modified)
warning: "prepcomp.adb" should be recompiled ("a-except.ads" has been modified)
warning: "namet-sp.adb" should be recompiled ("g-u3spch.ads" has been modified)
warning: "par_sco.adb" should be recompiled ("a-except.ads" has been modified)
warning: "put_scos.adb" should be recompiled ("a-uncdea.ads" has been modified)
warning: "scos.adb" should be recompiled ("a-except.ads" has been modified)
warning: "sinfo-cn.adb" should be recompiled ("a-uncdea.ads" has been modified)
warning: "sem_ch12.adb" should be recompiled ("a-except.ads" has been modified)
warning: "itypes.adb" should be recompiled ("a-uncdea.ads" has been modified)
warning: "sem_cat.adb" should be recompiled ("a-uncdea.ads" has been modified)
warning: "sem_attr.adb" should be recompiled ("a-chlat1.ads" has been modified)
warning: "sem_ch10.adb" should be recompiled ("a-except.ads" has been modified)
warning: "impunit.adb" should be recompiled ("a-uncdea.ads" has been modified)
warning: "inline.adb" should be recompiled ("a-except.ads" has been modified)
warning: "sem_ch8.adb" should be recompiled ("a-except.ads" has been modified)
warning: "sem_ch3.adb" should be recompiled ("a-uncdea.ads" has been modified)
warning: "sem_case.adb" should be recompiled ("a-uncdea.ads" has been modified)
warning: "g-sets.adb" should be recompiled ("a-uncdea.ads" has been modified)
warning: "sem_type.adb" should be recompiled ("a-except.ads" has been modified)
warning: "sem_dist.adb" should be recompiled ("a-uncdea.ads" has been modified)
warning: "treepr.adb" should be recompiled ("a-except.ads" has been modified)
warning: "scil_ll.adb" should be recompiled ("a-uncdea.ads" has been modified)
warning: "sem_dim.adb" should be recompiled ("a-except.ads" has been modified)
warning: "sem_elab.adb" should be recompiled ("a-except.ads" has been modified)
warning: "g-lists.adb" should be recompiled ("a-uncdea.ads" has been modified)
warning: "sem_elim.adb" should be recompiled ("a-except.ads" has been modified)
warning: "sem_mech.adb" should be recompiled ("a-uncdea.ads" has been modified)
warning: "sem_smem.adb" should be recompiled ("a-uncdea.ads" has been modified)
warning: "sem_warn.adb" should be recompiled ("a-except.ads" has been modified)
warning: "exp_code.adb" should be recompiled ("a-uncdea.ads" has been modified)
warning: "strub.adb" should be recompiled ("a-uncdea.ads" has been modified)
warning: "sem_ch4.adb" should be recompiled ("a-except.ads" has been modified)
warning: "sem_intr.adb" should be recompiled ("a-uncdea.ads" has been modified)
warning: "spark_xrefs.adb" should be recompiled ("a-uncdea.ads" has been modified)
warning: "exp_ch2.adb" should be recompiled ("a-uncdea.ads" has been modified)
warning: "exp_smem.adb" should be recompiled ("a-uncdea.ads" has been modified)
warning: "exp_ch4.adb" should be recompiled ("a-uncdea.ads" has been modified)
warning: "exp_fixd.adb" should be recompiled ("a-uncdea.ads" has been modified)
warning: "exp_intr.adb" should be recompiled ("a-uncdea.ads" has been modified)
warning: "exp_ch5.adb" should be recompiled ("a-uncdea.ads" has been modified)
warning: "exp_ch8.adb" should be recompiled ("a-uncdea.ads" has been modified)
warning: "sem_aggr.adb" should be recompiled ("a-except.ads" has been modified)
warning: "sem_ch5.adb" should be recompiled ("a-except.ads" has been modified)
warning: "s-pehage.adb" should be recompiled ("a-except.ads" has been modified)
warning: "sem_ch11.adb" should be recompiled ("a-uncdea.ads" has been modified)
warning: "sem_ch2.adb" should be recompiled ("a-uncdea.ads" has been modified)
warning: "sem_ch9.adb" should be recompiled ("a-except.ads" has been modified)
warning: "sem_scil.adb" should be recompiled ("a-uncdea.ads" has been modified)
warning: "sprint.adb" should be recompiled ("a-uncdea.ads" has been modified)
warning: "sinput-d.adb" should be recompiled ("a-uncdea.ads" has been modified)
warning: "comperr.adb" should be recompiled ("a-except.ads" has been modified)
warning: "frontend.adb" should be recompiled ("a-uncdea.ads" has been modified)
warning: "cstand.adb" should be recompiled ("a-uncdea.ads" has been modified)
warning: "exp_unst.adb" should be recompiled ("a-except.ads" has been modified)
warning: "live.adb" should be recompiled ("a-uncdea.ads" has been modified)
warning: "vast.adb" should be recompiled ("system.ads" has been modified)
warning: "repinfo.adb" should be recompiled ("a-except.ads" has been modified)
warning: "repinfo-input.adb" should be recompiled ("a-except.ads" has been modified)
warning: "usage.adb" should be recompiled ("a-uncdea.ads" has been modified)
mv b_gnat1.adb b_gnat1.ads ada/
/opt/imed/gcc12/bin/gcc -c -g  -gnatp -gnatws -I- -I. -Iada/generated -Iada -I../../gcc-12.2.0/gcc/ada \
    ada/b_gnat1.adb -o ada/b_gnat1.o
/bin/bash ../../gcc-12.2.0/gcc/lock-and-run.sh linkfe.lck /opt/imed/gcc12/bin/g++ -std=c++11 -no-pie -g -DIN_GCC -fno-exceptions -fno-rtti -fasynchronous-unwind-tables -W -Wall -Wno-narrowing -Wwrite-strings -Wcast-qual -Wno-format -Wmissing-format-attribute -Woverloaded-virtual -pedantic -Wno-long-long -Wno-variadic-macros -Wno-overlength-strings -fno-common -DHAVE_CONFIG_H -static-libstdc++ -static-libgcc  -o gnat1 ada/cuintp.o ada/decl.o ada/misc.o ada/utils.o ada/utils2.o ada/trans.o ada/targtyps.o ada/version.o ada/targext.o ada/adadecode.o ada/spark_xrefs.o ada/ali.o ada/alloc.o ada/aspects.o ada/atree.o ada/backend_utils.o ada/butil.o ada/casing.o ada/checks.o ada/comperr.o ada/contracts.o ada/csets.o ada/cstand.o ada/debug.o ada/debug_a.o ada/einfo-entities.o ada/einfo-utils.o ada/einfo.o ada/elists.o ada/err_vars.o ada/errout.o ada/erroutc.o ada/eval_fat.o ada/exp_aggr.o ada/exp_spark.o ada/exp_atag.o ada/exp_attr.o ada/exp_cg.o ada/exp_ch11.o ada/exp_ch12.o ada/exp_ch13.o ada/exp_ch2.o ada/exp_ch3.o ada/exp_ch4.o ada/exp_ch5.o ada/exp_ch6.o ada/exp_ch7.o ada/exp_ch8.o ada/exp_ch9.o ada/exp_code.o ada/exp_dbug.o ada/exp_disp.o ada/exp_dist.o ada/exp_fixd.o ada/exp_imgv.o ada/exp_intr.o ada/exp_pakd.o ada/exp_prag.o ada/exp_put_image.o ada/exp_sel.o ada/exp_smem.o ada/exp_strm.o ada/exp_tss.o ada/exp_unst.o ada/exp_util.o ada/expander.o ada/fmap.o ada/fname-uf.o ada/fname.o ada/freeze.o ada/frontend.o ada/get_targ.o ada/ghost.o ada/gnat_cuda.o ada/gnatvsn.o ada/hostparm.o ada/impunit.o ada/inline.o ada/itypes.o ada/krunch.o ada/layout.o ada/lib-load.o ada/lib-util.o ada/lib-writ.o ada/lib-xref.o ada/lib.o ada/live.o ada/namet-sp.o ada/namet.o ada/nlists.o ada/nmake.o ada/opt.o ada/osint-c.o ada/osint.o ada/output.o ada/par.o ada/par_sco.o ada/prep.o ada/prepcomp.o ada/put_scos.o ada/repinfo-input.o ada/repinfo.o ada/restrict.o ada/rident.o ada/rtsfind.o ada/scans.o ada/scil_ll.o ada/scn.o ada/scng.o ada/scos.o ada/sdefault.o ada/seinfo.o ada/sem.o ada/sem_aggr.o ada/sem_attr.o ada/sem_aux.o ada/sem_case.o ada/sem_cat.o ada/sem_ch10.o ada/sem_ch11.o ada/sem_ch12.o ada/sem_ch13.o ada/sem_ch2.o ada/sem_ch3.o ada/sem_ch4.o ada/sem_ch5.o ada/sem_ch6.o ada/sem_ch7.o ada/sem_ch8.o ada/sem_ch9.o ada/sem_dim.o ada/sem_disp.o ada/sem_dist.o ada/sem_elab.o ada/sem_elim.o ada/sem_eval.o ada/sem_intr.o ada/sem_mech.o ada/sem_prag.o ada/sem_res.o ada/sem_scil.o ada/sem_smem.o ada/sem_type.o ada/sem_util.o ada/sem_warn.o ada/set_targ.o ada/sinfo-cn.o ada/sinfo-nodes.o ada/sinfo-utils.o ada/sinfo.o ada/sinput-d.o ada/sinput-l.o ada/sinput.o ada/snames.o ada/sprint.o ada/stand.o ada/stringt.o ada/strub.o ada/style.o ada/styleg.o ada/stylesw.o ada/switch-c.o ada/switch.o ada/table.o ada/targparm.o ada/tbuild.o ada/treepr.o ada/ttypes.o ada/types.o ada/uintp.o ada/uname.o ada/urealp.o ada/usage.o ada/validsw.o ada/vast.o ada/warnsw.o ada/widechar.o ada/gnat.o ada/g-dynhta.o ada/g-graphs.o ada/g-lists.o ada/g-sets.o ada/s-pehage.o ada/s-utf_32.o ada/back_end.o ada/gnat1drv.o ada/b_gnat1.o libbackend.a main.o libcommon-target.a libcommon.a ../libcpp/libcpp.a ../libdecnumber/libdecnumber.a attribs.o  -g \
  libcommon-target.a libcommon.a ../libcpp/libcpp.a   ../libbacktrace/.libs/libbacktrace.a ../libiberty/libiberty.a ../libdecnumber/libdecnumber.a    -L/opt/bw/build/gcc-12.2.0_linux_amd64.003/./gmp/.libs -L/opt/bw/build/gcc-12.2.0_linux_amd64.003/./mpfr/src/.libs -L/opt/bw/build/gcc-12.2.0_linux_amd64.003/./mpc/src/.libs -lmpc -lmpfr -lgmp -rdynamic -ldl  -lz  /opt/imed/gcc12/lib/gcc/x86_64-linux-gnu/12.2.0/adalib/libgnat.a -ldl
lock-and-run.sh: (PID 898484) acquired linkfe.lck after 0 seconds
/opt/imed/gcc12/bin/g++ -std=c++11 -no-pie -g -DIN_GCC -fno-exceptions -fno-rtti -fasynchronous-unwind-tables -W -Wall -Wno-narrowing -Wwrite-strings -Wcast-qual -Wno-format -Wmissing-format-attribute -Woverloaded-virtual -pedantic -Wno-long-long -Wno-variadic-macros -Wno-overlength-strings -fno-common -DHAVE_CONFIG_H -static-libstdc++ -static-libgcc -o gnat1 ada/cuintp.o ada/decl.o ada/misc.o ada/utils.o ada/utils2.o ada/trans.o ada/targtyps.o ada/version.o ada/targext.o ada/adadecode.o ada/spark_xrefs.o ada/ali.o ada/alloc.o ada/aspects.o ada/atree.o ada/backend_utils.o ada/butil.o ada/casing.o ada/checks.o ada/comperr.o ada/contracts.o ada/csets.o ada/cstand.o ada/debug.o ada/debug_a.o ada/einfo-entities.o ada/einfo-utils.o ada/einfo.o ada/elists.o ada/err_vars.o ada/errout.o ada/erroutc.o ada/eval_fat.o ada/exp_aggr.o ada/exp_spark.o ada/exp_atag.o ada/exp_attr.o ada/exp_cg.o ada/exp_ch11.o ada/exp_ch12.o ada/exp_ch13.o ada/exp_ch2.o ada/exp_ch3.o ada/exp_ch4.o ada/exp_ch5.o ada/exp_ch6.o ada/exp_ch7.o ada/exp_ch8.o ada/exp_ch9.o ada/exp_code.o ada/exp_dbug.o ada/exp_disp.o ada/exp_dist.o ada/exp_fixd.o ada/exp_imgv.o ada/exp_intr.o ada/exp_pakd.o ada/exp_prag.o ada/exp_put_image.o ada/exp_sel.o ada/exp_smem.o ada/exp_strm.o ada/exp_tss.o ada/exp_unst.o ada/exp_util.o ada/expander.o ada/fmap.o ada/fname-uf.o ada/fname.o ada/freeze.o ada/frontend.o ada/get_targ.o ada/ghost.o ada/gnat_cuda.o ada/gnatvsn.o ada/hostparm.o ada/impunit.o ada/inline.o ada/itypes.o ada/krunch.o ada/layout.o ada/lib-load.o ada/lib-util.o ada/lib-writ.o ada/lib-xref.o ada/lib.o ada/live.o ada/namet-sp.o ada/namet.o ada/nlists.o ada/nmake.o ada/opt.o ada/osint-c.o ada/osint.o ada/output.o ada/par.o ada/par_sco.o ada/prep.o ada/prepcomp.o ada/put_scos.o ada/repinfo-input.o ada/repinfo.o ada/restrict.o ada/rident.o ada/rtsfind.o ada/scans.o ada/scil_ll.o ada/scn.o ada/scng.o ada/scos.o ada/sdefault.o ada/seinfo.o ada/sem.o ada/sem_aggr.o ada/sem_attr.o ada/sem_aux.o ada/sem_case.o ada/sem_cat.o ada/sem_ch10.o ada/sem_ch11.o ada/sem_ch12.o ada/sem_ch13.o ada/sem_ch2.o ada/sem_ch3.o ada/sem_ch4.o ada/sem_ch5.o ada/sem_ch6.o ada/sem_ch7.o ada/sem_ch8.o ada/sem_ch9.o ada/sem_dim.o ada/sem_disp.o ada/sem_dist.o ada/sem_elab.o ada/sem_elim.o ada/sem_eval.o ada/sem_intr.o ada/sem_mech.o ada/sem_prag.o ada/sem_res.o ada/sem_scil.o ada/sem_smem.o ada/sem_type.o ada/sem_util.o ada/sem_warn.o ada/set_targ.o ada/sinfo-cn.o ada/sinfo-nodes.o ada/sinfo-utils.o ada/sinfo.o ada/sinput-d.o ada/sinput-l.o ada/sinput.o ada/snames.o ada/sprint.o ada/stand.o ada/stringt.o ada/strub.o ada/style.o ada/styleg.o ada/stylesw.o ada/switch-c.o ada/switch.o ada/table.o ada/targparm.o ada/tbuild.o ada/treepr.o ada/ttypes.o ada/types.o ada/uintp.o ada/uname.o ada/urealp.o ada/usage.o ada/validsw.o ada/vast.o ada/warnsw.o ada/widechar.o ada/gnat.o ada/g-dynhta.o ada/g-graphs.o ada/g-lists.o ada/g-sets.o ada/s-pehage.o ada/s-utf_32.o ada/back_end.o ada/gnat1drv.o ada/b_gnat1.o libbackend.a main.o libcommon-target.a libcommon.a ../libcpp/libcpp.a ../libdecnumber/libdecnumber.a attribs.o -g libcommon-target.a libcommon.a ../libcpp/libcpp.a ../libbacktrace/.libs/libbacktrace.a ../libiberty/libiberty.a ../libdecnumber/libdecnumber.a -L/opt/bw/build/gcc-12.2.0_linux_amd64.003/./gmp/.libs -L/opt/bw/build/gcc-12.2.0_linux_amd64.003/./mpfr/src/.libs -L/opt/bw/build/gcc-12.2.0_linux_amd64.003/./mpc/src/.libs -lmpc -lmpfr -lgmp -rdynamic -ldl -lz /opt/imed/gcc12/lib/gcc/x86_64-linux-gnu/12.2.0/adalib/libgnat.a -ldl
/bin/ld: ada/b_gnat1.o: in function `adainit':
/opt/bw/build/gcc-12.2.0_linux_amd64.003/gcc/ada/b_gnat1.adb:363: undefined reference to `system__assertions___elabs'
collect2: error: ld returned 1 exit status
make[3]: *** [../../gcc-12.2.0/gcc/ada/gcc-interface/Make-lang.in:744: gnat1] Error 1
make[3]: Leaving directory '/opt/bw/build/gcc-12.2.0_linux_amd64.003/gcc'
make[2]: *** [Makefile:4970: all-stage1-gcc] Error 2
make[2]: Leaving directory '/opt/bw/build/gcc-12.2.0_linux_amd64.003'
make[1]: *** [Makefile:32814: stage1-bubble] Error 2
make[1]: Leaving directory '/opt/bw/build/gcc-12.2.0_linux_amd64.003'
make: *** [Makefile:1081: all] Error 2



The system is Debian stable on x86_64 with nothing much special at all.


I was able to bootstrap gcc and install to an "intermediate" location
such that I may build binutils : 

titan# 
titan# /opt/imed/gcc12/bin/gcc --version 
gcc (GENUNIX Thu 19 Jan 2023 07:07:33 PM UTC) 12.2.0
Copyright (C) 2022 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.  There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

titan# 

With that compiler I was able to build binutils : 

titan# 
titan# /opt/bw/bin/gas --version 
GNU assembler (GNU Binutils) 2.40
Copyright (C) 2023 Free Software Foundation, Inc.
This program is free software; you may redistribute it under the terms of
the GNU General Public License version 3 or later.
This program has absolutely no warranty.
This assembler was configured for a target of `x86_64-pc-linux-gnu'.
titan# 


The test suite report for that binutils was very very clean. 

My env looks pretty much okay : 

titan# 
titan# uname -a 
Linux titan 5.10.0-20-amd64 #1 SMP Debian 5.10.158-2 (2022-12-13) x86_64 GNU/Linux
titan# 
titan# cat /etc/debian_version 
11.6
titan# 
titan# 
titan# env | sort 
ADDR2LINE=/opt/bw/bin/gaddr2line
AR=/opt/bw/bin/gar
AS=/opt/bw/bin/gas
_=/bin/env
CC=/opt/imed/gcc12/bin/gcc
COLUMNS=80
CXX=/opt/imed/gcc12/bin/g++
EDITOR=/usr/bin/vi
ELFEDIT=/opt/bw/bin/gelfedit
GNAT=/opt/imed/gcc12/bin/gnat
HOME=/root
LC_COLLATE=en_US.UTF-8
LC_CTYPE=en_US.UTF-8
LC_MESSAGES=en_US.UTF-8
LC_MONETARY=en_US.UTF-8
LC_NUMERIC=en_US.UTF-8
LC_TIME=en_US.UTF-8
LD=/opt/bw/bin/gld
LESS_IS_MORE=1
LINES=24
LOGNAME=root
MAIL=/var/mail/root
NM=/opt/bw/bin/gnm -p
OBJCOPY=/opt/bw/bin/gobjcopy
OBJDUMP=/opt/bw/bin/gobjdump
OLDPWD=/opt/bw/build/gcc-12.2.0_linux_amd64.003
PAGER=/usr/bin/more
PATH=/opt/imed/gcc12/bin:/opt/bw/bin:/opt/bw/sbin:/opt/bw/ssl/bin:/usr/local/bin:/bin:/usr/bin:/usr/local/sbin:/usr/sbin:/sbin:/opt/schily/bin
PWD=/opt/bw/build
RANLIB=/opt/bw/bin/granlib
READELF=/opt/bw/bin/greadelf
SHELL=/bin/bash
SHLVL=0
SIZE=/opt/bw/bin/gsize
STRINGS=/opt/bw/bin/gstrings
STRIP=/opt/bw/bin/gstrip
TERM=vt100
TMPDIR=/var/tmp/root
TZ=GMT0
USER=root
VISUAL=/usr/bin/vi
XTERM_LOCALE=en_US.UTF-8
titan# 


The configure looks fine : 

titan# pwd
/opt/bw/build/gcc-12.2.0_linux_amd64.003
titan# date -u 
Thu 19 Jan 2023 08:39:24 PM UTC
titan# ../gcc-12.2.0/configure --prefix=/opt/bw/gcc12 \
> --build=x86_64-linux-gnu --host=x86_64-linux-gnu \
> --target=x86_64-linux-gnu --disable-nls --enable-threads=posix \
> --enable-shared --enable-bootstrap \
> --enable-libada --enable-lto \
> --with-gnu-as --with-gnu-ld \
> --with-as=/opt/bw/bin/gas --with-ld=/opt/bw/bin/gld \
> --enable-stage1-languages=c,c++ --enable-stage1-checking=misc \
> --enable-languages=ada,c,c++,d,fortran,lto,objc,obj-c++ \
> --enable-linker-build-id --without-included-gettext \
> --enable-default-pie --with-system-zlib \
> --with-target-system-zlib=auto --with-abi=m64 --disable-multilib \
> --without-cuda-driver --enable-checking=release --enable-link-mutex \
> --with-pkgversion='GENUNIX Thu 19 Jan 2023 08:39:24 PM UTC' 
checking build system type... x86_64-pc-linux-gnu
checking host system type... x86_64-pc-linux-gnu
checking target system type... x86_64-pc-linux-gnu
checking for a BSD-compatible install... /bin/install -c
checking whether ln works... yes
checking whether ln -s works... yes
checking for a sed that does not truncate output... /bin/sed
checking for gawk... no
checking for mawk... mawk
checking for libatomic support... yes
checking for libitm support... yes
checking for libsanitizer support... yes
checking for libvtv support... yes
checking for libphobos support... yes
checking for x86_64-linux-gnu-gcc... /opt/imed/gcc12/bin/gcc
checking whether the C compiler works... yes
checking for C compiler default output file name... a.out
checking for suffix of executables... 
checking whether we are cross compiling... no
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether /opt/imed/gcc12/bin/gcc accepts -g... yes
checking for /opt/imed/gcc12/bin/gcc option to accept ISO C89... none needed
checking for /opt/imed/gcc12/bin/gcc option to accept ISO C99... none needed
checking whether we are using the GNU C++ compiler... yes
checking whether /opt/imed/gcc12/bin/g++ accepts -g... yes
checking whether g++ accepts -static-libstdc++ -static-libgcc... yes
checking for x86_64-linux-gnu-gnatbind... x86_64-linux-gnu-gnatbind
checking for x86_64-linux-gnu-gnatmake... x86_64-linux-gnu-gnatmake
checking whether compiler driver understands Ada... yes
checking for x86_64-linux-gnu-gdc... x86_64-linux-gnu-gdc
checking whether the D compiler works... yes
checking how to compare bootstrapped objects... cmp --ignore-initial=16 $$f1 $$f2
checking for objdir... .libs
checking for isl 0.15 or later... no
required isl version is 0.15 or later
The following languages will be built: c,ada,c++,d,fortran,lto,objc,obj-c++
*** This configuration is not supported in the following subdirectories:
     zlib gotools target-libgo target-libffi target-liboffloadmic
    (Any other directories should still work fine.)
checking for default BUILD_CONFIG... bootstrap-debug
checking for --enable-vtable-verify... no
checking for bison... bison -y
checking for bison... bison
checking for gm4... no
checking for gnum4... no
checking for m4... m4
checking for flex... flex
checking for flex... flex
checking for makeinfo... makeinfo
checking for expect... expect
checking for runtest... runtest
checking for ar... (cached) /opt/bw/bin/gar
checking for x86_64-linux-gnu-ar... (cached) /opt/bw/bin/gar
checking for as... (cached) /opt/bw/bin/gas
checking for x86_64-linux-gnu-as... (cached) /opt/bw/bin/gas
checking for x86_64-linux-gnu-dlltool... no
checking for dlltool... no
checking for x86_64-linux-gnu-dsymutil... no
checking for dsymutil... no
checking for ld... (cached) /opt/bw/bin/gld
checking for x86_64-linux-gnu-ld... (cached) /opt/bw/bin/gld
checking for x86_64-linux-gnu-lipo... no
checking for lipo... no
checking for nm... (cached) /opt/bw/bin/gnm -p
checking for x86_64-linux-gnu-nm... (cached) /opt/bw/bin/gnm -p
checking for ranlib... (cached) /opt/bw/bin/granlib
checking for x86_64-linux-gnu-ranlib... (cached) /opt/bw/bin/granlib
checking for strip... (cached) /opt/bw/bin/gstrip
checking for x86_64-linux-gnu-strip... (cached) /opt/bw/bin/gstrip
checking for x86_64-linux-gnu-windres... no
checking for windres... no
checking for x86_64-linux-gnu-windmc... no
checking for windmc... no
checking for objcopy... (cached) /opt/bw/bin/gobjcopy
checking for x86_64-linux-gnu-objcopy... (cached) /opt/bw/bin/gobjcopy
checking for objdump... (cached) /opt/bw/bin/gobjdump
checking for x86_64-linux-gnu-objdump... (cached) /opt/bw/bin/gobjdump
checking for x86_64-linux-gnu-otool... no
checking for otool... no
checking for readelf... (cached) /opt/bw/bin/greadelf
checking for x86_64-linux-gnu-readelf... (cached) /opt/bw/bin/greadelf
checking for x86_64-linux-gnu-cc... no
checking for cc... cc
checking for x86_64-linux-gnu-c++... x86_64-linux-gnu-c++
checking for x86_64-linux-gnu-gcc... x86_64-linux-gnu-gcc
checking for x86_64-linux-gnu-gfortran... x86_64-linux-gnu-gfortran
checking for x86_64-linux-gnu-gccgo... no
checking for gccgo... no
checking for x86_64-linux-gnu-gdc... x86_64-linux-gnu-gdc
checking for ar... no
checking for x86_64-linux-gnu-ar... x86_64-linux-gnu-ar
checking for as... no
checking for x86_64-linux-gnu-as... x86_64-linux-gnu-as
checking for dlltool... no
checking for x86_64-linux-gnu-dlltool... no
checking for dlltool... no
checking for dsymutil... no
checking for x86_64-linux-gnu-dsymutil... no
checking for dsymutil... no
checking for ld... no
checking for x86_64-linux-gnu-ld... x86_64-linux-gnu-ld
checking for lipo... no
checking for x86_64-linux-gnu-lipo... no
checking for lipo... no
checking for nm... no
checking for x86_64-linux-gnu-nm... x86_64-linux-gnu-nm
checking for objcopy... no
checking for x86_64-linux-gnu-objcopy... x86_64-linux-gnu-objcopy
checking for objdump... no
checking for x86_64-linux-gnu-objdump... x86_64-linux-gnu-objdump
checking for otool... no
checking for x86_64-linux-gnu-otool... no
checking for otool... no
checking for ranlib... no
checking for x86_64-linux-gnu-ranlib... x86_64-linux-gnu-ranlib
checking for readelf... no
checking for x86_64-linux-gnu-readelf... x86_64-linux-gnu-readelf
checking for strip... no
checking for x86_64-linux-gnu-strip... x86_64-linux-gnu-strip
checking for windres... no
checking for x86_64-linux-gnu-windres... no
checking for windres... no
checking for windmc... no
checking for x86_64-linux-gnu-windmc... no
checking for windmc... no
checking where to find the target ar... host tool
checking where to find the target as... host tool
checking where to find the target cc... just compiled
checking where to find the target c++... just compiled
checking where to find the target c++ for libstdc++... just compiled
checking where to find the target dlltool... host tool
checking where to find the target dsymutil... host tool
checking where to find the target gcc... just compiled
checking where to find the target gfortran... just compiled
checking where to find the target gccgo... host tool
checking where to find the target gdc... just compiled
checking where to find the target ld... host tool
checking where to find the target lipo... host tool
checking where to find the target nm... host tool
checking where to find the target objcopy... host tool
checking where to find the target objdump... host tool
checking where to find the target otool... host tool
checking where to find the target ranlib... host tool
checking where to find the target readelf... host tool
checking where to find the target strip... host tool
checking where to find the target windres... host tool
checking where to find the target windmc... host tool
checking whether to enable maintainer-specific portions of Makefiles... no
configure: creating ./config.status
config.status: creating Makefile
titan# 

Great .. so I just run a single easy "make" and then the thing blows
up after a little while as seen above. 

No idea why. 

Perhaps I should avoid the new binutils and try with the system
stuff which is : 

titan# 
titan# /bin/as --version 
GNU assembler (GNU Binutils for Debian) 2.35.2
Copyright (C) 2020 Free Software Foundation, Inc.
This program is free software; you may redistribute it under the terms of
the GNU General Public License version 3 or later.
This program has absolutely no warranty.
This assembler was configured for a target of `x86_64-linux-gnu'.
titan# 

Open to suggestions here.


-- 
Dennis Clarke
RISC-V/SPARC/PPC/ARM/CISC
UNIX and Linux spoken
GreyBeard and suspenders optional 



























123456789+123456789+123456789+123456789+123456789+123456789+123456789+12
Comment 1 Dennis Clarke 2023-01-19 22:57:05 UTC

Tried again with the system binutils and I see the same error : 

/bin/ld: ada/b_gnat1.o: in function `adainit':
/opt/bw/build/gcc-12.2.0_linux_amd64.004/gcc/ada/b_gnat1.adb:363: undefined reference to `system__assertions___elabs'
collect2: error: ld returned 1 exit status
make[3]: *** [../../gcc-12.2.0/gcc/ada/gcc-interface/Make-lang.in:744: gnat1] Error 1
Comment 2 Andrew Pinski 2023-01-19 22:59:21 UTC
>warning: "s-stalib.adb" and "gnat1drv.adb" compiled with different GNAT versions

Is the first thing you should look into.

Since you are setting the PATH to include /opt/imed/gcc12/bin but you don't set LD_LIBRAR_PATH to include /opt/imed/gcc12/lib64 ...
Comment 3 Andreas Schwab 2023-01-19 23:14:43 UTC
You are mixing two different ada compilers:

/opt/imed/gcc12/bin/gcc -c -g  -gnatpg -gnatwns  -W -Wall -I- -I. -Iada/generated -Iada -I../../gcc-12.2.0/gcc/ada ../../gcc-12.2.0/gcc/ada/gnat1drv.adb -o ada/gnat1drv.o
x86_64-linux-gnu-gnatbind -t -I- -I. -Iada/generated -Iada -I../../gcc-12.2.0/gcc/ada -o b_gnat1.adb -n ada/gnat1drv.ali
Comment 4 Dennis Clarke 2023-01-19 23:36:39 UTC
(In reply to Andrew Pinski from comment #2)
> >warning: "s-stalib.adb" and "gnat1drv.adb" compiled with different GNAT versions
> 
> Is the first thing you should look into.
> 
> Since you are setting the PATH to include /opt/imed/gcc12/bin but you don't
> set LD_LIBRAR_PATH to include /opt/imed/gcc12/lib64 ...

Actually I have never heard of such a thing. 

Let's give that a whirl !
Comment 5 Dennis Clarke 2023-01-19 23:46:12 UTC
(In reply to Andreas Schwab from comment #3)
> You are mixing two different ada compilers:
> 
> /opt/imed/gcc12/bin/gcc -c -g  -gnatpg -gnatwns  -W -Wall -I- -I.
> -Iada/generated -Iada -I../../gcc-12.2.0/gcc/ada
> ../../gcc-12.2.0/gcc/ada/gnat1drv.adb -o ada/gnat1drv.o
> x86_64-linux-gnu-gnatbind -t -I- -I. -Iada/generated -Iada
> -I../../gcc-12.2.0/gcc/ada -o b_gnat1.adb -n ada/gnat1drv.ali

Brilliant!  I shall dpkg --purge all other gnat/ada and then
use the previously built and bootstrapped version I have in
the /opt/imed directory structure. 

Thank you !
Comment 6 Dennis Clarke 2023-01-21 09:19:52 UTC
The bootstrap now completes just fine. 

However the testsuite shows a very large number of failures : 

https://gcc.gnu.org/pipermail/gcc-testresults/2023-January/776331.html

371 "unexpected failures" seems like a very large amount of fail
for the gcc compiler.

The g++ seems very good as do the other components.

Also there is not even a single report of test results from anyone
anywhere for 12.2.0 this month and mybe that explains why this page
is broken : 

https://gcc.gnu.org/gcc-12/buildstat.html

In fact ALL of those "buildstat" pages are broken and have been
for years.  That is another topic entirely.


NOTE : I did *not* set LD_LIBRAR_PATH at all as I have never heard
of that thing nor do I know of any document that suggests we need
that. 

-- 
Dennis Clarke
RISC-V/SPARC/PPC/ARM/CISC
UNIX and Linux spoken
GreyBeard and suspenders optional