This is the mail archive of the gcc-prs@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/744: SUNWlibm also required when bootstrapping GCC



>Number:         744
>Category:       other
>Synopsis:       SUNWlibm also required when bootstrapping GCC
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    unassigned
>State:          open
>Class:          doc-bug
>Submitter-Id:   net
>Arrival-Date:   Tue Nov 07 08:16:00 PST 2000
>Closed-Date:
>Last-Modified:
>Originator:     Rabbe Fogelholm
>Release:        gcc-2.95.2
>Organization:
>Environment:
Virgin installation of Solaris 2.7 Server. Several levels of
functionality can be selected; this report pertains to the "End User
System" selection, which is a "thin" installation occupying less than
400 MB.
>Description:
According to instructions in
http://ftp.sunet.se/pub/gnu/binaries/README.gcc-sparc-sun-solaris2.3
(this is a national GNU mirror site), check for existence of SUNWhea,
SUNWbtool, SUNWarc, and SUNWtoo. It turns out that all of them except
for SUNWtoo needs to be installed.

Additionally install SUNWsprot in order to get an initial `make'
facility.

Download gnu/binaries/gcc-2.6.3-sparc-sun-solaris2.3.tar.gz, unpack
the tar file, type commands

    mkdir -p /usr/local/bin
    mkdir -p /usr/local/lib
    cp -p -r lib/* /usr/local/lib
    cp -p    bin/* /usr/local/bin
    cat /usr/local/lib/gcc-lib/sparc-sun-solaris2.3/2.6.3/just-fixinc \
    | sed -e 's:/tmp/hson:/usr/local:' \
    | sh
    cd /usr/local/lib/gcc-lib/sparc-sun-solaris2.3/2.6.3/; \
    sh ./fixproto include include /usr/include

Download the make-3.76.1 sources tarball. Build and install a working
GNU make using the initial C compiler (gcc 2.6.3).

Download these tarballs:

    gcc-core-2.95.2.tar.gz
    gcc-g++-2.95.2.tar.gz

Unpack and compile as follows:

    mkdir -p obj-2.95.2
    cd obj-2.95.2;
    ../gcc-2.95.2/configure \
          --enable-shared --enable-languages=c++
    make bootstrap-lean

(The fact that I included c++ may not be important here. I just
describe what I did as accurately as possible.)

The bootstrapping process grinds to an early halt with a complaint
that 'math.h' cannot be found (the file being compiled is
libiberty/floatformat.c).
>How-To-Repeat:
Follow the description given.
>Fix:
Install the SUNWlibm package before boostrapping starts. With Solaris on
a CD-ROM type something like

  pkgadd -d /cdrom/sol_7_*/s0/Solaris_2.7/Product SUNWlibm

This causes a 'math.h' file to be deposited in /usr/include.

>Release-Note:
>Audit-Trail:
>Unformatted:

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