help-octave
[Top][All Lists]
Advanced

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

Re: Build problems with Octave 4.2.1


From: Adrian Victor Crisciu
Subject: Re: Build problems with Octave 4.2.1
Date: Tue, 25 Apr 2017 00:31:21 +0300

Thank you very much, it worked!

However, when I tried to run the executable, the program loader tried to use the old C++ library (from /usr/lib64) and failed. This is quite strange, because my own programs, compiled with gcc-6.3.0 have no problem in finding the right runtime libraries... Anyway, I solved this new problem with the following  configureation option for Octave

LDFLAGS="_L/opt/gcc-6.3.0/lib64 -Wl,-rpath,/opt/gcc-6.3.0/lib64"

This produced an executable which could be launched without any problems. Again, I don't understand why this is happening, because any program compiled with the newest version of gcc on my machine finds its right libraries without any problems...

Thanking you again,
Adrian-Victor.

Dipl. eng. Adrian Victor Crisciu, Ph.D.
Senior Lecturer
Dept. of Inorganic and Physical Chemistry and Electrochemistry,
University POLITEHNICA of Bucharest,
Str. G-ral Gh. Polizu nr. 1, 011061, sect. 1, Bucharest,
Roumania

2017-04-24 0:53 GMT+03:00 Mike Miller <address@hidden>:
On Sun, Apr 23, 2017 at 21:05:47 +0300, Adrian Victor Crisciu wrote:
> Hi,
>
> I tried to build Octave 4.2.1 from sources and got the errors listed in the
> attached file. I tried with both gcc-5.3.0 and gcc-6.3.0 on my Slackware
> platform with a 2.6.33.4 linux kernel and glibc 2.11.1.
>
> Any idea on what is happening and how can I build Octave 4.2.1 on my
> machine?

It looks to me like you have successfully compiled Octave with a newer
version of gcc as you mention above, but you are linking against a
libstdc++ from an older version of gcc, probably whichever is the
default gcc for your distribution.

You probably need to set your LDFLAGS and possibly LD_LIBRARY_PATH
appropriately to find the shared library. I am guessing from the log
file that you might look in /opt/gcc-5.3.0/lib64.

--
mike


reply via email to

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