gm2
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Gm2] Building gcc-4.7.3 on Solaris 10/Sparc


From: john o goyo
Subject: [Gm2] Building gcc-4.7.3 on Solaris 10/Sparc
Date: Fri, 13 Sep 2013 15:05:41 -0400
User-agent: Mozilla/5.0 (X11; SunOS sun4u; rv:10.0) Gecko/20120130 Thunderbird/10.0

My log of the build process of gcc-4.7.3 on Solaris 10/Sparc (sun4u).

1. Install gmp-5.1.2:

Note that configure invokes the Bourne shell /bin/sh; this must be changed to the BASH shell /bin/bash. Bourne shell will not work.

Note that the source Will not compile with cc; requires gcc. (I used gcc-4.1.2.)

./configure SHELL=/bin/bash CFLAGS='-O2 -m64' --bindir=/usr/local/bin/64 --libdir=/usr/local/lib/64 --disable-cxx

  gmake check requires the following:
        export LD_LIBRARY_PATH_64=$PWD/.libs:$LD_LIBRARY_PATH_64

  (Vide http://gmplib.org/list-archives/gmp-bugs/2008-July/001084.html.)

  Replace call to ranlib with echo in libtool.
  gmake check passes all tests.
  gmake install succeeded.


2. Install mpfr-3.1.2

./configure SHELL=/bin/bash CFLAGS='-O2 -m64' --bindir=/usr/local/bin/64 --libdir=/usr/local/lib/64 --with-gmp-lib=/usr/local/lib/64 --with-gmp-include=/usr/local/include

  Replaced call to ranlib with echo in libtool.
  gmake succeeded.
  gmake check passed all tests.
  gmake install succeeded.


3. Install mpc-1.0.1

./configure SHELL=/bin/bash CFLAGS='-O2 -m64' --bindir=/usr/local/bin/64 --libdir=/usr/local/lib/64 --with-gmp-lib=/usr/local/lib/64 --with-gmp-include=/usr/local/include

  Replaced call to ranlib with echo in libtool.
  gmake succeeded.
  gmake check passed all tests.
  gmake install succeeded.


4. Finally, configuration script for gcc-4.7.3:

../../src/gcc-4.7.3/configure --prefix=$HOME/gcc-4.7.3 --exec-prefix=$HOME/gcc-4.7.3 --without-gnu-ld --with-ld=/usr/ccs/bin/ld --with-gnu-as --with-as=/usr/sfw/bin/gas --build=sparc64-sun-solaris2.10 --host=sparc64-sun-solaris2.10 --with-mpc-include=/usr/local/include --with-mpc-lib=/usr/local/lib/64 --with-mpfr-include=/usr/local/include --with-mpfr-lib=/usr/local/lib/64 --with-gmp-include=/usr/local/include --with-gmp-lib=/usr/local/lib/64 --enable-languages=c,c++ --disable-bootstrap --enable-checking --enable-shared --disable-libitm

Note that to build, you must export the locations of the libraries previously built, despite explicit location given in the configure options. (This is a known bug.)

Note that as per http://blogs.everycity.co.uk/alasdair/2012/12/building-gcc-4-7-2-on-smartos-and-friends/ , I added --disable-libitm to configuration script. It failed without this omission.

  gmake succeeded;
  gmake install succeeded.


Please let me know if anything is unclear or requires further commentary.

john



reply via email to

[Prev in Thread] Current Thread [Next in Thread]