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

--- Comment #6 from Kirill A. Korinsky <kirill at korins dot ky> ---
This might be related.

When I bootstrap on machine without installed exact version of libstdc++ from
this sources, I can't bootstrap D because of:

configure:5400: checking If /usr/ports/pobj/gcc-15.2.0/build-amd64/./gcc/gdc
-B/usr/ports/pobj/gcc-15.2.0/build-amd64/./gcc/
-B/usr/local/x86_64-unknown-openbsd/bin/
-B/usr/local/x86_64-unknown-openbsd/lib/ -isystem
/usr/local/x86_64-unknown-openbsd/include -isystem
/usr/local/x86_64-unknown-openbsd/sys-include   -fno-checking can compile D
sources
configure:5410: /usr/ports/pobj/gcc-15.2.0/build-amd64/./gcc/gdc
-B/usr/ports/pobj/gcc-15.2.0/build-amd64/./gcc/
-B/usr/local/x86_64-unknown-openbsd/bin/
-B/usr/local/x86_64-unknown-openbsd/lib/ -isystem
/usr/local/x86_64-unknown-openbsd/include -isystem
/usr/local/x86_64-unknown-openbsd/sys-include   -fno-checking -c -fno-druntime
-nostdinc -I /usr/ports/pobj/gcc-15.2.0/gcc-15.2.0/libphobos/libdruntime  -O2
-g conftest.d >&5
ld.so: d21: can't load library 'libestdc++.so.21.0'
gdc: fatal error: Killed signal terminated program d21
compilation terminated.
configure:5410: $? = 1
configure: failed program was:
| module object;
| 
| 
| extern(C) int main() {
|   return 0;
| }
configure:5414: result: no
configure:5416: error: can't compile D sources!


where libestdc++.so.21.0 is an openbsd way of naming gcc-15 libstdc++ in ports.


But, as soon as I install gcc-libs, it builds just fine.

As an ugly workaround I added

LD_LIBRARY_PATH=${WRKBUILD}/prev-${CONFIG}/libstdc++-v3/src/.libs

which allows to bootstrap.

Reply via email to