[Bug target/80204] macosx-version-min wrong for macOS Sierra 10.12.3
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=80204 Eric Gallager changed: What|Removed |Added Status|UNCONFIRMED |RESOLVED Resolution|--- |FIXED --- Comment #7 from Eric Gallager --- (In reply to simon from comment #6) > Selected output from "gcc empty.c -v -Wl,-v" on macOS 10.14.1 (darwin > 18.2.0), > with gcc 9.0.0 20181103 built on x86_64-apple-darwin15, correctly showing > -mmacosx-version-min=10.14.0 & equivalents throughout. > > Equivalent success with 8.1.0. > > > > Target: x86_64-apple-darwin15 > Configured with: /Volumes/Miscellaneous/tmp/gcc/configure > --prefix=/Volumes/Miscellaneous/tmp/opt/gcc-9.0.0 > --without-libiconv-prefix --disable-libmudflap --disable-libstdcxx-pch > --disable-libsanitizer --disable-libcc1 --disable-libcilkrts > --disable-multilib --disable-nls --enable-languages=c,c++,ada > --disable-bootstrap --host=x86_64-apple-darwin15 > --target=x86_64-apple-darwin15 --build=x86_64-apple-darwin15 > --with-boot-ldflags='-static-libstdc++ -static-libgcc > -Wl,-headerpad_max_install_names' > Thread model: posix > gcc version 9.0.0 20181103 (experimental) (GCC) > COLLECT_GCC_OPTIONS='-v' '-mmacosx-version-min=10.14.0' > '-asm_macosx_version_min=10.14' '-mtune=core2' > /opt/gcc-9.0.0/bin/../libexec/gcc/x86_64-apple-darwin15/9.0.0/cc1 > -quiet -v -iprefix > /opt/gcc-9.0.0/bin/../lib/gcc/x86_64-apple-darwin15/9.0.0/ > -D__DYNAMIC__ empty.c -fPIC -quiet -dumpbase empty.c > -mmacosx-version-min=10.14.0 -mtune=core2 -auxbase empty -version > -o /var/folders/_q/fvnxz46903z9hjh38fz0lyhmgs/T//cc2Zzpgh.s > > > > as -arch x86_64 -v -force_cpusubtype_ALL -mmacosx-version-min=10.14 > -o /var/folders/_q/fvnxz46903z9hjh38fz0lyhmgs/T//cc9YzAyh.o > /var/folders/_q/fvnxz46903z9hjh38fz0lyhmgs/T//cc2Zzpgh.s > Apple LLVM version 10.0.0 (clang-1000.10.44.4) > Target: x86_64-apple-darwin18.2.0 > Thread model: posix > InstalledDir: /Library/Developer/CommandLineTools/usr/bin > "/Library/Developer/CommandLineTools/usr/bin/clang" -cc1as > -triple x86_64-apple-macosx10.14.0 -filetype obj > -main-file-name cc2Zzpgh.s -target-cpu penryn -fdebug-compilation-dir > /Users/simon/tmp -dwarf-debug-producer Apple LLVM version 10.0.0 > (clang-1000.10.44.4) -dwarf-version=4 -mrelocation-model pic -o > /var/folders/_q/fvnxz46903z9hjh38fz0lyhmgs/T//cc9YzAyh.o > /var/folders/_q/fvnxz46903z9hjh38fz0lyhmgs/T//cc2Zzpgh.s > > > > /usr/bin/ld -dynamic -arch x86_64 -macosx_version_min 10.14.0 > -weak_reference_mismatches non-weak -o a.out > -L/opt/gcc-9.0.0/bin/../lib/gcc/x86_64-apple-darwin15/9.0.0 > -L/opt/gcc-9.0.0/bin/../lib/gcc > -L/opt/gcc-9.0.0/bin/../lib/gcc/x86_64-apple-darwin15/9.0.0/../../.. > -v /var/folders/_q/fvnxz46903z9hjh38fz0lyhmgs/T//cc9YzAyh.o > -no_compact_unwind -lSystem -lgcc_ext.10.5 -lgcc -lSystem -v So, that sounds like a "yes, this can be closed"
[Bug target/80204] macosx-version-min wrong for macOS Sierra 10.12.3
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=80204 --- Comment #6 from simon at pushface dot org --- Selected output from "gcc empty.c -v -Wl,-v" on macOS 10.14.1 (darwin 18.2.0), with gcc 9.0.0 20181103 built on x86_64-apple-darwin15, correctly showing -mmacosx-version-min=10.14.0 & equivalents throughout. Equivalent success with 8.1.0. Target: x86_64-apple-darwin15 Configured with: /Volumes/Miscellaneous/tmp/gcc/configure --prefix=/Volumes/Miscellaneous/tmp/opt/gcc-9.0.0 --without-libiconv-prefix --disable-libmudflap --disable-libstdcxx-pch --disable-libsanitizer --disable-libcc1 --disable-libcilkrts --disable-multilib --disable-nls --enable-languages=c,c++,ada --disable-bootstrap --host=x86_64-apple-darwin15 --target=x86_64-apple-darwin15 --build=x86_64-apple-darwin15 --with-boot-ldflags='-static-libstdc++ -static-libgcc -Wl,-headerpad_max_install_names' Thread model: posix gcc version 9.0.0 20181103 (experimental) (GCC) COLLECT_GCC_OPTIONS='-v' '-mmacosx-version-min=10.14.0' '-asm_macosx_version_min=10.14' '-mtune=core2' /opt/gcc-9.0.0/bin/../libexec/gcc/x86_64-apple-darwin15/9.0.0/cc1 -quiet -v -iprefix /opt/gcc-9.0.0/bin/../lib/gcc/x86_64-apple-darwin15/9.0.0/ -D__DYNAMIC__ empty.c -fPIC -quiet -dumpbase empty.c -mmacosx-version-min=10.14.0 -mtune=core2 -auxbase empty -version -o /var/folders/_q/fvnxz46903z9hjh38fz0lyhmgs/T//cc2Zzpgh.s as -arch x86_64 -v -force_cpusubtype_ALL -mmacosx-version-min=10.14 -o /var/folders/_q/fvnxz46903z9hjh38fz0lyhmgs/T//cc9YzAyh.o /var/folders/_q/fvnxz46903z9hjh38fz0lyhmgs/T//cc2Zzpgh.s Apple LLVM version 10.0.0 (clang-1000.10.44.4) Target: x86_64-apple-darwin18.2.0 Thread model: posix InstalledDir: /Library/Developer/CommandLineTools/usr/bin "/Library/Developer/CommandLineTools/usr/bin/clang" -cc1as -triple x86_64-apple-macosx10.14.0 -filetype obj -main-file-name cc2Zzpgh.s -target-cpu penryn -fdebug-compilation-dir /Users/simon/tmp -dwarf-debug-producer Apple LLVM version 10.0.0 (clang-1000.10.44.4) -dwarf-version=4 -mrelocation-model pic -o /var/folders/_q/fvnxz46903z9hjh38fz0lyhmgs/T//cc9YzAyh.o /var/folders/_q/fvnxz46903z9hjh38fz0lyhmgs/T//cc2Zzpgh.s /usr/bin/ld -dynamic -arch x86_64 -macosx_version_min 10.14.0 -weak_reference_mismatches non-weak -o a.out -L/opt/gcc-9.0.0/bin/../lib/gcc/x86_64-apple-darwin15/9.0.0 -L/opt/gcc-9.0.0/bin/../lib/gcc -L/opt/gcc-9.0.0/bin/../lib/gcc/x86_64-apple-darwin15/9.0.0/../../.. -v /var/folders/_q/fvnxz46903z9hjh38fz0lyhmgs/T//cc9YzAyh.o -no_compact_unwind -lSystem -lgcc_ext.10.5 -lgcc -lSystem -v
[Bug target/80204] macosx-version-min wrong for macOS Sierra 10.12.3
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=80204 Martin Liška changed: What|Removed |Added CC||marxin at gcc dot gnu.org --- Comment #5 from Martin Liška --- Jeff: Can the bug be marked as resolved?
[Bug target/80204] macosx-version-min wrong for macOS Sierra 10.12.3
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=80204 --- Comment #4 from Jeffrey A. Law --- Author: law Date: Tue Sep 12 15:29:16 2017 New Revision: 252029 URL: https://gcc.gnu.org/viewcvs?rev=252029=gcc=rev Log: PR target/80204 * config/darwin-driver.c (darwin_find_version_from_kernel): Eliminate calculation of the minor version, always output as 0. Modified: trunk/gcc/ChangeLog trunk/gcc/config/darwin-driver.c
[Bug target/80204] macosx-version-min wrong for macOS Sierra 10.12.3
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=80204 --- Comment #3 from simon at pushface dot org --- Created attachment 42077 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=42077=edit Patch to gcc/config/darwin-driver.c
[Bug target/80204] macosx-version-min wrong for macOS Sierra 10.12.3
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=80204 --- Comment #2 from simon at pushface dot org --- Created attachment 42076 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=42076=edit Proposed solution Demonstrates the solution proposed in the patch.
[Bug target/80204] macosx-version-min wrong for macOS Sierra 10.12.3
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=80204 --- Comment #1 from simon at pushface dot org --- macOS 10.12.4 includes kernel version 16.5.0. The command line tools have been updated: clang cc1 is now version 8.1.0 (clang-802.0.38). It still specifies -macosx_version_min 10.12.0 at link time.