[LLVMbugs] [Bug 1714] New: constant assertion fails while building libgfortran

bugzilla-daemon at cs.uiuc.edu bugzilla-daemon at cs.uiuc.edu
Sat Sep 29 08:14:06 PDT 2007


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

           Summary: constant assertion fails while building libgfortran
           Product: new-bugs
           Version: unspecified
          Platform: Macintosh
        OS/Version: Mac System 9.x
            Status: NEW
          Severity: enhancement
          Priority: P2
         Component: new bugs
        AssignedTo: unassignedbugs at nondot.org
        ReportedBy: kenneth.hoste at elis.ugent.be
                CC: asl at math.spbu.ru, llvmbugs at cs.uiuc.edu


While building llvm-gcc-4.2 with fortran support on Linux/x86 (32 bit), I'm
running into a failing assertion when libgfortran is being built (see below).

I'm using SVN head for both llvm-gcc-4.2 and LLVM. I have adjusted llvm-gcc-4.2
slighty using the patch at
http://www.nabble.com/fixincludes-for-glibc-'inline'-non-C99-conformance-t2564711.html,
 but I don't think that is related to this, because the patch fixes a
C++-related problem.

LLVM is built using './configure' and 'make', llvm-gcc-4.2 is configured with
'../llvm-gcc-4.2-patched/configure
--prefix=/work/LLVM/LLVM/llvm-gcc-4.2-bin-patched
--enable-llvm=/work/LLVM/llvm-obj --enable-languages=c,c++,fortran
--enable-checking' and built using 'make'.

Is there something missing in LLVM regarding AST-support? (just guessing here,
I saw llvm-convert is converting from AST to LLVM code).

/bin/sh ./libtool --mode=compile
/work/LLVM/llvm-gcc-4.2-obj-patched/./gcc/gfortran
-B/work/LLVM/llvm-gcc-4.2-obj-patched/./gcc/
-B/work/LLVM/LLVM/llvm-gcc-4.2-bin-patched/i686-pc-linux-gnu/bin/
-B/work/LLVM/LLVM/llvm-gcc-4.2-bin-patched/i686-pc-linux-gnu/lib/ -isystem
/work/LLVM/LLVM/llvm-gcc-4.2-bin-patched/i686-pc-linux-gnu/include -isystem
/work/LLVM/LLVM/llvm-gcc-4.2-bin-patched/i686-pc-linux-gnu/sys-include -I .
-Wall -fno-repack-arrays -fno-underscoring -g -O2 -c -o selected_int_kind.lo
`test -f 'intrinsics/selected_int_kind.f90' || echo
'../../../llvm-gcc-4.2-patched/libgfortran/'`intrinsics/selected_int_kind.f90
/work/LLVM/llvm-gcc-4.2-obj-patched/./gcc/gfortran
-B/work/LLVM/llvm-gcc-4.2-obj-patched/./gcc/
-B/work/LLVM/LLVM/llvm-gcc-4.2-bin-patched/i686-pc-linux-gnu/bin/
-B/work/LLVM/LLVM/llvm-gcc-4.2-bin-patched/i686-pc-linux-gnu/lib/ -isystem
/work/LLVM/LLVM/llvm-gcc-4.2-bin-patched/i686-pc-linux-gnu/include -isystem
/work/LLVM/LLVM/llvm-gcc-4.2-bin-patched/i686-pc-linux-gnu/sys-include -I .
-Wall -fno-repack-arrays -fno-underscoring -g -O2 -c
../../../llvm-gcc-4.2-patched/libgfortran/intrinsics/selected_int_kind.f90 -o
selected_int_kind.o
WARNING: 128-bit integers not supported!
f951: ../../llvm-gcc-4.2-patched/gcc/llvm-convert.cpp:5184: static
llvm::Constant* TreeConstantToLLVM::Convert(tree_node*): Assertion
`((__extension__ ({ const tree __t = (exp); if ((tree_code_type[(int) (((enum
tree_code) (__t)->common.code))] == tcc_type)) tree_not_class_check_failed
(__t, tcc_type, "../../llvm-gcc-4.2-patched/gcc/llvm-convert.cpp", 5184,
__FUNCTION__); __t; })->common.constant_flag) || ((enum tree_code)
(exp)->common.code) == STRING_CST) && "Isn't a constant!"' failed.
../../../llvm-gcc-4.2-patched/libgfortran/intrinsics/selected_int_kind.f90: In
function 'selected_int_kind':
../../../llvm-gcc-4.2-patched/libgfortran/intrinsics/selected_int_kind.f90:22:
internal compiler error: Aborted
Please submit a full bug report,
with preprocessed source if appropriate.
See <URL:http://developer.apple.com/bugreporter> for instructions.
make[3]: *** [selected_int_kind.lo] Error 1
make[3]: Leaving directory
`/home/kehoste/work/LLVM/llvm-gcc-4.2-obj-patched/i686-pc-linux-gnu/libgfortran'
make[2]: *** [all] Error 2
make[2]: Leaving directory
`/home/kehoste/work/LLVM/llvm-gcc-4.2-obj-patched/i686-pc-linux-gnu/libgfortran'
make[1]: *** [all-target-libgfortran] Error 2
make[1]: Leaving directory `/home/kehoste/work/LLVM/llvm-gcc-4.2-obj-patched'
make: *** [all] Error 2


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