[LLVMbugs] [Bug 18483] New: crash if no lib is found

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Tue Jan 14 23:08:10 PST 2014


http://llvm.org/bugs/show_bug.cgi?id=18483

            Bug ID: 18483
           Summary: crash if no lib is found
           Product: clang
           Version: 3.3
          Hardware: PC
                OS: All
            Status: NEW
          Severity: normal
          Priority: P
         Component: Driver
          Assignee: unassignedclangbugs at nondot.org
          Reporter: dev at antonsmirnov.name
                CC: llvmbugs at cs.uiuc.edu
    Classification: Unclassified

I'm trying to run clang on ARM (Final release 3.3) and i can't figure out what
libs are needed. That's the reason it crashes for the simplest file with empty
main() functions.

01-15 12:45:42.925: INFO/System.out(15326):
/data/data/name.antonsmirnov.android.cppdroid/se/clang -c -g -DIDE=CppDroid
/data/data/name.antonsmirnov.android.cppdroid/buildSources/project_jan14b.cpp
-o /data/data/name.antonsmirnov.android.cppdroid/build/project_jan14b.cpp.o
01-15 12:45:43.085: WARN/System.err(15326): clang: error: unable to execute
command: No such file or directory
01-15 12:45:43.085: WARN/System.err(15326): clang: error: assembler (via gcc)
command failed due to signal (use -v to see invocation)
01-15 12:45:43.085: WARN/System.err(15326): clang version 3.3
(tags/RELEASE_33/final)
01-15 12:45:43.085: WARN/System.err(15326): Target: arm-unknown--eabi
01-15 12:45:43.085: WARN/System.err(15326): Thread model: posix
01-15 12:45:43.095: WARN/System.err(15326): clang: note: diagnostic msg: PLEASE
submit a bug report to http://llvm.org/bugs/ and include the crash backtrace,
preprocessed source, and associated run script.
01-15 12:45:43.125: WARN/System.err(15326): clang: note: diagnostic msg:
01-15 12:45:43.125: WARN/System.err(15326): ********************
01-15 12:45:43.125: WARN/System.err(15326): [ 01-15 12:45:43.125 15326:15532
W/System.err ]
        PLEASE ATTACH THE FOLLOWING FILES TO THE BUG REPORT:
01-15 12:45:43.125: WARN/System.err(15326): Preprocessed source(s) and
associated run script(s) are located at:
01-15 12:45:43.125: WARN/System.err(15326): clang: note: diagnostic msg:
/storage/sdcard0/CppDroid/temp/project_jan14b-j15530.cpp
01-15 12:45:43.135: WARN/System.err(15326): assertion "I != std::string::npos
&& "Expected to find -main-file-name"" failed: file "Driver.cpp", line 476,
function "void
clang::driver::Driver::generateCompilationDiagnostics(clang::driver::Compilation&,
const clang::driver::Command*)"
01-15 12:45:43.135: WARN/System.err(15326): Stack dump:
01-15 12:45:43.135: WARN/System.err(15326): 0.    Program arguments:
/data/data/name.antonsmirnov.android.cppdroid/se/clang -c -g -DIDE=CppDroid
/data/data/name.antonsmirnov.android.cppdroid/buildSources/project_jan14b.cpp
-o /data/data/name.antonsmirnov.android.cppdroid/build/project_jan14b.cpp.o
01-15 12:45:46.659: WARN/System.err(15326):
/data/data/name.antonsmirnov.android.cppdroid/se/clang returned 11

I have done `readelf` for clang executable and copied the next libs to the
folder with clang executable:
libLTO.so

libc.so

libclang.so

libdl.so

libgnustl_shared.so

libm.so

libprofile_rt.so

libstdc++.so

libz.so



What file is also required?

-- 
You are receiving this mail because:
You are on the CC list for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-bugs/attachments/20140115/9d9919b2/attachment.html>


More information about the llvm-bugs mailing list