rebuilding gcc4 on solaris 9

Dagobert Michelsen dam at opencsw.org
Mon May 25 19:00:48 CEST 2015


Hi Riccardo,

Am 25.05.2015 um 10:05 schrieb Riccardo Mottola:
> current gcc4 on Solaris 9 is 4.6.3, I failed to build 4.8/4.9 with assembler problems.
> These problems are apparently caused by outdated binutils and compiler used for bootstrap.
> 
> I was able to update binutils finally, so that all solaris version have 2.24 (I'll work on 2.25 later).
> 
> I am unable to rebuild gcc 4.6.3, which I found in the branch! I hoped it would be a no-brainer, but it is not.
> 
> I get this:
> checking for installed CLooG ISL... ISL
> checking for version 0.16.1 of CLooG... no
> configure: error: Unable to find a usable CLooG.  See config.log for details.
> gmake[1]: *** [configure-work/solaris9-sparc/build-isa-sparcv8/gcc-4.6.3/configure] Error 1
> 
> but CLooG is installed and gcc 4.8/4.9 do not give this error...
> 
> application CSWcloog-dev                     cloog_dev - Code Generator in the Polyhedral Model, development files
> application CSWlibcloog-isl2                 libcloog_isl2 - Code Generator in the Polyhedral Model, libcloog-isl.so.2
> application CSWlibcloog-isl4                 libcloog_isl4 - Code Generator in the Polyhedral Model, libcloog-isl.so.4
> 
> Is something mssing?
> 
> the configure command line is:
> $ /home/rmottola/opencsw/gcc4/branches/gcc-4.6.x/work/solaris9-sparc/build-isa-sparcv8/gcc-4.6.3/configure --program-suffix=-4.6 --prefi
> x=/opt/csw --exec_prefix=/opt/csw --bindir=/opt/csw/bin --sbindir=/opt/csw/sbin --libexecdir=/opt/csw/libexec --datadir=/opt/csw/share --sysconfdir=/etc/opt/csw --sharedstatedir=/opt/csw/share --localstatedir=/var/opt/csw --libdir=/opt/csw/lib --infodir=/opt/csw/share/info --
> includedir=/opt/csw/include --mandir=/opt/csw/share/man --with-gnu-as --with-as=/opt/csw/bin/gas --without-gnu-ld --with-ld=/usr/ccs/bin/ld --enable-nls --with-included-gettext --with-libiconv-prefix=/opt/csw --with-x --with-mpfr=/opt/csw --with-gmp=/opt/csw --with-ppl=/opt/c
> sw --with-cloog=/opt/csw --enable-cloog-backend=isl --enable-java-awt=xlib --enable-libada --enable-libssp --enable-objc-gc --enable-threa
> ds=posix --enable-languages=ada,c,c++,fortran,java,objc --with-system-zlib=/opt/csw --with-cpu=v8
> 
> the failed check is:
> 
> configure:6052: checking for version 0.16.1 of CLooG
> configure:6070: /opt/csw/bin/gcc-4.6 -c -g -O2 -I/opt/csw/include -DCLOOG_INT_GMP -DCLOOG_ORG -I/opt/csw/include  -I/opt/csw/include -I/op
> t/csw/include   conftest.c >&5
> conftest.c: In function 'main':
> conftest.c:15:5: error: unknown type name 'choke'
> configure:6070: $? = 1
> configure: failed program was:
> 
> but I see the includes:
> ./include/cloog/cloog.h
> ./include/cloog/isl/cloog.h
> 
> Help!

Dig deeper. The failing code is given in config.log, copy+paste that and try invoking
gcc manually, if that doesn't help inspect the output of using -E (print output after
preprocessing) and see why the definition of "choke" is missing by following the
gcc header inclusion trail.


Best regards

 -- Dago


More information about the maintainers mailing list