[LLVMbugs] [Bug 6872] New: BASH 4.1 fails to compile using self hosted clang (r101748)

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Mon Apr 19 03:33:40 PDT 2010


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

           Summary: BASH 4.1 fails to compile using self hosted clang
                    (r101748)
           Product: clang
           Version: trunk
          Platform: Other
        OS/Version: Linux
            Status: NEW
          Severity: normal
          Priority: P
         Component: C++
        AssignedTo: unassignedclangbugs at nondot.org
        ReportedBy: diegoiast at gmail.com
                CC: llvmbugs at cs.uiuc.edu, dgregor at apple.com


As a test for clang I downloaded bash 4.1, run configure and tried to compile.
The configure phase worked, but the compilation did not. Here is the command
that failed. Host's gcc seems to work.

The operating system is Fedora 12, 32bit. clang is a two phase self hosted
compiler based on subversion r101748.


[elcuco at pinky ~/rpmbuild/BUILD/bash-4.1/build/lib/intl]
/home/elcuco/src/llvm/bootstrap-stage-2/bin/clang -v -c
-DLOCALEDIR=\"/usr/local/share/locale\"
-DLOCALE_ALIAS_PATH=\"/usr/local/share/locale\" -DLIBDIR=\"/usr/local/libdata\"
-DIN_LIBINTL -DENABLE_RELOCATABLE=1 -DIN_LIBRARY
-DINSTALLDIR=\"/usr/local/lib\" -DNO_XMALLOC
-Dset_relocation_prefix=libintl_set_relocation_prefix
-Drelocate=libintl_relocate -DDEPENDS_ON_LIBICONV=1 -DHAVE_CONFIG_H -DSHELL -I.
-I../../../lib/intl -I/home/elcuco/rpmbuild/BUILD/bash-4.1/build -I../../..  -g
-O2  ../../../lib/intl/bindtextdom.c 
clang version 1.5 (trunk 101748)
Target: i386-pc-linux-gnu
Thread model: posix
 "/home/elcuco/src/llvm/bootstrap-stage-2/bin/clang" -cc1 -triple
i386-pc-linux-gnu -S -disable-free -main-file-name bindtextdom.c
-mrelocation-model static -mdisable-fp-elim -mconstructor-aliases -target-cpu
pentium4 -v -g -resource-dir
/home/elcuco/src/llvm/bootstrap-stage-2/lib/clang/1.5
-DLOCALEDIR="/usr/local/share/locale"
-DLOCALE_ALIAS_PATH="/usr/local/share/locale" -DLIBDIR="/usr/local/libdata"
-DIN_LIBINTL -DENABLE_RELOCATABLE=1 -DIN_LIBRARY -DINSTALLDIR="/usr/local/lib"
-DNO_XMALLOC -Dset_relocation_prefix=libintl_set_relocation_prefix
-Drelocate=libintl_relocate -DDEPENDS_ON_LIBICONV=1 -DHAVE_CONFIG_H -DSHELL -I.
-I../../../lib/intl -I/home/elcuco/rpmbuild/BUILD/bash-4.1/build -I../../.. -O2
-ferror-limit 19 -fmessage-length 143 -fgnu-runtime -fdiagnostics-show-option
-fcolor-diagnostics -o /tmp/cc-ktaKVv.s -x c ../../../lib/intl/bindtextdom.c
clang -cc1 version 1.5 based upon llvm 2.7svn hosted on i386-pc-linux-gnu
#include "..." search starts here:
#include <...> search starts here:
 .
 ../../../lib/intl
 /home/elcuco/rpmbuild/BUILD/bash-4.1/build
 ../../..
 /home/elcuco/src/llvm/bootstrap-stage-2/lib/clang/1.5/include
 /usr/local/include
 /usr/include
End of search list.
Stack dump:
0.      Program arguments: /home/elcuco/src/llvm/bootstrap-stage-2/bin/clang
-cc1 -triple i386-pc-linux-gnu -S -disable-free -main-file-name bindtextdom.c
-mrelocation-model static -mdisable-fp-elim -mconstructor-aliases -target-cpu
pentium4 -v -g -resource-dir
/home/elcuco/src/llvm/bootstrap-stage-2/lib/clang/1.5
-DLOCALEDIR="/usr/local/share/locale"
-DLOCALE_ALIAS_PATH="/usr/local/share/locale" -DLIBDIR="/usr/local/libdata"
-DIN_LIBINTL -DENABLE_RELOCATABLE=1 -DIN_LIBRARY -DINSTALLDIR="/usr/local/lib"
-DNO_XMALLOC -Dset_relocation_prefix=libintl_set_relocation_prefix
-Drelocate=libintl_relocate -DDEPENDS_ON_LIBICONV=1 -DHAVE_CONFIG_H -DSHELL -I.
-I../../../lib/intl -I/home/elcuco/rpmbuild/BUILD/bash-4.1/build -I../../.. -O2
-ferror-limit 19 -fmessage-length 143 -fgnu-runtime -fdiagnostics-show-option
-fcolor-diagnostics -o /tmp/cc-ktaKVv.s -x c ../../../lib/intl/bindtextdom.c 
1.      <eof> parser at end of file
2.      Per-module optimization passes
3.      Running pass 'CallGraph Pass Manager' on module
'../../../lib/intl/bindtextdom.c'.
4.      Running pass 'Loop Pass Manager' on function '@set_binding_values'
5.      Running pass 'Loop Invariant Code Motion' on basic block '%while.cond'
clang: error: compiler command failed due to signal 11 (use -v to see
invocation)

-- 
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