[MacPorts] #58442: gcc9 (and other gccN) fails to install on Mojave, Xcode-10.2.1

MacPorts noreply at macports.org
Sun May 5 03:51:37 UTC 2019


#58442: gcc9 (and other gccN) fails to install on Mojave, Xcode-10.2.1
-------------------------+--------------------
  Reporter:  mouse07410  |      Owner:  (none)
      Type:  defect      |     Status:  new
  Priority:  Normal      |  Milestone:
 Component:  ports       |    Version:
Resolution:              |   Keywords:
      Port:  gcc9        |
-------------------------+--------------------

Comment (by mouse07410):

 Why does {{{gcc9} port insist on building itself with Macports
 {{{clang-7.0}}}?
 {{{
 . . . . .
 :info:build Stack dump:
 :info:build 0.  Program arguments: /opt/local/libexec/llvm-7.0/bin/clang
 -cc1as -triple x86_64-apple-macosx10.5.0 -filetype obj -main-file-name -
 -target-cpu core2 -I . -I . -I ../.././gcc -I
 /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_lang_gcc9/gcc9/work/gcc-9.1.0/libgcc
 -I
 /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_lang_gcc9/gcc9/work/gcc-9.1.0/libgcc/.
 -I
 /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_lang_gcc9/gcc9/work/gcc-9.1.0/libgcc/../gcc
 -I
 /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_lang_gcc9/gcc9/work/gcc-9.1.0/libgcc/../include
 -fdebug-compilation-dir
 /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_lang_gcc9/gcc9/work/build/x86_64
 -apple-darwin18/libgcc -dwarf-debug-producer clang version 7.0.1
 (tags/RELEASE_701/final) -I . -I . -I ../.././gcc -I
 /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_lang_gcc9/gcc9/work/gcc-9.1.0/libgcc
 -I
 /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_lang_gcc9/gcc9/work/gcc-9.1.0/libgcc/.
 -I
 /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_lang_gcc9/gcc9/work/gcc-9.1.0/libgcc/../gcc
 -I
 /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_lang_gcc9/gcc9/work/gcc-9.1.0/libgcc/../include
 -dwarf-version=2 -mrelocation-model pic -o cpuinfo_s.o -
 :info:build 0  libLLVM.dylib            0x000000010f618f60
 llvm::sys::PrintStackTrace(llvm::raw_ostream&) + 37
 :info:build 1  libLLVM.dylib            0x000000010f619351
 SignalHandler(int) + 200
 :info:build 2  libsystem_platform.dylib 0x00007fff60ca0b5d _sigtramp + 29
 :info:build 3  libsystem_platform.dylib 0x0000000119c9d938 _sigtramp +
 3103772152
 :info:build 4  libsystem_c.dylib        0x00007fff60b606a6 abort + 127
 :info:build 5  libsystem_c.dylib        0x00007fff60b2920d basename_r + 0
 :info:build 6  libLLVM.dylib            0x00000001101f8b29 (anonymous
 namespace)::MCMachOStreamer::ChangeSection(llvm::MCSection*, llvm::MCExpr
 const*) + 793
 :info:build 7  libLLVM.dylib            0x0000000110206239
 llvm::MCStreamer::SwitchSection(llvm::MCSection*, llvm::MCExpr const*) +
 97
 :info:build 8  libLLVM.dylib            0x000000011023d45b (anonymous
 namespace)::DarwinAsmParser::parseSectionSwitch(llvm::StringRef,
 llvm::StringRef, unsigned int, unsigned int, unsigned int) + 201
 :info:build 9  libLLVM.dylib            0x000000011023dc9e bool
 llvm::MCAsmParserExtension::HandleDirective<(anonymous
 namespace)::DarwinAsmParser, &((anonymous
 namespace)::DarwinAsmParser::parseSectionDirectiveModInitFunc(llvm::StringRef,
 llvm::SMLoc))>(llvm::MCAsmParserExtension*, llvm::StringRef, llvm::SMLoc)
 + 44
 :info:build 10 libLLVM.dylib            0x0000000110226b85 (anonymous
 namespace)::AsmParser::parseStatement((anonymous
 namespace)::ParseStatementInfo&, llvm::MCAsmParserSemaCallback*) + 2127
 :info:build 11 libLLVM.dylib            0x0000000110222a67 (anonymous
 namespace)::AsmParser::Run(bool, bool) + 395
 :info:build 12 clang                    0x000000010db428d0
 cc1as_main(llvm::ArrayRef<char const*>, char const*, void*) + 10156
 :info:build 13 clang                    0x000000010db3db6b main + 7864
 :info:build 14 libdyld.dylib            0x00007fff60abb3d5 start + 1
 :info:build 15 libdyld.dylib            0x0000000000000030 start +
 2673101916
 :info:build clang: error: unable to execute command: Abort trap: 6
 :info:build clang: error: clang integrated assembler command failed due to
 signal (use -v to see invocation)
 :info:build clang version 7.0.1 (tags/RELEASE_701/final)
 :info:build Target: x86_64-apple-darwin18.5.0
 :info:build Thread model: posix
 :info:build InstalledDir: /opt/local/libexec/llvm-7.0/bin
 :info:build clang: note: diagnostic msg: PLEASE submit a bug report to
 https://bugs.llvm.org/ and include the crash backtrace, preprocessed
 source, and associated run script.
 :info:build clang: note: diagnostic msg: Error generating preprocessed
 source(s) - no preprocessable inputs.
 :info:build make[3]: *** [cpuinfo_s.o] Error 1
 }}}

 Here's my "normal" setup:
 {{{
 $ port select --list clang
 Available versions for clang:
         apple-clang (active)
         mp-clang-6.0
         mp-clang-7.0
         mp-clang-8.0
         none
 $ port select --list llvm
 Available versions for llvm:
         mp-llvm-6.0
         mp-llvm-7.0
         mp-llvm-8.0
         none (active)
 $
 }}}

 I tried installing gcc9 with setting {{{mp-llvm-7.0}}} and {{{mp-
 clang-7.0}}} as default - with the same bad result.

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


More information about the macports-tickets mailing list