Skip to content

Building rust/src/rt/rust_try.ll fails when building for arm-apple-darwin #11666

Closed

Description

/Users/mz2/rust/build_ios/x86_64-apple-darwin/llvm/Release+Asserts/bin/llc -arm-enable-ehabi -arm-enable-ehabi-descriptors -filetype=obj -mtriple=arm-apple-darwin -relocation-model=pic -o arm-apple-darwin/rt/stage2/rust_try.o /Users/mz2/rust/src/rt/rust_try.ll
    Assertion failed: (TargetStreamer), function getTargetStreamer, file /Users/mz2/rust/src/llvm/include/llvm/MC/MCStreamer.h, line 173.
    0  llc                      0x00000001089cc2e8 llvm::sys::PrintStackTrace(__sFILE*) + 40
    1  llc                      0x00000001089cc7e4 SignalHandler(int) + 548
    2  libsystem_platform.dylib 0x00007fff847ab5aa _sigtramp + 26
    3  libsystem_platform.dylib 000000000000000000 _sigtramp + 2072332912
    4  llc                      0x00000001089cc5a6 abort + 22
    5  llc                      0x00000001089cc581 __assert_rtn + 81
    6  llc                      0x00000001081e80f6 llvm::ARMAsmPrinter::EmitUnwindingInstruction(llvm::MachineInstr const*) + 1462
    7  llc                      0x00000001081ebd76 llvm::ARMAsmPrinter::EmitInstruction(llvm::MachineInstr const*) + 118
    8  llc                      0x0000000108524bd9 llvm::AsmPrinter::EmitFunctionBody() + 3737
    9  llc                      0x00000001081e4788 llvm::ARMAsmPrinter::runOnMachineFunction(llvm::MachineFunction&) + 264
    10 llc                      0x00000001085f712d llvm::MachineFunctionPass::runOnFunction(llvm::Function&) + 125
    11 llc                      0x00000001088cd01b llvm::FPPassManager::runOnFunction(llvm::Function&) + 347
    12 llc                      0x00000001088cd2ab llvm::FPPassManager::runOnModule(llvm::Module&) + 43
    13 llc                      0x00000001088cd889 llvm::legacy::PassManagerImpl::run(llvm::Module&) + 1081
    14 llc                      0x00000001088cdc9d llvm::legacy::PassManager::run(llvm::Module&) + 13
    15 llc                      0x00000001080a8d8a main + 5002
    16 libdyld.dylib            0x00007fff845e25fd start + 1
    Stack dump:
    0.  Program arguments: /Users/mz2/rust/build_ios/x86_64-apple-darwin/llvm/Release+Asserts/bin/llc -arm-enable-ehabi -arm-enable-ehabi-descriptors -filetype=obj -mtriple=arm-apple-darwin -relocation-model=pic -o arm-apple-darwin/rt/stage2/rust_try.o /Users/mz2/rust/src/rt/rust_try.ll
    1.  Running pass 'Function Pass Manager' on module '/Users/mz2/rust/src/rt/rust_try.ll'.
    2.  Running pass 'ARM Assembly / Object Emitter' on function '@rust_try'
    make: *** [arm-apple-darwin/rt/stage2/rust_try.o] Illegal instruction: 4
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Assignees

No one assigned

    Labels

    O-iosOperating system: iOS

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions