https://llvm.org/bugs/show_bug.cgi?id=23662
Daniel Sanders <[email protected]> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|RESOLVED |REOPENED Resolution|WORKSFORME |--- --- Comment #3 from Daniel Sanders <[email protected]> --- It still fails for me on current trunk. It triggers the N32/N64 on a mips-* triple assertion which will take a while to fix (it needs the Triple->TargetTuple project to finish) to be fixable. You could work around it using -march=mips2. This should produce what you want except the ELF header will say mips2 rather than mips3. clang: /mnt/scratch/das/llvm-upstream/llvm.src/lib/Target/Mips/MipsSubtarget.cpp:94: llvm::MipsSubtarget::MipsSubtarget(const llvm::Triple&, const string&, const string&, bool, const llvm::MipsTargetMachine&): Assertion `((!isGP64bit() && (isABI_O32() || isABI_EABI())) || (isGP64bit() && (isABI_N32() || isABI_N64()))) && "Invalid Arch & ABI pair."' failed. 0 libLLVMSupport.so.3.8 0x00007fed513fe2d0 llvm::sys::PrintStackTrace(llvm::raw_ostream&) + 44 1 libLLVMSupport.so.3.8 0x00007fed513fe64c 2 libLLVMSupport.so.3.8 0x00007fed513fcf0c llvm::sys::RunSignalHandlers() + 118 3 libLLVMSupport.so.3.8 0x00007fed513fd331 4 libc.so.6 0x00007fed4e3cb180 5 libc.so.6 0x00007fed4e3cb107 gsignal + 55 6 libc.so.6 0x00007fed4e3cc4e8 abort + 328 7 libc.so.6 0x00007fed4e3c4226 8 libc.so.6 0x00007fed4e3c42d2 9 libLLVMMipsCodeGen.so.3.8 0x00007fed5ba5df32 llvm::MipsSubtarget::MipsSubtarget(llvm::Triple const&, std::string const&, std::string const&, bool, llvm::MipsTargetMachine const&) + 1210 10 libLLVMMipsCodeGen.so.3.8 0x00007fed5ba5fcbc llvm::MipsTargetMachine::MipsTargetMachine(llvm::Target const&, llvm::Triple const&, llvm::StringRef, llvm::StringRef, llvm::TargetOptions const&, llvm::Reloc::Model, llvm::CodeModel::Model, llvm::CodeGenOpt::Level, bool) + 588 11 libLLVMMipsCodeGen.so.3.8 0x00007fed5ba60049 llvm::MipsebTargetMachine::MipsebTargetMachine(llvm::Target const&, llvm::Triple const&, llvm::StringRef, llvm::StringRef, llvm::TargetOptions const&, llvm::Reloc::Model, llvm::CodeModel::Model, llvm::CodeGenOpt::Level) + 93 12 libLLVMMipsCodeGen.so.3.8 0x00007fed5ba645ba 13 libclangCodeGen.so.3.8 0x00007fed4fc69d51 14 libclangCodeGen.so.3.8 0x00007fed4fc684ed 15 libclangCodeGen.so.3.8 0x00007fed4fc68832 16 libclangCodeGen.so.3.8 0x00007fed4fc68c7c clang::EmitBackendOutput(clang::DiagnosticsEngine&, clang::CodeGenOptions const&, clang::TargetOptions const&, clang::LangOptions const&, llvm::StringRef, llvm::Module*, clang::BackendAction, llvm::raw_pwrite_stream*) + 127 17 libclangCodeGen.so.3.8 0x00007fed4fe8c3dc 18 libclangParse.so.3.8 0x00007fed4a1371ce clang::ParseAST(clang::Sema&, bool, bool) + 787 19 libclangFrontend.so.3.8 0x00007fed4f3f1316 clang::ASTFrontendAction::ExecuteAction() + 322 20 libclangCodeGen.so.3.8 0x00007fed4fe8a5ed clang::CodeGenAction::ExecuteAction() + 1329 21 libclangFrontend.so.3.8 0x00007fed4f3f0dd3 clang::FrontendAction::Execute() + 139 22 libclangFrontend.so.3.8 0x00007fed4f3a57e5 clang::CompilerInstance::ExecuteAction(clang::FrontendAction&) + 775 23 libclangFrontendTool.so.3.8 0x00007fed4ef6bd8d clang::ExecuteCompilerInvocation(clang::CompilerInstance*) + 1120 24 clang 0x0000000000448cb2 cc1_main(llvm::ArrayRef<char const*>, char const*, void*) + 989 25 clang 0x000000000043fce5 26 clang 0x0000000000440315 main + 1309 27 libc.so.6 0x00007fed4e3b7b45 __libc_start_main + 245 28 clang 0x000000000043e5f9 Stack dump: 0. Program arguments: ../bin/clang -cc1 -triple mips-unknown-freebsd11.0 -emit-obj -disable-free -disable-llvm-verifier -main-file-name dlfcn.c -mrelocation-model static -mthread-model posix -mdisable-fp-elim -masm-verbose -mconstructor-aliases -target-cpu mips3 -target-abi o32 -mfloat-abi hard -mllvm -mips-ssection-threshold=0 -dwarf-column-info -D NLS -D SOFTFLOAT -D __DBINTERFACE_PRIVATE -D INET6 -D _ACL_PRIVATE -D POSIX_MISTAKE -D MALLOC_PRODUCTION -D BROKEN_DES -D PORTMAP -D DES_BUILTIN -D SOFTFLOAT_FOR_GCC -D YP -D NS_CACHING -D SYMBOL_VERSIONING -O2 -Wsystem-headers -Wall -Wno-format-y2k -Wno-uninitialized -Wno-pointer-sign -Wno-empty-body -Wno-string-plus-int -Wno-unused-const-variable -Wno-tautological-compare -Wno-unused-value -Wno-parentheses-equality -Wno-unused-function -Wno-enum-conversion -Wno-unused-local-typedef -Wno-switch -Wno-switch-enum -Wno-knr-promoted-parameter -std=gnu99 -ferror-limit 19 -fmessage-length 0 -mstackrealign -fobjc-runtime=gnustep -fdiagnostics-show-option -vectorize-loops -vectorize-slp -x c dlfcn-8f6f0e.c 1. <eof> parser at end of file Aborted -- You are receiving this mail because: You are on the CC list for the bug.
_______________________________________________ LLVMbugs mailing list [email protected] http://lists.cs.uiuc.edu/mailman/listinfo/llvmbugs
