http://gcc.gnu.org/bugzilla/show_bug.cgi?id=54860



             Bug #: 54860

           Summary: [4.8 Regression]: build fails on cris-elf configuring

                    libgfortran due to recent "attribute" changes in core

                    gcc

    Classification: Unclassified

           Product: gcc

           Version: 4.8.0

            Status: UNCONFIRMED

          Keywords: build, ice-on-valid-code

          Severity: normal

          Priority: P3

         Component: middle-end

        AssignedTo: unassig...@gcc.gnu.org

        ReportedBy: h...@gcc.gnu.org

                CC: do...@gcc.gnu.org

              Host: x86_64-unknown-linux-gnu

            Target: cris-axis-elf





Created attachment 28393

  --> http://gcc.gnu.org/bugzilla/attachment.cgi?id=28393

Repeat with gccobj/./gcc/f951 conftest.f -ffixed-form



A patch in the revision range (last_known_working:first_known_failing)

192197:192199 caused the build for cris-elf to fail as follows:



...

checking whether the /tmp/build20121008/gccobj/./gcc/gfortran

-B/tmp/build20121008/gccobj/./gcc/ -nostdinc

-B/tmp/build20121008/gccobj/cris-elf/newlib/ -isystem

/tmp/build20121008/gccobj/cris-elf/newlib/targ-include -isystem

/tmp/build20121008/gcc/newlib/libc/include

-B/tmp/build20121008/gccobj/cris-elf/libgloss/cris

-L/tmp/build20121008/gccobj/cris-elf/libgloss/libnosys

-L/tmp/build20121008/gcc/libgloss/cris -B/tmp/build20121008/pre/cris-elf/bin/

-B/tmp/build20121008/pre/cris-elf/lib/ -isystem

/tmp/build20121008/pre/cris-elf/include -isystem

/tmp/build20121008/pre/cris-elf/sys-include    linker

(/tmp/build20121008/gccobj/./gcc/collect-ld) supports shared libraries... yes

checking dynamic linker characteristics... no

checking how to hardcode library paths into programs... immediate

checking whether the GNU Fortran compiler is working... no

configure: error: GNU Fortran is not working; please report a bug in

http://gcc.gnu.org/bugzilla, attaching

/tmp/build20121008/gccobj/cris-elf/libgfortran/config.log

make[1]: *** [configure-target-libgfortran] Error 1

make[1]: Leaving directory `/tmp/build20121008/gccobj'



In that config.log:

configure:12882: /tmp/build20121008/gccobj/./gcc/gfortran

-B/tmp/build20121008/gccobj/./gcc/ -nostdinc

-B/tmp/build20121008/gccobj/cris-elf/newlib/ -isystem

/tmp/build20121008/gccobj/cris-elf/newlib/targ-include -isystem

/tmp/build20121008/gcc/newlib/libc/include

-B/tmp/build20121008/gccobj/cris-elf/libgloss/cris

-L/tmp/build20121008/gccobj/cris-elf/libgloss/libnosys

-L/tmp/build20121008/gcc/libgloss/cris -B/tmp/build20121008/pre/cris-elf/bin/

-B/tmp/build20121008/pre/cris-elf/lib/ -isystem

/tmp/build20121008/pre/cris-elf/include -isystem

/tmp/build20121008/pre/cris-elf/sys-include    -c -g  conftest.f >&5

f951: internal compiler error: Segmentation fault

0x89f135 crash_signal

        /tmp/build20121008/gcc/gcc/toplev.c:335

0xbcd90a htab_mod

        /tmp/build20121008/gcc/libiberty/hashtab.c:272

0xbcd90a htab_find_with_hash

        /tmp/build20121008/gcc/libiberty/hashtab.c:602

0xbd0068 lookup_scoped_attribute_spec(tree_node const*, tree_node const*)

        /tmp/build20121008/gcc/gcc/attribs.c:325

0xa69645 comp_type_attributes(tree_node const*, tree_node const*)

        /tmp/build20121008/gcc/gcc/tree.c:4353

0xa69a10 build_type_attribute_qual_variant(tree_node*, tree_node*, int)

        /tmp/build20121008/gcc/gcc/tree.c:4302

0x564203 build_library_function_decl_1

        /tmp/build20121008/gcc/gcc/fortran/trans-decl.c:2650

0x56437c gfc_build_library_function_decl_with_spec(tree_node*, char const*,

tree_node*, int, ...)

        /tmp/build20121008/gcc/gcc/fortran/trans-decl.c:2692

0x5644e3 gfc_build_builtin_function_decls()

        /tmp/build20121008/gcc/gcc/fortran/trans-decl.c:3067

0x545b7d gfc_create_decls

        /tmp/build20121008/gcc/gcc/fortran/f95-lang.c:175

0x545b7d gfc_be_parse_file

        /tmp/build20121008/gcc/gcc/fortran/f95-lang.c:190

Please submit a full bug report,

with preprocessed source if appropriate.

Please include the complete backtrace with any bug report.

See <http://gcc.gnu.org/bugs.html> for instructions.

configure:12882: $? = 1

configure: failed program was:

|       program main

| 

|       end





Configure-test-code and command-line attached.



Author of only suspect patch in revision range CC:ed.

Just configure for --target=cris-elf and "make all-gcc" to produce f951.

Reply via email to