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

MacPorts noreply at macports.org
Sun May 5 12:46:46 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):

 First, I completely removed clang-7.0 and llvm-7.0. Build of gcc9 now
 fails because it requires those ports. I concur that {{{gcc}}}
 {{{Portfile}}} should not have those dependencies (and with other @kencu
 suggestions).

 Also, I'm hitting a very similar (same?) problem trying to update (or
 otherwise rebuild) gcc**8**:
 {{{
 . . . . .
 :info:build
 /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_lang_gcc8/gcc8/work/build/./gcc/xgcc
 -B/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_lang_gcc8/gcc8/work/build/./gcc/
 -B/opt/local/x86_64-apple-darwin18/bin/ -B/opt/local/x86_64-apple-
 darwin18/lib/ -isystem /opt/local/x86_64-apple-darwin18/include -isystem
 /opt/local/x86_64-apple-darwin18/sys-include    -g -O2 -pipe -Os
 -isysroot/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk
 -O2  -g -O2 -pipe -Os
 -isysroot/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk
 -DIN_GCC    -W -Wall -Wno-narrowing -Wwrite-strings -Wcast-qual -Wno-
 format -Wstrict-prototypes -Wmissing-prototypes -Wold-style-definition
 -isystem ./include   -mmacosx-version-min=10.5 -pipe -fno-common -g
 -DIN_LIBGCC2 -fbuilding-libgcc -fno-stack-protector   -mmacosx-version-
 min=10.5 -pipe -fno-common -I. -I. -I../.././gcc
 -I/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_lang_gcc8/gcc8/work/gcc-8.3.0/libgcc
 -I/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_lang_gcc8/gcc8/work/gcc-8.3.0/libgcc/.
 -I/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_lang_gcc8/gcc8/work/gcc-8.3.0/libgcc/../gcc
 -I/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_lang_gcc8/gcc8/work/gcc-8.3.0/libgcc/../include
 -Wno-missing-prototypes -Wno-type-limits -o fixunstfti_s.o -MT
 fixunstfti_s.o -MD -MP -MF fixunstfti_s.dep -DSHARED  -c
 /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_lang_gcc8/gcc8/work/gcc-8.3.0/libgcc
 /soft-fp/fixunstfti.c
 :info:build Assertion failed: (!CreatedADWARFSection && "Creating regular
 section after DWARF"), function ChangeSection, file
 /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_lang_llvm-8.0/llvm-8.0/work/llvm-8.0.0.src/lib/MC/MCMachOStreamer.cpp,
 line 159.
 :info:build Stack dump:
 :info:build 0.  Program arguments: /opt/local/libexec/llvm-8.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_gcc8/gcc8/work/gcc-8.3.0/libgcc
 -I
 /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_lang_gcc8/gcc8/work/gcc-8.3.0/libgcc/.
 -I
 /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_lang_gcc8/gcc8/work/gcc-8.3.0/libgcc/../gcc
 -I
 /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_lang_gcc8/gcc8/work/gcc-8.3.0/libgcc/../include
 -fdebug-compilation-dir
 /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_lang_gcc8/gcc8/work/build/x86_64
 -apple-darwin18/libgcc -dwarf-debug-producer clang version 8.0.0
 (tags/RELEASE_800/final) -I . -I . -I ../.././gcc -I
 /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_lang_gcc8/gcc8/work/gcc-8.3.0/libgcc
 -I
 /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_lang_gcc8/gcc8/work/gcc-8.3.0/libgcc/.
 -I
 /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_lang_gcc8/gcc8/work/gcc-8.3.0/libgcc/../gcc
 -I
 /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_lang_gcc8/gcc8/work/gcc-8.3.0/libgcc/../include
 -dwarf-version=2 -mrelocation-model pic -o cpuinfo_s.o -
 :info:build 0  libLLVM.dylib            0x0000000104a94bfb
 llvm::sys::PrintStackTrace(llvm::raw_ostream&) + 40
 :info:build 1  libLLVM.dylib            0x0000000104a94ff7
 SignalHandler(int) + 188
 :info:build 2  libsystem_platform.dylib 0x00007fff60ca0b5d _sigtramp + 29
 :info:build 3  libsystem_platform.dylib 0x0000000000004318 _sigtramp +
 2671130584
 :info:build 4  libsystem_c.dylib        0x00007fff60b606a6 abort + 127
 :info:build 5  libsystem_c.dylib        0x00007fff60b2920d basename_r + 0
 :info:build 6  libLLVM.dylib            0x00000001057217b8 (anonymous
 namespace)::MCMachOStreamer::ChangeSection(llvm::MCSection*, llvm::MCExpr
 const*) + 762
 :info:build 7  libLLVM.dylib            0x000000010572ef34
 llvm::MCStreamer::SwitchSection(llvm::MCSection*, llvm::MCExpr const*) +
 96
 :info:build 8  libLLVM.dylib            0x00000001057684d3 (anonymous
 namespace)::DarwinAsmParser::parseSectionSwitch(llvm::StringRef,
 llvm::StringRef, unsigned int, unsigned int, unsigned int) + 195
 :info:build 9  libLLVM.dylib            0x0000000105768d00 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            0x000000010575290e (anonymous
 namespace)::AsmParser::parseStatement((anonymous
 namespace)::ParseStatementInfo&, llvm::MCAsmParserSemaCallback*) + 3740
 :info:build 11 libLLVM.dylib            0x000000010574e285 (anonymous
 namespace)::AsmParser::Run(bool, bool) + 389
 :info:build 12 clang                    0x0000000102e2a518
 cc1as_main(llvm::ArrayRef<char const*>, char const*, void*) + 10800
 :info:build 13 clang                    0x0000000102e2553d main + 7866
 :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 8.0.0 (tags/RELEASE_800/final)
 :info:build Target: x86_64-apple-darwin18.5.0
 :info:build Thread model: posix
 :info:build InstalledDir: /opt/local/libexec/llvm-8.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
 }}}
 Again, complete log attached.

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


More information about the macports-tickets mailing list