octave-bug-tracker
[Top][All Lists]
Advanced

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

[Octave-bug-tracker] [bug #54235] problems building Octave on Solaris


From: Mike Miller
Subject: [Octave-bug-tracker] [bug #54235] problems building Octave on Solaris
Date: Sat, 7 Jul 2018 23:26:36 -0400 (EDT)
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:61.0) Gecko/20100101 Firefox/61.0

Follow-up Comment #44, bug #54235 (project octave):

I see two major problems now with your current configuration.

First, the BLAS library error actually looks like the GNU gld linker isn't
working correctly when compiling any simple test program.

IMHO you should go back to using the default GCC configuration with the
Solaris linker, unless you know how to make this work, more than specifying
the LD_ALTEXEC variable.

Here are a couple of examples from the latest config.log, showing that it
fails to link any C++ or Fortran program.

The .map file is a Solaris linker file format, and it is being picked up when
linking executables by GCC even when you are telling it to use the GNU
linker.


configure:11951: checking whether stl_algo.h is broken
configure:12024: g++ -std=gnu++11 -o conftest -g -O2  -D_REENTRANT 
conftest.cpp  >&5
/opt/csw/bin/gld:/opt/csw/lib/gcc/sparc-sun-solaris2.10/4.9.2/../../../libgcc-unwind.map:
file format not recognized; treating as linker script
/opt/csw/bin/gld:/opt/csw/lib/gcc/sparc-sun-solaris2.10/4.9.2/../../../libgcc-unwind.map:1:
syntax error
configure:12024: $? = 1
...
configure:30455: checking whether ISAMAX is called correctly from Fortran
configure:30476: gfortran -o conftest -g -O2   conftest.f -lblas  -lm  >&5
/opt/csw/bin/gld:/opt/csw/lib/gcc/sparc-sun-solaris2.10/4.9.2/../../../libgcc-unwind.map:
file format not recognized; treating as linker script
/opt/csw/bin/gld:/opt/csw/lib/gcc/sparc-sun-solaris2.10/4.9.2/../../../libgcc-unwind.map:1:
syntax error
configure:30476: $? = 1


The second problem is that you now have other library conflicts related to the
downgrade from GCC 5 to GCC 4, or maybe specifically from gfortran 5 to
gfortran 4. GMP, MPFR, and MPC are three math libraries that are required by
gfortran. In your original configuration, you had GMP 6.1.2, MPFR 3.1.5, and
MPC 1.0.2.

In the latest two config.log files since gfortran was downgraded to 4.9.2, I
see the following warning messages show up when a Fortran test program is
compiled with the '-v' option.


GNU Fortran (GCC) version 4.9.2 (sparc-sun-solaris2.10)
        compiled by GNU C version 4.9.2, GMP version 5.0.4, MPFR version 3.1.2, 
MPC
version 1.0.2
warning: GMP header version 5.0.4 differs from library version 6.1.2.
warning: MPFR header version 3.1.2 differs from library version 3.1.5.


You should see if you can fix your packages so that GMP is 5.0.4 and MPFR is
3.1.2.

    _______________________________________________________

Reply to this item at:

  <http://savannah.gnu.org/bugs/?54235>

_______________________________________________
  Message sent via Savannah
  https://savannah.gnu.org/




reply via email to

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