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 PackageSeverity: 3 - Normal
Priority: 5 - NormalItem Group: Installation Failure
Status: ConfirmedAssigned to: None
Originator Name: Ian FlintoftOriginator Email: -unavailable-
Open/Closed: OpenRelease: dev
Operating 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.

 

Wed 23 Jan 2013 02:18:37 PM UTC, comment #4:

Okay, how about the attached change?

(file #27316)

Mike Miller <mtmiller>
Project Member
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 Member
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 Member
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 File(s):
   
   
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
  • -unavailable- added by mtmiller (Posted a comment)
  • -unavailable- added by jordigh (Updated the item)
  • -unavailable- added by None (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):

     

     

    Follow 2 latest changes.

    Date Changed By Updated Field Previous Value => Replaced By
    Wed 23 Jan 2013 02:18:37 PM UTCmtmillerAttached File-=>Added image-pkg-make.diff, #27316
    Tue 15 Jan 2013 03:32:32 PM UTCjordighStatusNone=>Confirmed

    Back to the top


    Powered by Savane 3.1-cleanup