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

Submitter:  None
Submitted:  Tue 15 Jan 2013 08:49:02 AM UTC
   
 
Category:  Octave 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 Fixed Release:  None
Planned Release:  None
* Mandatory Fields

Add a New Comment Rich Markup
   

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>
Group Member
Wed 23 Jan 2013 02:18:37 PM UTC, comment #4: 

Okay, how about the attached change?

(file #27316)

Mike Miller <mtmiller>
Group 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>
Group 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>
Group Member
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:


octave:1> putenv ("CXXFLAGS", "-I/usr/include/openmpi");
octave:2> pkg install ...


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>
Group 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:


octave:1> pkg install -auto -verbose  image-2.0.0.tar.gz
mkdir (/tmp/oct-CberoK)
untar (image-2.0.0.tar.gz, /tmp/oct-CberoK)
checking whether the C++ compiler works... yes
checking for C++ compiler default output file name... a.out
checking for suffix of executables...
checking whether we are cross compiling... no
checking for suffix of object files... o
checking whether we are using the GNU C++ compiler... yes
checking whether g++ accepts -g... yes
checking how to run the C++ preprocessor... g++ -E
checking for grep that handles long lines and -e... /bin/grep
checking for egrep... /bin/grep -E
checking for ANSI C header files... yes
checking for sys/types.h... yes
checking for sys/stat.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for memory.h... yes
checking for strings.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for unistd.h... yes
checking unordered_map usability... yes
checking unordered_map presence... yes
checking for unordered_map... yes
checking whether unordered_map requires tr1 namespace... no
configure: creating ./config.status
config.status: creating config.h
In file included from /usr/include/hdf5.h:24:0,
                 from /opt/octave-3.6.4-rc1/include/octave-3.6.4-rc1/octave/oct-hdf5.h:27,
                 from /opt/octave-3.6.4-rc1/include/octave-3.6.4-rc1/octave/ov.h:43,
                 from /opt/octave-3.6.4-rc1/include/octave-3.6.4-rc1/octave/oct-obj.h:34,
                 from /opt/octave-3.6.4-rc1/include/octave-3.6.4-rc1/octave/ov-fcn.h:32,
                 from /opt/octave-3.6.4-rc1/include/octave-3.6.4-rc1/octave/ov-builtin.h:28,
                 from /opt/octave-3.6.4-rc1/include/octave-3.6.4-rc1/octave/defun-int.h:28,
                 from /opt/octave-3.6.4-rc1/include/octave-3.6.4-rc1/octave/defun-dld.h:30,
                 from /opt/octave-3.6.4-rc1/include/octave-3.6.4-rc1/octave/oct.h:36,
                 from bwlabeln.cc:20:
/usr/include/H5public.h:57:20: fatal error: mpi.h: No such file or directory
compilation terminated.
make: *** [bwlabeln.oct] Error 1


The CXXFLAGS prepended to the MKOCTFILE command in the
Makefile


bwlabeln.oct: bwlabeln.cc union-find.h++
        CXXFLAGS='-g -O2 -std=c++0x -Wall' $(MKOCTFILE) $<


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


: ${CXXFLAGS="-I/usr/include/openmpi"}


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)
  •  

    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 group 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.13-3230.
    Corresponding source code