bugGNU Octave - Bugs: bug #50479, build fails on osmesa print


bug #50479: build fails on osmesa print

Submitted by:  Michael Godfrey <godfrey>
Submitted on:  Tue Mar 7 13:34:01 2017  
Category: Configuration and Build SystemSeverity: 3 - Normal
Priority: 5 - NormalItem Group: Regression
Status: ConfirmedAssigned to: None
Originator Name: godfreyOpen/Closed: Open
Release: devOperating System: GNU/Linux

Add a New Comment (Rich MarkupRich Markup):

You are not logged in

Please log in, so followups can be emailed to you.


(Jump to the original submission Jump to the original submission)

Wed Mar 22 17:27:04 2017, comment #10:

It would be best to fix this bug so that users can use
print with visible off while using the osmesa dependent
graphics_toolkits. This would also fix the documentation
build problem. Users face the same problem as the build
when using scripts tp generate many plots: having each plot
pop up on the screen is not usually helpful.

Falling back to gnuplot is not a good choice either for
system build of for users.

Michael Godfrey <godfrey>
Wed Mar 22 07:44:20 2017, comment #9:

One workaround is to do

LD_PRELOAD=/usr/lib64/libGLX_mesa.so.0 make

LD_PRELOAD=/usr/lib64/libGLX_mesa.so.0 make check

Could the same be achieved by changing linking order
(in the Makefile)?


Dmitri A. Sergatskov <dasergatskov>
Tue Mar 21 19:02:48 2017, comment #8:

The build uses "visible" = "off" so that plots do not pop up on the user's display while building Octave. Building the figures for the manual is part of the (maintainer) build, and it was decided that it should not open new windows or move focus away from the terminal or from anything else the user might be doing while the build is running.

Building without OSMesa (--without-osmesa) or without OpenGL (--without-opengl) forces the doc/interpreter build rules to drop back to using gnuplot to generate the figures for the manual.

Mike Miller <mtmiller>
Project Administrator
Mon Mar 20 09:27:07 2017, comment #7:


Correct, but many scripts are set to use "visible off"
since there was an extended period when only this worked.
This is why the build uses "visible off". And, there must
have been a time when osomega was needed with visible off,
but there also was a time when this was not true.

Still a bug worth fixing. But, it appears to be an osomega
problem. Someone with more knowledge of osomega is needed
to find where/how it can be fixed.

Michael Godfrey <godfrey>
Mon Mar 20 01:27:42 2017, comment #6:

I thought osmesa only needed if you want to produce prints w/o
actual plot (on a headless server e.g.).
A more common plot/print sequence seems to work fine...


Dmitri A. Sergatskov <dasergatskov>
Mon Mar 20 00:06:07 2017, comment #5:

I should have added that plots work, but print does
not. Thus, no .pdf files can be generated for example.

Michael Godfrey <godfrey>
Mon Mar 20 00:03:42 2017, comment #4:

This error also affects the 4.0.3 release on Fedora 25
if Fedora has been updated to current osmesa. So, it is
more serious.

Michael Godfrey <godfrey>
Sun Mar 12 12:34:06 2017, comment #3:

I get the same under Arch Linux. We recently got an update of the mesa infrastructure similar to the one Fedora got.

Stefan Husmann <haawda>
Tue Mar 7 20:41:24 2017, comment #2:

It is the same error message we have on ubuntu 14.04.2: see https://bugs.launchpad.net/ubuntu/trusty/+source/mesa/+bug/1424059

Pantxo Diribarne <pantxo>
Project Member
Tue Mar 7 15:49:54 2017, comment #1:

I can confirm that.


Dmitri A. Sergatskov <dasergatskov>
Tue Mar 7 13:34:01 2017, original submission:

After recent update of Fedora 25 I get during build:
error: _osmesa_print_: Depth and stencil doesn't match, are you sure you are using OSMesa >= 9.0?

The current mesa version is: 13.0.4-1

Michael Godfrey <godfrey>


(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

Attach File(s):

No files currently attached


Depends on the following items: None found

Items that depend on this one: None found


Carbon-Copy List
  • -unavailable- added by mtmiller (Posted a comment)
  • -unavailable- added by haawda (Posted a comment)
  • -unavailable- added by pantxo (Posted a comment)
  • -unavailable- added by dasergatskov (Posted a comment)
  • -unavailable- added by godfrey (Submitted the item)

    Do you think this task is very important?
    If so, you can click here to add your encouragement to it.
    This task has 0 encouragements so far.

    Only project members can vote.


    Please enter the title of George Orwell's famous dystopian book (it's a date):



    Follows 1 latest change.

    Date Changed By Updated Field Previous Value => Replaced By
    Tue Mar 7 20:41:54 2017pantxoStatusNone=>Confirmed

    Back to the top

    Powered by Savane 3.1-cleanup1