bugGNU Octave - Bugs: bug #38091, image-2.0.0 install failure on...

 
 

bug #38091: image-2.0.0 install failure on Ubuntu 12.04 - diagnosed, outline fix

Submitted by:  None
Submitted on:  Tue 15 Jan 2013 08:49:02 AM UTC  
 
Category:  Octave Forge Package Severity:  3 - Normal
Priority:  5 - Normal Item Group:  Installation Failure
Status:  Fixed Assigned to:  None
Originator Name:  Ian Flintoft Originator Email:  -email is unavailable-
Open/Closed:  Closed Release:  dev
Operating System:  GNU/Linux

Add a New Comment(Rich Markup)
   

You are not logged in

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

 

Wed 18 Mar 2015 05:45:20 AM UTC, comment #5:

This bug appears to be resolved with the latest octave and image development sources.

Mike Miller <mtmiller>
Project Administrator
Wed 23 Jan 2013 02:18:37 PM UTC, comment #4:

Okay, how about the attached change?

(file #27316)

Mike Miller <mtmiller>
Project Administrator
Wed 23 Jan 2013 02:20:16 AM UTC, comment #3:

Short answer: nope.

I see it's required to build the package currently, but I don't know how to make that work with the current mkoctfile design.

Mike Miller <mtmiller>
Project Administrator
Mon 21 Jan 2013 01:49:44 PM UTC, comment #2:

Mike, do you have a suggestion on how to add -std=c++0x to the CXXFLAGS when building the image package?

Jordi GutiƩrrez Hermoso <jordigh>
Project Administrator
Mon 21 Jan 2013 08:12:38 AM UTC, comment #1:

A few comments:

1. You should use CPPFLAGS (preprocessor flags) instead of CXXFLAGS for things like include paths. By using CXXFLAGS you probably disabled the default code optimization (-O2).

2. A possible workaround might be to set CXXFLAGS in your environment to match how you built Octave:

3. This exact problem is worked around in Debian and Ubuntu with the following patch to mkoctfile:

http://anonscm.debian.org/gitweb/?p=pkg-octave/octave.git;a=blob;f=debian/patches/mkoctfile-mpi.diff

All that being said, a similar issue with mkoctfile was recently brought up on the maintainers list, so someone may already be working on a fix that applies here.

Mike Miller <mtmiller>
Project Administrator
Tue 15 Jan 2013 08:49:02 AM UTC, original submission:

image-2.0.0 fails to install in octave 3.6.4-rc1 compiled
from source on my Ubuntu 12.04 64-bit system.

Install log:

The CXXFLAGS prepended to the MKOCTFILE command in the
Makefile

appear to override those in /opt/octave-3.6.4-rc1/bin/mkoctfile:

causing the failure.

Note: For Ubuntu 12.04 I had to compile octave with
CXXFLAGS='-I/usr/include/openmpi' so that hdf5 can find the
openmpi headers which are located in /usr/include/openmpi but
included in the hdf5 file using "#include<mpi.h>". Adding
these flag to the image-2.0.0 Makefile line solve the
problem but the real fix is presumably to append any extra CXXFLAGS to those defined in mkoctfile rather than overiding them?

Anonymous

 

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

Attach Files:
   
   
Comment:
   

Attached Files
file #27316:  image-pkg-make.diff added by mtmiller (731B - text/x-patch)

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -email is unavailable- added by mtmiller (Posted a comment)
  • -email is unavailable- added by jordigh (Updated the item)
  • -email is unavailable- added by None (Submitted the item)
  •  

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

    Only project members can vote.

     

     

     

    Follow 4 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2015-03-18 mtmiller StatusConfirmed => Fixed
        Open/ClosedOpen => Closed
    2013-01-23 mtmiller Attached File- => Added image-pkg-make.diff, #27316
    2013-01-15 jordigh StatusNone => Confirmed

    Back to the top


    Powered by Savane 3.3