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 Package Severity:  3 - Normal
Priority:  5 - Normal Item Group:  Build Failure
Status:  Fixed Assigned to:  None
Originator Name:  JohnD Open/Closed:  Closed
Release:  other Operating 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)

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

CC := $(shell $(MKOCTFILE) -p CC)

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:

bash-3.1$ make -p | grep CC
CC = cc
CPP = $(CC) -E

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

In octave:

>> getenv("CC")
ans =

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

CC ?= gcc

        @echo "CC=$(CC)

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

CC ?= gcc

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.

>> pkg install -verbose -forge nan
cc -fopenmp -Wall -Wextra -Wconversion -O2  -fopenmp  -c svm.cpp
make: cc: Command not found
make: *** [svm.o] Error 127

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

No files currently attached


Depends on the following items: None found

   bug dependencies.


Carbon-Copy List
  • -email is unavailable- added by carandraug (Alois Schloegl - maintainer of NaN package)
  • -email is unavailable- added by lostbard (Submitted the item)

    Do you think this task is very important?
    If so, you can add your encouragement to it.
    This task has 0 encouragements so far.

    Only project members can vote.




    Follow 7 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2019-02-26 mtmiller Carbon-CopyRemoved 80942 => -
    2016-08-03 mtmiller StatusNeed Info => Fixed
        Open/ClosedOpen => Closed
    2016-03-29 mtmiller Dependencies- => bugs #47559 is dependent
    2016-03-25 mtmiller Release4.0.1-rc1 => other
    2016-03-07 mtmiller StatusNone => Need Info
    2016-03-07 carandraug Carbon-Copy- => Added alois.schloegl@ist.ac.at

    Back to the top

    Powered by Savane 3.5