[MacPorts] #63645: building libqalculate @3.21.0 makes clang-10 @10.0.1_5 hit an assertion failure
MacPorts
noreply at macports.org
Tue Oct 19 04:47:39 UTC 2021
#63645: building libqalculate @3.21.0 makes clang-10 @10.0.1_5 hit an assertion
failure
-------------------------+---------------------------------------------
Reporter: cooljeanius | Owner: (none)
Type: defect | Status: new
Priority: Normal | Milestone:
Component: ports | Version: 2.7.1
Keywords: | Port: libqalculate, clang-10, llvm-10
-------------------------+---------------------------------------------
It looks like there also might be a problem with UsingTheRightCompiler,
too:
{{{
Executing: cd
"/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_math_libqalculate/libqalculate/work/libqalculate-3.21.0"
&& /usr/bin/make -j16 -w all
DEBUG: system: cd
"/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_math_libqalculate/libqalculate/work/libqalculate-3.21.0"
&& /usr/bin/make -j16 -w all
make: Entering directory
`/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_math_libqalculate/libqalculate/work/libqalculate-3.21.0'
/Library/Developer/CommandLineTools/usr/bin/make all-recursive
make[1]: Entering directory
`/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_math_libqalculate/libqalculate/work/libqalculate-3.21.0'
Making all in po-defs
make[2]: Entering directory
`/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_math_libqalculate/libqalculate/work/libqalculate-3.21.0
/po-defs'
g++ -g -O2 remove-untranslated.cc -o fixpo
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-10/llvm-10/work/llvm-10.0.1.src/lib/MC/MCMachOStreamer.cpp,
line 158.
Stack dump:
0. Program arguments: /opt/local/libexec/llvm-10/bin/clang -cc1as
-triple x86_64-apple-macosx11.0.0 -filetype obj -main-file-name ccAO8WhT.s
-target-cpu penryn -fdebug-compilation-dir
/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_math_libqalculate/libqalculate/work/libqalculate-3.21.0
/po-defs -dwarf-debug-producer clang version 10.0.1 -dwarf-version=4
-mrelocation-model pic -o
/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_math_libqalculate/libqalculate/work/.tmp/ccX2kOy9.o
/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_math_libqalculate/libqalculate/work/.tmp/ccAO8WhT.s
0 libLLVM.dylib 0x00000001074efa34
llvm::sys::PrintStackTrace(llvm::raw_ostream&) + 37
1 libLLVM.dylib 0x00000001074efe20 SignalHandler(int) + 208
2 libsystem_platform.dylib 0x00007fff203eed7d _sigtramp + 29
3 libsystem_platform.dylib 0x00007fa0d740a400 _sigtramp +
18446743668758001312
4 libsystem_c.dylib 0x00007fff202fe406 abort + 125
5 libsystem_c.dylib 0x00007fff202fd7d8 err + 0
6 libLLVM.dylib 0x00000001096309a8 (anonymous
namespace)::MCMachOStreamer::ChangeSection(llvm::MCSection*, llvm::MCExpr
const*) (.cold.4) + 0
7 libLLVM.dylib 0x00000001081f532a (anonymous
namespace)::MCMachOStreamer::ChangeSection(llvm::MCSection*, llvm::MCExpr
const*) + 676
8 libLLVM.dylib 0x00000001082041b4
llvm::MCStreamer::SwitchSection(llvm::MCSection*, llvm::MCExpr const*) +
96
9 libLLVM.dylib 0x0000000108240a43 (anonymous
namespace)::DarwinAsmParser::parseSectionSwitch(llvm::StringRef,
llvm::StringRef, unsigned int, unsigned int, unsigned int) + 195
10 libLLVM.dylib 0x000000010824127e bool
llvm::MCAsmParserExtension::HandleDirective<(anonymous
namespace)::DarwinAsmParser, &((anonymous
namespace)::DarwinAsmParser::parseSectionDirectiveModInitFunc(llvm::StringRef,
llvm::SMLoc))>(llvm::MCAsmParserExtension*, llvm::StringRef, llvm::SMLoc)
+ 44
11 libLLVM.dylib 0x0000000108229fc0 (anonymous
namespace)::AsmParser::parseStatement((anonymous
namespace)::ParseStatementInfo&, llvm::MCAsmParserSemaCallback*) + 2758
12 libLLVM.dylib 0x0000000108225b87 (anonymous
namespace)::AsmParser::Run(bool, bool) + 395
13 clang 0x0000000105310cac
cc1as_main(llvm::ArrayRef<char const*>, char const*, void*) + 10104
14 clang 0x000000010530b7a0
ExecuteCC1Tool(llvm::SmallVectorImpl<char const*>&) + 542
15 clang 0x000000010530b465 main + 7760
16 libdyld.dylib 0x00007fff203c4f3d start + 1
clang: error: unable to execute command: Abort trap: 6
clang: error: clang integrated assembler command failed due to signal (use
-v to see invocation)
clang version 10.0.1
Target: x86_64-apple-darwin20.6.0
Thread model: posix
InstalledDir: /opt/local/libexec/llvm-10/bin
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.
clang: note: diagnostic msg: Error generating preprocessed source(s) - no
preprocessable inputs.
make[2]: *** [fixpo] Error 1
make[2]: Leaving directory
`/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_math_libqalculate/libqalculate/work/libqalculate-3.21.0
/po-defs'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory
`/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_math_libqalculate/libqalculate/work/libqalculate-3.21.0'
make: *** [all] Error 2
make: Leaving directory
`/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_math_libqalculate/libqalculate/work/libqalculate-3.21.0'
Command failed: cd
"/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_math_libqalculate/libqalculate/work/libqalculate-3.21.0"
&& /usr/bin/make -j16 -w all
Exit code: 2
Error: Failed to build libqalculate: command execution failed
DEBUG: Error code: CHILDSTATUS 34114 2
}}}
Is this something that should be reported upstream?
Also, note that my clang-10 port is installed with neither the
`+assertions` nor the `+debug` variants:
{{{
$ port installed clang-10
The following ports are currently installed:
clang-10 @10.0.1_5+analyzer+libstdcxx (active)
}}}
I guess llvm-10 does have the `+debug` variant active, though:
{{{
$ port installed llvm-10
The following ports are currently installed:
llvm-10 @10.0.1_2+debug+ocaml+polly (active)
}}}
--
Ticket URL: <https://trac.macports.org/ticket/63645>
MacPorts <https://www.macports.org/>
Ports system for macOS
More information about the macports-tickets
mailing list