https://gcc.gnu.org/bugzilla/show_bug.cgi?id=105664
Bug ID: 105664 Summary: Install with suffix creates extra file Product: gcc Version: 12.1.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: c Assignee: unassigned at gcc dot gnu.org Reporter: fxcoudert at gcc dot gnu.org Target Milestone: --- Building gcc-11.3.0 from source on darwin with --program-suffix=-11 leads to the following files being installed in the prefix: -r-xr-xr-x 3 fx admin 1397936 May 19 18:25 /opt/homebrew/Cellar/gcc/11.3.0_1/bin/aarch64-apple-darwin21-gcc-11 -r-xr-xr-x 3 fx admin 1397936 May 19 18:25 /opt/homebrew/Cellar/gcc/11.3.0_1/bin/aarch64-apple-darwin21-gcc-tmp -r-xr-xr-x 3 fx admin 1397936 May 19 18:25 /opt/homebrew/Cellar/gcc/11.3.0_1/bin/gcc-11 That's three hard links of the gcc driver: gcc-11 and aarch64-apple-darwin21-gcc-11 are expected, but aarch64-apple-darwin21-gcc-tmp should not be present. The full configure line is: configure --prefix=/opt/homebrew/opt/gcc --libdir=/opt/homebrew/opt/gcc/lib/gcc/11 --disable-nls --enable-checking=release --with-gcc-major-version-only --enable-languages=c,c++,objc,obj-c++,fortran --program-suffix=-11 --build=aarch64-apple-darwin21 --with-system-zlib --with-sysroot=/Library/Developer/CommandLineTools/SDKs/MacOSX12.sdk && make install-strip