[LLVMbugs] [Bug 13116] New: Clang crashes with Gold Plugin during linking

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Fri Jun 15 07:56:40 PDT 2012


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

             Bug #: 13116
           Summary: Clang crashes with Gold Plugin during linking
           Product: clang
           Version: 3.0
          Platform: PC
        OS/Version: Linux
            Status: NEW
          Severity: release blocker
          Priority: P
         Component: Driver
        AssignedTo: unassignedclangbugs at nondot.org
        ReportedBy: bariskasikci at gmail.com
                CC: llvmbugs at cs.uiuc.edu
    Classification: Unclassified


I am trying to build httpd-2.0.48 using clang 3.0 (revision 151385) and the
gold plugin. While linking some component of httpd, clang crashes and the
linker command fails as below. I included a -v for full invocation. Newest
clang and binutils versions seem to have the same problem. Do you have any idea
what might be the problem? 

make[1]: Entering directory
`/home/kasikci/projects/httpd-2.0.48/srclib/apr-util/xml/expat/lib'
/bin/bash ../libtool --mode=link 
/home/third_party/llvm-build/Debug+Asserts/bin/clang -emit-llvm -version-info
1:0:1 -g -O2 -flto
-Wl,-plugin=/home/kasikci/third_party/llvm-build/Debug+Asserts/lib/LLVMgold.so
-Wl,-plugin-opt=also-emit-llvm -o libexpat.la -rpath /usr/local/apache2/lib
-flto
-Wl,-plugin=/home/kasikci/third_party/llvm-build/Debug+Asserts/lib/LLVMgold.so
-Wl,-plugin-opt=also-emit-llvm xmlparse.lo xmltok.lo xmlrole.lo
rm -fr .libs/libexpat.la .libs/libexpat.* .libs/libexpat.*
/home/kasikci/llvm-build/Debug+Asserts/bin/clang -emit-llvm -v -shared 
xmlparse.lo xmltok.lo xmlrole.lo  
-Wl,-plugin=/home/kasikci/third_party/llvm-build/Debug+Asserts/lib/LLVMgold.so
-Wl,-plugin-opt=also-emit-llvm
-Wl,-plugin=/home/kasikci/third_party/llvm-build/Debug+Asserts/lib/LLVMgold.so
-Wl,-plugin-opt=also-emit-llvm -Wl,-soname -Wl,libexpat.so.0 -o
.libs/libexpat.so.0.1.0
clang version 3.0 (tags/RELEASE_30/final 151385)
Target: x86_64-unknown-linux-gnu
Thread model: posix
 "/home/kasikci/third_party/binutils-install/bin/ld" -z relro --hash-style=gnu
--build-id --eh-frame-hdr -m elf_x86_64 -shared -o .libs/libexpat.so.0.1.0
/usr/lib/gcc/x86_64-linux-gnu/4.6/../../../x86_64-linux-gnu/crti.o
/usr/lib/gcc/x86_64-linux-gnu/4.6/crtbeginS.o
-L/usr/lib/gcc/x86_64-linux-gnu/4.6
-L/usr/lib/gcc/x86_64-linux-gnu/4.6/../../../x86_64-linux-gnu
-L/lib/x86_64-linux-gnu -L/lib/../lib64 -L/usr/lib/x86_64-linux-gnu
-L/usr/lib/gcc/x86_64-linux-gnu/4.6/../../../x86_64-linux-gnu
-L/usr/lib/gcc/x86_64-linux-gnu/4.6/../../.. -L/lib/x86_64-linux-gnu -L/lib
-L/usr/lib/x86_64-linux-gnu -L/usr/lib xmlparse.lo xmltok.lo xmlrole.lo
-plugin=/home/kasikci/third_party/llvm-build/Debug+Asserts/lib/LLVMgold.so
-plugin-opt=also-emit-llvm
-plugin=/home/kasikci/third_party/llvm-build/Debug+Asserts/lib/LLVMgold.so
-plugin-opt=also-emit-llvm -soname libexpat.so.0 -lgcc --as-needed -lgcc_s
--no-as-needed -lc -lgcc --as-needed -lgcc_s --no-as-needed
/usr/lib/gcc/x86_64-linux-gnu/4.6/crtendS.o
/usr/lib/gcc/x86_64-linux-gnu/4.6/../../../x86_64-linux-gnu/crtn.o
clang: error: unable to execute command: Segmentation fault
clang: error: linker command failed due to signal 2 (use -v to see invocation)
clang: note: diagnostic msg: Please submit a bug report to
http://llvm.org/bugs/ and include command line arguments and all diagnostic
information.
clang: note: diagnostic msg: Error generating preprocessed source(s).
make[1]: *** [libexpat.la] Error 254

-- 
Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.



More information about the llvm-bugs mailing list