<html>
<head>
<base href="http://llvm.org/bugs/" />
</head>
<body><table border="1" cellspacing="0" cellpadding="8">
<tr>
<th>Bug ID</th>
<td><a class="bz_bug_link
bz_status_NEW "
title="NEW --- - Unable to build Darling HQ on Ubuntu 12.04, Segmentation fault"
href="http://llvm.org/bugs/show_bug.cgi?id=19632">19632</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>Unable to build Darling HQ on Ubuntu 12.04, Segmentation fault
</td>
</tr>
<tr>
<th>Product</th>
<td>clang
</td>
</tr>
<tr>
<th>Version</th>
<td>3.2
</td>
</tr>
<tr>
<th>Hardware</th>
<td>PC
</td>
</tr>
<tr>
<th>OS</th>
<td>Linux
</td>
</tr>
<tr>
<th>Status</th>
<td>NEW
</td>
</tr>
<tr>
<th>Severity</th>
<td>normal
</td>
</tr>
<tr>
<th>Priority</th>
<td>P
</td>
</tr>
<tr>
<th>Component</th>
<td>LLVM Codegen
</td>
</tr>
<tr>
<th>Assignee</th>
<td>unassignedclangbugs@nondot.org
</td>
</tr>
<tr>
<th>Reporter</th>
<td>gdsyzxzcx@126.com
</td>
</tr>
<tr>
<th>CC</th>
<td>llvmbugs@cs.uiuc.edu
</td>
</tr>
<tr>
<th>Classification</th>
<td>Unclassified
</td>
</tr></table>
<p>
<div>
<pre>I am compiling the Darling for OS X binary translation project as instructed by
"<a href="http://www.darlinghq.org/build-instructions">http://www.darlinghq.org/build-instructions</a>"
My OS is Ubuntu 12.04 LTS (precise), architecture x86_64.
clang version:
Ubuntu clang version 3.2-1~exp9ubuntu1~precise1 (tags/RELEASE_32/final) (based
on LLVM 3.2)
Target: x86_64-pc-linux-gnu
Thread model: posix
Here is my building process:
$ git clone <a href="https://github.com/LubosD/darling.git">https://github.com/LubosD/darling.git</a>
Cloning into 'darling'...
remote: Reusing existing pack: 5829, done.
remote: Total 5829 (delta 0), reused 0 (delta 0)
Receiving objects: 100% (5829/5829), 3.01 MiB | 37 KiB/s, done.
Resolving deltas: 100% (2704/2704), done.
$ cd darling
$ CC=clang CXX=clang++ cmake .
-- The C compiler identification is Clang
-- The CXX compiler identification is Clang
-- Check for working C compiler: /usr/bin/clang
-- Check for working C compiler: /usr/bin/clang -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working CXX compiler: /usr/bin/clang++
-- Check for working CXX compiler: /usr/bin/clang++ -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- No build type selected, default to Debug
-- This is a 64-bit build
-- Building Darling for OS X binary translation
-- checking for module 'libbsd >= 0.4.2'
-- found libbsd , version 0.6.0
-- checking for module 'libudev'
-- found libudev, version 175
-- The ASM-ATT compiler identification is GNU
-- Found assembler: /usr/bin/as
-- The ASM_NASM compiler identification is unknown
-- Found assembler: /usr/bin/nasm
-- Looking for bsd/wchar.h
-- Looking for bsd/wchar.h - found
-- Building ObjC ABI 2
You have called ADD_LIBRARY for library Carbon without any source files. This
typically indicates a problem with your CMakeLists.txt file
You have called ADD_LIBRARY for library AppKit without any source files. This
typically indicates a problem with your CMakeLists.txt file
You have called ADD_LIBRARY for library auto without any source files. This
typically indicates a problem with your CMakeLists.txt file
-- Configuring done
-- Generating done
-- Build files have been written to: /home/tux/darling
$ make
Scanning dependencies of target util
[ 0%] Building CXX object src/util/CMakeFiles/util.dir/debug.o
[ 1%] Building CXX object src/util/CMakeFiles/util.dir/stlutils.o
[ 1%] Building CXX object src/util/CMakeFiles/util.dir/IniConfig.o
[ 2%] Building CXX object src/util/CMakeFiles/util.dir/Regexp.o
[ 3%] Building CXX object src/util/CMakeFiles/util.dir/leb.o
Linking CXX static library libutil.a
[ 3%] Built target util
Scanning dependencies of target mach-o
[ 4%] Building CXX object src/libmach-o/CMakeFiles/mach-o.dir/MachO.o
[ 4%] Building CXX object src/libmach-o/CMakeFiles/mach-o.dir/FatMachO.o
[ 5%] Building CXX object src/libmach-o/CMakeFiles/mach-o.dir/RebaseState.o
[ 5%] Building CXX object src/libmach-o/CMakeFiles/mach-o.dir/BindState.o
[ 6%] Building CXX object src/libmach-o/CMakeFiles/mach-o.dir/MachOImpl.o
Linking CXX shared library libmach-o.so
[ 6%] Built target mach-o
Scanning dependencies of target motool
[ 7%] Building CXX object src/motool/CMakeFiles/motool.dir/motool.o
0 libLLVM-3.2.so.1 0x00002b3948592a4f
1 libLLVM-3.2.so.1 0x00002b3948593011
2 libpthread.so.0 0x00002b3948f05cb0
3 libLLVM-3.2.so.1 0x00002b39484c5d5a llvm::SelectionDAG::FoldSetCC(llvm::EVT,
llvm::SDValue, llvm::SDValue, llvm::ISD::CondCode, llvm::DebugLoc) + 90
4 libLLVM-3.2.so.1 0x00002b39484c68e3 llvm::SelectionDAG::getNode(unsigned
int, llvm::DebugLoc, llvm::EVT, llvm::SDValue, llvm::SDValue, llvm::SDValue) +
1571
5 libLLVM-3.2.so.1 0x00002b39485029d1
llvm::SelectionDAGBuilder::visitICmp(llvm::User const&) + 401
6 libLLVM-3.2.so.1 0x00002b39484e204d
llvm::SelectionDAGBuilder::visit(unsigned int, llvm::User const&) + 365
7 libLLVM-3.2.so.1 0x00002b394850a9a2
llvm::SelectionDAGBuilder::visit(llvm::Instruction const&) + 50
8 libLLVM-3.2.so.1 0x00002b394851cfc1
llvm::SelectionDAGISel::SelectBasicBlock(llvm::ilist_iterator<llvm::Instruction
const>, llvm::ilist_iterator<llvm::Instruction const>, bool&) + 49
9 libLLVM-3.2.so.1 0x00002b394851d933
llvm::SelectionDAGISel::SelectAllBasicBlocks(llvm::Function const&) + 1763
10 libLLVM-3.2.so.1 0x00002b394851e938
llvm::SelectionDAGISel::runOnMachineFunction(llvm::MachineFunction&) + 680
11 libLLVM-3.2.so.1 0x00002b3948001375
llvm::FPPassManager::runOnFunction(llvm::Function&) + 501
12 libLLVM-3.2.so.1 0x00002b3948001413
llvm::FPPassManager::runOnModule(llvm::Module&) + 51
13 libLLVM-3.2.so.1 0x00002b3948001029
llvm::MPPassManager::runOnModule(llvm::Module&) + 457
14 libLLVM-3.2.so.1 0x00002b394800113f
llvm::PassManagerImpl::run(llvm::Module&) + 111
15 clang 0x00000000007132fa
clang::EmitBackendOutput(clang::DiagnosticsEngine&, clang::CodeGenOptions
const&, clang::TargetOptions const&, clang::LangOptions const&, llvm::Module*,
clang::BackendAction, llvm::raw_ostream*) + 4618
16 clang 0x0000000000710c80
17 clang 0x00000000008523ee clang::ParseAST(clang::Sema&, bool,
bool) + 382
18 clang 0x00000000005e3501 clang::FrontendAction::Execute() + 97
19 clang 0x00000000005c593d
clang::CompilerInstance::ExecuteAction(clang::FrontendAction&) + 285
20 clang 0x00000000005ae49a
clang::ExecuteCompilerInvocation(clang::CompilerInstance*) + 1338
21 clang 0x00000000005a7fb0 cc1_main(char const**, char const**,
char const*, void*) + 1168
22 clang 0x00000000005a69c0 main + 672
23 libc.so.6 0x00002b394964b76d __libc_start_main + 237
24 clang 0x00000000005a79d9
Stack dump:
0. Program arguments: /usr/bin/clang -cc1 -triple x86_64-pc-linux-gnu
-emit-obj -mrelax-all -disable-free -disable-llvm-verifier -main-file-name
motool.cpp -mrelocation-model static -mdisable-fp-elim -fmath-errno
-masm-verbose -mconstructor-aliases -munwind-tables -target-cpu x86-64
-target-linker-version 2.22 -momit-leaf-frame-pointer -g -coverage-file
/home/tux/darling/src/motool/CMakeFiles/motool.dir/motool.o -resource-dir
/usr/bin/../lib/clang/3.2 -D DEBUG -I /home/tux/darling/include -I
/home/tux/darling -I /home/tux/darling/include/xnu -I
/home/tux/darling/include/xnu/bsd -I /home/tux/darling/include/darwin -I
/home/tux/darling/src -I /home/tux/darling/src/util -I /usr/include/GNUstep -I
/usr/include/kqueue -fmodule-cache-path /var/tmp/clang-module-cache
-internal-isystem
/usr/bin/../lib/gcc/x86_64-linux-gnu/4.6/../../../../include/c++/4.6
-internal-isystem
/usr/bin/../lib/gcc/x86_64-linux-gnu/4.6/../../../../include/c++/4.6/x86_64-linux-gnu
-internal-isystem
/usr/bin/../lib/gcc/x86_64-linux-gnu/4.6/../../../../include/c++/4.6/backward
-internal-isystem
/usr/bin/../lib/gcc/x86_64-linux-gnu/4.6/../../../../include/c++
-internal-isystem
/usr/bin/../lib/gcc/x86_64-linux-gnu/4.6/../../../../include/c++/x86_64-linux-gnu
-internal-isystem
/usr/bin/../lib/gcc/x86_64-linux-gnu/4.6/../../../../include/c++/backward
-internal-isystem /usr/local/include -internal-isystem
/usr/bin/../lib/clang/3.2/include -internal-isystem
/usr/include/clang/3.2/include/ -internal-externc-isystem
/usr/include/x86_64-linux-gnu -internal-externc-isystem
/usr/include/x86_64-linux-gnu -internal-externc-isystem /usr/include -std=c++11
-fdeprecated-macro -fdebug-compilation-dir /home/tux/darling/src/motool
-ferror-limit 19 -fmessage-length 80 -mstackrealign -fobjc-runtime=gcc
-fcxx-exceptions -fexceptions -fdiagnostics-show-option -fcolor-diagnostics -o
CMakeFiles/motool.dir/motool.o -x c++ /home/tux/darling/src/motool/motool.cpp
1. <eof> parser at end of file
2. Code generation
3. Running pass 'Function Pass Manager' on module
'/home/tux/darling/src/motool/motool.cpp'.
4. Running pass 'X86 DAG->DAG Instruction Selection' on function '@main'
clang: error: unable to execute command: Segmentation fault
clang: error: clang frontend command failed due to signal (use -v to see
invocation)
Ubuntu clang version 3.2-1~exp9ubuntu1~precise1 (tags/RELEASE_32/final) (based
on LLVM 3.2)
Target: x86_64-pc-linux-gnu
Thread model: posix
clang: note: diagnostic msg: PLEASE submit a bug report to
<a href="http://llvm.org/bugs/">http://llvm.org/bugs/</a> and include the crash backtrace, preprocessed source, and
associated run script.
clang: note: diagnostic msg:
********************
PLEASE ATTACH THE FOLLOWING FILES TO THE BUG REPORT:
Preprocessed source(s) and associated run script(s) are located at:
clang: note: diagnostic msg: /tmp/motool-IL885Y.cpp
clang: note: diagnostic msg: /tmp/motool-IL885Y.sh
clang: note: diagnostic msg:
********************
make[2]: *** [src/motool/CMakeFiles/motool.dir/motool.o] Error 254
make[1]: *** [src/motool/CMakeFiles/motool.dir/all] Error 2
make: *** [all] Error 2</pre>
</div>
</p>
<hr>
<span>You are receiving this mail because:</span>
<ul>
<li>You are on the CC list for the bug.</li>
</ul>
</body>
</html>