Opened 10 months ago

Last modified 10 months ago

#68683 closed defect

gcc8+: doesn't work on macOS 10.6 — at Version 1

Reported by: catap (Kirill A. Korinsky) Owned by:
Priority: Normal Milestone:
Component: ports Version:
Keywords: Cc:
Port: gcc8, gcc9, gcc10, gcc11, gcc12, gcc13

Description (last modified by catap (Kirill A. Korinsky))

A naive test:

#include <stdio.h>
int main() {
   printf("Hello, World!");
   return 0;
}

fails as:

snow-leopard:tmp catap$ gcc-mp-13 -o test test.c -v
Using built-in specs.
COLLECT_GCC=gcc-mp-13
COLLECT_LTO_WRAPPER=/opt/local/libexec/gcc/x86_64-apple-darwin10/13.2.0/lto-wrapper
Target: x86_64-apple-darwin10
Configured with: /opt/local/var/macports/build/_opt_bblocal_var_buildworker_ports_build_ports_lang_gcc13/gcc13/work/gcc-13.2.0/configure --prefix=/opt/local --build=x86_64-apple-darwin10 --enable-languages=c,c++,objc,obj-c++,lto,fortran,jit --libdir=/opt/local/lib/gcc13 --includedir=/opt/local/include/gcc13 --infodir=/opt/local/share/info --mandir=/opt/local/share/man --datarootdir=/opt/local/share/gcc-13 --with-local-prefix=/opt/local --with-system-zlib --disable-nls --program-suffix=-mp-13 --with-gxx-include-dir=/opt/local/include/gcc13/c++/ --with-gmp=/opt/local --with-mpfr=/opt/local --with-mpc=/opt/local --with-isl=/opt/local --with-zstd=/opt/local --enable-checking=release --disable-multilib --enable-lto --enable-libstdcxx-time --without-build-config --with-as=/opt/local/bin/as --with-ld=/opt/local/bin/ld --with-ar=/opt/local/bin/ar --with-bugurl=https://trac.macports.org/newticket --enable-host-shared --with-darwin-extra-rpath=/opt/local/lib/libgcc --with-libiconv-prefix=/opt/local --disable-tls --with-gxx-libcxx-include-dir=/opt/local/libexec/gcc13/libc++/include/c++/v1 --with-pkgversion='MacPorts gcc13 13.2.0_3+stdlib_flag'
Thread model: posix
Supported LTO compression algorithms: zlib zstd
gcc version 13.2.0 (MacPorts gcc13 13.2.0_3+stdlib_flag) 
COLLECT_GCC_OPTIONS='-o' 'test' '-v' '-mmacosx-version-min=10.6.0' '-asm_macosx_version_min=10.6' '-nodefaultexport' '-mtune=core2'
 /opt/local/libexec/gcc/x86_64-apple-darwin10/13.2.0/cc1 -quiet -v -D__DYNAMIC__ test.c -fPIC -quiet -dumpbase test.c -dumpbase-ext .c -mmacosx-version-min=10.6.0 -mtune=core2 -version -o /var/tmp//ccijGkyC.s
GNU C17 (MacPorts gcc13 13.2.0_3+stdlib_flag) version 13.2.0 (x86_64-apple-darwin10)
	compiled by GNU C version 13.2.0, GMP version 6.2.1, MPFR version 4.2.1, MPC version 1.3.1, isl version isl-0.24-GMP

warning: GMP header version 6.2.1 differs from library version 6.3.0.
GGC heuristics: --param ggc-min-expand=100 --param ggc-min-heapsize=131072
ignoring nonexistent directory "/opt/local/lib/gcc13/gcc/x86_64-apple-darwin10/13.2.0/../../../../../x86_64-apple-darwin10/include"
#include "..." search starts here:
#include <...> search starts here:
 /opt/local/lib/gcc13/gcc/x86_64-apple-darwin10/13.2.0/include
 /opt/local/include
 /opt/local/lib/gcc13/gcc/x86_64-apple-darwin10/13.2.0/include-fixed
 /usr/include
 /System/Library/Frameworks
 /Library/Frameworks
End of search list.
Compiler executable checksum: 5959dc55c979e6aef969f388840a1ac3
COLLECT_GCC_OPTIONS='-o' 'test' '-v' '-mmacosx-version-min=10.6.0'  '-nodefaultexport' '-mtune=core2'
 /opt/local/bin/as -arch x86_64 -v -mmacosx-version-min=10.6 -force_cpusubtype_ALL -o /var/tmp//ccnoLCUL.o /var/tmp//ccijGkyC.s
Apple Inc version cctools-localbuild, GNU assembler version 1.38
FATAL:/opt/local/bin/../libexec/as/x86_64/as: I don't understand 'm' flag!
snow-leopard:tmp catap$ 

Similar issue appears on all gcc since gcc8.

Change History (1)

comment:1 Changed 10 months ago by catap (Kirill A. Korinsky)

Description: modified (diff)
Port: gcc8 gcc9 gcc10 gcc11 gcc12 added
Summary: gcc13 doesn't work on macOS 10.6gcc8+: doesn't work on macOS 10.6
Note: See TracTickets for help on using tickets.