[MacPorts] #67360: gcc10-bootstrap @10.3.0_5+universal: as: I don't understand 'm' flag!

MacPorts noreply at macports.org
Tue May 2 21:17:15 UTC 2023


#67360: gcc10-bootstrap @10.3.0_5+universal: as: I don't understand 'm' flag!
------------------------------+--------------------
  Reporter:  Cebtenzzre       |      Owner:  (none)
      Type:  defect           |     Status:  new
  Priority:  Normal           |  Milestone:
 Component:  ports            |    Version:  2.8.1
Resolution:                   |   Keywords:  tiger
      Port:  gcc10-bootstrap  |
------------------------------+--------------------

Comment (by Cebtenzzre):

 Based on the CMake logs, it looks like /opt/local/bin is not on the PATH
 during the configure step, so it uses the system assembler instead of
 MacPorts cctools:
 {{{
 Compiling the CXX compiler identification source file
 "CMakeCXXCompilerId.cpp" failed.
 Compiler: /opt/local/libexec/gcc10-bootstrap/bin/g++
 Build flags: -pipe;-DNDEBUG
 Id flags:

 The output was:
 1
 /usr/bin/../libexec/gcc/darwin/i386/as: I don't understand 'm' flag!
 /usr/bin/../libexec/gcc/darwin/i386/as: Flag option -m has already been
 seen!
 /usr/bin/../libexec/gcc/darwin/i386/as: I don't understand 'm' flag!
 /usr/bin/../libexec/gcc/darwin/i386/as: I don't understand 'a' flag!
 /usr/bin/../libexec/gcc/darwin/i386/as: I don't understand 'c' flag!
 /usr/bin/../libexec/gcc/darwin/i386/as: Flag option -o has already been
 seen!
 }}}

 If I take /opt/local/bin off of my PATH and compile foo.c, there are only
 warnings:
 {{{
 COLLECT_GCC_OPTIONS='-v' '-c' '-mmacosx-version-min=10.4'
 '-nodefaultexport' '-mtune=core2'
  as -arch i386 -v -force_cpusubtype_ALL -mmacosx-version-min=10.4 -o foo.o
 /var/tmp//cc70u7pl.s
 Apple Computer, Inc. version cctools-622.9~2, GNU assembler version 1.38
 /usr/bin/../libexec/gcc/darwin/i386/as: I don't understand 'm' flag!
 /usr/bin/../libexec/gcc/darwin/i386/as: Flag option -m has already been
 seen!
 /usr/bin/../libexec/gcc/darwin/i386/as: I don't understand 'm' flag!
 /usr/bin/../libexec/gcc/darwin/i386/as: I don't understand 'a' flag!
 /usr/bin/../libexec/gcc/darwin/i386/as: I don't understand 'c' flag!
 /usr/bin/../libexec/gcc/darwin/i386/as: Flag option -o has already been
 seen!
 }}}

 For comparison, MacPorts gcc 7 passes different flags to 'as', and is
 compatible with MacPorts cctools:
 {{{
 COLLECT_GCC_OPTIONS='-v' '-c' '-mmacosx-version-min=10.4'  '-mtune=core2'
  /opt/local/bin/as -v -arch i386 -force_cpusubtype_ALL -o foo.o
 /var/tmp//ccxPW2mS.s
 Apple Inc version cctools-localbuild, GNU assembler version 1.38
 }}}

-- 
Ticket URL: <https://trac.macports.org/ticket/67360#comment:2>
MacPorts <https://www.macports.org/>
Ports system for macOS


More information about the macports-tickets mailing list