Opened 4 years ago
Closed 3 years ago
#60497 closed defect (fixed)
python38 +optimizations compiled with `port select --set llvm mp-llvm-10` fails
Reported by: | blair (Blair Zajac) | Owned by: | |
---|---|---|---|
Priority: | Normal | Milestone: | |
Component: | ports | Version: | |
Keywords: | Cc: | larryv (Lawrence Velázquez) | |
Port: | python38 |
Description
Using this system:
macOS 10.14.6 18G4032 Xcode 10.1 10B61
and with port select --set llvm mp-llvm-10
python38 +optimizations fails to compile. However, using mp-llvm-9.0 works.
0:00:55 load avg: 13.96 [39/43] test_tabnanny 0:00:56 load avg: 13.96 [40/43] test_time -- test_tabnanny failed (env changed) 0:00:58 load avg: 13.00 [41/43] test_unicode 0:00:59 load avg: 13.00 [42/43] test_xml_etree 0:01:00 load avg: 13.00 [43/43] test_xml_etree_c Total duration: 1 min 1 sec Tests result: SUCCESS make[1]: Leaving directory `/opt/local/var/macports/build/_Users_blairzajac_Code_MacPorts_macports-ports.git_lang_python38/python38/work/Python-3.8.3' /Library/Developer/CommandLineTools/usr/bin/make build_all_merge_profile make[1]: Entering directory `/opt/local/var/macports/build/_Users_blairzajac_Code_MacPorts_macports-ports.git_lang_python38/python38/work/Python-3.8.3' /opt/local/bin/llvm-profdata merge -output=code.profclangd *.profclangr warning: code-69362.profclangr: Unsupported instrumentation profile format version warning: code-69440.profclangr: Unsupported instrumentation profile format version warning: code-69452.profclangr: Unsupported instrumentation profile format version warning: code-69466.profclangr: Unsupported instrumentation profile format version warning: code-69478.profclangr: Unsupported instrumentation profile format version warning: code-69433.profclangr: Unsupported instrumentation profile format version warning: code-69446.profclangr: Unsupported instrumentation profile format version warning: code-69458.profclangr: Unsupported instrumentation profile format version warning: code-69472.profclangr: Unsupported instrumentation profile format version warning: code-69430.profclangr: Unsupported instrumentation profile format version warning: code-69443.profclangr: Unsupported instrumentation profile format version warning: code-69455.profclangr: Unsupported instrumentation profile format version warning: code-69469.profclangr: Unsupported instrumentation profile format version warning: code-69437.profclangr: Unsupported instrumentation profile format version warning: code-69449.profclangr: Unsupported instrumentation profile format version warning: code-69461.profclangr: Unsupported instrumentation profile format version warning: code-69475.profclangr: Unsupported instrumentation profile format version warning: code-69428.profclangr: Unsupported instrumentation profile format version warning: code-69441.profclangr: Unsupported instrumentation profile format version warning: code-69453.profclangr: Unsupported instrumentation profile format version warning: code-69467.profclangr: Unsupported instrumentation profile format version warning: code-69479.profclangr: Unsupported instrumentation profile format version warning: code-69434.profclangr: Unsupported instrumentation profile format version warning: code-69447.profclangr: Unsupported instrumentation profile format version warning: code-69459.profclangr: Unsupported instrumentation profile format version warning: code-69473.profclangr: Unsupported instrumentation profile format version warning: code-69431.profclangr: Unsupported instrumentation profile format version warning: code-69444.profclangr: Unsupported instrumentation profile format version warning: code-69456.profclangr: Unsupported instrumentation profile format version warning: code-69470.profclangr: Unsupported instrumentation profile format version warning: code-69438.profclangr: Unsupported instrumentation profile format version warning: code-69450.profclangr: Unsupported instrumentation profile format version warning: code-69463.profclangr: Unsupported instrumentation profile format version warning: code-69476.profclangr: Unsupported instrumentation profile format version warning: code-69429.profclangr: Unsupported instrumentation profile format version warning: code-69442.profclangr: Unsupported instrumentation profile format version warning: code-69454.profclangr: Unsupported instrumentation profile format version warning: code-69468.profclangr: Unsupported instrumentation profile format version warning: code-69436.profclangr: Unsupported instrumentation profile format version warning: code-69448.profclangr: Unsupported instrumentation profile format version warning: code-69460.profclangr: Unsupported instrumentation profile format version warning: code-69474.profclangr: Unsupported instrumentation profile format version warning: code-69432.profclangr: Unsupported instrumentation profile format version warning: code-69445.profclangr: Unsupported instrumentation profile format version warning: code-69457.profclangr: Unsupported instrumentation profile format version warning: code-69471.profclangr: Unsupported instrumentation profile format version warning: code-69439.profclangr: Unsupported instrumentation profile format version warning: code-69451.profclangr: Unsupported instrumentation profile format version warning: code-69464.profclangr: Unsupported instrumentation profile format version warning: code-69477.profclangr: Unsupported instrumentation profile format version error: No profiles could be merged. make[1]: *** [build_all_merge_profile] Error 1 make[1]: Leaving directory `/opt/local/var/macports/build/_Users_blairzajac_Code_MacPorts_macports-ports.git_lang_python38/python38/work/Python-3.8.3' make: *** [profile-run-stamp] Error 2
Change History (5)
comment:1 Changed 4 years ago by kencu (Ken)
comment:2 Changed 4 years ago by blair (Blair Zajac)
$ port select --set llvm mp-llvm-devel $ port -v uninstall python38 $ port -v install python38 ... ... ... 0:00:51 load avg: 7.21 [41/43] test_unicode 0:00:52 load avg: 6.87 [42/43] test_xml_etree 0:00:53 load avg: 6.87 [43/43] test_xml_etree_c Total duration: 54.5 sec Tests result: SUCCESS make[1]: Leaving directory `/opt/local/var/macports/build/_Users_blairzajac_Code_MacPorts_macports-ports.git_lang_python38/python38/work/Python-3.8.3' /Library/Developer/CommandLineTools/usr/bin/make build_all_merge_profile make[1]: Entering directory `/opt/local/var/macports/build/_Users_blairzajac_Code_MacPorts_macports-ports.git_lang_python38/python38/work/Python-3.8.3' /opt/local/bin/llvm-profdata merge -output=code.profclangd *.profclangr : CommandLine Error: Option 'partial-profile' registered more than once! LLVM ERROR: inconsistency in registered CommandLine options PLEASE submit a bug report to https://bugs.llvm.org/ and include the crash backtrace. Stack dump: 0. Program arguments: /opt/local/libexec/llvm-devel/bin/llvm-profdata llvm-profdata merge -output=code.profclangd code-16434.profclangr code-16469.profclangr code-16470.profclangr code-16471.profclangr code-16472.profclangr code-16473.profclangr code-16474.profclangr code-16475.profclangr code-16476.profclangr code-16477.profclangr code-16478.profclangr code-16479.profclangr code-16480.profclangr code-16481.profclangr code-16482.profclangr code-16483.profclangr code-16484.profclangr code-16485.profclangr code-16486.profclangr code-16487.profclangr code-16488.profclangr code-16489.profclangr code-16490.profclangr code-16491.profclangr code-16492.profclangr code-16493.profclangr code-16494.profclangr code-16495.profclangr code-16496.profclangr code-16497.profclangr code-16498.profclangr code-16499.profclangr code-16500.profclangr code-16501.profclangr code-16503.profclangr code-16504.profclangr code-16506.profclangr code-16507.profclangr code-16508.profclangr code-16509.profclangr code-16510.profclangr code-16511.profclangr code-16512.profclangr code-16513.profclangr code-16514.profclangr code-16515.profclangr code-16516.profclangr code-16517.profclangr code-16518.profclangr code-16519.profclangr 0 libLLVM.dylib 0x0000000109190e0a llvm::sys::PrintStackTrace(llvm::raw_ostream&) + 40 1 libLLVM.dylib 0x000000010919120c SignalHandler(int) + 208 2 libsystem_platform.dylib 0x00007fff7e4e8b5d _sigtramp + 29 3 libsystem_platform.dylib 0x00007ffee9707520 _sigtramp + 18446744071211968992 4 libsystem_c.dylib 0x00007fff7e3a26a6 abort + 127 5 libLLVM.dylib 0x00000001090fffdc llvm::report_fatal_error(std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&, bool) + 0 6 libLLVM.dylib 0x00000001090ffeab llvm::report_fatal_error(llvm::Twine const&, bool) + 0 7 libLLVM.dylib 0x00000001090ef83d (anonymous namespace)::CommandLineParser::addOption(llvm::cl::Option*, llvm::cl::SubCommand*) + 699 8 libLLVM.dylib 0x00000001090e465e llvm::cl::Option::addArgument() + 64 9 llvm-profdata 0x00000001064f8a31 merge_main(int, char const**) + 2833 10 llvm-profdata 0x00000001064f7ebd main + 881 11 libdyld.dylib 0x00007fff7e2fd3d5 start + 1 make[1]: *** [build_all_merge_profile] Abort trap: 6 make[1]: Leaving directory `/opt/local/var/macports/build/_Users_blairzajac_Code_MacPorts_macports-ports.git_lang_python38/python38/work/Python-3.8.3' make: *** [profile-run-stamp] Error 2 make: Leaving directory `/opt/local/var/macports/build/_Users_blairzajac_Code_MacPorts_macports-ports.git_lang_python38/python38/work/Python-3.8.3' Command failed: cd "/opt/local/var/macports/build/_Users_blairzajac_Code_MacPorts_macports-ports.git_lang_python38/python38/work/Python-3.8.3" && /usr/bin/make -j12 -w all Exit code: 2
comment:3 Changed 4 years ago by kencu (Ken)
all I can come up with is some kind of bug in llvm-profdata that has come up since llvm-9.0 was released. There are lots of changes in the file (it's just one file) but I can't spot the error, if there is one.
comment:4 Changed 3 years ago by larryv (Lawrence Velázquez)
Cc: | larryv added |
---|
comment:5 Changed 3 years ago by jmroot (Joshua Root)
Resolution: | → fixed |
---|---|
Status: | new → closed |
Note: See
TracTickets for help on using
tickets.
Here's where it came into LLVM (2015) <https://reviews.llvm.org/D14558>. Why you are seeing it now is another question.
llvm-devel is out right now -- perhaps worth trying that?