This is the mail archive of the gcc-help@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]

Building gcc-4.5.0 fails, missing mpc.h (but mpc is there)


Hi all,

First, I build gcc-4.5.0 of 20100128 without any problems. The release
version is failing with:
gcc -c  -g -fkeep-inline-functions -DIN_GCC   -W -Wall -Wwrite-strings
-Wcast-qual -Wstrict-prototypes -Wmissing-prototypes
-Wmissing-format-attribute -Wold-style-definition -fno-common
-DHAVE_CONFIG_H -DGENERATOR_FILE -I. -Ibuild -I../.././gcc
-I../.././gcc/build -I../.././gcc/../include
-I../.././gcc/../libcpp/include
-I/home/pm18/gcc-snapshots/gcc-4.5.0/host-i686-pc-linux-gnu/gmp
-I/home/pm18/gcc-snapshots/gcc-4.5.0/gmp
-I/home/pm18/gcc-snapshots/gcc-4.5.0/host-i686-pc-linux-gnu/mpfr
-I/home/pm18/gcc-snapshots/gcc-4.5.0/mpfr
-I/home/pm18/gcc-snapshots/gcc-4.5.0/mpc/include
-I../.././gcc/../libdecnumber -I../.././gcc/../libdecnumber/bid
-I../libdecnumber     \
                -o build/gcov-iov.o ../.././gcc/gcov-iov.c
gcc  -g -fkeep-inline-functions -DIN_GCC   -W -Wall -Wwrite-strings
-Wcast-qual -Wstrict-prototypes -Wmissing-prototypes
-Wmissing-format-attribute -Wold-style-definition -fno-common
-DHAVE_CONFIG_H -DGENERATOR_FILE  \
                build/gcov-iov.o -o build/gcov-iov
build/gcov-iov '4.5.0' '' \
            > tmp-gcov-iov.h
/bin/sh ../.././gcc/../move-if-change tmp-gcov-iov.h gcov-iov.h
echo timestamp > s-iov
gcc -c  -g -fkeep-inline-functions -DIN_GCC   -W -Wall -Wwrite-strings
-Wcast-qual -Wstrict-prototypes -Wmissing-prototypes
-Wmissing-format-attribute -Wold-style-definition -fno-common
-DHAVE_CONFIG_H -I. -I. -I../.././gcc
-I../.././gcc/. -I../.././gcc/../include -I../.././gcc/../libcpp/include
-I/home/pm18/gcc-snapshots/gcc-4.5.0/host-i686-pc-linux-gnu/gmp
-I/home/pm18/gcc-snapshots/gcc-4.5.0/gmp
-I/home/pm18/gcc-snapshots/gcc-4.5.0/host-i686-pc-linux-gnu/mpfr
-I/home/pm18/gcc-snapshots/gcc-4.5.0/mpfr
-I/home/pm18/gcc-snapshots/gcc-4.5.0/mpc/include
-I../.././gcc/../libdecnumber -I../.././gcc/../libdecnumber/bid
-I../libdecnumber     ../.././gcc/c-lang.c -o c-lang.o
In file included from ../.././gcc/tree-inline.h:25,
                 from ../.././gcc/c-lang.c:33:
../.././gcc/gimple.h: In function 'gimple_op':
../.././gcc/gimple.h:1635: warning: cast discards qualifiers from
pointer target type
../.././gcc/gimple.h: In function 'gimple_op_ptr':
../.././gcc/gimple.h:1651: warning: cast discards qualifiers from
pointer target type
gcc -c  -g -fkeep-inline-functions -DIN_GCC   -W -Wall -Wwrite-strings
-Wcast-qual -Wstrict-prototypes -Wmissing-prototypes
-Wmissing-format-attribute -Wold-style-definition -fno-common
-DHAVE_CONFIG_H -I. -I. -I../.././gcc
-I../.././gcc/. -I../.././gcc/../include -I../.././gcc/../libcpp/include
-I/home/pm18/gcc-snapshots/gcc-4.5.0/host-i686-pc-linux-gnu/gmp
-I/home/pm18/gcc-snapshots/gcc-4.5.0/gmp
-I/home/pm18/gcc-snapshots/gcc-4.5.0/host-i686-pc-linux-gnu/mpfr
-I/home/pm18/gcc-snapshots/gcc-4.5.0/mpfr
-I/home/pm18/gcc-snapshots/gcc-4.5.0/mpc/include
-I../.././gcc/../libdecnumber -I../.././gcc/../libdecnumber/bid
-I../libdecnumber     ../.././gcc/stub-objc.c -o stub-objc.o
gcc -c  -g -fkeep-inline-functions -DIN_GCC   -W -Wall -Wwrite-strings
-Wcast-qual -Wstrict-prototypes -Wmissing-prototypes
-Wmissing-format-attribute -Wold-style-definition -fno-common
-DHAVE_CONFIG_H -I. -I. -I../.././gcc
-I../.././gcc/. -I../.././gcc/../include -I../.././gcc/../libcpp/include
-I/home/pm18/gcc-snapshots/gcc-4.5.0/host-i686-pc-linux-gnu/gmp
-I/home/pm18/gcc-snapshots/gcc-4.5.0/gmp
-I/home/pm18/gcc-snapshots/gcc-4.5.0/host-i686-pc-linux-gnu/mpfr
-I/home/pm18/gcc-snapshots/gcc-4.5.0/mpfr
-I/home/pm18/gcc-snapshots/gcc-4.5.0/mpc/include
-I../.././gcc/../libdecnumber -I../.././gcc/../libdecnumber/bid
-I../libdecnumber     ../.././gcc/attribs.c -o attribs.o
In file included from ../.././gcc/rtl.h:28,
                 from ../.././gcc/attribs.c:30:
../.././gcc/real.h:28:17: error: mpc.h: No such file or directory
In file included from ../.././gcc/rtl.h:28,
                 from ../.././gcc/attribs.c:30:
../.././gcc/real.h:29: error: syntax error before 'mpc_ptr'
../.././gcc/real.h:29: warning: function declaration isn't a prototype
../.././gcc/attribs.c: In function 'register_attribute':
../.././gcc/attribs.c:207: warning: cast discards qualifiers from
pointer target type
make[3]: *** [attribs.o] Error 1
make[3]: Leaving directory
`/home/pm18/gcc-snapshots/gcc-4.5.0/host-i686-pc-linux-gnu/gcc'
make[2]: *** [all-stage1-gcc] Error 2
make[2]: Leaving directory `/home/pm18/gcc-snapshots/gcc-4.5.0'
make[1]: *** [stage1-bubble] Error 2
make[1]: Leaving directory `/home/pm18/gcc-snapshots/gcc-4.5.0'
make: *** [all] Error 2

My configure line was:
./configure --prefix=/home/pm18/local/gcc-4.5.0 --enable-languages=c

$  uname -r
2.6.16-1.2069_FC4smp

$  ls
ABOUT-NLS                config.log     COPYING          gmp
intl          libgomp          libtool.m4      MAINTAINERS         mkdep
README
boehm-gc                 config-ml.in   COPYING3
gmp-4.3.2.tar.bz2       LAST_UPDATED  libiberty        ltgcc.m4
maintainer-scripts  mkinstalldirs      serdep.tmp
build-i686-pc-linux-gnu  config.rpath   COPYING3.LIB     gnattools
libada        libjava          ltmain.sh       Makefile
move-if-change     stage_current
ChangeLog                config.status  COPYING.LIB
host-i686-pc-linux-gnu  libcpp        libmudflap       lt~obsolete.m4
Makefile.def        mpc                stage_final
ChangeLog.tree-ssa       config.sub     COPYING.RUNTIME
i686-pc-linux-gnu       libdecnumber  libobjc          lto-plugin
Makefile.in         mpc-0.8.1.tar.gz   stage_last
compile                  configure      depcomp          include
libffi        libssp           ltoptions.m4    Makefile.tpl        mpfr
symlink-tree
config                   configure.ac   fixincludes      INSTALL
libgcc        libstdc++-v3     ltsugar.m4      MD5SUMS
mpfr-2.4.2.tar.gz  ylwrap
config.guess             contrib        gcc              install-sh
libgfortran   libtool-ldflags  ltversion.m4    missing             NEWS               zlib


So, everything seems to be in place but the build still fails. :-/

Any tips?

Cheers,

--
PMatos


Member of the CSR plc group of companies. CSR plc registered in England and Wales, registered number 4187346, registered office Churchill House, Cambridge Business Park, Cowley Road, Cambridge, CB4 0WZ, United Kingdom


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