Hi Martin, > On 5 Jan 2022, at 08:45, Martin Liška <mli...@suse.cz> wrote: > > On 12/20/21 22:28, Olivier Hainque via Gcc-patches wrote:
> I think the patch broke my cross-rx-gcc12 package, failing now with: > configure: error: in > `/home/abuild/rpmbuild/BUILD/gcc-12.0.0+git190624/obj-x86_64-suse-linux/rx-elf/libgcc': > xgcc: error: unrecognized command-line option '--sysroot=/usr/rx-elf/sys-root' > > The compiler is configured with: > > [ 21s] + ../configure --prefix=/usr --infodir=/usr/share/info > --mandir=/usr/share/man --libdir=/usr/lib64 --libexecdir=/usr/lib64 > --enable-languages=c,c++ --enable-checking=release --disable-werror > --with-gxx-include-dir=/usr/include/c++/12 --enable-ssp --disable-libssp > --disable-libvtv --enable-cet=auto --disable-libcc1 --disable-plugin > --with-bugurl=https://bugs.opensuse.org/ '--with-pkgversion=SUSE Linux' > --with-slibdir=/usr/rx-elf/sys-root/lib64 --with-system-zlib > --enable-libstdcxx-allocator=new --disable-libstdcxx-pch > --enable-version-specific-runtime-libs --with-gcc-major-version-only > --enable-linux-futex --enable-gnu-indirect-function --program-suffix=-12 > --program-prefix=rx-elf- --target=rx-elf --disable-nls > --with-sysroot=/usr/rx-elf/sys-root --with-build-sysroot=/usr/rx-elf/sys-root > --with-build-time-tools=/usr/rx-elf/bin --with-newlib --disable-libsanitizer > --build=x86_64-suse-linux --host=x86_64-suse-linux > > Can you please take a look? Sure. Thanks for reporting the failure. Sorry for the breakage. The change should also set "validated" true when requesting to save --sysroot. I'm not sure why we don't see the problem with our vxworks setup - double checked again this morning, we do have successful builds passing --sysroot to the driver when configuring various libraries. Testing the patch further ...