bugGNU Octave - Bugs: bug #50249, Build fails if a parent directory...

 
 

bug #50249: Build fails if a parent directory contains a whitespace

Submitter:  Martin Castillo <castilma>
Submitted:  Wed 08 Feb 2017 12:34:02 AM UTC
   
 
Category:  Configuration and Build System Severity:  1 - Wish
Priority:  1 - Later Item Group:  Build Failure
Status:  Wont Fix Assigned to:  None
Originator Name:  Open/Closed:  * Closed
Release:  * 4.2.0 Operating System:  * GNU/Linux
Fixed Release:  None Planned Release:  None
* Mandatory Fields

Add a New Comment Rich Markup
   

Wed 08 Feb 2017 05:31:30 AM UTC, comment #2: 

I would mark this as won't fix. The specific error message here comes from libtool, which is completely outside of Octave's control to do anything about.

Here is an example of a shell code line that may be causing this error in the upstream libtool project:

https://git.savannah.gnu.org/cgit/libtool.git/tree/build-aux/ltmain.in#n6631

Martin - you are correct if you are talking about other autotools-based projects. You might want to raise the issue with the GNU libtool project to see if there is any interest in accepting patches to allow building in directories and files with spaces. There may also be some parts of autoconf and/or automake that assume a file name can be used unquoted. If you can get the upstream projects fixed to accept names with spaces, then we can look at whether Octave's build files need any tweaking.

Mike Miller <mtmiller>
Group Member
Wed 08 Feb 2017 04:56:06 AM UTC, comment #1: 

On UNIX, and equivalent operating systems like Linux, a space character is special.  The common practice is never to use spaces in directory or file names.  If necessary, use an underscore "_" to replace a space in names.

Rik <rik5>
Group administrator
Wed 08 Feb 2017 12:34:02 AM UTC, original submission:  

I get the following error while building.

...
  CC       liboctave/wrappers/liboctave_wrappers_libwrappers_la-wait-wrappers.lo
  CCLD     liboctave/wrappers/libwrappers.la
  CXXLD    liboctave/liboctave.la
  CXXLD    libinterp/liboctinterp.la
/bin/sed: can't read Projekte/octave-4.2.0/liboctave/liboctave.la: No such file or directory
libtool:   error: 'Projekte/octave-4.2.0/liboctave/liboctave.la' is not a valid libtool archive

$pwd
/home/me/.repo/Andere Projekte/octave-4.2.0


The full path is divided somewhere because of the whitespace.
This is not the first project that failed to build on my machine because of this. I'm starting to ask myself if there is any convention to not put source directories under directories with spaces in the name.
If not, is this maybe an autoconf bug?


Martin Castillo <castilma>

 

(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 rik5 (Posted a comment)
  • -email is unavailable- added by castilma (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 5 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2017-02-08 rik5 StatusNone Wont Fix
        Open/ClosedOpen Closed
    2017-02-08 rik5 Severity3 - Normal 1 - Wish
        Priority5 - Normal 1 - Later
        SummaryBuild fails, if a parent directory contains a whitespace Build fails if a parent directory contains a whitespace

    Back to the top

    Powered by Savane 3.13-caa5.
    Corresponding source code