[MacPorts] #60893: gcc5 unusable in trace mode

MacPorts noreply at macports.org
Thu Jul 23 19:16:05 UTC 2020


#60893: gcc5 unusable in trace mode
---------------------------+--------------------------------
  Reporter:  chrstphrchvz  |      Owner:  macports-tickets@…
      Type:  defect        |     Status:  assigned
  Priority:  Normal        |  Milestone:
 Component:  ports         |    Version:  2.6.3
Resolution:                |   Keywords:
      Port:  gcc5          |
---------------------------+--------------------------------

Comment (by chrstphrchvz):

 {{{
 % echo "#include <stdio.h>\nint main(void){printf(\"Hello world\\\n\");}"
 #include <stdio.h>
 int main(void){printf("Hello world\n");}

 % echo "#include <stdio.h>\nint main(void){printf(\"Hello world\\\n\");}"
 | /opt/local/bin/gcc-mp-5 -xc -
 ld: unsupported tapi file type '!tapi-tbd' in YAML file
 '/Library/Developer/CommandLineTools/SDKs/MacOSX10.15.sdk/usr/lib/libSystem.tbd'
 for architecture x86_64
 collect2: error: ld returned 1 exit status
 }}}

 It turns out configuring `pv` in trace mode had the same error (which it
 buried in a config.log):
 {{{
 configure:2302: checking for C compiler default output file name
 configure:2324: /opt/local/bin/gcc-mp-5 -pipe -Os
 -isysroot/Library/Developer/CommandLineTools/SDKs/MacOSX10.15.sdk -arch
 x86_64 -I/opt/local/include -Wno-deprecated
 -isysroot/Library/Developer/CommandLineTools/SDKs/MacOSX10.15.sdk
 -L/opt/local/lib -Wl,-headerpad_max_install_names
 -Wl,-syslibroot,/Library/Developer/CommandLineTools/SDKs/MacOSX10.15.sdk
 -arch x86_64 conftest.c  >&5
 ld: unsupported tapi file type '!tapi-tbd' in YAML file
 '/Library/Developer/CommandLineTools/SDKs/MacOSX10.15.sdk/usr/lib/libSystem.tbd'
 for architecture x86_64
 collect2: error: ld returned 1 exit status
 }}}

 Following instructions at ticket:58333#comment:8 allows building a working
 hello world program. But configuring `pv` does not get much further:
 {{{
 configure:2302: checking for C compiler default output file name
 configure:2324: /opt/local/bin/gcc-mp-5 -pipe -Os
 -isysroot/Library/Developer/CommandLineTools/SDKs/MacOSX10.15.sdk -arch
 x86_64 -I/opt/local/include -Wno-deprecated
 -isysroot/Library/Developer/CommandLineTools/SDKs/MacOSX10.15.sdk
 -L/opt/local/lib -Wl,-headerpad_max_install_names
 -Wl,-syslibroot,/Library/Developer/CommandLineTools/SDKs/MacOSX10.15.sdk
 -arch x86_64 conftest.c  >&5
 collect2: fatal error: close: Bad file descriptor
 compilation terminated.
 }}}

 I apologize for not understanding this issue very well, but working on it
 is becoming more effort than I'm currently interested in making. The goal
 was merely to document why gcc5 and clang < 900 (otherwise C++14-capable
 compilers) are blacklisted in `mysql8`: https://github.com/macports
 /macports-ports/pull/7774#discussion_r456882956. I personally do not use
 `mysql8`, and there would appear to be a number of other compilers to
 choose from instead.

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


More information about the macports-tickets mailing list