[Bug ada/108472] gcc/ada/b_gnat1.adb:363: undefined reference to `system__assertions___elabs'

2023-01-21 Thread dclarke at blastwave dot org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=108472

Dennis Clarke  changed:

   What|Removed |Added

 Status|WAITING |RESOLVED
 Resolution|--- |WORKSFORME

--- Comment #6 from Dennis Clarke  ---

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

[Bug ada/108472] gcc/ada/b_gnat1.adb:363: undefined reference to `system__assertions___elabs'

2023-01-19 Thread dclarke at blastwave dot org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=108472

--- Comment #5 from Dennis Clarke  ---
(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 !

[Bug ada/108472] gcc/ada/b_gnat1.adb:363: undefined reference to `system__assertions___elabs'

2023-01-19 Thread dclarke at blastwave dot org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=108472

--- Comment #4 from Dennis Clarke  ---
(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 !

[Bug ada/108472] gcc/ada/b_gnat1.adb:363: undefined reference to `system__assertions___elabs'

2023-01-19 Thread schwab--- via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=108472

--- Comment #3 from Andreas Schwab  ---
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

[Bug ada/108472] gcc/ada/b_gnat1.adb:363: undefined reference to `system__assertions___elabs'

2023-01-19 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=108472

Andrew Pinski  changed:

   What|Removed |Added

 Ever confirmed|0   |1
   Last reconfirmed||2023-01-19
 Status|UNCONFIRMED |WAITING

--- Comment #2 from Andrew Pinski  ---
>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 ...

[Bug ada/108472] gcc/ada/b_gnat1.adb:363: undefined reference to `system__assertions___elabs'

2023-01-19 Thread dclarke at blastwave dot org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=108472

--- Comment #1 from Dennis Clarke  ---


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