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]

Problems compiling GCC 4.5.0 on CentOS 5.4 64 system (GCC 4.1.2)


This past week I've been struggling getting GCC 4.5.0  compiled on a CentOS 5.4 64bit system (GCC 4.12). 

I'm struggling with the correct approach to building it since each approach seems to have issues. I started out trying to get the GCC build system to boot strap MPC, MPR, PPL, CLOOG, and GMP.

Looking at old emails from the patch mailing list, I see that I can bootstrap cloog and ppl. This does not appear to be documented in the installation docs (http://gcc.gnu.org/install/), although it is for gmp, mpfr, mpc.

Right now what I'm trying is this:
1. Extract gcc-4.5.0.tar.gz. cd into the directory

2. Extract these files in the GCC base dir
Source1:    ppl-0.10.2.tar.gz
Source2:    cloog-ppl-0.15.6.tar.gz
Source3:    mpfr-2.4.2.tar.gz
Source4:    mpc-0.8.1.tar.gz
Source5:    gmp-4.3.2.tar.gz
Source6:    libelf-0.8.12.tar.gz

3. Rename the files like so:
mv cloog-ppl-0.15.6 cloog
mv ppl-0.10.2 ppl
mv mpfr-2.4.2 mpfr
mv mpc-0.8.1 mpc
mv gmp-4.3.2 gmp
mv libelf-0.8.12 libelf

4. Configure with these options:
../gcc-%{version}/configure  --prefix=%{_prefix} --with-local-prefix=%{_prefix} --enable-languages=c,c++,lto,objc \
    --enable-shared=yes --enable-static=yes --enable-threads=posix --enable-checking=release --with-cpu=generic  \
    --with-build-time-tools=%{_prefix}/bin --enable-lto 

5. make 
When I do so, gmp builds fine, but cloog falls over during make in the first stage:

libtool: link: gcc -Wall -fomit-frame-pointer -g -fkeep-inline-functions -o cloog cloog.o  -L/home/rpmbuilder/rpmbuild/BUILD/makedir/./ppl/interfaces/C/.libs -L/home/rpmbuilder/rpmbuild/BUILD/makedir/./ppl/src/.libs ./.libs/libcloog.a /home/rpmbuilder/rpmbuild/BUILD/makedir/./ppl/interfaces/C/.libs/libppl_c.a /home/rpmbuilder/rpmbuild/BUILD/makedir/ppl/src/.libs/libppl.a /home/rpmbuilder/rpmbuild/BUILD/makedir/./ppl/src/.libs/libppl.a -lgmp -lgmpxx
./.libs/libcloog.a(block.o): In function `cloog_block_print_structure':
/home/rpmbuilder/rpmbuild/BUILD/makedir/cloog/../../gcc-4.5.0/cloog/source/block.c:151: undefined reference to `mp_get_memory_functions'
./.libs/libcloog.a(loop.o): In function `cloog_loop_print_structure':
/home/rpmbuilder/rpmbuild/BUILD/makedir/cloog/../../gcc-4.5.0/cloog/source/loop.c:137: undefined reference to `mp_get_memory_functions'
./.libs/libcloog.a(domain.o): In function `cloog_pol_print':
/home/rpmbuilder/rpmbuild/BUILD/makedir/cloog/../../gcc-4.5.0/cloog/source/ppl/domain.c:698: undefined reference to `mp_get_memory_functions'
./.libs/libcloog.a(domain.o): In function `debug_value':
/home/rpmbuilder/rpmbuild/BUILD/makedir/cloog/../../gcc-4.5.0/cloog/source/ppl/domain.c:3514: undefined reference to `mp_get_memory_functions'
./.libs/libcloog.a(matrix.o): In function `cloog_matrix_print':
/home/rpmbuilder/rpmbuild/BUILD/makedir/cloog/../../gcc-4.5.0/cloog/source/ppl/matrix.c:106: undefined reference to `mp_get_memory_functions'
./.libs/libcloog.a(matrix.o):/home/rpmbuilder/rpmbuild/BUILD/makedir/cloog/../../gcc-4.5.0/cloog/source/ppl/matrix.c:205: more undefined references to `mp_get_memory_functions' follow
collect2: ld returned 1 exit status
make[4]: *** [cloog] Error 1



Is this supposed to work? Alexandre and Paolo seem to have done the leg work to make this possible in 2009, but it's not well documented and doesn't seem to want to work for me.
http://gcc.gnu.org/ml/gcc-patches/2009-11/msg00420.html

What do I need to do to make this happen? I'm in a situation where I'd like to be able to easily bootstrap these dependencies on older GCC systems without having to struggle with older compilers. Additionally, even when I do get them working as shared objects, they still seem to fail test suite items.

Thanks,
Todd


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