bugGNU Octave - Bugs: bug #47355, [forge]: NaN fails to install in...

 
 

bug #47355: [forge]: NaN fails to install in windows

Submitted by:  John Donoghue <lostbard>
Submitted on:  Mon 07 Mar 2016 02:00:33 PM UTC  
 
Category: Octave Forge PackageSeverity: 3 - Normal
Priority: 5 - NormalItem Group: Build Failure
Status: FixedAssigned to: None
Originator Name: JohnDOpen/Closed: Closed
Release: otherOperating System: Microsoft Windows

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)

Tue 08 Mar 2016 05:15:54 AM UTC, comment #7:

Good, thanks for the info, learn something new about make all the time.

The change was made in the nan package to fix a specific problem, see http://hg.code.sf.net/p/octave/NaN/rev/3931a2259cb2

Not sure if this should be addressed in configure_make.m as you suggest or if it's limited scope enough to be fixed in one package. Nan package could try setting CC with something like

Mike Miller <mtmiller>
Project Administrator
Mon 07 Mar 2016 09:45:35 PM UTC, comment #6:

running make --no-builtin-variables, makes it use the ?= rule.

So I guess internally, make sets CC to cc, prior to checking ?= etc.

Running make -p | grep CC:

John Donoghue <lostbard>
Project Member
Mon 07 Mar 2016 09:36:00 PM UTC, comment #5:

In octave:

In windows, using the msys make that is packaged with mxe octave,
test makefile:

Output is CC=cc

If I run make CC=gcc

Output is CC=gcc

If I change topline to CC := gcc

Output is CC=gcc

In Linux (I tested with fedora) it behaves the same ?= does not work for setting CC to a default if CC is not externally set. (it sets it to cc instead)

So it is at least consistant in the two OSs I tried.

John Donoghue <lostbard>
Project Member
Mon 07 Mar 2016 07:29:39 PM UTC, comment #4:

The NaN package Makefile contains

so does that mean CC is "cc" in the Octave environment on Windows? If so, how is that environment configured, is it by Octave, Windows, or other?

Mike Miller <mtmiller>
Project Administrator
Mon 07 Mar 2016 02:46:25 PM UTC, comment #3:

Adding maintainer to cc.

Carnë Draug <carandraug>
Project Member
Mon 07 Mar 2016 02:27:21 PM UTC, comment #2:

In regards to running make from pkg install, I see that when it invokes configure, if the env vars for CC etc are not set, it uses those from mkoctfile.

When calling make, it doesn't not - in the case where there is a makefile, but not a configure script, should it pass along CC etc?

John Donoghue <lostbard>
Project Member
Mon 07 Mar 2016 02:22:41 PM UTC, comment #1:

Running setenv('CC', 'gcc') prior to pkg install and it will install ok.

John Donoghue <lostbard>
Project Member
Mon 07 Mar 2016 02:00:33 PM UTC, original submission:

Using mxe-octave, running in Windows 7.

3.0 fails at the same place.

2.8.1 installs ok.

John Donoghue <lostbard>
Project Member

 

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

Attach File(s):
   
   
Comment:
   

No files currently attached

 

Depends on the following items: None found

Digest:
   bug dependencies.

 

Carbon-Copy List
  • -unavailable- added by mtmiller (Posted a comment)
  • -unavailable- added by carandraug (Alois Schloegl - maintainer of NaN package)
  • -unavailable- added by lostbard (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 6 latest changes.

    Date Changed By Updated Field Previous Value => Replaced By
    Wed 03 Aug 2016 05:28:16 PM UTCmtmillerStatusNeed Info=>Fixed
      Open/ClosedOpen=>Closed
    Tue 29 Mar 2016 05:43:55 AM UTCmtmillerDependencies-=>bugs #47559 is dependent
    Fri 25 Mar 2016 10:12:43 PM UTCmtmillerRelease4.0.1-rc1=>other
    Mon 07 Mar 2016 07:29:39 PM UTCmtmillerStatusNone=>Need Info
    Mon 07 Mar 2016 02:46:25 PM UTCcarandraugCarbon-Copy-=>Added -unavailable-

    Back to the top


    Powered by Savane 3.1-cleanup1