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

Success after struggles building gcc-3.0 (c compiler only) for sparcv9-sun-solaris2.7



As already well known, gmake bootstrap fails.
I only built gcc (--enable-languages=c).
I used gmake CFLAGS='-O' LIBCFLAGS='-g -O2' bootstrap.
I encountered two problems during the build:

 1) libiberty is built with the old system compiler, in our case 
    a 32-bit gcc-2.8.1. This makes the linking of libiberty fail,
    since the objects were built by the old compiler and thus are 
    32-bit.

    Resolved by 

	cd libiberty
      rm *.o
      gmake 'CC=/dsk/astrid/tools/gcc-3.0-obj/gcc/stage1/xgcc -B/dsk/astrid/tools/gcc-3.0-obj/gcc/stage1/ -B/dsk/astrid/tools/cc-3.0/sparcv9-sun-solaris2.7/bin/' CFLAGS='-O' LIBCFLAGS='-g -O2'

 2) Comparison of stage 2 and stage 3 failed.

    Resolved by

      gmake CFLAGS='-O' LIBCFLAGS='-g -O2' bootstrap4

The included tests failed the bootsrap4 build, but I think I've 
verified the build fair enough by being able to configure, build 
and run lsof version 4.57 without problems and with the expected
results.

I will build a sparc-sun-solaris2.6 gcc 3.0 with at least c++ and
java in a few days. If no such success is listed at the time
I will probably build the whole slew so i can submit a "clean one" 8^)

Thanks, 

-- 
Åke Nordin
Verification Traffic
Ericsson Radio Systems
Tel: +468 585 32197
ECN: (850) 32197
Fax: +468 751 1334
Mobile: +46 704 660 199
mailto:ake.a.nordin@era.ericsson.se


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