Bugzilla – Bug 1225900
windows:mingw:win32/mingw32-gcc: Warning: position-independent-executable-suggested /usr/bin/i686-w64-mingw32-c++ and others
Last modified: 2024-06-06 08:41:19 UTC
When building the cross compiler a warning is printed that the executables should be compiled position independent. [ 651s] mingw32-cross-gcc-c++.x86_64: W: position-independent-executable-suggested /usr/bin/i686-w64-mingw32-c++ [ 651s] mingw32-cross-cpp.x86_64: W: position-independent-executable-suggested /usr/bin/i686-w64-mingw32-cpp [ 651s] mingw32-cross-gcc-c++.x86_64: W: position-independent-executable-suggested /usr/bin/i686-w64-mingw32-g++ [ 651s] mingw32-cross-gcc.x86_64: W: position-independent-executable-suggested /usr/bin/i686-w64-mingw32-gcc [ 651s] mingw32-cross-gcc.x86_64: W: position-independent-executable-suggested /usr/bin/i686-w64-mingw32-gcc-13.2.0 [ 651s] mingw32-cross-gcc.x86_64: W: position-independent-executable-suggested /usr/bin/i686-w64-mingw32-gcc-ar [ 651s] mingw32-cross-gcc.x86_64: W: position-independent-executable-suggested /usr/bin/i686-w64-mingw32-gcc-nm [ 651s] mingw32-cross-gcc.x86_64: W: position-independent-executable-suggested /usr/bin/i686-w64-mingw32-gcc-ranlib [ 651s] mingw32-cross-gcc.x86_64: W: position-independent-executable-suggested /usr/bin/i686-w64-mingw32-gcov [ 651s] mingw32-cross-gcc.x86_64: W: position-independent-executable-suggested /usr/bin/i686-w64-mingw32-gcov-dump [ 651s] mingw32-cross-gcc.x86_64: W: position-independent-executable-suggested /usr/bin/i686-w64-mingw32-gcov-tool [ 651s] mingw32-cross-gcc-fortran.x86_64: W: position-independent-executable-suggested /usr/bin/i686-w64-mingw32-gfortran [ 651s] mingw32-cross-gcc.x86_64: W: position-independent-executable-suggested /usr/bin/i686-w64-mingw32-lto-dump [ 651s] mingw32-cross-cpp.x86_64: W: position-independent-executable-suggested /usr/lib64/gcc/i686-w64-mingw32/13.2.0/cc1 [ 651s] mingw32-cross-gcc-objc.x86_64: W: position-independent-executable-suggested /usr/lib64/gcc/i686-w64-mingw32/13.2.0/cc1obj [ 651s] mingw32-cross-gcc-objc.x86_64: W: position-independent-executable-suggested /usr/lib64/gcc/i686-w64-mingw32/13.2.0/cc1objplus [ 651s] mingw32-cross-gcc-c++.x86_64: W: position-independent-executable-suggested /usr/lib64/gcc/i686-w64-mingw32/13.2.0/cc1plus [ 651s] mingw32-cross-gcc.x86_64: W: position-independent-executable-suggested /usr/lib64/gcc/i686-w64-mingw32/13.2.0/collect2 [ 651s] mingw32-cross-gcc-fortran.x86_64: W: position-independent-executable-suggested /usr/lib64/gcc/i686-w64-mingw32/13.2.0/f951 [ 651s] mingw32-cross-gcc-c++.x86_64: W: position-independent-executable-suggested /usr/lib64/gcc/i686-w64-mingw32/13.2.0/g++-mapper-server [ 651s] mingw32-cross-gcc.x86_64: W: position-independent-executable-suggested /usr/lib64/gcc/i686-w64-mingw32/13.2.0/install-tools/fixincl [ 651s] mingw32-cross-gcc.x86_64: W: position-independent-executable-suggested /usr/lib64/gcc/i686-w64-mingw32/13.2.0/lto-wrapper [ 651s] mingw32-cross-gcc.x86_64: W: position-independent-executable-suggested /usr/lib64/gcc/i686-w64-mingw32/13.2.0/lto1 [ 651s] This executable should be position independent (all binaries should). Check [ 651s] that it is built with -fPIE/-fpie in compiler flags and -pie in linker flags.
Fixed with https://build.opensuse.org/request/show/1178960 and https://build.opensuse.org/request/show/1178934