Skip to Content.
Sympa Menu

svadev - Re: [svadev] where is lgdtoa?

svadev AT lists.siebelschool.illinois.edu

Subject: Svadev mailing list

List archive

Re: [svadev] where is lgdtoa?


Chronological Thread 
  • From: "Sean McBride" <sean AT rogue-research.com>
  • To: "John Criswell" <criswell AT illinois.edu>
  • Cc: svadev AT cs.uiuc.edu
  • Subject: Re: [svadev] where is lgdtoa?
  • Date: Wed, 21 Dec 2011 17:22:57 -0500
  • List-archive: <http://lists.cs.uiuc.edu/pipermail/svadev>
  • List-id: <svadev.cs.uiuc.edu>
  • Organization: Rogue Research Inc.

On Wed, 21 Dec 2011 10:07:42 -0600, John Criswell said:

>Just to sanity check here: you're using the release_30 branch of LLVM
>and mainline poolalloc and safecode, correct?

Nope. :) Thanks.

Now I've succeeded building it, and things work fine with toy apps.

Next, I've tried building my actual Cocoa app with it. Most files compile,
but clang crashes on 7 files, all Obj-C++, see below.

I removed -fmemsafety from C++ then everything compiles, but linking fails,
see below below.

I'll next try with some smaller projects....

Cheers,

Sean



Thread 0 Crashed:: Dispatch queue: com.apple.main-thread
0 clang 0x000000010f66534c
llvm::Value::getValueID() const + 12
1 clang 0x000000010f667be5
llvm::Instruction::getOpcode() const + 21
2 clang 0x000000010ffe1cf5
llvm::ReturnInst::classof(llvm::Instruction const*) + 21
3 clang 0x000000010fe8d905
llvm::isa_impl<llvm::ReturnInst, llvm::Instruction>::doit(llvm::Instruction
const&) + 21
4 clang 0x000000010fe8d8e5
llvm::isa_impl_cl<llvm::ReturnInst,
llvm::Instruction*>::doit(llvm::Instruction const*) + 21
5 clang 0x000000010fe8d8b8
llvm::isa_impl_wrap<llvm::ReturnInst, llvm::Instruction*,
llvm::Instruction*>::doit(llvm::Instruction* const&) + 24
6 clang 0x000000010fe8d855 bool
llvm::isa<llvm::ReturnInst, llvm::Instruction*>(llvm::Instruction* const&) +
21
7 clang 0x000000010f50f596
llvm::RegisterStackObjPass::runOnFunction(llvm::Function&) + 774
8 clang 0x00000001102048c7
llvm::FPPassManager::runOnFunction(llvm::Function&) + 471
9 clang 0x0000000110204c2d
llvm::FPPassManager::runOnModule(llvm::Module&) + 125
10 clang 0x0000000110204e80
llvm::MPPassManager::runOnModule(llvm::Module&) + 496
11 clang 0x000000011020543c
llvm::PassManagerImpl::run(llvm::Module&) + 172
12 clang 0x0000000110205871
llvm::PassManager::run(llvm::Module&) + 33
13 clang 0x000000010e88132d (anonymous
namespace)::EmitAssemblyHelper::EmitAssembly(clang::BackendAction,
llvm::raw_ostream*) + 845
14 clang 0x000000010e880f71
clang::EmitBackendOutput(clang::DiagnosticsEngine&, clang::CodeGenOptions
const&, clang::TargetOptions const&, clang::LangOptions const&,
llvm::Module*, clang::BackendAction, llvm::raw_ostream*) + 97
15 clang 0x000000010e9a12ed
clang::BackendConsumer::HandleTranslationUnit(clang::ASTContext&) + 477
16 clang 0x000000010e9db04d
clang::ParseAST(clang::Sema&, bool) + 749
17 clang 0x000000010e72e558
clang::ASTFrontendAction::ExecuteAction() + 264
18 clang 0x000000010e99fdbb
clang::CodeGenAction::ExecuteAction() + 1051
19 clang 0x000000010e72e1a3
clang::FrontendAction::Execute() + 307
20 clang 0x000000010e70328c
clang::CompilerInstance::ExecuteAction(clang::FrontendAction&) + 604
21 clang 0x000000010e6da4f1
clang::ExecuteCompilerInvocation(clang::CompilerInstance*) + 961
22 clang 0x000000010e6c86de cc1_main(char
const**, char const**, char const*, void*) + 926 (cc1_main.cpp:159)
23 clang 0x000000010e6d4819 main + 473
(driver.cpp:353)
24 clang 0x000000010e6c8334 start + 52


ld: in
/brainsight2/trunk/build/Brainsight2.build/Debug/Brainsight.build/Objects-normal/x86_64/_BS17ControlCurve.o,
in section __TEXT,__text reloc 7: sectionForNum(25) section number not for
any section for architecture x86_64
clang: error: linker command failed with exit code 1 (use -v to see
invocation)
Command /Users/sean/llvm-3/llvm-safecode-install/bin/clang++ failed with exit
code 1


--
____________________________________________________________
Sean McBride, B. Eng
sean AT rogue-research.com
Rogue Research www.rogue-research.com
Mac Software Developer Montréal, Québec, Canada







Archive powered by MHonArc 2.6.16.

Top of Page