This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug bootstrap/38862] New: Bootstrap failure on HEAD with static linking vs. graphite


[ ref: http://gcc.gnu.org/ml/gcc/2009-01/threads.html#00179, full details of
configuration etc. ]

  In gcc/Makefile.in, the current definition of BACKENDLIBS says:

BACKENDLIBS = $(GMPLIBS) $(CLOOGLIBS) $(PPLLIBS)

This is incorrect WRT dependency order.  Cloog and PPL depend on GMP/MPFR, and
so should be listed before it.  This doesn't cause a problem for shared
linking, as it just leaves undefined references to be resolved at runtime, but
it is fatal for static linking, causing many fatal errors:

---------------------------------<snip>---------------------------------
ranlib  libbackend.a
gcc-4  -g -fkeep-inline-functions -DIN_GCC   -W -Wall -Wwrite-strings
-Wstrict-prototypes -Wmissing-prototypes -Wcast-qual -Wold-style-definition
-Wc++-compat -Wmissing-format-attribute -pedantic -Wno-long-long
-Wno-variadic-macros -Wno-overlength-strings -fno-common  -DHAVE_CONFIG_H  -o
cc1-dummy.exe c-lang.o stub-objc.o attribs.o c-errors.o c-lex.o c-pragma.o
c-decl.o c-typeck.o c-convert.o c-aux-info.o c-common.o c-opts.o c-format.o
c-semantics.o c-ppoutput.o c-cppbuiltin.o c-objc-common.o c-dump.o c-pch.o
c-parser.o i386-c.o cygwin2.o msformat-c.o c-gimplify.o tree-mudflap.o
c-pretty-print.o c-omp.o dummy-checksum.o \
          main.o tree-browser.o libbackend.a ../libcpp/libcpp.a
../libdecnumber/libdecnumber.a ../libcpp/libcpp.a -lintl -liconv
../libiberty/libiberty.a ../libdecnumber/libdecnumber.a -L/usr/lib -L/usr/lib
-lmpfr -lgmp -L/opt/gcc-tools/lib -lcloog -L/opt/gcc-tools/lib -lppl_c -lppl
-lgmpxx
/opt/gcc-tools/lib/libcloog.a(domain.o): In function `debug_value':
/gnu/gcc/prereq/cloog/source/ppl/domain.c:3579: multiple definition of
`_debug_value'
libbackend.a(graphite.o):/gnu/gcc/gcc/gcc/graphite.c:68: first defined here
/opt/gcc-tools/lib/libcloog.a(clast.o): In function `insert_modulo_guard':
/gnu/gcc/prereq/cloog/source/ppl/clast.c:1043: undefined reference to
`__imp____gmpz_fdiv_r'
/gnu/gcc/prereq/cloog/source/ppl/clast.c:1107: undefined reference to
`__imp____gmpz_fdiv_r'
/opt/gcc-tools/lib/libcloog.a(domain.o):domain.c:(.text+0x6d0c): undefined
reference to `__imp____gmpz_fdiv_r'
/opt/gcc-tools/lib/libcloog.a(matrix.o): In function `cloog_matrix_read':
/gnu/gcc/prereq/cloog/source/ppl/matrix.c:267: undefined reference to
`__imp____gmpz_set_str'
---------------------------------<snip>---------------------------------

and many many more.  This can be fixed by a trivial patch which I will post as
an attachment.

  cheers,
    DaveK


-- 
           Summary: Bootstrap failure on HEAD with static linking vs.
                    graphite
           Product: gcc
           Version: 4.4.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: bootstrap
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: dave dot korn dot cygwin at gmail dot com
 GCC build triplet: i686-pc-cygwin
  GCC host triplet: i686-pc-cygwin
GCC target triplet: i686-pc-cygwin


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]