On Sun, 12 Feb 2023, 17:52 Christer Solskogen via Gcc-help, < gcc-help@gcc.gnu.org> wrote: > While cross compiling gcc with musl I see this: > > checking for exported symbols... /home/solskogen/gcc/libcc1/configure: > line 15053: -T: command not found > yes > checking for -rdynamic... /home/solskogen/gcc/libcc1/configure: line > 15063: -T: command not found Did you try looking at that line of that configure file? It should tell you exactly what is missing. no > checking for library containing dlopen... none required > checking for -fPIC -shared... yes > configure: error: > Building GCC with plugin support requires a host that supports > -fPIC, -shared, -ldl and -rdynamic. > make[1]: *** [Makefile:11890: configure-libcc1] Error 1 > > This is the configure line: /home/solskogen/gcc/configure --prefix=/usr > --libexecdir=/lib --host=aarch64-centrix-linux-musl > --target=aarch64-centrix-linux-musl --build=x86_64-pc-linux-gnu > --enable-languages=c,c++ --disable-multilib --enable-checking=release > --disable-nls --with-gcc-major-version-only --enable-plugin > --disable-libstdcxx-pch --enable-default-pie --enable-default-ssp > --disable-libsanitizer --enable-host-shared > > I can't figure out that it doesn't find. But a google search suggests > objdump. > Could be, look at the configure script. Do you have a cross objdump compiled for the target, in your PATH? If you can't work out what's wrong, just build GCC with --disable-libcc1 (assuming you don't need it for gdb in your cross toolchain). > gcc is at version 12.2.0. Worth submitting a bug report? > probably not > > > >