[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Octave-bug-tracker] [bug #54235] problems building Octave on Solaris
From: |
John W. Eaton |
Subject: |
[Octave-bug-tracker] [bug #54235] problems building Octave on Solaris |
Date: |
Wed, 25 Jul 2018 11:21:05 -0400 (EDT) |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Firefox/52.0 |
Follow-up Comment #156, bug #54235 (project octave):
I was able to build GCC on Michele's system. After several false starts and
and hitting some of the same errors, I was able to build GCC 7.3.0 with the
following steps. I think the biggest changes are to use the
contrib/download_prerequisites script to get the gmp, mpc, and mfpr sources
and to force GCC to use the system ld and as programs.
Note that there are no CC, CFLAGS, CXX, CXXFLAGS, LD, NM, AR, etc. variables
in my environment.
This procedure will do a full GCC 3-stage build, so will take a about 3 hours,
even with the -j4 parallel make option.
With this compiler, I'm confident that you can build most everything else.
I used some links to tools in a separate bin directory becuase the 'g' prefix
for GNU tools that is used in /opt/csw/bin seems inconvenient. I think it's
better to just install the tools without the prefix and set your PATH
appropriately if you want to use the GNU tools.
# prerequisites (assumes you are using bash):
PATH=$HOME/local/bin:$PATH
mkdir $HOME/local
cd $HOME/local
mkdir bin build src build/gcc-7.3.0
cd $HOME/local/bin
for f in ar make nm ranlib tar sha512sum ; do ln -s /opt/csw/bin/g$f $f ;
done
# download and unpack sources:
cd $HOME/local/src
wget http://ftp.gnu.org/gnu/gcc/gcc-7.3.0/gcc-7.3.0.tar.xz
tar axf gcc-7.3.0.tar.xz
cd $HOME/local/src/gcc-7.3.0
/bin/bash contrib/download_prerequisites
# configure, make, and install:
cd $HOME/local/build/gcc-7.3.0
../../src/gcc-7.3.0/configure --with-ld=/usr/ccs/bin/ld --without-gnu-ld
--with-as=/usr/ccs/bin/as --without-gnu-as --enable-languages="c,c++,fortran"
--prefix="$HOME/local"
make -j4
make install
_______________________________________________________
Reply to this item at:
<http://savannah.gnu.org/bugs/?54235>
_______________________________________________
Message sent via Savannah
https://savannah.gnu.org/
- [Octave-bug-tracker] [bug #54235] problems building Octave on Solaris, (continued)
- [Octave-bug-tracker] [bug #54235] problems building Octave on Solaris, Dmitri A. Sergatskov, 2018/07/20
- [Octave-bug-tracker] [bug #54235] problems building Octave on Solaris, Michele, 2018/07/21
- [Octave-bug-tracker] [bug #54235] problems building Octave on Solaris, Michele, 2018/07/21
- [Octave-bug-tracker] [bug #54235] problems building Octave on Solaris, Rik, 2018/07/21
- [Octave-bug-tracker] [bug #54235] problems building Octave on Solaris, Michele, 2018/07/21
- [Octave-bug-tracker] [bug #54235] problems building Octave on Solaris, Michele, 2018/07/22
- [Octave-bug-tracker] [bug #54235] problems building Octave on Solaris, Michele, 2018/07/22
- [Octave-bug-tracker] [bug #54235] problems building Octave on Solaris, Michele, 2018/07/23
- [Octave-bug-tracker] [bug #54235] problems building Octave on Solaris, Rik, 2018/07/23
- [Octave-bug-tracker] [bug #54235] problems building Octave on Solaris, Michele, 2018/07/23
- [Octave-bug-tracker] [bug #54235] problems building Octave on Solaris,
John W. Eaton <=
- [Octave-bug-tracker] [bug #54235] problems building Octave on Solaris, Rik, 2018/07/25
- [Octave-bug-tracker] [bug #54235] problems building Octave on Solaris, Michele, 2018/07/25
- [Octave-bug-tracker] [bug #54235] problems building Octave on Solaris, John W. Eaton, 2018/07/25
- [Octave-bug-tracker] [bug #54235] problems building Octave on Solaris, Rik, 2018/07/25
- [Octave-bug-tracker] [bug #54235] problems building Octave on Solaris, Rik, 2018/07/25
- [Octave-bug-tracker] [bug #54235] problems building Octave on Solaris, John W. Eaton, 2018/07/25
- [Octave-bug-tracker] [bug #54235] problems building Octave on Solaris, Rik, 2018/07/25
- [Octave-bug-tracker] [bug #54235] problems building Octave on Solaris, Rik, 2018/07/25
- [Octave-bug-tracker] [bug #54235] problems building Octave on Solaris, John W. Eaton, 2018/07/25
- [Octave-bug-tracker] [bug #54235] problems building Octave on Solaris, John W. Eaton, 2018/07/25