bugGNU Octave - Bugs: bug #43748, Octave Forge image package cannot...

 
 

bug #43748: Octave Forge image package cannot be installed under MacOS

Submitter:  None
Submitted:  Thu 04 Dec 2014 01:53:09 AM UTC
   
 
Category:  Octave Package Severity:  3 - Normal
Priority:  5 - Normal Item Group:  Build Failure
Status:  Invalid / Not an Octave Bug Assigned to:  None
Originator Name:  Mo DeJong Originator Email:  -email is unavailable-
Open/Closed:  * Closed Release:  * 3.8.0
Operating System:  * Mac OS Fixed Release:  None
Planned Release:  None
* Mandatory Fields

Add a New Comment Rich Markup
   

Jump to the original submission

Wed 23 Nov 2016 11:37:42 PM UTC, comment #7: 

No response for quite a long time now, closing as invalid (or possibly fixed).

Mike Miller <mtmiller>
Group Member
Fri 17 Jun 2016 10:19:46 PM UTC, comment #6: 

This bug seems to have idled for quite a while. Can someone report whether the image package can be installed on current macOS systems with Octave 4.0.x?

Mike Miller <mtmiller>
Group Member
Fri 05 Dec 2014 07:37:34 PM UTC, comment #5: 

Wait, I think the problem arises as a combination of clang + GNU libstdc++... a very old GNU libstdc++, argh, stupid Apple.

Can you use a newer GNU libstdc++ or the corresponding old gcc that goes with that old GNU libstdc++ or the newer libc++ from LLVM?

Alternatively, we can probably fix this very easily by changing the call to pow(2.0, 32).

Jordi Gutiérrez Hermoso <jordigh>
Group Member
Fri 05 Dec 2014 06:44:46 PM UTC, comment #4: 

I'm pretty sure that this is not a result of PR21083 (as suggested by Jordi), because that's a libc++ bug, and these errors are coming from a libstdc++ header file.

The paths, file names and line numbers all match the (very old) version of libstdc++'s cmath header.

BTW, I just tried compiling:

    #include <cmath>
    int main () { double x = pow(2.32); }

on my Mac OS 10.10.1 system (with Apple clang clang-600.0.56) with both libc++ and libstdc++, and got no error.  I suspect that something more complicated is going on here.

Marshall <mclow>
Fri 05 Dec 2014 05:47:10 PM UTC, comment #3: 

I really don't understand how clang can think that pow(2,32) is ambiguous. This seems like another symptom of this bug?

http://llvm.org/bugs/show_bug.cgi?id=21083

Does your clang have the bugfix attached to this bug?

Jordi Gutiérrez Hermoso <jordigh>
Group Member
Fri 05 Dec 2014 02:10:08 PM UTC, comment #2: 

I do have installation problems on Mac OS X 10.8.5. Octave 3.8.2 is installed via the Fink package manager:


octave:2> pkg install -forge -nodeps image
bwdist.cc:541:20: error: call to 'pow' is ambiguous
      if (numel >= pow (2, 32))
                   ^~~
/usr/include/c++/4.2.1/cmath:365:3: note: candidate function
  pow(double __x, int __i)
  ^
/usr/include/c++/4.2.1/cmath:369:3: note: candidate function
  pow(float __x, int __n)
  ^
/usr/include/c++/4.2.1/cmath:373:3: note: candidate function
  pow(long double __x, int __n)
  ^
/usr/include/math.h:436:15: note: candidate function
extern double pow(double, double);
              ^
/usr/include/c++/4.2.1/cmath:357:3: note: candidate function
  pow(float __x, float __y)
  ^
/usr/include/c++/4.2.1/cmath:361:3: note: candidate function
  pow(long double __x, long double __y)
  ^
1 error generated.
make: *** [bwdist.oct] Error 1
/sw/bin/mkoctfile-3.8.2 __spatial_filtering__.cc
/sw/bin/mkoctfile-3.8.2 __bilateral__.cc
/sw/bin/mkoctfile-3.8.2 __custom_gaussian_smoothing__.cc
/sw/bin/mkoctfile-3.8.2 __boundary__.cc
/sw/bin/mkoctfile-3.8.2 bwfill.cc
/sw/bin/mkoctfile-3.8.2 rotate_scale.cc
/sw/bin/mkoctfile-3.8.2 hough_line.cc
/sw/bin/mkoctfile-3.8.2 graycomatrix.cc
/sw/bin/mkoctfile-3.8.2 bwdist.cc

pkg: error running `make' for the image package.
error: called from 'configure_make' in file /sw/share/octave/3.8.2/m/pkg/private/configure_make.m near line 82, column 9
error: called from:
error:   /sw/share/octave/3.8.2/m/pkg/private/install.m at line 199, column 5
error:   /sw/share/octave/3.8.2/m/pkg/pkg.m at line 394, column 9
octave:2>


Xcode version is 5.1.1 with the latest (for this version of OS X) command line tools installed.


ra:~ lukas$ clang --version
Apple LLVM version 5.1 (clang-503.0.40) (based on LLVM 3.4svn)
Target: x86_64-apple-darwin12.5.0
Thread model: posix
ra:~ lukas$


Lukas Reichlin <paramaniac>
Thu 04 Dec 2014 05:45:40 PM UTC, comment #1: 

FWIW, the whitepoint function would belong to the image package but as not yet been implemented anyway.  Of course, there is no way for Octave to know if functions exist in packages that are not yet installed.

Carnë Draug <carandraug>
Group Member
Thu 04 Dec 2014 01:53:09 AM UTC, original submission:  

I tried to process an image via:

>> [l, Am, C] = slic(im, 3000, 10, 10, 'median');

warning: the 'whitepoint' function belongs to the image package from Octave Forge
which seems to not be installed in your system.

This seems to fail with the default MacOSX binary installed for 3.8.0. Compiling on MacOSX is already difficult, so the binary install should come with these packages already compiled so that everything works by default.

Anyway, I then tried to run this:

pkg install -forge general control signal image

It fails with the following compiler error:


In file included from /usr/local/octave/3.8.0/lib/gcc47/gcc/x86_64-apple-darwin13/4.7.3/include/stdint.h:3:0,
                 from /usr/local/octave/3.8.0/include/octave-3.8.0/octave/oct-conf-post.h:167,
                 from /usr/local/octave/3.8.0/include/octave-3.8.0/octave/config.h:3351,
                 from /usr/local/octave/3.8.0/include/octave-3.8.0/octave/../octave/oct.h:31,
                 from sl_ab08nd.cc:30,
                 from __control_slicot_functions__.cc:1:
/usr/local/octave/3.8.0/lib/gcc47/gcc/x86_64-apple-darwin13/4.7.3/include-fixed/stdint.h:27:32: fatal error: sys/_types/_int8_t.h: No such file or directory
compilation terminated.
make: *** [__control_slicot_functions__.oct] Error 1
tar -xzf slicot.tar.gz
mkdir sltmp
mv slicot/src/*.f ./sltmp
mv slicot/src_aux/*.f ./sltmp
cp TG04BX.fortran ./sltmp/TG04BX.f
cd sltmp; /usr/local/octave/3.8.0/bin/mkoctfile-3.8.0 -c *.f
ar -rc slicotlibrary.a ./sltmp/*.o
rm -rf sltmp slicot
LFLAGS="-L/usr/local/octave/3.8.0/lib/octave/3.8.0 -L/usr/local/octave/3.8.0/lib -llapack -lgfortran -lcblas -lf77blas -latlas -L/usr/local/octave/3.8.0.mp/bin/../lib/gcc47/gcc/x86_64-apple-darwin13/4.7.3 -L/usr/local/octave/3.8.0.mp/bin/../lib/gcc47/gcc -L/usr/local/octave/3.8.0/lib -L/usr/local/octave/3.8.0.mp/bin/../lib/gcc47/gcc/x86_64-apple-darwin13/4.7.3/../../.. -lgfortran -lquadmath -lm" \
    /usr/local/octave/3.8.0/bin/mkoctfile-3.8.0 __control_slicot_functions__.cc common.cc slicotlibrary.a

pkg: error running `make' for the control package.


So, it looks like the control package fails to compile on MacOSX 10.9.5. Please fix this since it makes use of Octave impossible. There is no point in a binary installer that fails to actually install binaries that actually work.

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 mtmiller (Posted a comment)
  • -email is unavailable- added by mclow (Posted a comment)
  • -email is unavailable- added by jordigh (Posted a comment)
  • -email is unavailable- added by paramaniac (Posted a comment)
  • -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
    2016-11-23 mtmiller StatusNeed Info Invalid / Not an Octave Bug
        Open/ClosedOpen Closed
    2016-06-17 mtmiller Item GroupNone Build Failure
        StatusNone Need Info

    Back to the top

    Powered by Savane 3.13-f8d8.
    Corresponding source code