https://gcc.gnu.org/bugzilla/show_bug.cgi?id=90440

            Bug ID: 90440
           Summary: Solaris 10 sparcs fails to find <ext/opt_random.h>
           Product: gcc
           Version: 8.3.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c
          Assignee: unassigned at gcc dot gnu.org
          Reporter: jullien at eligis dot com
  Target Milestone: ---

Hi dear maintainers.

For years now, I have been able to compile gcc from last working version.
On my machine, I currently have a fully working gcc/g++ 8.2.0.

Trying to build either 8.3.0 or 9.1.0 it now fails with:
fatal error: ext/opt_random.h: No such file or directory

...
mkdir -p ./sparc-sun-solaris2.10/bits/extc++.h.gch
/export/home/jullien/gcc-8.3.0/obj/./gcc/xgcc -shared-libgcc
-B/export/home/jullien/gcc-8.3.0/obj/./gcc -nostdinc++
-L/export/home/jullien/gcc-8.3.0/obj/sparc-sun-solaris2.10/libstdc++-v3/src
-L/export/home/jullien/gcc-8.3.0/obj/sparc-sun-solaris2.10/libstdc++-v3/src/.libs
-L/export/home/jullien/gcc-8.3.0/obj/sparc-sun-solaris2.10/libstdc++-v3/libsupc++/.libs
-B/usr/local/sparc-sun-solaris2.10/bin/ -B/usr/local/sparc-sun-solaris2.10/lib/
-isystem /usr/local/sparc-sun-solaris2.10/include -isystem
/usr/local/sparc-sun-solaris2.10/sys-include    -x c++-header -nostdinc++ -g
-O2 
-I/export/home/jullien/gcc-8.3.0/obj/sparc-sun-solaris2.10/libstdc++-v3/include/sparc-sun-solaris2.10
-I/export/home/jullien/gcc-8.3.0/obj/sparc-sun-solaris2.10/libstdc++-v3/include
-I/export/home/jullien/gcc-8.3.0/libstdc++-v3/libsupc++ -I/usr/local/include
-O2 -g /export/home/jullien/gcc-8.3.0/libstdc++-v3/include/precompiled/extc++.h
-o sparc-sun-solaris2.10/bits/extc++.h.gch/O2g.gch
In file included from
/export/home/jullien/gcc-8.3.0/libstdc++-v3/include/precompiled/extc++.h:62:
/export/home/jullien/gcc-8.3.0/obj/sparc-sun-solaris2.10/libstdc++-v3/include/ext/random:3781:10:
fatal error: ext/opt_random.h: No such file or directory
 #include <ext/opt_random.h>
          ^~~~~~~~~~~~~~~~~~

I use this command:
../configure \
    --with-gnu-as    --with-as=/usr/local/bin/as \
    --with-gnu-ld    --with-ld=/usr/local/bin/ld \
    --enable-shared                              \
    --disable-lto                                \
    --disable-nls                                \
    --enable-obsolete                            \
    --enable-languages=c,c++                     \
    --enable-checking=release

time make bootstrap-lean


a simple "make" also fails

Several <path>/ext/opt_random.h exist but none are found by xgcc.

You help is welcome.

Christian

Reply via email to