Chameleon

Issue 362: clang exception while compiling Chameleon

Reported by Pedro A. Aranda, Dec 5, 2013

I get a clang exception when trying to compile any of the branches 
or trunk from the Chameleon svn:

	[CC] mboot.c
0  clang             0x000000010bc62422 _ZL15PrintStackTracePv + 34
1  clang             0x000000010bc628a9 _ZL13SignalHandleri + 553
2  libsystem_c.dylib 0x00007fff8bcf7cfa _sigtramp + 26
3  libsystem_c.dylib 0x00007fff6a93c530 _sigtramp + 
18446744073151989840
4  clang             0x000000010b1af753 
llvm::ConstantFoldConstantExpression(llvm::ConstantExpr const*, 
llvm::TargetData const*) + 275
5  clang             0x000000010afc65db 
llvm::InstCombiner::DoOneIteration(llvm::Function&, unsigned 
int) + 811
6  clang             0x000000010afc5fbd 
llvm::InstCombiner::runOnFunction(llvm::Function&) + 173
7  clang             0x000000010aefefb2 
llvm::FPPassManager::runOnFunction(llvm::Function&) + 322
8  clang             0x000000010af044bb 
llvm::FPPassManager::runOnModule(llvm::Module&) + 155
9  clang             0x000000010aeff8c1 
llvm::MPPassManager::runOnModule(llvm::Module&) + 289
10 clang             0x000000010aeff2c5 
llvm::PassManagerImpl::run(llvm::Module&) + 277
11 clang             0x000000010aeff1ad 
llvm::PassManager::run(llvm::Module&) + 13
12 clang             0x000000010aeddde8 
clang::EmitBackendOutput(clang::DiagnosticsEngine&, 
clang::CodeGenOptions const&, clang::TargetOptions const&, 
clang::LangOptions const&, llvm::Module*, clang::BackendAction, 
llvm::raw_ostream*) + 4424
13 clang             0x000000010aedb641 
clang::BackendConsumer::HandleTranslationUnit(clang::ASTContext&)
 + 513
14 clang             0x000000010ada70f6 
clang::ParseAST(clang::Sema&, bool) + 406
15 clang             0x000000010ada5bd7 
clang::CodeGenAction::ExecuteAction() + 855
16 clang             0x000000010ad7813f 
clang::CompilerInstance::ExecuteAction(clang::FrontendAction&) + 
879
17 clang             0x000000010ad76dcb 
clang::ExecuteCompilerInvocation(clang::CompilerInstance*) + 2683
18 clang             0x000000010ad695ce cc1_main(char const**, char 
const**, char const*, void*) + 5086
19 clang             0x000000010ad43dd8 main + 648
20 clang             0x000000010ad43b44 start + 52
21 clang             0x0000000000000044 start + 18446744069232903476
Stack dump:
0.	Program arguments: /usr/bin/clang -cc1 -triple 
i386-apple-macosx10.7.4 -emit-obj -disable-free 
-disable-llvm-verifier -main-file-name mboot.c -static-define 
-mrelocation-model static -mdisable-fp-elim -relaxed-aliasing 
-masm-verbose -no-implicit-float -target-cpu pentium4 
-target-feature +sse2 -target-linker-version 128.2 -g -coverage-file 
/Users/paag/Devel/chameleon/branches/Chimera/obj/i386/boot2/mboot.o 
-nostdsysteminc -nobuiltininc -resource-dir 
/usr/bin/../lib/clang/3.1 -include 
/Users/paag/Devel/chameleon/branches/Chimera/autoconf.h -D 
SAIO_INTERNAL_USER -I . -I 
/Users/paag/Devel/chameleon/branches/Chimera -I 
/Users/paag/Devel/chameleon/branches/Chimera/sym/i386 -I ../libsa -I 
../libsaio -I 
/Users/paag/Devel/chameleon/branches/Chimera/i386/include 
-fmodule-cache-path 
/var/folders/wd/fsw3f4fn3vj651xx4l9zwj1m0000gp/T/clang-module-cache 
-Oz -Wmost -Werror -fdebug-compilation-dir 
/Users/paag/Devel/chameleon/branches/Chimera/i386/boot2 
-ferror-limit 19 -fmessage-length 80 -fno-builtin -fblocks 
-fobjc-runtime-has-arc -fobjc-runtime-has-weak -fobjc-fragile-abi 
-fdiagnostics-show-option -fcolor-diagnostics -o 
/Users/paag/Devel/chameleon/branches/Chimera/obj/i386/boot2/mboot.o 
-x c mboot.c
1.	<eof> parser at end of file
2.	Per-module optimization passes
3.	Running pass 'Function Pass Manager' on module 'mboot.c'.
4.	Running pass 'Combine redundant instructions' on function 
'@hi_multiboot'
clang: error: unable to execute command: Segmentation fault: 11
clang: error: clang frontend command failed due to signal 2 (use -v 
to see invocation)
clang: note: diagnostic msg: Please submit a bug report to 
http://developer.apple.com/bugreporter/ and include command line 
arguments and all diagnostic information.
clang: note: diagnostic msg: Preprocessed source(s) and associated 
run script(s) are located at:
clang: note: diagnostic msg: 
/var/folders/wd/fsw3f4fn3vj651xx4l9zwj1m0000gp/T/mboot-jxDtFB.i
clang: note: diagnostic msg: 
/var/folders/wd/fsw3f4fn3vj651xx4l9zwj1m0000gp/T/mboot-jxDtFB.sh
make[3]: *** 
[/Users/paag/Devel/chameleon/branches/Chimera/obj/i386/boot2/mboot.o]
 Error 254

Comment 1 by ErmaC , Oct 21, 2014

Labels: Priority:Low Type:Other Priority:Medium Type:Defect
Status: AwaitingInformation
Owner: macman

Created: 4 years 1 month ago by Pedro A. Aranda

Updated: 3 years 2 months ago

Status: AwaitingInformation

Owner: MacMan

Followed by: 1 person

Labels:
Priority:Low
Type:Other