bugGNU Octave - Bugs: bug #41720, very first compilation of a c-file...

 
 

bug #41720: very first compilation of a c-file with mex - successfull, after using the build function the c-file cannot be recompile

Submitted by:  None
Submitted on:  Thu 27 Feb 2014 01:09:36 PM UTC  
 
Category: Octave FunctionSeverity: 3 - Normal
Priority: 5 - NormalItem Group: Inaccurate Result
Status: Wont FixAssigned to: None
Originator Name: GrigorijOriginator Email: -unavailable-
Open/Closed: ClosedRelease: 3.8.0
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.

 

Thu 27 Feb 2014 01:40:41 PM UTC, comment #1:

This is a particularity of the Windows file system. When a DLL (a MEX or OCT file is actually a Win32 DLL) is opened by a process, it is locked and cannot be deleted.

By executing the MEX file, it has been loaded by octave and cannot be deleted or overwritten. If you "clear hello" before recompiling, it should work.

Closing the bug, as I don't think we want to do anything about it at octave-level.

Michael Goffioul <goffioul>
Project Member
Thu 27 Feb 2014 01:09:36 PM UTC, original submission:

example of a c-file:

commands in octave:

Then, in the c-file, a minor change is performed.
command in octave:
The output is as follows:
C:\Program Files (x86)\octave-3.8.0-5-portable\octave-3.8.0\bin/ld.exe: cannot open output file hello.mex: Permission denied
collect2.exe: error: ld returned 1 exit status
warning: mkoctfile exited with failure status

Indeed, the hello.mex cannot be deleted, neither from explorer nor from octave command prompt ("delete hello.mex" ends up in "warning: delete: hello.mex: Permission denied").

Anonymous

 

(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

Items that depend on this one: None found

 

Carbon-Copy List
  • -unavailable- added by goffioul (Posted a comment)
  • -unavailable- added by None (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 2 latest changes.

    Date Changed By Updated Field Previous Value => Replaced By
    Thu 27 Feb 2014 01:40:41 PM UTCgoffioulStatusNone=>Wont Fix
      Open/ClosedOpen=>Closed

    Back to the top


    Powered by Savane 3.1-cleanup1