bugGNU Octave - Bugs: bug #45091, Problem with stk 2.2.1 install...

 
 

bug #45091: Problem with stk 2.2.1 install under octave 3.8.2 using MacPorts

Submitted by:  Julien Bect <jbect>
Submitted on:  Wed 13 May 2015 06:24:26 AM UTC  
 
Category: Octave Forge PackageSeverity: 3 - Normal
Priority: 5 - NormalItem Group: Installation Failure
Status: FixedAssigned to: None
Originator Name: Open/Closed: Closed
Release: 3.8.2Operating System: Mac OS

Add a New Comment(Rich Markup)
   

You are not logged in

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

 

(Jump to the original submission Jump to the original submission)

Sun 03 Apr 2016 03:32:12 PM UTC, comment #9:

I have fixed the root of this issue two weeks ago (see bug #45369) so the workaround will no longer be necessary when Octave 4.2 gets released.

Carnë Draug <carandraug>
Project Member
Wed 01 Jul 2015 01:33:47 AM UTC, comment #8:

See attached file (patch-inst_stk_init.m.diff) for the MacPorts fix to this problem. This does not preclude a more fundamental solution, see comment #7.

(file #34350)

Marius Schamschula <mschamschula>
Mon 22 Jun 2015 04:55:08 PM UTC, comment #7:

Hello Marius,

A similar problems has been identified in the octave-stk binary package for cygwin (see bug #45362) and tracked down to a more fundamental problem in the pkg function (see bug #45369).

I assume that the binary package for MacPorts is created similarly, by calling 'pkg build'. In this case, the problem is that, after installing the package with 'pkg install', you end up with two sets of PKG_ADD/PKG_DEL files: one the arch-independent directory (where they belong) and one in the arch dependent-directory (where they don't belong).

Until bug #45369 is solved, a simple workaround is to manually deleted the PKG_ADD/PKG_DEL files that you find at the root of your binary package tarball.

@++
Julien

Julien Bect <jbect>
Mon 18 May 2015 06:29:36 AM UTC, comment #6:

@Marius: keep me CC'ed if you start a discussion with MacPorts guys.

Have you tried stepping through post_install.m and looking at the content of the desc structure ?

Julien Bect <jbect>
Sun 17 May 2015 06:31:39 PM UTC, comment #5:

Unfortunately, I get the same error with 2.3.0 RC2, using the MacPorts octave package mechanism.

The good news is that this seems to be a MacPorts problem:

I just manually installed and loaded stk-2.2.1 from within octave, w/o any problems.

I'm going to see if I can get some help over @ MacPorts to figure out what is going one here.

Marius Schamschula <mschamschula>
Sun 17 May 2015 06:04:36 PM UTC, comment #4:

The new RC fixes the installation problem for me.

The original problem might be related, because the error happens during the first call to a compiled oct-file.

Oliver Heimlich <oheim>
Sun 17 May 2015 03:42:15 PM UTC, comment #3:

@Oliver: thanks, I have made the change on the default branch of STK, this will be available in the 2.3.0 release soon.

If you want to test, you can find a release candidate here:

https://sourceforge.net/projects/kriging/files/stk/release-candidate/

(RC2; select the "octpkg" tarball).

But do you really think that this is related to the bug reported by Marius ?

Julien Bect <jbect>
Sun 17 May 2015 08:34:01 AM UTC, comment #2:

The src/Makefile calls mkoctfile by its name and does not use $(MKOCTFILE), which may be different if several Octave versions are installed. Please fix the Makefile as follows:

On my system (GNU/Linux) this leads to memory access faults during compilation of the package, because mkoctfile 3.8.2 is used for compiling a 4.0.0-rc4 version of the package.

Oliver Heimlich <oheim>
Thu 14 May 2015 08:06:36 AM UTC, comment #1:

Hello Marius,

I'm not familiar with MacPorts, but it seems that something went wrong at installation time. I don't have access to a Mac, so I will need your help to debug this...

The problem seems to be that PKG_ADD ended up in the wrong directory. It should be in the arch-independent directory, but in your case it is in the arch-dependent directory.

How exactly did you install stk ? Can you step through post_install.m (called at the end of installation) and see what desc, and more specifically desc.dir, contain ?

@++
Julien

Julien Bect <jbect>
Wed 13 May 2015 06:24:26 AM UTC, original submission:

Le 12/05/2015 18:12, Marius Schamschula a écrit :

> Julien,
>
> I just now got back to trying to figure out why I get errors installing stk 2.2.1 under octave 3.8.2 using MacPorts. The build proceeds normally, but when I load stk I get
>
>>> pkg load stk
> warning: addpath: /opt/local/lib/octave/packages/stk-2.2.1/x86_64-apple-darwin13.4.0-api-v49+/config: No such file or directory
> error: 'stk_config_mole' undefined near line 42 column 1
> error: called from:
> error: /opt/local/lib/octave/packages/stk-2.2.1/x86_64-apple-darwin13.4.0-api-v49+/PKG_ADD at line 42, column 1
> error: /opt/local/share/octave/3.8.2/m/pkg/private/load_packages_and_dependencies.m at line 47, column 5
> error: /opt/local/share/octave/3.8.2/m/pkg/private/load_packages.m at line 60, column 3
> error: /opt/local/share/octave/3.8.2/m/pkg/pkg.m at line 412, column 7
>
> I get no such error with stk 2.2.0.

Julien Bect <jbect>

 

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

Attach File(s):
   
   
Comment:
   

Attached Files
file #34350:  patch-inst_stk_init.m.diff added by mschamschula (426B - application/octet-stream - Michael Dickens fix for MacPorts)

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -unavailable- added by mschamschula (Posted a comment)
  • -unavailable- added by oheim (Posted a comment)
  • -unavailable- added by jbect
  • -unavailable- added by jbect (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 4 latest changes.

    Date Changed By Updated Field Previous Value => Replaced By
    Sun 03 Apr 2016 03:32:19 PM UTCcarandraugStatusNone=>Fixed
      Open/ClosedOpen=>Closed
    Wed 01 Jul 2015 01:33:47 AM UTCmschamschulaAttached File-=>Added patch-inst_stk_init.m.diff, #34350
    Thu 14 May 2015 07:38:36 AM UTCjbectCarbon-Copy-=>Added -unavailable-

    Back to the top


    Powered by Savane 3.1-cleanup1