Build problems with Octave 4.2.1

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|

Build problems with Octave 4.2.1

Adrian Victor Crisciu
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?

Tnahk you in advance for any suggestions!

Adrian-Victor.

_______________________________________________
Help-octave mailing list
[hidden email]
https://lists.gnu.org/mailman/listinfo/help-octave

octave-4.2.1-error.log (18K) Download Attachment
Reply | Threaded
Open this post in threaded view
|

Re: Build problems with Octave 4.2.1

Mike Miller-4
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

_______________________________________________
Help-octave mailing list
[hidden email]
https://lists.gnu.org/mailman/listinfo/help-octave
Reply | Threaded
Open this post in threaded view
|

Re: Build problems with Octave 4.2.1

Adrian Victor Crisciu
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 <[hidden email]>:
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


_______________________________________________
Help-octave mailing list
[hidden email]
https://lists.gnu.org/mailman/listinfo/help-octave