bugGNU Octave - Bugs: bug #30119, build failure using dash shell in...

 
 

bug #30119: build failure using dash shell in Ubuntu 9.10 64bit

Submitter:  Richard T. Guy <guyrt>
Submitted:  Sat 12 Jun 2010 12:02:54 AM UTC
   
 
Category:  Configuration and Build System Severity:  3 - Normal
Priority:  5 - Normal Item Group:  Build Failure
Status:  Invalid / Not an Octave Bug Assigned to:  None
Originator Name:  Richard T. Guy Open/Closed:  * Closed
Release:  * dev Operating System:  * GNU/Linux
Fixed Release:  None Planned Release:  None
* Mandatory Fields

Add a New Comment Rich Markup
   

Sat 12 Jun 2010 12:41:48 AM UTC, comment #1: 

I guess it is coming from lines like

  func_append finalize_command " $qarg"

in the generated libtool script since func_append is also defined in that script to be

# func_append var value
# Append VALUE to the end of shell variable VAR.
func_append ()
{
  eval "$1+=\$2"
}

So this looks like a libtool problem so I guess the right place to report the bug is to the libtool maintainers.

A new version of libtool was recently released, but it appears ot have the same definition of func_append.

In any case, I think you can avoid the problem by doing something like

  CONFIG_SHELL=/bin/bash configure ...

to configure Octave.  That way, the generated libtool script should use the shell specified by CONFIG_SHELL.  There is no need to be root and change /bin/sh to be /bin/bash.

I'm marking this bug as invalid and closing it because if there is a bug, it should be fixed in libtool so everyone benefits from the fix rather than putting some workaround in Octave.

John W. Eaton <jwe>
Group administrator
Sat 12 Jun 2010 12:02:54 AM UTC, original submission:  

I was unable to build Octave in Ubuntu 9.10, 64 bit using the dash shell.  I got lots of errors like this:


eval: 1: libtool_args+=: not found
eval: 1: compile_command+=: not found
eval: 1: finalize_command+=: not found
eval: 1: libtool_args+=: not found
eval: 1: compile_command+=: not found
eval: 1: finalize_command+=: not found
eval: 1: libtool_args+=: not found
eval: 1: compile_command+=: not found


followed by this:


la=`echo DLD-FUNCTIONS/max.la | /bin/sed 's,DLD-FUNCTIONS/,,'` && \
  of=`echo DLD-FUNCTIONS/max.oct | /bin/sed 's,DLD-FUNCTIONS/,,'` && \
  cd DLD-FUNCTIONS && \
  ln -s .libs/`/bin/sed -n -e "s/dlname='\([^']*\)'/\1/p" < $la` $of
/usr/lib/gcc/x86_64-linux-gnu/4.4.1/libgfortranbegin.a(fmain.o): In function `main':
(.text+0x26): undefined reference to `MAIN__'


When I switched my default shell to bash rather than the debian product bash, the problem was resolved.  I can attach a full output from a failed build, but it gets a ways in so that would be very long.  Bottom line, it is almost certainly a script in
octave/src that needs a #/bin/bash

RTG

Richard T. Guy <guyrt>

 

(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 jwe (Posted a comment)
  • -email is unavailable- added by guyrt (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 2 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2010-06-12 jwe StatusNone Invalid / Not an Octave Bug
        Open/ClosedOpen Closed

    Back to the top

    Powered by Savane 3.13-caa5.
    Corresponding source code