https://gcc.gnu.org/bugzilla/show_bug.cgi?id=88429
Bug ID: 88429 Summary: Ada bootstrap fails with --disable-shared Product: gcc Version: 9.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: ada Assignee: unassigned at gcc dot gnu.org Reporter: ro at gcc dot gnu.org Target Milestone: --- Target: amd64-pc-solaris2.11, x86_64-pc-linux-gnu Prompted by PR bootstrap/65725 (a Solaris bootstrap failure with --disable-shared), I tried both Solaris/amd64 and Linux/x86_64 bootstraps with --disable-shared: both fail in the same way: cp -p /vol/gcc/src/hg/trunk/local/gcc/tsystem.h rts_32 rm -f ../stamp-gnatlib-rts_32 touch ../stamp-gnatlib1-rts_32 rm -f rts_32/s-oscons-tmplt.i rts_32/s-oscons-tmplt.s (cd rts_32 ; \ /var/gcc/regression/trunk/4.17.3-gcc-gas-gld/build/./gcc/xgcc -B/var/gcc/regression/trunk/4.17.3-gcc-gas-gld/build/./gcc/ -B/vol/gcc/x86_64-pc-linux-gnu/bin/ -B/vol/gcc/x86_64-pc-linux-gnu/lib/ -isystem /vol/gcc/x86_64-pc-linux-gnu/include -isystem /vol/gcc/x86_64-pc-linux-gnu/sys-include -fchecking=1 -W -Wall -g -O2 -g -O2 -fexceptions -DIN_RTS -DHAVE_GETIPINFO -m32 -E -C -DTARGET=\"x86_64-pc-linux-gnu\" -iquote /vol/gcc/src/hg/trunk/local/gcc/ada /vol/gcc/src/hg/trunk/local/gcc/ada/s-oscons-tmplt.c > s-oscons-tmplt.i ; \ /var/gcc/regression/trunk/4.17.3-gcc-gas-gld/build/./gcc/xgcc -B/var/gcc/regression/trunk/4.17.3-gcc-gas-gld/build/./gcc/ -B/vol/gcc/x86_64-pc-linux-gnu/bin/ -B/vol/gcc/x86_64-pc-linux-gnu/lib/ -isystem /vol/gcc/x86_64-pc-linux-gnu/include -isystem /vol/gcc/x86_64-pc-linux-gnu/sys-include -fchecking=1 -W -Wall -g -O2 -g -O2 -fexceptions -DIN_RTS -DHAVE_GETIPINFO -m32 -S s-oscons-tmplt.i ; \ ../bldtools/oscons/xoscons s-oscons) /bin/bash: line 0: cd: rts_32: Not a directory Unlike the default (--enable-shared) case, it seems that the rts directory for the non-default multilib is created incorrectly: with --enable-shared, I see make THREAD_KIND=native setup-rts make[9]: Entering directory '/var/scratch/gcc/regression/trunk/4.17.3-gcc-gas-gld/build/gcc/ada' rm -rf rts_32 mkdir -p rts_32 chmod u+w rts_32 while with --disable-shared, I get the creation of rts twice. This may be related to libada/configure.ac referencing a gnatlib-plain target for --disable-shared, which I couldn't find elsewhere.