bugGNU Octave - Bugs: bug #42057, qMin compilation error with...

 
 

bug #42057: qMin compilation error with --enable-64

Submitter:  None
Submitted:  Sat 05 Apr 2014 06:07:26 PM UTC
 
Category:  Configuration and Build System Severity:  3 - Normal
Priority:  5 - Normal Item Group:  Build Failure
Status:  Fixed Assigned to:  None
Originator Name:  cgs_bob Originator Email:  -email is unavailable-
Open/Closed:  * Closed Release:  * dev
Operating System:  * GNU/Linux
* Mandatory Fields

Add a New Comment (Rich Markup)
   

Comment Type & Canned Response:
       

 

Wed 18 Mar 2015 01:41:42 AM UTC, comment #4: 

I have been able to build the current development branch with Qt and with --enable-64, no problems here, closing as fixed.

Mike Miller <mtmiller>
Project Administrator
Mon 02 Feb 2015 04:11:09 AM UTC, comment #3: 

Could the original reporter re-test the current development branch of Octave to see if it compiles with qMin successfully?  The Octave Team is preparing the 4.0 release and a lot has changed since April, 2014.

Rik <rik5>
Project Administrator
Sat 28 Jun 2014 12:31:57 PM UTC, comment #2: 

In a previous checkout of May it works.

Just change this two files and execute again the ""make" cmd

libgui/graphics/QtHandlesUtils.cc
libgui/graphics/QtHandlesUtils.h

for the ones from previus revisions of the main branch
As an example thos ones worked for me.

hg update -r 097202cbe564+

If you need more help let me know

José García <chechugarriga>
Sun 13 Apr 2014 02:53:16 PM UTC, comment #1: 

Thanks for your bug report. The error looks likely to me, although I am unable to reproduce because I don't build Octave with --enable-64. Not many do, so you may not get anyone to confirm and fix this for you. Can you provide a patch that fixes the build for you?

Mike Miller <mtmiller>
Project Administrator
Sat 05 Apr 2014 06:07:26 PM UTC, original submission:  

I'm on an amd64 Linux Mint 15 Olivia system w/ gcc 4.7.3, and qt 4.8.4.  I am trying to build octave head using -enable-64, but I'm getting this compiler error:

make[3]: Entering directory `/home/bob/dev/math/octave/build/libgui'
/bin/bash ../libtool  --tag=CXX   --mode=compile g++ -DHAVE_CONFIG_H -I. -I../../libgui -I..   -I/usr/include/freetype2    -I/usr/include/qt4 -I/usr/include/qt4/QtCore -I/usr/include/qt4/QtGui -I/usr/include/qt4/QtNetwork -I/usr/include/qt4/QtOpenGL -Igraphics -I../../libgui/graphics -I../../liboctave/cruft/misc -I../../liboctave/array -I../liboctave/numeric -I../../liboctave/numeric -I../liboctave/operators -I../../liboctave/operators -I../../liboctave/system -I../../liboctave/util -I../libinterp -I../../libinterp -I../libinterp/parse-tree -I../../libinterp/parse-tree -I../libinterp/corefcn -I../../libinterp/corefcn -I../../libinterp/octave-value   -Wall -W -Wshadow -Wold-style-cast -Wformat -Wpointer-arith -Wwrite-strings -Wcast-align -Wcast-qual -g -O2 -pthread -MT graphics/graphics_libgui_graphics_la-QtHandlesUtils.lo -MD -MP -MF graphics/.deps/graphics_libgui_graphics_la-QtHandlesUtils.Tpo -c -o graphics/graphics_libgui_graphics_la-QtHandlesUtils.lo `test -f 'graphics/QtHandlesUtils.cc' || echo '../../libgui/'`graphics/QtHandlesUtils.cc
libtool: compile:  g++ -DHAVE_CONFIG_H -I. -I../../libgui -I.. -I/usr/include/freetype2 -I/usr/include/qt4 -I/usr/include/qt4/QtCore -I/usr/include/qt4/QtGui -I/usr/include/qt4/QtNetwork -I/usr/include/qt4/QtOpenGL -Igraphics -I../../libgui/graphics -I../../liboctave/cruft/misc -I../../liboctave/array -I../liboctave/numeric -I../../liboctave/numeric -I../liboctave/operators -I../../liboctave/operators -I../../liboctave/system -I../../liboctave/util -I../libinterp -I../../libinterp -I../libinterp/parse-tree -I../../libinterp/parse-tree -I../libinterp/corefcn -I../../libinterp/corefcn -I../../libinterp/octave-value -Wall -W -Wshadow -Wold-style-cast -Wformat -Wpointer-arith -Wwrite-strings -Wcast-align -Wcast-qual -g -O2 -pthread -MT graphics/graphics_libgui_graphics_la-QtHandlesUtils.lo -MD -MP -MF graphics/.deps/graphics_libgui_graphics_la-QtHandlesUtils.Tpo -c ../../libgui/graphics/QtHandlesUtils.cc  -fPIC -DPIC -o graphics/.libs/graphics_libgui_graphics_la-QtHandlesUtils.o
In file included from ../../libgui/graphics/QtHandlesUtils.cc:37:0:
../../libgui/graphics/Container.h: In constructor 'QtHandles::ContainerBase::ContainerBase(QWidget*)':
../../libgui/graphics/Container.h:35:1: warning: declaration of 'parent' shadows a member of 'this' [-Wshadow]
../../libgui/graphics/QtHandlesUtils.cc: In function 'QImage QtHandles::Utils::makeImageFromCData(const octave_value&, int, int)':
../../libgui/graphics/QtHandlesUtils.cc:222:33: error: no matching function for call to 'qMin(octave_idx_type&, int&)'
../../libgui/graphics/QtHandlesUtils.cc:222:33: note: candidate is:
In file included from /usr/include/qt4/QtCore/qnamespace.h:45:0,
                 from /usr/include/qt4/QtCore/qobjectdefs.h:45,
                 from /usr/include/qt4/QtCore/qobject.h:47,
                 from /usr/include/qt4/QtCore/qcoreapplication.h:45,
                 from /usr/include/qt4/QtGui/qapplication.h:45,
                 from /usr/include/qt4/QtGui/QApplication:1,
                 from ../../libgui/graphics/QtHandlesUtils.cc:27:
/usr/include/qt4/QtCore/qglobal.h:1213:34: note: template<class T> const T& qMin(const T&, const T&)
/usr/include/qt4/QtCore/qglobal.h:1213:34: note:   template argument deduction/substitution failed:
../../libgui/graphics/QtHandlesUtils.cc:222:33: note:   deduced conflicting types for parameter 'const T' ('long int' and 'int')
../../libgui/graphics/QtHandlesUtils.cc:223:34: error: no matching function for call to 'qMin(octave_idx_type&, int&)'
../../libgui/graphics/QtHandlesUtils.cc:223:34: note: candidate is:
In file included from /usr/include/qt4/QtCore/qnamespace.h:45:0,
                 from /usr/include/qt4/QtCore/qobjectdefs.h:45,
                 from /usr/include/qt4/QtCore/qobject.h:47,
                 from /usr/include/qt4/QtCore/qcoreapplication.h:45,
                 from /usr/include/qt4/QtGui/qapplication.h:45,
                 from /usr/include/qt4/QtGui/QApplication:1,
                 from ../../libgui/graphics/QtHandlesUtils.cc:27:
/usr/include/qt4/QtCore/qglobal.h:1213:34: note: template<class T> const T& qMin(const T&, const T&)
/usr/include/qt4/QtCore/qglobal.h:1213:34: note:   template argument deduction/substitution failed:
../../libgui/graphics/QtHandlesUtils.cc:223:34: note:   deduced conflicting types for parameter 'const T' ('long int' and 'int')
make[3]: *** [graphics/graphics_libgui_graphics_la-QtHandlesUtils.lo] Error 1
make[3]: Leaving directory `/home/bob/dev/math/octave/build/libgui'
make[2]: *** [all] Error 2
make[2]: Leaving directory `/home/bob/dev/math/octave/build/libgui'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/home/bob/dev/math/octave/build'
make: *** [all] Error 2

Anonymous

 

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

Attach Files:
   
   
Comment:
   

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -email is unavailable- added by rik5 (Posted a comment)
  • -email is unavailable- added by chechugarriga (Posted a comment)
  • -email is unavailable- added by mtmiller (Posted a comment)
  •  

    There are 0 votes so far. Votes easily highlight which items people would like to see resolved in priority, independently of the priority of the item set by tracker managers.

    Only project members can vote.

     

     

     

     

    Follow 3 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2015-03-18 mtmiller StatusNeed Info Fixed
        Open/ClosedOpen Closed
    2014-04-13 mtmiller StatusNone Need Info

    Back to the top


    Powered by Savane 3.9